Google API密钥有效多久? [英] How long is the Google API key Valid?

查看:217
本文介绍了Google API密钥有效多久?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Youtube API V3 使用使用API密钥。



我找不到任何有关API密钥有效期的信息。我希望确保在应用程序过期之前为应用程序重新生成新的API密钥。

Google Developers控制台 API的底部。 auths - >凭证屏幕不会过期。这是用于访问公共API的关键字,如 Playlists.list ,只要您不删除密钥或删除与该密钥关联的项目,它就会保持有效。其主要目的是让Google跟踪谁在使用API​​,并限制您为防止垃圾邮件服务器发出的请求数量。 (配额





访问令牌用于开放身份验证访问并过期。开放认证(oauth2)用于访问非公开数据,用户拥有的数据。它们是通过使用刷新令牌和客户端ID /客户端秘密从身份验证服务器请求它们而以实用的方式创建的。我不认为这是你所问的,但我想我会将其添加为参考。

I'm am fetching playlist's details using Youtube API V3 using API key.

I can't find any information about API KEY validity period. I want to make sure I regenerate a new API key for my application before it expires.

解决方案

The public API key found at the bottom of the Google Developers console APIs & auths -> credentials screen does not expire. This is a key used for accessing public APIs like Playlists.list, it will remain valid for as long as you do not delete the key or delete the project associated with the key. Its main purpose is for Google to keep track of who is using there APIs and to limit the number of requests you may make to prevent spamming the servers. (Quota)

Access tokens are used for Open Authentication access and do expire. Open Authentication (oauth2) is used for accessing non public data, data owned by a user. They are created pragmatically by requesting them from the authentication server using a refresh token and a client id /client secrete. I don't think this is what you are asking about, but I thought I would add it for reference.

这篇关于Google API密钥有效多久?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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