|
| | __construct ($endpoint, $key, $secret) |
| |
| | bulk ($msisdns, $type, $cachepersonaldays, $cacheshareddays, $cachesharedsave=1, $process=true) |
| |
| | csv_download ($id) |
| |
| | process ($id) |
| |
| | check ($msisdns, $type, $cachepersonaldays, $cacheshareddays, $cachesharedsave=1, $url='') |
| |
| | status ($id) |
| |
| | pause ($id) |
| |
| | generate ($id) |
| |
| | delete ($id) |
| |
| | balance () |
| |
| __construct |
( |
|
$endpoint, |
|
|
|
$key, |
|
|
|
$secret |
|
) |
| |
| _call |
( |
|
$uri, |
|
|
|
$data = '' |
|
) |
| |
|
protected |
| _download |
( |
|
$uri, |
|
|
|
$data = '' |
|
) |
| |
|
protected |
Return the number of credits on the account
- Returns
- an array with keys fullcredits and basiccredits
| bulk |
( |
|
$msisdns, |
|
|
|
$type, |
|
|
|
$cachepersonaldays, |
|
|
|
$cacheshareddays, |
|
|
|
$cachesharedsave = 1, |
|
|
|
$process = true |
|
) |
| |
Runs a bulk query
- Returns
- an array with three keys, status, batch and warning, the status will either be OK or ERR, the batch will be the batch ID used in subsequent calls and warnings will be any warnings i.e. the account is low on credits
- Parameters
-
| array | $msisdns | an array of msisdns to check |
| string | $type | either basic or full |
| int | $cachepersonaldays | the number of days to check the personal cache |
| int | $cacheshareddays | the number of days to check the shared cache |
| int | $cachesharedsave | 1 if to save results to the shared cache, 0 to keep results private |
| bool | $process | if to process the batch immediately |
| check |
( |
|
$msisdns, |
|
|
|
$type, |
|
|
|
$cachepersonaldays, |
|
|
|
$cacheshareddays, |
|
|
|
$cachesharedsave = 1, |
|
|
|
$url = '' |
|
) |
| |
Downloads the results of a batch in CSV format
- Returns
- a CSV string containing the batch results
- Parameters
-
| string | $id | the batch ID to download |
Deletes a batch
- Returns
- a string either OK or FAILED
- Parameters
-
| string | $id | the batch ID to delete |
Generates a csv for a 'holding' batch
- Returns
- a string either OK or FAILED
- Parameters
-
| string | $id | the batch ID to generate |
Pauses a currently running batch
- Returns
- a string either OK or FAILED
- Parameters
-
| string | $id | the batch ID to download |
Processes a batch that is in status 'holding'
- Returns
- a string either OK or FAILED
- Parameters
-
| string | $id | the batch ID to download |
Returns the status of a batch
- Returns
- an array with three keys, 'remaining' the number of msisdns to process, 'csv' either a timestamp or false if there is a csv file generated, 'status' the status of the batch
- Parameters
-
| string | $id | the batch ID to download |
The documentation for this class was generated from the following file: