Skip to content

Instantly share code, notes, and snippets.

@SerKnight
Created February 3, 2020 22:22
Show Gist options
  • Save SerKnight/61906b0cf197f4a36d44ce83da67a4f7 to your computer and use it in GitHub Desktop.
Save SerKnight/61906b0cf197f4a36d44ce83da67a4f7 to your computer and use it in GitHub Desktop.
Insomnia workspace to accompany Xero API tutorial
{
"_type":"export",
"__export_format":4,
"__export_date":"2020-02-03T22:17:29.587Z",
"__export_source":"insomnia.desktop.app:v7.0.6",
"resources":[
{
"_id":"req_1a56b9b120a94264b79018d1ecee95f3",
"authentication":{
"accessTokenUrl":"https://identity.xero.com/connect/token",
"authorizationUrl":"https://login.xero.com/identity/connect/authorize",
"clientId":"{{ client_id }}",
"clientSecret":"{{ client_secret }}",
"credentialsInBody":true,
"grantType":"authorization_code",
"redirectUrl":"{{ redirect_uri }}",
"scope":"{{ scopes }}",
"type":"oauth2"
},
"body":{
},
"created":1578503817850,
"description":"",
"headers":[
],
"isPrivate":false,
"metaSortKey":-1580231347187,
"method":"GET",
"modified":1580231356202,
"name":"Authentication",
"parameters":[
{
"description":"",
"id":"pair_1ab6e99bcbd9448cb75059bbc7d5199c",
"name":"",
"value":""
}
],
"parentId":"wrk_b37fad386a204317b44cbd4d9ec6fbac",
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingFollowRedirects":"global",
"settingRebuildPath":true,
"settingSendCookies":true,
"settingStoreCookies":true,
"url":"https://api.xero.com/connections",
"_type":"request"
},
{
"_id":"wrk_b37fad386a204317b44cbd4d9ec6fbac",
"created":1578503617216,
"description":"",
"modified":1578503617216,
"name":"Insomnia",
"parentId":null,
"_type":"workspace"
},
{
"_id":"req_de4bf171f56e439b9470090752e4eab8",
"authentication":{
"token":"{{ access_token }}",
"type":"bearer"
},
"body":{
},
"created":1578507203944,
"description":"",
"headers":[
{
"description":"",
"id":"pair_a3ba29f417b2461bbd7bdeb91c6e2248",
"name":"xero-tenant-id",
"value":"{{ tenant_id }}"
},
{
"description":"",
"id":"pair_815bc91b716248888774fc0df604aa29",
"name":"Accept",
"value":"application/json"
}
],
"isPrivate":false,
"metaSortKey":-1578503817775,
"method":"GET",
"modified":1580231349700,
"name":"Get Invoices",
"parameters":[
],
"parentId":"fld_e0aedd94d6cf4c9ca2cba2756189048a",
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingFollowRedirects":"global",
"settingRebuildPath":true,
"settingSendCookies":true,
"settingStoreCookies":true,
"url":"https://api.xero.com/api.xro/2.0/Invoices",
"_type":"request"
},
{
"_id":"fld_e0aedd94d6cf4c9ca2cba2756189048a",
"created":1580231347137,
"description":"",
"environment":{
},
"environmentPropertyOrder":null,
"metaSortKey":-1580231347137,
"modified":1580231347137,
"name":"Invoices",
"parentId":"wrk_b37fad386a204317b44cbd4d9ec6fbac",
"_type":"request_group"
},
{
"_id":"req_a6ca52ae2a864475b98c5c0f64fae5ce",
"authentication":{
"token":"{{ access_token }}",
"type":"bearer"
},
"body":{
},
"created":1580325961389,
"description":"",
"headers":[
{
"description":"",
"id":"pair_a3ba29f417b2461bbd7bdeb91c6e2248",
"name":"xero-tenant-id",
"value":"{{ tenant_id }}"
},
{
"description":"",
"id":"pair_815bc91b716248888774fc0df604aa29",
"name":"Accept",
"value":"application/json"
}
],
"isPrivate":false,
"metaSortKey":-1578503817773.4375,
"method":"GET",
"modified":1580328674547,
"name":"Get Invoices (filtered)",
"parameters":[
],
"parentId":"fld_e0aedd94d6cf4c9ca2cba2756189048a",
"settingDisableRenderRequestBody":false,
"settingEncodeUrl":true,
"settingFollowRedirects":"global",
"settingRebuildPath":true,
"settingSendCookies":true,
"settingStoreCookies":true,
"url":"https://api.xero.com/api.xro/2.0/Invoices?Statuses=DRAFT,PAID",
"_type":"request"
},
{
"_id":"env_f341e53b98a9b99416b275006a91e9b7cd5a3031",
"color":null,
"created":1578503617249,
"data":{
},
"dataPropertyOrder":{
},
"isPrivate":false,
"metaSortKey":1578503617249,
"modified":1578504086558,
"name":"Base Environment",
"parentId":"wrk_b37fad386a204317b44cbd4d9ec6fbac",
"_type":"environment"
},
{
"_id":"jar_f341e53b98a9b99416b275006a91e9b7cd5a3031",
"cookies":[
{
"creation":"2020-01-08T17:17:15.812Z",
"domain":"xero.com",
"expires":"2025-01-08T17:17:15.000Z",
"hostOnly":false,
"httpOnly":true,
"id":"5733380824002601",
"key":"Device",
"lastAccessed":"2020-01-08T17:17:15.812Z",
"path":"/",
"value":"b58b1e26-d76e-407f-9abe-3e651a2af0ba"
},
{
"creation":"2020-01-08T17:17:15.812Z",
"domain":"login.xero.com",
"hostOnly":true,
"httpOnly":true,
"id":"20070895879225525",
"key":"ASP.NET_SessionId",
"lastAccessed":"2020-01-08T17:17:15.813Z",
"path":"/",
"value":"hojgvw0zdwjglngkykilgvab"
},
{
"creation":"2020-01-08T17:17:15.813Z",
"domain":"login.xero.com",
"hostOnly":true,
"httpOnly":true,
"id":"28218826543505715",
"key":"SessionId",
"lastAccessed":"2020-01-08T18:44:02.428Z",
"path":"/",
"secure":true
},
{
"creation":"2020-01-08T17:17:15.813Z",
"domain":"login.xero.com",
"hostOnly":true,
"httpOnly":true,
"id":"5397138231747105",
"key":"GlobalSession",
"lastAccessed":"2020-01-08T18:44:02.428Z",
"path":"/",
"secure":true
},
{
"creation":"2020-01-08T17:17:15.814Z",
"domain":"login.xero.com",
"hostOnly":true,
"id":"17877056519365353",
"key":"ApplicationToken",
"lastAccessed":"2020-01-08T18:44:02.429Z",
"path":"/"
},
{
"creation":"2020-01-08T17:17:15.814Z",
"domain":"login.xero.com",
"hostOnly":true,
"httpOnly":true,
"id":"18248899009900166",
"key":"__RequestVerificationToken",
"lastAccessed":"2020-01-08T17:17:15.814Z",
"path":"/",
"value":"JvBhSdiTTj5J1DJDislKcw-_iE03kJ30N-KtZMuJZbAEESaR-gK9e5YZ4ZHKBZWR-gMBBPP3-ku6P_Tmi5xfQZTUVd_5NjsdvCFqVifdEYET8N4G3clQTxicJIITVHdY9HXysQ2"
},
{
"creation":"2020-01-08T17:41:02.483Z",
"domain":"xero.com",
"expires":"2020-01-31T06:33:11.000Z",
"hostOnly":false,
"httpOnly":true,
"id":"1623299376904439",
"key":"bm_sz",
"lastAccessed":"2020-01-31T02:33:12.193Z",
"maxAge":14399,
"path":"/",
"value":"6F25B54EBE3C5BBE69583A41B066E1D7~YAAQrQAfuIsUpoduAQAA2fJx+QbAi6Pgbef7yVuuLdpO0MzGoYHZ4+q1knnmEPpQZ154rARBPy9kM3AO0STv9R4/RyhgU63lpNcNomQjOIlEgvvJIeeqBRYOcMFp0uqMK8GorA7FeVXsiRZjpH0PM+NzDL0vH31pPcw7Q7T3sxpS1fS5bvjXtEwKi35QIg=="
},
{
"creation":"2020-01-08T17:41:02.484Z",
"domain":"xero.com",
"expires":"2021-01-07T17:41:02.000Z",
"hostOnly":false,
"id":"725911231294964",
"key":"_abck",
"lastAccessed":"2020-01-08T17:41:02.484Z",
"maxAge":31536000,
"path":"/",
"secure":true,
"value":"0FEF47B1105FD6A4DDE255477664BAFF~-1~YAAQjnpCF+1d+oluAQAAq9U+hgNbyGa5b9Nm0ekxuvHLuldOJ3b0IUXOlwxrjKAMAesiDKl+Smdum+ZyJhgVD8RoLA/YbYqi0b7Tk+uMwtaEuu235ty8rHE+e/ry7iY4cGAfoOhyD1/zGjX8N/cEi1qOWqCZPlAUt0tlKCvFNqC5esXpd9lhYeCdZpb8IXNdjtfNE2U9cTBUYOyxukmMxynQJxrNYnR1+kgxg8Iac0AZdN6Z+Q168yFTozjZoTHK3O+9amQBtTdXVhkm4sfsRIeQbEBqOm4643YuLD+Jvg8QU7V67qoZFA==~-1~-1~-1"
}
],
"created":1578503617251,
"modified":1580437992194,
"name":"Default Jar",
"parentId":"wrk_b37fad386a204317b44cbd4d9ec6fbac",
"_type":"cookie_jar"
},
{
"_id":"env_c466e1b2400d461ca2fdf56f2f732080",
"color":null,
"created":1578503867766,
"data":{
"access_token":"set_your_access_token_here",
"client_id":"set_your_client_id_here",
"client_secret":"set_your_client_secret_here",
"redirect_uri":"https://developer.xero.com/",
"scopes":"openid profile email accounting.settings accounting.reports.read accounting.journals.read accounting.contacts accounting.attachments accounting.transactions offline_access payroll.employees payroll.payruns payroll.payslip payroll.timesheets payroll.settings",
"tenant_id":"set_your_tenant_id_here"
},
"dataPropertyOrder":{
"&":[
"client_id",
"client_secret",
"redirect_uri",
"scopes",
"access_token",
"tenant_id"
]
},
"isPrivate":false,
"metaSortKey":1578503867766,
"modified":1580438255693,
"name":"Xero API",
"parentId":"env_f341e53b98a9b99416b275006a91e9b7cd5a3031",
"_type":"environment"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment