2017 © Pedro Peláez
 

library insales-api

image

dmz9/insales-api

  • Thursday, June 15, 2017
  • by dmz9
  • Repository
  • 2 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

very wip., (*1)

usage example, (*2)

$key='myApplicationKey';
$token = 'md5-string';
$domain='my-cool-shop.com';
$useHttps=true;

$transport  = new \InsalesApi\Transport(
    $key,
    $token,
    $domain,
    $useHttps
);
$api        = new \InsalesApi\InsalesAPI($transport);
$webhookApi = $api->webhook();

$webhook = $webhookApi->create('http://my-domain.com/callback.php',$webhookApi::MESSAGE_FORMAT_JSON);

concrete model properties are public, (*3)

$id        = $webhook->id;
$format    = $webhook->format_type;
$createdAt = $webhook->created_at;
$topic     = $webhook->topic;
$address   = $webhook->address;

each response model has these methods, (*4)

$lastHeaders          = $webhook->getHeaders();
$request              = $webhook->getRequest();
$originServerResponse = $webhook->getOriginData();

The Versions

15/06 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Development Requires

by Avatar dmz9

13/06 2017

1.0.2

1.0.2.0

  Sources   Download

MIT

The Development Requires

by Avatar dmz9

13/06 2017

1.0.1

1.0.1.0

  Sources   Download

MIT

The Development Requires

by Avatar dmz9

09/06 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

by Avatar dmz9