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

github & personal access token

CURL

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

Fetch API

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

GraphQL API


github & personal access token

©xgqfrms 2012-2020

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


相关文章:

  • 2021-10-08
  • 2021-10-02
  • 2022-12-23
  • 2021-12-22
  • 2021-10-11
  • 2021-12-23
  • 2022-01-19
猜你喜欢
  • 2022-01-01
  • 2021-08-22
  • 2022-03-06
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-01-13
相关资源
相似解决方案