开发者

Is JSONP supported in the new Flickr OAuth API?

开发者 https://www.devze.com 2023-04-09 01:52 出处:网络
I searched for the JSONP usages of Flickr\'s开发者_如何学C OAuth.Let me know whether it\'s supported.There are only 2 supported methods, you cannot use OAuth for a whole login process using JSONP.

I searched for the JSONP usages of Flickr's开发者_如何学C OAuth. Let me know whether it's supported.


There are only 2 supported methods, you cannot use OAuth for a whole login process using JSONP.

But, even if it's deprecated, the old API still exists, is usable and supports JSONP: deprecated flickr auth API.


Well, yes: http://www.flickr.com/services/api/explore/flickr.auth.oauth.getAccessToken

JSONP is JSON with padding, meaning wrapped in a function. Flicker oauth's looks like this:

jsonFlickrApi({ "auth": { 
                  "access_token": { 
                    "oauth_token": "", 
                    "oauth_token_secret": "" 
                  } 
                }, "stat": "ok" })

Edit (since I was downvoted):

This is the proper use of the flickr oauth API: http://www.flickr.com/services/api/auth.oauth.html everything is covered on signing and access token and how to get that token from a request token. If someone is serious about implementing the oauth process what you would get back as JSONP is the snippet I posted above. You can test it all from this link http://www.flickr.com/services/api/explore/flickr.auth.oauth.getAccessToken

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号