2017 © Pedro PelĂĄez
 

library shoper-json-api-php

Shoper JSON API PHP client

image

monetivo/shoper-json-api-php

Shoper JSON API PHP client

  • Thursday, April 13, 2017
  • by up2jj_monetivo
  • Repository
  • 2 Watchers
  • 1 Stars
  • 111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Shoper JSON API Client

Requirements and dependencies

You need PHP 5.5 and later. Additionally, make sure that the following PHP extensions are installed on your server: - curl, - json, (*1)

Composer

You can install the client via Composer by running the command:, (*2)

composer require monetivo/shoper-json-api-php

Then use Composer's autoload mechanism:, (*3)

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then include the autoload.php file., (*4)

require_once('/path/to/shoper-json-api-php/autoload.php');

Getting Started

Basic usage looks like:, (*5)

<?php

try {
    // Shoper shop url
    $shopUrl = 'https://shop.url/';

    // webapi user login
    $login = 'webapi';

    // webapi user password
    $password = 's33m$d!FFicult';

    // init client
    $client = new \Monetivo\ShoperJsonApi($shopUrl);

    // try login, throws exception on fail
    $client->login($login, $password);

    //example - get order list
    $orderList = $client->orderList(true, false, null);

    $client->logout();
}
catch (\Monetivo\Exceptions\MonetivoException $e)
{
    // Shoper error message
    $e->getMessage();
    // Shoper error code
    $e->getCode();
}

Documentation

See https://www.shoper.pl/api for information about acquiring webapi credentials and documentation of available methods., (*6)

Issues

If you find any issues, please do not hesitate to file them via GitHub., (*7)

The Versions

13/04 2017

dev-master

9999999-dev

Shoper JSON API PHP client

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Grzegorz AgaciƄski

13/04 2017

1.0

1.0.0.0

Shoper JSON API PHP client

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Grzegorz AgaciƄski