src/Notifications.php 1 location
|
@@ 69-75 (lines=7) @@
|
66 |
|
* |
67 |
|
* @return array |
68 |
|
*/ |
69 |
|
public function add(array $data) |
70 |
|
{ |
71 |
|
return $this->api->request('POST', '/notifications', [ |
72 |
|
'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(), |
73 |
|
'Content-Type' => 'application/json', |
74 |
|
], json_encode($this->resolve($data))); |
75 |
|
} |
76 |
|
|
77 |
|
/** |
78 |
|
* Open notification. |
src/Devices.php 1 location
|
@@ 211-218 (lines=8) @@
|
208 |
|
* |
209 |
|
* @return array |
210 |
|
*/ |
211 |
|
public function csvExport() |
212 |
|
{ |
213 |
|
return $this->api->request('POST', '/players/csv_export', [ |
214 |
|
'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(), |
215 |
|
], json_encode([ |
216 |
|
'app_id' => $this->api->getConfig()->getApplicationId(), |
217 |
|
])); |
218 |
|
} |
219 |
|
|
220 |
|
protected function resolve(array $data, callable $callback = null) |
221 |
|
{ |