我正在尝试使用Google Picker API。但是我无法找到开发人员密钥。
我创建了我的项目并设置了OAuth。我有以下内容: -
Client ID 123xyz.apps.googleusercontent.com
Email address 987abc@developer.gserviceaccount.com
Client secret 1234-56789
但是,Google Picker脚本需要以下内容: -
// The API developer key obtained from the Google Developers Console.
var developerKey = '';
// The Client ID obtained from the Google Developers Console.
var clientId = '987abc@developer.gserviceaccount.com';
有人可以告诉我在哪里可以找到我的开发人员密钥吗?
我查看了整个开发者控制台,但无法在任何地方找到它!
提前感谢您的帮助。
答案 0 :(得分:2)
它在代码中称为developer key
,但在Google Developer控制台上称为API key
。
您必须转到Google Developer console,选择您的项目,然后点击名为Create New Key
的红色按钮,然后按照您的具体情况执行步骤。
您现在也可能会发现this SO question相关,或者如果您遇到有关选择器的其他问题。