1

using yql with oath to get private photo in flickr for user

Im trying to get users private photo using my application as much as possible in one time query and get a benefit of more request limit as well by using YQL. Im already know that without oath i can get users photo but it's only public content.

Im successfully get a access token and my final request for desired result is below .

http://query.yahooapis.com/v1/yql?realm=yahooapis.com&oauth_version=1.0&oauth_consumer_key=dj0yJmk9bEEyOUlXSzJiT3NmJmQ9WVdrOVZEbFFkMXBOTTJVbWNHbzlNakV4T0RFd01qRTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD0yZQ--&q=select%20source%2Cwidth%2Cheight%20from%20flickr.photos.sizes%20where%20source%20like%20%27%25_m%25%27%20and%20api_key%3D%27d9f9f77f8fbbdcf1178e2d77260b8985%27%20and%20photo_id%20in%20%28SELECT%20%20id%20%20FROM%20flickr.photos.search%280%2C50%29%20WHERE%20api_key%3D%27d9f9f77f8fbbdcf1178e2d77260b8985%27%20%20AND%20user_id%3D%2796502104%40N05%27%29&oauth_nonce=A9C4839C&oauth_timestamp=1370976986&oauth_signature_method=HMAC-SHA1&oauth_token=A%253D274i_hDauV4FJzhRSZjuah10AMT6P1mYDlLRAnlAwqp8M2vM3PzMqaoBja1kVOdvoT8YcDYucDQuqTnzVTcgD62CqtF39gxVf2LL0k_O9SJrjhIeNjPI6zikFjQ_r6qrzz7IP02U7gHemkeG38Hd1pNwiTg3iFlJiK0V7jWzc8tRawDCoBKf6Gxo0cjmvG.T6APoCpbSFnc09I4DLW3lrE3y_B362YJfq76iaLAiIALoPm4t7XV.Mn9DPalzhEj49U85IXnXx8eIzvpnWaH0LVSgASqAbxftojV8Yi6GUZeK2kWQ5l.yQY5S6DaX8hRLVufiqe.m0hYH38li8VZHIKvyteoQUn7xcnOqCwyVEAbYVh0tUEkLgYQE0ya9iHA8aP0t4XvG5aDkvQvVYFGqURncVmvMZxtC1TlllVTHe3HoTY7ov2ce.YJ8qmaEZCcq3LCnfX531Iia6UUfceuBXCRVErPlM8vWbz4nwKhvEx8i42XdA7eirHASz9JD3YBPruLI_4kkbgIgKM76HpjKC4I950oeJy_r4hqQ9pm2X.st_TELZIucV4cac_xH84fOJNBweOgG4QGCpvb.e66_Gsg0YFMcrxgYIjWhZqXQNk2UBRgfmPfsm8QNrAQ2MXFAzAogjgRZ3XT6VZtdMRCrk9CADLvRj1Vv.JFTy0iUHij4gr7kC.7bnQWCRtQdtLovMWesGlloTo.gsPOF0.wpkcRlHy7Y6TNgHgdGTyv6MNH0bGWxR5ERWLRrSG2qYRRPPKwszhjnGcHvNJpOuY5i8hkInKb_bL2wJt56bOyo6X7isKPZDg9d9ao6TJ45qJPVoG43Fwtuu7.qMeWw_3.FKCzUVF2hE2z61zJY9Q--&jsoncompat=new&diagnostics=true&format=json&oauth_signature=HNsLlH2L5CQN21AjNa%2FXZRl1UoQ%3D

the result is always end up with < <xmlns:yahoo=>"http://www.yahooapis.com/v1/base.rng" <yahoo:uri=>"http://yahoo.com" <xml:lang=>"en-US"> Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_TOKEN_REJECTED_ERROR", realm="yahooapis.com" Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_TOKEN_REJECTED_ERROR", realm="yahooapis.com"

in web application

The operation couldn’t be completed. (org.lukhnos.ObjectiveFlickr error 2147418115.)"

in ios application

my last clue to solve this problem is access token was returned base64 encoded already so I need decode before signature process cause signature process has it's own encode process which probably inappropriate encoding for access token ...

but Im not sure .... that right way to solve this problem...

Can any one tell me the problem of my query ?

by
1 Reply
  • Finally I can successfully getting through the yql oauth by customise flickr clinet API for object-c lib. Cheers!!!

    1

Recent Posts

in YQL