Created
January 22, 2020 05:59
-
-
Save dobesv/5b422c3deb749449df621a014ea35cfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -vH "Authorization: Bearer eyJhbGc" "https://api.xero.com/api.xro/2.0/Accounts" | |
> GET /api.xro/2.0/Accounts HTTP/1.1 | |
> Authorization: Bearer eyJhbGc | |
> | |
< HTTP/1.1 401 Unauthorized | |
< Server: Kestrel | |
< WWW-Authenticate: Bearer error=invalid_token | |
< Xero-Correlation-Id: e3ec736b-3932-4630-a701-89098e09d5c9 | |
< Content-Length: 125 | |
< Expires: Wed, 22 Jan 2020 05:53:57 GMT | |
< Cache-Control: max-age=0, no-cache, no-store | |
< Pragma: no-cache | |
< Date: Wed, 22 Jan 2020 05:53:57 GMT | |
< Connection: keep-alive | |
< X-Client-TLS-ver: tls1.3 | |
< | |
* Connection #0 to host api.xero.com left intact | |
{"title":"Unauthorized","status":401,"detail":"AuthenticationUnsuccessful","instance":"e3ec736b-3932-4630-a701-89098e09d5c9"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment