Skip to content

Commit

Permalink
Merge pull request #58 from storyblok/docs/INT-531-update-readme
Browse files Browse the repository at this point in the history
`INT-531` - docs(INT-531): update readme to us region
  • Loading branch information
Thiago Saife authored Aug 24, 2022
2 parents d487322 + a03e928 commit 6c48196
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ Initialize the management client with your OAuth token from the my account secti
$managementClient = new \Storyblok\ManagementClient('your-storyblok-oauth-token');
```

### Initialization for US spaces

In order to use the US spaces you need to initialize the client passing all the required parameters, like this:

```php
$client = new \Storyblok\Client(
'your-storyblok-draft-token',
null,
'v2',
false,
'us'
);
```

The same goes for the management client:

```php
$managementClient = new \Storyblok\ManagementClient(
'your-storyblok-oauth-token',
null,
'v2',
false,
'us'
);
```

### Usage of the management client


Expand Down

0 comments on commit 6c48196

Please sign in to comment.