Skip to content

Instantly share code, notes, and snippets.

@dobesv
Created January 22, 2020 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dobesv/5b422c3deb749449df621a014ea35cfe to your computer and use it in GitHub Desktop.
Save dobesv/5b422c3deb749449df621a014ea35cfe to your computer and use it in GitHub Desktop.
$ 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