accestech/sherweb-api

API Interface for Sherweb API

0.0.1 2020-11-27 21:44 UTC

This package is auto-updated.

Last update: 2024-04-29 04:27:50 UTC


README

This is a crude implantation for the Sherweb API

In the current state, this is more a proof of concept than a library

Example

DO NOT USE IN PRODUCTION YET!

# The package does not exists yet ...
composer require accestech/sherweb-api
<?php
require ('vendor/autoload.php');

use Accestech\SherwebApi\SherwebApi;

// The only scope currently supported by the API is 'distributor' 
$api = new SherwebApi('api_client_id', 'api_client_secret', 'scope');

$api->distributor()->getPayableCharges();

Todo

  • Error handling
  • Unit testing