1
Google最近转移到了OAuth2.0,我们需要更改之前的身份验证方式(即从ProgrammaticLogin
到OAuth2.0
)。Python - 使用Picasa创建相册错误
我可以成功访问相册和读取照片数据/评论。当我尝试添加新相册/照片或尝试写入数据时,出现以下错误。
client = PhotosService(email="xxxx")
...
...
...
#After successfull OAuth
album = client.InsertAlbum(title="Temp album", summary="My summary", access="public")
此行会导致以下错误。
File "/Users/mac/destipak/env/lib/python2.7/site-packages/gdata/photos/service.py", line 358, in InsertAlbum
raise GooglePhotosException(e.args[0])
gdata.photos.service.GooglePhotosException: (403, 'Forbidden', 'Modification only allowed with api authentication.')