Picasa网络相册API:最近上传的照片Feed无效

时间:2017-11-27 06:49:20

标签: python google-api gdata picasa

我从Picasa获取用户recently uploaded photos。根据文档样本请求URL:

https://picasaweb.google.com/data/feed/api/user/userID?kind=photo&max-results=10

收到响应但未按照给定的样本响应条目标记在响应中获取Feed时丢失。

代码段:

credentials = SignedJwtAssertionCredentials(
      SERVICE_ACCOUNT_EMAIL,
      file(SERVICE_ACCOUNT_PEM_FILE_PATH, "rb").read(),
      scope=["https://picasaweb.google.com/data/"],
      prn=userEmail
    )
PHOTOS_URL = "https://picasaweb.google.com/data/feed/api/user/%s?kind=photo&max-results=10&alt=json"
http = httplib2.Http()
http = credentials.authorize(http)
response, albumPhotos = http.request(PHOTOS_URL %(userEmail), 'GET')
albumPhotos = json.loads(albumPhotos)

在回复中没有条目键,其中包含最近上传的照片的Feed。

0 个答案:

没有答案