AntonyThorpe\SilverShopUnleashed\UnleashedAPI
Settings to incorporate Unleashed API into a Guzzle Http Client
Synopsis
class UnleashedAPI
extends Client
{
- // members
- private static boolean $logfailedcalls = false;
- private static boolean $debug = false;
- private static $id;
- private static $key;
- // methods
- public static Config_ForClass config()
- public static sendCall()
- public void __construct()
Hierarchy
Extends
- GuzzleHttp\Client
Members
private
- $debug
—
boolean
Guzzle debug setting - $id
—
string
id from Unleashed - $key
—
string
key from Unleashed - $logfailedcalls
—
boolean
Log calls if failed
Methods
public
- __construct() — Clients accept an array of constructor parameters
- config() — Helper for getting static config
- sendCall() — Send asynchronous request to Restful endpoint