我如何允许用户使用Google消费者调查API访问调查结果? [英] How can I allow a user to get access to survey results using the Google Consumer Surveys API?

查看:151
本文介绍了我如何允许用户使用Google消费者调查API访问调查结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Google消费者调查创建了一项调查。我想用另一个帐户来检查调查结果。

如何允许第二个Google帐户通过API访问调查问卷?

解决方案

您可以通过修改调查的所有者​​来添加第二个帐户。



您可以通过界面选择调查调查,然后点击页面右上角的+分享按钮。然后输入新所有者的电子邮件地址。



https://www.google.com/insights/consumersurveys/



您也可以通过API以编程方式执行此操作,方法是发出更新呼叫调查资源与新的业主名单。请注意,这会覆盖所有者字段并且不会附加到它,因此请确保在发布更新时包含当前所有者,以便没有人损失访问权限。你可以在这里找到这里的文档:



https://developers.google.com/consumer-surveys/v2/reference/surveys/update


I’ve created a survey using Google Consumer Surveys. I want use a different account to check results of the survey.

How do I allow a second google account to access the survey though the API?

解决方案

You can add a second account by modifying the owners of a survey.

You can do this through the UI by selecting a survey from your list of surveys and then clicking the +Share button in the top right hand corner of the page. Then put the email address of the new owner in.

https://www.google.com/insights/consumersurveys/

You can also do this programatically through the API by issuing an update call to the Survey resource with a new Owners list. Note that this overwrites the owners field and does not append to it, so make sure to include the current owners when issuing an update so that no one losses access. You can find the documentation for this here:

https://developers.google.com/consumer-surveys/v2/reference/surveys/update

这篇关于我如何允许用户使用Google消费者调查API访问调查结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆