Skip to content

Instantly share code, notes, and snippets.

@brucem1976
Created February 2, 2020 05:06
Show Gist options
  • Save brucem1976/a00f9b70cd474f5c8553efe632b09c58 to your computer and use it in GitHub Desktop.
Save brucem1976/a00f9b70cd474f5c8553efe632b09c58 to your computer and use it in GitHub Desktop.
Sample calls
GIVES 401: "GET /api.xro/2.0/Journals?pageOffset=1&paymentsOnly=false HTTP/1.1\r\nxero-tenant-id: <hidden>\r\n
If-Modified-Since: 1970-01-01T00:00:00.000Z\r\nAuthorization: Bearer <hidden>\r\nhost: api.xero.com\r\n
accept: application/json\r\nConnection: close\r\n\r\n'"
WORKS PERFECTLY: "GET /api.xro/2.0/Invoices?page=1&includeArchived=true HTTP/1.1\r\nxero-tenant-id: <hidden>\r\n
If-Modified-Since: 1970-01-01T00:00:00.000Z\r\nAuthorization: Bearer <hidden>\r\nhost: api.xero.com\r\n
accept: application/json\r\nConnection: close\r\n\r\n',"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment