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

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


Flag Counter

©xgqfrms 2012-2020

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


原文地址:https://www.cnblogs.com/xgqfrms/p/12903250.html