No Description

DevTools.php 798B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * 设备查询工具集.
  4. * @author wangkuiwei
  5. * @name DevTools
  6. *
  7. */
  8. namespace xmpush;
  9. class DevTools extends HttpBase {
  10. public function __construct() {
  11. parent::__construct();
  12. }
  13. public function getAliasesOf($packageName, $regId, $retries = 1) {
  14. $fields = array('registration_id' => $regId, 'restricted_package_name' => $packageName);
  15. $result = $this->getResult(PushRequestPath::V1_GET_ALL_ALIAS(), $fields, $retries);
  16. return $result;
  17. }
  18. public function getTopicsOf($packageName, $regId, $retries = 1) {
  19. $fields = array('registration_id' => $regId, 'restricted_package_name' => $packageName);
  20. $result = $this->getResult(PushRequestPath::V1_GET_ALL_TOPIC(), $fields, $retries);
  21. return $result;
  22. }
  23. }
  24. ?>