2017 © Pedro Peláez
 

library weimob-php-sdk

weimob api sdk for php

image

yhdjy025/weimob-php-sdk

weimob api sdk for php

  • Thursday, June 21, 2018
  • by yhdjy025
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

weimob api sdk for php

This package design for weimob cloud api, you can use the Oauth class to get access token and call the api by Api class, (*1)

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();
}

The Versions

21/06 2018

dev-master

9999999-dev https://github.com/yhdjy025/weimob-php-sdk.git

weimob api sdk for php

  Sources   Download

The Requires

 

by Avatar yhdjy025

21/06 2018

v1.1.1

1.1.1.0 https://github.com/yhdjy025/weimob-php-sdk.git

weimob api sdk for php

  Sources   Download

The Requires

 

by Avatar yhdjy025

21/06 2018

v1.1.0

1.1.0.0 https://github.com/yhdjy025/weimob-php-sdk.git

weimob api sdk for php

  Sources   Download

The Requires

 

by Avatar yhdjy025