2017 © Pedro Peláez
 

library youzign-api-client

A PHP client for the Youzign API (http://www.youzign.com/)

image

sharapov/youzign-api-client

A PHP client for the Youzign API (http://www.youzign.com/)

  • Tuesday, May 16, 2017
  • by sharapovweb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

youzign-api-client

A PHP client for the Youzign API (http://www.youzign.com/), (*1)

Installation (via Composer):

For composer installation, add:, (*2)

"require": {
    "sharapov/youzign-api-client": "dev-master"
},

to your composer.json file and update your dependencies. Or you can run:, (*3)

$ composer require sharapov/youzign-api-client

in your project directory, where the composer.json file is., (*4)

After that, the class is available under \Sharapov\YouzignAPI namespace, (*5)

Usage:

Now you can autoload or use the class via its namespace. Below are examples of how to use the library., (*6)

Get profile data

require_once dirname(__FILE__) . '/../vendor/autoload.php';

// Demo credentials. You should get real credentials in your Youzign profile
$demoKey = '5077d4ed60da38255c2c71421ddac36f';
$demoToken = '55f772fcdae50ce0caee3986112621a3';

try {
  $yzApi = new \Sharapov\YouzignAPI\YzApi($demoKey, $demoToken);

  // Get designs list
  $responseJson = $yzApi->getProfile();

  print '

';
  print_r($responseJson);
  print '
'; } catch (\Exception $e) { // Print error print $e->getMessage(); }

Get designs list

require_once dirname(__FILE__) . '/../vendor/autoload.php';

// Demo credentials. You should get real credentials in your Youzign profile
$demoKey = '5077d4ed60da38255c2c71421ddac36f';
$demoToken = '55f772fcdae50ce0caee3986112621a3';

try {
  $yzApi = new \Sharapov\YouzignAPI\YzApi($demoKey, $demoToken);

  // Get designs list
  $responseJson = $yzApi->getDesigns();

  print '

';
  print_r($responseJson);
  print '
'; } catch (\Exception $e) { // Print error print $e->getMessage(); }

Changelog

20 March 2016 - v1.0, (*7)

Links

Youzign Homepage, (*8)

Youzign Api manual, (*9)

Composer, (*10)

GitHub, (*11)

Packagist, (*12)

The Versions

16/05 2017

dev-master

9999999-dev https://github.com/sharapovweb/youzign-api-client

A PHP client for the Youzign API (http://www.youzign.com/)

  Sources   Download

GPL-3.0

The Requires

 

api youzign

10/07 2016

1.01

1.01.0.0 https://github.com/sharapovweb/youzign-api-client

A PHP client for the Youzign API (http://www.youzign.com/)

  Sources   Download

GPL-3.0

The Requires

 

api youzign

20/03 2016

1.0

1.0.0.0 https://github.com/sharapovweb/youzign-api-client

A PHP client for the Youzign API (http://www.youzign.com/)

  Sources   Download

GPL-3.0

The Requires

 

api youzign