mannysoft/voxboneapiclient

配置API允许Voxbone客户自动化订购和配置电话号码和通道。

v2.2 2019-02-07 14:47 UTC

This package is not auto-updated.

Last update: 2024-09-23 07:03:45 UTC


README

配置API允许Voxbone客户自动化订购和配置电话号码和通道。

如何配置

生成的代码可能需要使用您的API凭据进行配置。为此,请将凭据和配置值作为控制器构造函数的参数提供。这可以通过以下方式完成(参见ordering.php)


Unirest::auth(Configuration::$BasicAuthUserName, Configuration::$BasicAuthPassword);

此外,您还需要在Configuration.php文件中添加您的凭据


  public static $BasicAuthUserName = "your_username";
  public static $BasicAuthPassword = "you_password";

如何构建

生成的代码使用一个名为UniRest的PHP库。该库的引用已添加到生成的composer.json文件中作为composer依赖项。因此,您将需要互联网访问来解决此依赖项。

要使用此SDK,请执行以下操作

1. Open a new PHP >= 5.3 project and copy the generated PHP files in the project
   directory.
2. Use composer (https://getcomposer.org.cn/) to install the dependencies. Usually this can be done through a
   context menu command "php composer.phar install".
3. You can now instantiate controllers and call the respective methods.
4. cdrs.php, inventory.php, ordering.php, configuration.php, and regulation.php contain sample code that uses this library.

贡献

如果您发现问题或对库有任何改进,请毫不犹豫地提交或打开一个问题。