Download the PHP package call-center/php-sdk without Composer

On this page you can find all versions of the php package call-center/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-sdk

呼叫中心 PHP SDK

用于对接呼叫中心系统的PHP开发包,支持Composer安装。

功能特性

安装

通过Composer安装

手动安装

  1. 下载SDK源码
  2. 在项目中使用Composer加载:

然后运行:

快速开始

1. 初始化SDK

2. 生成Token

3. 创建外呼任务

4. 获取任务列表

5. 查询任务状态

6. 取消任务

7. 获取通话记录

完整示例

API文档

TokenService

generate(string $appKey, string $appSecret, int $expiresIn = 3600): array

生成访问Token。

参数:

返回:

TaskService

create(array $taskData): array

创建外呼任务。

参数:

返回:

list(int $page = 1, int $pageSize = 20): array

获取任务列表。

返回:

getStatus(string $taskId): array

查询任务状态。

返回:

cancel(string $taskId): array

取消任务。

getRecords(string $taskId, int $page = 1, int $pageSize = 20): array

获取通话记录。

返回:

异常处理

SDK提供了两种异常类型:

高级用法

自定义HTTP选项

设置请求超时

直接使用HTTP客户端

系统要求

许可证

MIT License

支持

如有问题或建议,请联系:[email protected]


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package call-center/php-sdk contains the following files

Loading the files please wait ...