yhdjy025/weimob-php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-06-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固