|
@@ 38-48 (lines=11) @@
|
| 35 |
|
* @param array $payload values to send |
| 36 |
|
* @param string $callback_endpoint to send the callback to |
| 37 |
|
*/ |
| 38 |
|
public function scheduleFiles($payload, $callback_endpoint = '') { |
| 39 |
|
|
| 40 |
|
$this->post_fields = array('key'=>$this->sandcage_api_key) + $payload; |
| 41 |
|
|
| 42 |
|
if ($callback_endpoint != '') { |
| 43 |
|
$this->post_fields['callback_url'] = $callback_endpoint; |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
$this->call($this->sandcage_api_endpoint_base . 'schedule-tasks'); |
| 47 |
|
|
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* The "destroy-files" service |
|
@@ 55-65 (lines=11) @@
|
| 52 |
|
* @param array $payload values to send |
| 53 |
|
* @param string $callback_endpoint to send the callback to |
| 54 |
|
*/ |
| 55 |
|
public function destroyFiles($payload, $callback_endpoint = '') { |
| 56 |
|
|
| 57 |
|
$this->post_fields = array('key'=>$this->sandcage_api_key) + $payload; |
| 58 |
|
|
| 59 |
|
if ($callback_endpoint != '') { |
| 60 |
|
$this->post_fields['callback_url'] = $callback_endpoint; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
$this->call($this->sandcage_api_endpoint_base . 'destroy-files'); |
| 64 |
|
|
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* The "list-files" service |