https://github.com/dspacelabs/ecwid-client
Ecwid PHP Client
https://github.com/dspacelabs/ecwid-client
ecwid php-client
Last synced: 16 days ago
JSON representation
Ecwid PHP Client
- Host: GitHub
- URL: https://github.com/dspacelabs/ecwid-client
- Owner: dSpaceLabs
- License: mit
- Created: 2017-06-10T23:57:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T00:01:05.000Z (almost 8 years ago)
- Last Synced: 2025-03-25T16:51:12.738Z (about 1 month ago)
- Topics: ecwid, php-client
- Language: PHP
- Size: 19.5 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Ecwid PHP Client [](https://travis-ci.org/dSpaceLabs/ecwid-client)
================[Ecwid](https://www.ecwid.com/) PHP Client used for interacting with Ecwid's
API.## Requirements
* PHP cURL Extension
* PHP >= 5.6
* [dspacelabs/http-client](https://github.com/dSpaceLabs/http-client)
* [dspacelabs/http-message](https://github.com/dSpaceLabs/http-message)
* Or any other PSR-7 compliant library## Installation
```bash
composer require "dspacelabs/ecwid-client:~0.1@dev"
```## Usage
```php
getAccessToken('temp_code', $redirectUri);
$accessToken = $response['access_token'];
```### Sending Raw Requests
If you need to send a raw request and get a raw response you have access to do
so. For example:```php
// @var \Dspacelabs\Component\Http\Message\Request $request
// @var \Dspacelabs\Component\Http\Message\Response $response
$response = $client->sendWithRequest($request);
```The Request object MUST be PSR-7 compliant and the Response object that this
client returns is PSR-7 compliant.Sending raw requests provides the greatest flexibility, but is very low level.
## Change Log
See [CHANGELOG.md](https://github.com/dSpaceLabs/Ecwid/blob/master/CHANGELOG.md)
## License
See [LICENSE](https://raw.githubusercontent.com/dSpaceLabs/Ecwid/master/LICENSE)