library meituan-openapi-sdk
meituan-openapi-php-sdk
meituan-openapi/meituan-openapi-sdk
meituan-openapi-php-sdk
- Wednesday, June 20, 2018
- by rorojr
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
PHP SDK 接入指南 & CHANGELOG
转自其他人,在此基础上开发
仿照饿了么openApi编写
接入指南
- PHP version >= 5.4 & curl extension support
- 通过composer安装SDK
- 创建Config配置类,填入key,secret和sandbox参数
- 使用sdk提供的接口进行开发调试
- 上线前将Config中$sandbox值设为false以及填入正式环境的key和secret
安装方法
composer require meituan-openapi/meituan-openapi-sdk:dev-master, (*1)
基本用法
// 门店映射
$config = new Config($developerId, $businessId, $signKey);
$client = new OAuthClient($config);
$url = $client->storemap($ePoiId);
header('location: ' . $url);
dev-master
9999999-dev
meituan-openapi-php-sdk
Sources
Download
MIT
The Requires
by
winky
meituan