Download the PHP package epages/rest-sdk without Composer
On this page you can find all versions of the php package epages/rest-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download epages/rest-sdk
More information about epages/rest-sdk
Files in epages/rest-sdk
Package rest-sdk
Short Description This is the REST SDK to connect to an epages shop. You can use it as a developer for develop epages apps.
License MIT
Homepage https://developer.epages.com/
Informations about the package rest-sdk
ePages REST SDK
This is the PHP REST SDK to easily connect to an ePages shop. You can use it as a developer to develop apps for ePages. Just sign up for the ePages Developer Program and create a free developer test shop.
Requirements
To use this SDK, you'll need:
- at least PHP 7.0
All dependencies comes automatically with the client and could be updated via composer.
Installation via composer
Its easy to get the client via Composer. Just search for epages/rest-sdk and put this to you composer.yml file:
Configuration
You can configure it with putting a config.json into you main directory. Just copy the config.example.json from GitHub or create a new one:
Version information
The following information are provided with the ePages REST SDK until now.
Feature | GET | PUT | POST | DELETE | PATCH | information |
---|---|---|---|---|---|---|
carts | ✘ | ✘ | ✘ | ✘ | ? | |
categories | ✘ | ✘ | - | - | ? | |
currencies | ✔ | - | - | - | ? | |
legal | ✘ | - | - | - | ? | won't do, it's not needed |
legal/contact-information | ✔ | ✘ | - | - | ? | |
legal/privacy-policy | ✔ | ✘ | - | - | ? | |
legal/rights-of-withdrawal | ✔ | ✘ | - | - | ? | |
legal/shipping-information | ✔ | ✘ | - | - | ? | |
legal/terms-and-condition | ✔ | ✘ | - | - | ? | |
locales | ✔ | - | - | - | ? | |
products | ✔ | - | - | ✔ | ? | |
products/ |
✔ | - | - | . | ? | |
products/ |
✔ | ✔ | - | - | ? | |
products/export | ✘ | - | - | - | ? | |
sales | ✘ | ✘ | ✘ | ✘ | ? | |
search/product-suggest | ✘ | - | - | - | ? | |
shipping-methods | ✘ | - | - | - | ? |
Code examples
For code examples, see the examples folder.
Example Get 100 products
Example Retrieve shop information
Utilities
Logger
The library comes with a huge Logger called . To use this (instead of the command) write
The force printer also can print arrays in a simple structure.
By default all notification messages are printed. To change this use:
InputValidator
To validate data and check the value of an object there is a InputValidator class:
You can find all InputValidator functions in the documentation
Function reference
The complete reference is located here.
License
The code is available under the terms of the MIT License.