Authenticating with the API
curl -L -H "Accept: application/json" \
-d "client_id=$ORCID_CLIENT_ID" \
-d "client_secret=$ORCID_CLIENT_SECRET" \
-d "scope=/read-public" \
-d "grant_type=client_credentials" \
"https://pub.orcid.org/oauth/token"
- This should return a JSON blob with our access token
{"access_token":"89f0181c-168b-4d7d-831c-1fdda2d7bbbb",
"token_type":"bearer","refresh_token":"69e883f6-d84e-4ae6-87f5-ef0044e3e9a7",
"expires_in":631138518,"scope":"/read-public","orcid":null}
- Notice the URL and how we pass our client id and secret
- The access token is: 89f0181c-168b-4d7d-831c-1fdda2d7bbbb
- these change, this is just a sample of what it looks like