yhdjy025/weimob-php-sdk
Composer 安装命令:
composer require yhdjy025/weimob-php-sdk
包简介
weimob api sdk for php
README 文档
README
This package design for weimob cloud api, you can use the Oauth class to get access token and call the api by Api class
Example
//require class use Weimob\Oauth\Oauth; use Weimob\Api\Api; //a simple example $oauth = new Oauth([ 'clientId' => 'demoapp', // The client ID assigned to you by the provider 'clientSecret' => 'demopass', // The client password assigned to you by the provider 'redirectUri' => 'http://example.com/your-redirect-url/', 'urlAuthorize' => 'http://brentertainment.com/oauth2/lockdin/authorize', 'urlAccessToken' => 'http://brentertainment.com/oauth2/lockdin/token', 'urlResourceOwnerDetails' => 'http://brentertainment.com/oauth2/lockdin/resource' ]); $token = $oauth->auth(); $api = new Api($token['accessToken']); try { $result = $api->send('wangpu/Order/FullInfoGetHighly', [ 'order_no' => '201806211425', 'shop_id' => '123456' ]); var_dump($result); } catch (\Exception $e) { echo $e->getMessage(); }
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-06-21