202 words
1 minutes
获取Github的token

为了使用GitHub API,我们需要先获取到Personal access tokens进行授。下面,本文将简要介绍如何获取token。

1. 进入token管理页面#

方法一:

直接进入Personal Access Tokens (github.com)页面,如下所示

image-20240710093519234

方法二:

  1. 进入Github设置页面

image-20240710093815273

  1. 在侧边栏中找到Developer settings,点击进入

image-20240710093955180

  1. 在侧边栏中找到Token(classic),点击进入

    image-20240710094647384

2. 生成token#

点击Generate new token,进入Generae new token(classic)页面

image-20240710100427361

为了使用图床功能,在选择权限时,务必勾选repoadmin:ssh_signing_key两个选项。考虑到安全性,可自行配置token的有效期

在完成相关配置之后,点击Generate token即可生成

image-20240710100920052

image-20240710101210627

3. 查看token#

在完成上述步骤后,返回token管理页面,即可看到我们刚刚生成的token

image-20240710101357316

获取Github的token
https://mj3622.github.io/posts/经验分享/获取github的token/
Author
Minjer
Published at
2024-07-10