Skip to content

Commit d0ea090

Browse files
author
Timothy Silooy
authored
Merge pull request #31 from SEOshop/v1.9.0
v1.9.0
2 parents 1826deb + 2038d90 commit d0ea090

3 files changed

Lines changed: 382 additions & 35 deletions

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ This package is a convenience wrapper to communicate with the Lightspeed eCom RE
1111
For the installation of the client, there are 2 ways. The composer way is preferable, but not always possible.
1212

1313
### Composer
14+
**Note: From client version 1.9.0 and upward, we will only support PHP 5.4 and above.**
15+
1416
Include the package in your `composer.json` file
1517
``` json
1618
{
1719
"require": {
18-
"seoshop/seoshop-php": "^1.8"
20+
"seoshop/seoshop-php": "^1.9"
1921
}
2022
}
2123
```
@@ -66,6 +68,14 @@ The API secret you've received or created
6668
[language]
6769
Language shortcode that's available in the shop you're connecting to
6870

71+
## Fetching response headers
72+
After making a call, you can fetch the response headers from our API server and use it to check important data such as rate limiting.
73+
74+
``` php
75+
$shopInfo = $client->shop->get();
76+
$response = $shopInfo->getResponseHeaders();
77+
```
78+
6979
## Getting started
7080
Lightspeed eCom offers a powerful set of API’s for developers to create awesome apps. The API provides developers the interface to connect with third party software such as accounting-, feedback-, e-mailmarketing- and inventory management-software, or extend with new features that interact with our core platform, such as loyalty programs, social-sharing programs or reporting tools.
7181

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.3.0",
14+
"php": ">=5.4.0",
1515
"ext-curl": "*",
1616
"ext-json": "*",
17-
"ext-mbstring": "*"
17+
"ext-mbstring": "*",
18+
"ext-fileinfo": "*"
1819
},
1920
"autoload": {
2021
"files": ["src/WebshopappApiClient.php"]

0 commit comments

Comments
 (0)