Using Oauth2 AccessToken of a particular user in gdata for retrieving picasa photos

69 Views Asked by At

I have implemented python code for authentication user for picasa web albums referring this documentation! and I have recieved the user credentials for particular user.

Now I want to use this access token to fetch a user's Picasa Web albums. But I am using gdata python library for it. Gdata has its own authentication process but I wish to use the credentials retrieved from above process.

Is there a way to use this access_token explicitly and fetch Photos using gdata??

The reference doc for gdata is this!

1

There are 1 best solutions below

0
Kajal Gupta On

Worked around Simply use like this: gd_client = gdata.photos.service.PhotosService(additional_headers={'Authorization' : 'Bearer TOKEN HERE'})