采用RingCentral\SDK;
或者
require('/home/developer/workspace/ringcentral/demo/SDK.php');
与其使用 'use' - php 5.6 命令,不如使用 require - php 5.3 ?
SDK 类文件包含以下代码
class SDK
{
const VERSION = '0.5.0';
/** @var Platform */
protected $platform;
/** @var Context */
protected $context;
public function __construct($appKey, $appSecret, $server)
{
$this->context = new Context();
$this->platform = new Platform($this->context, $appKey, $appSecret, $server);
}
public function getPlatform()
{
return $this->platform;
}
public function getSubscription()
{
return new Subscription($this->context, $this->platform);
}
public function getContext()
{
return $this->context;
}
}