Wiki
Clone wikiSimwoodAPI / Home
Simwood API Client - Wiki - Home
About:
This php composer package provides a simple object orientated way to interact with the simwood.com API.
Author:
@lcherone
Setup:
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
);
?>
Account Id:
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';
?>
Making calls:
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] Tools
-
[X] Accounts
- [X] Credit
- [X] Prepay
- [X] Balance
- [X] Low Balance Alerts
- [X] Locking
- [X] Summary
- [X] Pre-payments
- [X] Transfers
- [X] Rates
- [X] Reports
- [X] Summary
- [X] Notifications
- [X] Available
- [X] Type
- [X] Method (email, http, sms)
- [X] Hash
- [X] History
-
[-] Voice
- [X] Limits
- [X] Channels
- [X] Current
- [X] History
- [X] In-progress
- [ ] Outbound - Trunk Management
- [ ] Outbound - Balance
- [ ] Outbound - In-progress
- [ ] Outbound - ACL
- [ ] Outbound - ACL/IP
- [ ] Outbound - Password Reset
- [ ] Destination ACL
- [ ] IDA
-
[X] Inline CDR
- [X] CDR
- [X] {YYYY-MM-DD}
- [X] {YYYY-MM-DD}/{REFERENCE}
- [X] CDR
-
[-] Numbers
- [X] Ranges
- [X] Available
- [X] Consecutive
- [X] Allocated
- [X] All
- [X] 10|100|100|1000
- [-] Number
- [X] Config
- [ ] SMS
- [X] 999
- [X] Default Config
- [X] [Manage]
- [X] Info
- [X] Allocate
- [X] Delete/Deconfigure
-
[ ] Porting
- [ ] Ports
-
[ ] Fax
- [ ] Inbound
- [ ] Hash
-
[ ] Messaging
- [ ] SMS
- [ ] Fax
Updated