2017 © Pedro Peláez
 

library api

API bindings for the Yetti platform

image

yetti/api

API bindings for the Yetti platform

  • Wednesday, January 8, 2014
  • by samholman
  • Repository
  • 3 Watchers
  • 4 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yetti API PHP bindings

Build Status, (*1)

This package contains PHP API bindings for the Yetti API., (*2)

For more details on Yetti, please refer to http://yetti.co.uk. We welcome comments, feedback and bug reports at support@yetti.co.uk., (*3)

Requirements

  • PHP 5.3 or above.
  • PHP's cURL module.

Installation

Install with composer, simply add to your composer.json:, (*4)

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

Examples

Creating an item is simple:, (*5)

use Yetti\API\Webservice as Webservice;
use Yetti\API\Item as Item;

Webservice::setDefaultBaseUri('https://yoursite.secure.yetti.co.uk');
Webservice::setDefaultAccessKey('your-access-key');
Webservice::setDefaultPrivateKey('your-private-key');

$item = new Item();
$item->loadTemplate(1);
$item->setName('my-big-news');
$item->setPropertyValue('Name', 'My big news..!');
$item->setPropertyValue('Body', 'I have decided to become a whale.');

echo $item->save()->success() ? 'Item saved' : 'Save failed';

And there really isn't anything much more complicated than that. Please see the included docs and tests directories for additional help and examples., (*6)

Docs

The included documentation was generated directly from the source code using the phpDocumentor 2 tool., (*7)

To regenerate the API docs, make sure that you have phpDocumentor 2 installed, cd to the api bindings directory then run:, (*8)

rm -rf docs && phpdoc, (*9)

Tests

The tests are written using PHPUnit 3.7.24., (*10)

To run the tests, cd to the api bindings directory then run:, (*11)

composer install
phpunit .

Contributing

The Yetti APIs are under active development, as are these PHP bindings. If you find a bug or have specific comments, please use GitHub issues. If you'd like to help us make these bindings better then feel free to fork and send pull requests., (*12)

The Versions

08/01 2014

dev-master

9999999-dev https://github.com/YettiPowered/php-bindings

API bindings for the Yetti platform

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

api cms ecommerce yetti