voxbone / voxapi-client-php
此包已被废弃且不再维护。未建议替代包。
配置API允许Voxbone客户自动化订购和配置电话号码和通道。
v2.1.1
2015-06-19 12:33 UTC
Requires
- php: >=5.4.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- apimatic/unirest-php: dev-master
This package is not auto-updated.
Last update: 2022-03-10 22:01:23 UTC
README
Voxbone 配置API库(PHP)
配置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/) 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.
贡献
如果您发现问题或对库有任何改进建议,请随时提交或打开问题。