Yes, the Picasa Web Albums API does work with Oauth2, and that is the recommended method for authentication.
However, most of the new tools, including the oauth2client that you're using, have been developed for the new API infrastructure, which is not the system the PWA API is built on. The short answer is that, no, the code below will not work with this API. Sorry. Let me know if you have more questions about this. Thank you. -Mike On Friday, June 29, 2012 12:13:29 PM UTC-7, Brett wrote: > > The script below returns: > > apiclient.errors.UnknownApiNameOrVersion: name: picasa version: 1 > > Does Picasa have a different api name or version? Does Server to Server > OAuth2 work with Picasa yet? The Picasa Web Album docs recommend OAuth2. > > import httplib2 > import os > from apiclient.discovery import build > from oauth2client.client import SignedJwtAssertionCredentials > > client_id_email = '<client_id_email>' > scope = 'https://picasaweb.google.com/data' > > keypath = os.path.join(os.getcwd(), 'privatekey.p12') > key = open(keypath, 'rb').read() > > creds = SignedJwtAssertionCredentials(client_id_email, key, scope) > http = httplib2.Http() > http = creds.authorize(http) > service = build("picasa", "1", http=http) > > -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-picasa-data-api/-/as3otGDYA8cJ. To post to this group, send email to google-picasa-data-api@googlegroups.com. To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.