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/-/cFZ1UV0ayk4J.
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.

Reply via email to