opensdk / qianzhu
千猪开放平台SDK
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:libaray
Requires
- php: >=7.0.0
Requires (Dev)
- php: >=7.0.0
This package is not auto-updated.
Last update: 2024-11-21 00:22:23 UTC
README
介绍
本类库是对千猪开放平台API的封装
使用示例
require 'vendor/autoload.php'; use OpenSDK\QianZhu\Client; use OpenSDK\QianZhu\Requests\KfcOrdersPagedQueryGetRequest; $c = new Client(); $c->appKey = $this->appKey; $c->appSecret = $this->appSecret; $c->gatewayUrl = $this->url; $req = new KfcOrdersPagedQueryGetRequest(); $req->setPageIndex(1); $req->setPageSize(10); $req->setUpdateTimeBeginTime("2020-04-20 00:00:00"); $req->setUpdateTimeEndTime("2020-04-27 00:00:00"); $c->execute($req); $response = $c->result(); if(isset($response['status']) && $response['status'] == '0000'){ } var_dump($response);exit;