admin_example.php 352 B

1234567891011121314
  1. <?php
  2. // 这只是使用样例,不应该直接用于实际生产环境中 !!
  3. require 'config.php';
  4. use JPush\AdminClient as Admin;
  5. $admin = new Admin($dev_key, $dev_secret);
  6. $response = $admin->createApp('aaa', 'cn.jpush.app');
  7. print_r($response);
  8. $appKey = $response['body']['app_key'];
  9. $response = $admin->deleteApp($appKey);
  10. print_r($response);