Skip to content

Commit 009ad5d

Browse files
committed
added export csv
1 parent 3d76d04 commit 009ad5d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Devices.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,25 @@ public function onFocus($id, array $data)
209209
]);
210210
}
211211

212+
/**
213+
* Export all information about devices in a CSV format for your application.
214+
*
215+
* Application auth key must be set.
216+
*
217+
* @return array
218+
*/
219+
public function csvExport()
220+
{
221+
return $this->api->request('POST', '/players/csv_export', [
222+
'headers' => [
223+
'Authorization' => 'Basic ' . $this->api->getConfig()->getApplicationAuthKey(),
224+
],
225+
'json' => [
226+
'app_id' => $this->api->getConfig()->getApplicationId(),
227+
],
228+
]);
229+
}
230+
212231
protected function resolve(array $data, callable $callback = null)
213232
{
214233
$resolver = new OptionsResolver();

0 commit comments

Comments
 (0)