xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

github & personal access token

github & personal access token

OAuth

https://github.com/xgqfrms/webtrc-in-action/issues/1#issuecomment-629671519

access token

https://github.com/settings/tokens/new

Make sure to copy your new personal access token now. You won’t be able to see it again!

https://github.com/settings/tokens

Basic Authentication

Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.

https://developer.github.com/

https://developer.github.com/v3/auth/#basic-authentication

curl to fetch

https://cdn.xgqfrms.xyz/curl-to-fetch/index.html

CURL

$ curl -u xgqfrms:123456789  https://api.github.com/user

Fetch API

fetch("https://api.github.com/user", {
  headers: {
    Authorization: "Basic eaGdxNTAzOGEyYTTQx"
  }
})

GraphQL API



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-05-17 02:05  xgqfrms  阅读(732)  评论(1编辑  收藏  举报