castingwords / castingwords-api
CastingWords API access from PHP
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/castingwords/castingwords-api
Requires
- php: >=5.4.17
This package is not auto-updated.
Last update: 2025-12-30 11:30:47 UTC
README
PHP Client
Example:
$ php -a
Interactive shell
php > set_include_path('./lib/');
php > require 'CastingWordsAPI.php';
>>> $cw = new CastingWordsAPI("123456789asdfghjkl0987654321");
>>> $cw->test = 1; // set test mode
>>> echo $cw->prepay_balance()."\n";
1001.00
>>> print_r( $cw->order_url("http://example.com/media.mp3", "TRANS14"));
Array
(
[audiofiles] => Array
(
[0] => 165131
)
[order] => 4nX
[message] => Order '4nX' Created
)
Run Example:
$ php ex/example.php $MY_API_KEY;
See Also: