300x250 AD TOP

Wednesday, June 11, 2014

Tagged under: , , , ,

Getting access token from Delicious (OAuth 2.0 )








  • First Create an application in Delicious
test app
  • Description: testing app
  • Client ID: 59b8e285cc1859da599f32e72f6ccb0
  • Client Secret: 69382e528777bfb06e2af769cb748a92


  • Send the request for users’ authorization.
https://delicious.com/auth/authorize?client_id=CLIENT_ID& redirect_uri=http://www.example.com/redirect
 
 









  • Response


http://www.example.com/redirect?code=6c649087ae02c08612031fe3ddff74e2



  • Then send the above code for get Access Token

https://avosapi.delicious.com/api/v1/oauth/token?client_id=CLIENT-ID
 &client_secret=CLIENT-SECRETE 
&grant_type=code&code=AUTHORIZAN-CODE


 { "pkg": null, "status": "success", "url": Responce: "http://avosapi.delicious.com/api/v1/oauth/token?client_id=9b39da2f5fc4dc40975040e83d4b2b41&client_secret=91c6293c82e3b3c3b8b74935eaab1849&grant_type=code&code=f07850c3cc21f2e9d666ee75a86e6193", "delta_ms": 62, "server": "ip-10-196-3-19.us-west-1.compute.internal", "session": "1tkrfqh1e4uqe16ya1jwijs2sp", "api_mgmt_ms": 0, "version": "v1", "access_token": "9931064-44753f98a0fbd735440ba820cuad240"

4 comments:

Piri said...

Good Job Bro

Piri said...
This comment has been removed by a blog administrator.
Unknown said...

how to redirect on url which has GET parameter

Unknown said...


you can simply send this request in browser with your Delicious app clientID
"https://delicious.com/auth/authorize?client_id=CLIENT_ID& redirect_uri=http://www.example.com/redirect"