dxy / biz-sim
丁香园专业服务部 SIM API
Installs: 442
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dxy/biz-sim
Requires
- php: >=5.6.4
This package is not auto-updated.
Last update: 2018-08-01 16:06:49 UTC
README
Usage
use DXY\BIZ\SIM\SIM;
SIM::setAppId('example');
SIM::setAppSignKey('example');
SIM::setSimHost('example');
SIM::get(SIMAPI::API_SSO_BIND_EMAIL, [ // or specify url directly
'account' => 'imaqtpie',
'email' => 'example@dxy.cn',
'deleted' => false
]);
or
- Create a class that extends
DXY\BIZ\SIM\AbstractSIM
- Implements abstract methods like
getAppIdFromConfig()
CustomSIM::get(SIMAPI::API_SSO_BIND_EMAIL, [ // or specify url directly
'account' => 'imaqtpie',
'email' => 'example@dxy.cn',
'deleted' => false
]);
使用方法
use DXY\BIZ\SIM\SIM;
SIM::setAppId('example');
SIM::setAppSignKey('example');
SIM::setSimHost('example');
SIM::get(SIMAPI::API_SSO_BIND_EMAIL, [ // or specify url directly
'account' => 'imaqtpie',
'email' => 'example@dxy.cn',
'deleted' => false
]);
或者
- 创建一个扩展自
DXY\BIZ\SIM\AbstractSIM
的子类 - 实现各抽象方法, 如
getAppIdFromConfig()
CustomSIM::get(SIMAPI::API_SSO_BIND_EMAIL, [ // or specify url directly
'account' => 'imaqtpie',
'email' => 'example@dxy.cn',
'deleted' => false
]);
Enjoy!