[2] GitHub は Bearer
のような意味で
token
を使っています。
WWW-Authenticate: Token signature=123abc,repository="foo/bar",access=write
X-Docker-Token: signature=123abc,repository="foo/bar",access=write
X-Docker-Endpoints: registry-1.docker.io [, registry-2.docker.io]
Authorization: Token signature=123abc,repository="library/foobar",access=write
Authorization: Token signature=123abc,repository="foo/bar",access=read
[5] Docker Hub and Registry Spec - Docker Documentation ( 版) <https://docs.docker.com/reference/api/hub_registry_spec/>
curl -X GET -H 'Authorization: Token token={ACCESS_TOKEN}'
https://api.validic.com/v1/organizations/{ORGANIZATION_ID}.json
HTTP Headers—Each Listing Recommendation API call requires an Authorization HTTP header. The Authorization token value should be pre-fixed by 'TOKEN', so the complete value looks like: TOKEN <authorization token value>.
This is a possible aspect of the authorization header
Authorization: Token 45c1f5e3f05d0
In order to access protected resources you can pass your API Token, called a server_token. This must be passed as an Authorization header with type Token.
Example:
curl -H 'Authorization: Token YOUR_SERVER_TOKEN' \
'https://api.uber.com/v1/products?latitude=37.7759792&longitude=-122.41823'
In the examples below, 'abcdefghijklmn' is the authentication token you receive via email when you sign up for API access.
Example curl request:
curl "http://api.repo.nypl.org/api/v1/items/search?q=cats&publicDomainOnly=true" -H 'Authorization: Token token="abcdefghijklmn"'
HTTP_AUTHORIZATION="Token %s" % (token),
-H "Authorization: token ********************" \