How to use jsonp Twitter Api 1.1 callback?

Looking at the Twitter doc: https://dev.twitter.com/docs/api/1.1/get/search/tweets
I can use a callback (optional) and it says, "If provided, the response will use JSONP format with callback of the given name The usefulness of this parameter is somewhat diminished by the requirement for authentication for requests to this endpoint.

Example values: processTweets "
However jsonp uses a script tag, so there is no way to pass the auth header in the headers, and Twitter uses oAuth. According to https://github.com/ddo/oauth-1.0a I can pass data: oauth.authorize (request_data , token) as authentication data, but since I am doing "GET" I cannot pass data as data, only as params. So I don't think this jsonp can work at all. Correct me if I'm wrong, but is there a way to work with jsonp using Twitter api 1.1? Thanks.

+3
jsonp twitter-oauth oauth twitter


source to share


No one has answered this question yet

Check out similar questions:

1986
What is JSONP and why was it created?
282
Simplest PHP example to fetch user_timeline with Twitter API version 1.1
nine
How do I use the Twitter API from the client side?
five
Get info using Twitter API v.1.1
3
Twitter API 1.1 OAuth Get Usage Data
2
Can't get request token twitter Rest API 1.1
1
Twitter 1.1 javascript
1
How to revoke user access token provided by Twitter to app via Twitter REST API
0
Twitter API request_token
0
Node.js API and Twitter 1.1



All Articles
Loading...
X
Show
Funny
Dev
Pics