Skip to content

Commit 89610e4

Browse files
committed
docs: 📝 Documentation Updated
1 parent 1e145e6 commit 89610e4

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
## CHANGELOG
33
------------------------------------------------
44

5+
## Version 2.0.0
6+
###### Date: 02-Apr-2021
7+
### New Feature
8+
- Sync API support added
9+
### Enhancement
10+
- Added PSR 4 Standardized implementation.
11+
12+
------------------------------------------------
13+
514
## Version 1.8.1
615
###### Date: 17-Mar-2021
716
### Bug Fix

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ To initialize the SDK, you will need to specify the API Key, Delivery Token, and
2424
use Contentstack\Contentstack;
2525
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME);
2626
```
27+
For Setting the European Region:
28+
If you want to set and use European region, refer to the code below:
2729

28-
30+
```php
31+
use Contentstack\Contentstack;
32+
use Contentstack\ContentstackRegion;
33+
$stack = Contentstack::Stack(API_KEY, DELIVERY_TOKEN, ENV_NAME, array('region'=> ContentstackRegion.EU));
34+
```
2935
#### Download and install library:
3036
To use the PHP SDK, you need to perform the following steps:
3137

src/Config/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
define('ENTRIES', '/entries/');
2626
define('ASSETS', '/assets/');
2727
define('ENVIRONMENTS', '/environments/');
28+
define('SYNC', '/stacks/sync/');

src/Stack/Stack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(
6565
'stack', array('api_key' => $api_key,
6666
'access_token' => $delivery_token,
6767
'environment' => $environment,
68-
'region' => $config['region'])
68+
'region' => $config['region'] ?? '')
6969
);
7070
$this->environment = $this->header['environment'];
7171
unset($this->header['environment']);

0 commit comments

Comments
 (0)