Skip to content

Commit b1425eb

Browse files
Update README.md
1 parent d9c01dd commit b1425eb

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,35 @@ This plugin provides access to Xero OAuth2 API for [CakePHP](https://cakephp.org
3535
## Setup
3636
Now create new file to set your Xero App details.
3737

38-
Create new file `xero_config.php` in `config` directory:
39-
40-
```php
41-
<?php
42-
43-
return [
44-
'XeroOauth2' => [
45-
'clientId' => 'your-client-id',
46-
'clientSecret' => 'your-client-secret',
47-
'baseUri' => 'https://example.com',
48-
'scope' => [
49-
'openid',
50-
'email',
51-
'profile',
52-
'offline_access',
53-
'accounting.settings',
54-
'accounting.contacts',
55-
// Any other scopes needed for your application goes here
56-
],
57-
'successUrl' => 'http://example.com/success'
58-
]
59-
];
60-
```
38+
1. Create new file `xero_config.php` in `config` directory:
39+
```php
40+
<?php
41+
42+
return [
43+
'XeroOauth2' => [
44+
'clientId' => 'your-client-id',
45+
'clientSecret' => 'your-client-secret',
46+
'baseUri' => 'https://example.com',
47+
'scope' => [
48+
'openid',
49+
'email',
50+
'profile',
51+
'offline_access',
52+
'accounting.settings',
53+
'accounting.contacts',
54+
// Any other scopes needed for your application goes here
55+
],
56+
'successUrl' => 'http://example.com/success'
57+
]
58+
];
59+
```
6160

62-
**Note:**
63-
- Do not forget to replace "https://example.com" with your website URL in your `config/xero_config.php` file.
64-
- Success url(`XeroOauth2.successUrl`) must end with `/success`, so do not remove it while replacing it with your website URL.
61+
**Note:** Do not forget to replace "https://example.com" with your website URL in your `config/xero_config.php` file.
6562

66-
After creating the configuration file, make sure to load the file in your `bootstrap.php` using `Configure::load('xero_config', 'default');`.
63+
2. After creating the configuration file, make sure to load the file in your `bootstrap.php`:
64+
```php
65+
Configure::load('xero_config', 'default');
66+
```
6767

6868
**Important:**
6969

0 commit comments

Comments
 (0)