Skip to content

Commit 124d314

Browse files
authored
Merge pull request #100 from ezioruan/fix_scope_document
fix: scope type should be array
2 parents 80615e1 + 1e5a55a commit 124d314

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ Example Token Set JSON:
232232
"expires_in": 1800,
233233
"token_type": "Bearer",
234234
"refresh_token": "xxxxxxxxx",
235-
"scope": "email profile openid accounting.transactions offline_access"
235+
"scope": [email, profile, openid, accounting.transactions ,offline_access]
236236
}
237237
```
238238

239239
---
240-
## Custom Connections
240+
## Custom Connections
241241

242242
Custom Connections are a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) used for building M2M integrations to a single organisation. A custom connection uses OAuth 2.0's [`client_credentials`](https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/) grant which eliminates the step of exchanging the temporary code for a token set.
243243

@@ -335,7 +335,7 @@ Because Custom Connections are only valid for a single organisation you don't ne
335335
336336
---
337337

338-
## App Store Subscriptions
338+
## App Store Subscriptions
339339

340340
If you are implementing subscriptions to participate in Xero's App Store you will need to setup [App Store subscriptions](https://developer.xero.com/documentation/guides/how-to-guides/xero-app-store-referrals/) endpoints.
341341

@@ -457,7 +457,7 @@ store_xero_oauth2_token(token_set)
457457

458458
# refresh token set on the api client
459459
api_client.refresh_oauth2_token()
460-
460+
461461
# call the Xero API
462462
accounting_api = AccountingApi(api_client)
463463
read_accounts = accounting_api.get_accounts(xero_tenant_id)
@@ -571,7 +571,7 @@ def accounting_get_invoices():
571571
include_archived = 'true'
572572
created_by_my_app = 'false'
573573
summary_only = 'true'
574-
574+
575575
api_response = api_instance.get_invoices(
576576
xero_tenant_id,
577577
if_modified_since,
@@ -593,11 +593,11 @@ api_response = api_instance.get_invoices(
593593

594594
## Participating in Xero’s developer community
595595

596-
This SDK is one of a number of SDK’s that the Xero Developer team builds and maintains. We are grateful for all the contributions that the community makes.
596+
This SDK is one of a number of SDK’s that the Xero Developer team builds and maintains. We are grateful for all the contributions that the community makes.
597597

598598
Here are a few things you should be aware of as a contributor:
599599
* Xero has adopted the Contributor Covenant [Code of Conduct](https://github.com/XeroAPI/xero-python/blob/master/CODE_OF_CONDUCT.md), we expect all contributors in our community to adhere to it
600-
* If you raise an issue then please make sure to fill out the Github issue template, doing so helps us help you
600+
* If you raise an issue then please make sure to fill out the Github issue template, doing so helps us help you
601601
* You’re welcome to raise PRs. As our SDKs are generated we may use your code in the core SDK build instead of merging your code
602602
* We have a [contribution guide](https://github.com/XeroAPI/xero-python/blob/master/CONTRIBUTING.md) for you to follow when contributing to this SDK
603603
* Curious about how we generate our SDK’s? Have a [read of our process](https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6) and have a look at our [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI)

0 commit comments

Comments
 (0)