We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to make curl (bash) request to https://api.thegrid.io
I've already got an access token, walking thru the procedure: open
https://passport.thegrid.io/login/authorize/google?client_id=CLIENT_ID&response_type=code&scope=share,content_management,website_management&redirect_uri=REDIRECT_URI.
https://passport.thegrid.io/login/authorize/google?client_id=CLIENT_ID&response_type=code&scope=share,content_management,website_management&redirect_uri=REDIRECT_URI
That gave me a code. Then
code
curl --data-urlencode "client_id=CLIENT_ID" --data-urlencode "client_secret=CLIENT_SECRET" --data-urlencode "code=CODE" --data-urlencode "grant_type=authorization_code" -X POST https://passport.thegrid.io/login/authorize/token
That gave me an access_token and a refresh_token.
access_token
refresh_token
Now I make an updates GET request, like this
updates
curl -H "Authorization: Bearer ACCESS_TOKEN" -H "Content-Type: application/json" https://api.thegrid.io/updates
and it give me Unauthorized. I'm missing something but can't figure it out. Any help? TIA
Unauthorized
Jorge
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to make curl (bash) request to https://api.thegrid.io
I've already got an access token, walking thru the procedure: open
https://passport.thegrid.io/login/authorize/google?client_id=CLIENT_ID&response_type=code&scope=share,content_management,website_management&redirect_uri=REDIRECT_URI
.That gave me a
code
. Thencurl --data-urlencode "client_id=CLIENT_ID" --data-urlencode "client_secret=CLIENT_SECRET" --data-urlencode "code=CODE" --data-urlencode "grant_type=authorization_code" -X POST https://passport.thegrid.io/login/authorize/token
That gave me an
access_token
and arefresh_token
.Now I make an
updates
GET request, like thiscurl -H "Authorization: Bearer ACCESS_TOKEN" -H "Content-Type: application/json" https://api.thegrid.io/updates
and it give me
Unauthorized
. I'm missing something but can't figure it out. Any help? TIAJorge
The text was updated successfully, but these errors were encountered: