Skip to content

sharis-gmbh/debitoorapiclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debitoorapiclient

Debitoor php api clent library, Work in progress

Usage :

You can instantiate an api for each types of services :

  • Customers
  • DraftInvoices
  • Invoices
  • Expenses
  • Products
  • Quotes
  • etc.

Each service provides an interface to the methods provided in debitoor api, you can see what is in "Services/servicename.json" to check what parameters can be sent.

Example :

$customerService = DebitoorApiClient::getService('Customers', array('access_token' => $auth_token));

// list customers
$customerService->getCustomers();

// get customer by id
$customerService->getCustomer(array('customer_id' => 'your customer id'));


// create customer
$customerService->createCustomer(
    array(
        'name'          => 'your customer name',
        'address'       => 'customer address',
        'email'         => 'customer@debitoor',
        'phone'         => '000-000-00-00',
        ...
    )
);


// update customer
$customerService->updateCustomer(
    array(
        'customer_id'   => 'your customer id',
        'name'          => 'your customer name',
        'address'       => 'customer address',
        'email'         => 'customer@debitoor',
        'phone'         => '000-000-00-00',
        ...
    )
);

About

Debitoor php api clent library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%