KuaishouAPI.php 757 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Helper\UniPlatform\Kuaishou;
  3. use App\Helper\UniPlatform\BaseAPI;
  4. define('BASE_URL','https://open.kuaishou.com/oauth2');
  5. define('PAY_URL','https://open.kuaishou.com/openapi/mp/developer');
  6. final class KuaishouAPI extends BaseAPI
  7. {
  8. /**
  9. * 获取 ACCESS_TOKEN
  10. * @url https://mp.kuaishou.com/docs/develop/server/getAccessToken.html
  11. */
  12. const ACCESS_TOKEN = BASE_URL.'/access_token';
  13. /**
  14. * 登陆
  15. * @url https://mp.kuaishou.com/docs/develop/server/code2Session.html
  16. */
  17. const LOGIN = BASE_URL.'/mp/code2session';
  18. /**
  19. * 支付下单
  20. * @url https://mp.kuaishou.com/docs/develop/server/epay/interfaceDefinition.html
  21. */
  22. const CREATE_ORDER = PAY_URL.'/epay/create_order';
  23. }