Flickr Authorisation with oAuth using Swift -


i wanted flickr authorisation oauth, got empty response. here how did.

  1. created base string (xxx..xx oauth_consumer_key):

get&https%3a%2f%2fwww.flickr.com%2fservices%2foauth%2frequest_token&oauth_callback%3doob%26oauth_consumer_key%3dxxxxxxxxxxxxxxx%26oauth_nonce%3d91133798%26oauth_signature_method%3dhmac-sha1%26oauth_timestamp%3d1427542658

  1. genarate signature hmac-sha1:

128974f0e49251f6bd705f7bf9dadbd3dafe90a4

  1. created request string base string , signature this:

https://www.flickr.com/services/oauth/request_token?oauth_callback=oob&oauth_consumer_key=xxxxxxxxxxxxxxxx&oauth_nonce=61061285&oauth_signature=128974f0e49251f6bd705f7bf9dadbd3dafe90a4&oauth_signature_method=hmac-sha1&oauth_timestamp=1427542658

  1. i called request string "requeststringsignature"

    var url = nsurl(string: requeststringsignature) var request = nsurlrequest(url: url!)  nsurlconnection.sendasynchronousrequest(     request,     queue: nsoperationqueue.mainqueue(),     completionhandler: {         (response, data, error) -> void in         println(response)     } ) 

    response nil.

please help.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -