SecretJdClient.php 690 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace ACES;
  3. use ACES\Common\cache\iCache;
  4. use ACES\Common\domain\JosBaseInfo;
  5. use ACES\Common\Token;
  6. //deprecated, to use TDEClient
  7. class SecretJdClient
  8. {
  9. public static function getInstance($accessToken, $appKey, $appSecret, $serverUrl='https://api.jd.com/routerjson')
  10. {
  11. return TDEClient::getInstance($accessToken, $appKey, $appSecret, $serverUrl);
  12. }
  13. /**
  14. * @return iCache
  15. */
  16. public static function getClientCache()
  17. {
  18. return TDEClient::getClientCache();
  19. }
  20. public static function generateCustomerToken($customerUserId, $appKey)
  21. {
  22. return TDEClient::generateCustomerToken($customerUserId, $appKey);
  23. }
  24. }