Surveys list API doesn't return resource dictionary

被刻印的时光 ゝ 提交于 2019-12-02 09:01:15
Michael Sindelar

It looks like you're trying to list surveys owned by your account using a service account. In order to do this you''ll need to add the service account as an owner to the resources that your account owns. There is some more information on this process found here: How can I allow a user to get access to survey results using the Google Consumer Surveys API?

Alternatively, you can set up a 3 legged OAuth client secret and use that with the example script. This will prompt you to login as your regular non-service account and use those credentials. See https://developers.google.com/identity/protocols/OAuth2WebServer to set this up.

Then you can use the client with this credential. ./example_client.py list --client_secrets_file

Make sure to configure the credentials to redirect to localhost:8080 if you are using the example script.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!