library ebai-openapi-php-sdk
ebai-openapi-php-sdk
ddxq/ebai-openapi-php-sdk
ebai-openapi-php-sdk
- Saturday, April 28, 2018
- by rushui
- Repository
- 1 Watchers
- 1 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 33 % Grown
饿百开放平台 PHP SDK 接入指南
接入指南
- PHP version >= 5.4 & curl extension support
- 通过composer安装SDK
- 创建Config配置类,填入key,secret和sandbox参数
- 使用sdk提供的接口进行开发调试
- 线上环境将Config中$sandbox值设为false
安装
php
composer require ddxq/ebai-openapi-php-sdk
基本用法
php
use eBaiOpenApi\Config\Config;
use eBaiOpenApi\Api\ShopService;
//实例化一个配置类
$config = new Config($app_key, $app_secret, false);
//使用config和token对象,实例化一个服务对象
$shop_service = new ShopService($config);
//调用服务方法,获取资源
$shop = shop_service->get_shop_list();
dev-develop
dev-develop
ebai-openapi-php-sdk
Sources
Download
MIT
The Requires
by
如水
dev-master
9999999-dev
ebai-openapi-php-sdk
Sources
Download
MIT
The Requires
by
如水