Simple PHP functions for use with the Brighpearl REST API
To initialise API object with your account credentials:
$api = new API($dataCentre, $accountId, $bpAppRef, $bpAccountToken)
Note: the data centre should be the URL prefix for your account, e.g. euw1, use1, est, cst, usw1, pst, mst.