我一直在努力使用Youtube API,现在我被卡住了。
我做的是:
我错过了什么吗? 我读了很多问题,但我还没有解决。
答案 0 :(得分:0)
在第3步“为IOS生成API密钥”中,Google Developer Console网页上的评论显示
Use of this key does not require any user action or consent, does not grant access
to any account information, and is not used for authorization.
点击*了解详情“按钮,它会显示:
Use an API key when your application is running on a server and accessing one of the following kinds of data:
•Data that the data owner has identified as public, such as a public calendar or blog.
•Data that is owned by a Google service such as Google Maps or Google Translate. (Access limitations may apply.)
我认为您需要使用OAuth流程而不是API密钥。点击开发者控制台网页的OAuth部分中的了解详情,了解如何在Apple iOS中使用OAuth。
为iOS创建oAuth凭据:
Create new Client ID / Installed Application / iOS
答案 1 :(得分:0)
我知道这听起来有点基础,但是我通过回到Google开发人员,创建一个全新的项目,新的API密钥来解决了相同的问题,然后它开始工作了。谷歌古怪吗?