Download the PHP package smartjson/vip without Composer
On this page you can find all versions of the php package smartjson/vip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download smartjson/vip
More information about smartjson/vip
Files in smartjson/vip
Download smartjson/vip
More information about smartjson/vip
Files in smartjson/vip
Please rate this library. Is it a good library?
Informations about the package vip
SmartJson/Vip
介绍
本类库是对唯品会开放平台API的封装 接口文档请参见 唯品会开放平台
关键字段说明
安装
使用示例
- 接口调用示例
require 'vendor/autoload.php';
use SmartJson\Vip\Client;
use SmartJson\Vip\Requests\Union\GenPidRequest;
$c = new Client();
$c->appKey = 'You are appKey';
$c->appSecret = 'You are appSecret';
$req = new GenPidRequest();
$req->setPidNameList(['test01','test02']);
$c->setRequest($req);
$result = $c->execute();
var_dump($result);
- 授权示例
~~~php
require 'vendor/autoload.php';
use SmartJson\Vip\OauthClient;
$c = new OauthClient();
$c->appKey = 'You are appKey';
$c->appSecret = 'You are appSecret';
// 获取网页授权链接
// $result = $c->buildWebAuthorizeUri();
// 获取APP授权链接
$result = $c->buildAppAuthorizeUri();
// 使用code换取access token
$result = $c->getAccessToken('12345643234');
var_dump($result);
All versions of vip with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package smartjson/vip contains the following files
Loading the files please wait ....