Flickr Authorisation with oAuth using Swift -
i wanted flickr authorisation oauth, got empty response. here how did.
- 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
- genarate signature hmac-sha1:
128974f0e49251f6bd705f7bf9dadbd3dafe90a4
- created request string base string , signature this:
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
Post a Comment