get_devices_status_example.php 315 B

12345678910111213
  1. <?php
  2. require __DIR__ . '/../config.php';
  3. // 获取用户在线状态(VIP专属接口)
  4. try {
  5. $response = $client->device()->getDevicesStatus($registration_id);
  6. } catch(\JPush\Exceptions\APIRequestException $e) {
  7. print $e;
  8. print $e->getHttpCode();
  9. print $e->getHeaders();
  10. }
  11. print_r($response);