Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取 github access token #6

Open
fisker opened this issue Sep 25, 2017 · 0 comments
Open

获取 github access token #6

fisker opened this issue Sep 25, 2017 · 0 comments

Comments

@fisker
Copy link
Owner

fisker commented Sep 25, 2017

使用issues写博客的时候 如果用匿名的api会存在访问次数限制的问题。

可以一个公共的 access token 让用户来使用。

申请的办法 点击这个地址

勾上 repo/public_repo 就可以了

需要注意的是 access token不能出现在仓库的代码中,只要上传的代码中包含了这个 token, token 就会立即失效

变通的办法

let token = ['f6a841b6', 'a39cd242cba5970', 'b59488d68a23f05d4'].join('')
let token = 'f6a841b6' +'a39cd242cba5970b59488d68a23f05d4'
let token = atob('ZjZhODQxYjZhMzljZDI0MmNiYTU5NzBiNTk0ODhkNjhhMjNmMDVkNA')

总之不要直接出现就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant