Simwood API Client - Wiki - Home
Using composer add the package to your project:
composer require opensaucesystems/simwoodapi
Initializing the client
<?php require 'vendor/autoload.php'; /** * Initialize the API client class */ $simwood = new opensaucesystems\simwood\APIClient( 'APIUSER', //<-- get from simwood 'APIKEY' //<-- get from simwood ); ?>
I've chosen to not include this in the class construct, so it must be passed to each method call if required, this is because of the way the API has multiple accounts levels.
You can set it in a variable or you can hard-code it to the method call, no biggie!
<?php $account_id = '999999'; ?>
To interact with the API its as simple as calling a class method or property, endpoints are dynamically loaded when traversed to.
See the wikis below for further details on each endpoint.
[ ] Todo [-] Partially done [X] Done [!] Broken
- [X] Credit
- [X] Prepay
- [X] Rates
- [X] Reports
- [X] Summary
- [X] Notifications
[X] Inline CDR
[ ] Porting
- [ ] Ports
[ ] Fax
- [ ] Inbound
- [ ] Hash
[ ] Messaging
- [ ] SMS
- [ ] Fax