Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 25ab14d

Browse files
authored
Merge pull request #97 from storyblok/feature/INT-1119
Update readme with new regions.
2 parents d400227 + 40b3180 commit 25ab14d

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,18 @@ $result = $managementClient->delete('spaces/' . $spaceId . '/stories/' . $storyI
148148
print_r($result);
149149
```
150150

151-
### Using spaces created in the US region for Management API
151+
### Using spaces created in other regions for Management API
152152

153-
When creating a Space, you can select the EU or US region.
154-
If you want to access a Space created in US region, you need to define the `apiEndpoint` parameter with 'api-us.storyblok.com' value, and forcing the `ssl` option for using HTTPS protocol:
153+
When creating a Space, you can select the EU, US, CA, AP region. The default region is EU.
154+
```
155+
EU: api.storyblok.com
156+
US: api-us.storyblok.com
157+
CA: api-ca.storyblok.com
158+
AP: api-ap.storyblok.com
159+
```
160+
161+
For example:
162+
If you want to access a Space created in US region, you need to define the `apiEndpoint` parameter with `api-us.storyblok.com` value, and forcing the `ssl` option for using HTTPS protocol:
155163

156164
```php
157165
use Storyblok\ManagementClient;
@@ -193,10 +201,12 @@ use Storyblok\Client as StoryblokClient;
193201
$client = new StoryblokClient('your-storyblok-readonly-accesstoken');
194202
```
195203

196-
### Using spaces created in the US region
204+
### Using spaces created in the other regions
205+
206+
When you create a Space, you can select the region: EU, US, CA or AP.
197207

198-
When you create a Space, you can select the region: EU or US.
199-
If you want to access a Space created in US region, you need to define the `apiRegion` parameter with 'us' value (or 'US'):
208+
For example:
209+
If you want to access a Space created in US region, you need to define the `apiRegion` parameter with the `us` value (or `US`):
200210

201211
```php
202212
use Storyblok\Client;
@@ -219,7 +229,7 @@ $client = new Client(
219229
);
220230
```
221231

222-
Now you have the `Storyblok\Client` instance you can start consuming data.
232+
Now you have the `Storyblok\Client` instance you can start consuming data.
223233

224234
### Load a Story by slug
225235

0 commit comments

Comments
 (0)