dxy/biz-sim

This package is abandoned and no longer maintained. The author suggests using the dxy-private package instead.

丁香园专业服务部 SIM API

v2.1.1.1 2018-01-03 06:42 UTC

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!