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

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

问题描述

我正在使用 Youtube API V3 获取播放列表的详细信息API 密钥.

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

我找不到任何有关 API KEY 有效期的信息.我想确保在我的应用程序过期之前为它重新生成一个新的 API 密钥.

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.

推荐答案

Google Developers 控制台 API 和auths -> 凭据屏幕不会过期.这是用于访问公共 API 的密钥,例如 Playlists.list,只要您不删除密钥或删除与密钥关联的项目,它就会一直有效.其主要目的是让 Google 跟踪谁在使用 API,并限制您可能发出的请求数量,以防止向服务器发送垃圾邮件.(配额)

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)

访问令牌用于开放式身份验证访问并且会过期.开放式身份验证 (oauth2) 用于访问非公开数据,即用户拥有的数据.它们是通过使用刷新令牌和客户端 id/client secrete 从身份验证服务器请求它们而实用地创建的.我不认为这是您要问的,但我想我会添加它以供参考.

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天全站免登陆