Client

Erply Books API PHP client Client class
Methods Summary
public
# __construct( string $token , Http\Client\HttpClient $client = NULL )
API client constructor
public
# getApiToken( )
Get API token
public
# setHttpClient( Http\Client\HttpClient $client )
Set the Http Client used for API requests This allows the default http client to be swapped out for a HTTPlug compatible replacement.
public
# getHttpClient( )
Get the Http Client used for API requests
public
# authenticate( Psr\Http\Message\RequestInterface $request )
Adds token to request
public
# withQuery( array $param )
Add query param
protected
# withQueryParams( Psr\Http\Message\RequestInterface $request )
Add query param
public
# sendRequest( Psr\Http\Message\RequestInterface $request )
Send request
public
# __call( $name , $args )
Magic method to get resource object

ignore


SuppressWarnings


Constants Summary
public string BASE_URL
API base URL
# 'https://accounting.erply.com/api'
Properties Summary
protected string $token
API token


# NULL
protected Http\Client\HttpClient $httpClient
Http Client


# NULL
protected array $query
Additional query params


# array ( )