-
Notifications
You must be signed in to change notification settings - Fork 5
General API Usage
Nathan Dunn edited this page Mar 19, 2018
·
3 revisions
You can create an instance of the Chargebee client by passing the site ID and key as the first and second parameters into the constructor of the \NathanDunn\Chargebee\Client
class. If you wish to customise your client instance, you can optionally pass a Builder object as a third parameter.
$client = new \NathanDunn\Chargebee\Client('test', 'test_jr2sgprosh2diurghjd');
Endpoints are organised by resources. In order to list all subscriptions, you can do the following:
$sub = $client->subscription()->list();