2017 © Pedro Peláez
 

library api

Voradius API service

image

voradius/api

Voradius API service

  • Wednesday, August 26, 2015
  • by Voradius
  • Repository
  • 3 Watchers
  • 0 Stars
  • 126 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status Latest Stable Version Dependency Code Climate Scrutinizer Code Quality, (*1)

Voradius API

This library is aimed at wrapping the Voradius API in a simple package., (*2)

Table Of Content

  1. Requirements
  2. Installation
  3. General Example

, (*3)

Requirements

This library uses PHP 5.4+., (*4)

To use the API, you have to request an access key from Voradius. For every request, you will have to provide the Access Key., (*5)

, (*6)

Installation

It is recommended that you install the PHP API Wrapper library through composer. To do so, add the following lines to your composer.json file., (*7)

{
    "require": {
        "Voradius/api": "dev-master"
    }
}

, (*8)

General example

All Entity classes need a Client object supplied on creating an object, with both the API Key and Environment supplied, as below., (*9)

Valid environments for external usage are: * SANDBOX (for testing) * LIVE, (*10)

````` $client = new Voradius\Client('API_KEY_HERE', Voradius\Client::SANDBOX]); $productApi = new Entity\Product($client);, (*11)


After creating the entity object it is possible to use the several methods provided in this entity, e.g.:

$product = $productApi->getById(1000); ````, (*12)

All entities check for valid input and build the request to the Voradius API for you. Errors are thrown by the Guzzle library, else the content is just returned directly to you. In most cases this will be a JSON formatted string. We don't manipulate the data on return, giving you all the freedom to perform caching and/or manipulate the data before usage., (*13)

The Versions

26/08 2015

dev-master

9999999-dev

Voradius API service

  Sources   Download

The Requires

 

The Development Requires

by Maikel Brouwer

11/08 2015

v0.1

0.1.0.0

Voradius API service

  Sources   Download

The Requires

 

The Development Requires

by Maikel Brouwer

10/08 2015

dev-develop

dev-develop

Voradius API service

  Sources   Download

The Requires

 

The Development Requires

by Maikel Brouwer