castingwords/castingwords-api

dev-master 2013-12-13 01:36 UTC

This package is not auto-updated.

Last update: 2024-09-24 05:15:52 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: