iris-crm/php-sdk

dev-master 2022-08-30 06:03 UTC

This package is auto-updated.

Last update: 2024-09-23 19:42:47 UTC


README

欢迎来到IRIS的API!

API基于REST架构。所有请求都应该通过SSL进行。

所有请求和响应体,包括错误,都使用JSON编码。

开放API

开放API提供了许多功能,通过简单的REST调用访问或更新您的CRM潜在客户和商户数据。

您可以使用电子签名API来

  • 生成电子签名文档

  • 发送电子签名文档

  • 下载电子签名文档

  • 获取所有潜在客户的电子签名文档列表

  • 获取可用应用列表

  • 创建新的应用程序字段映射

  • 获取可用应用程序字段映射列表

  • 获取应用程序字段映射列表

  • 更新应用程序字段映射

  • 删除应用程序字段映射

您可以使用帮助台API来

  • 创建新的工单

  • 获取帮助台工单列表

  • 添加工单评论

  • 获取详细的工单信息

  • 更新工单

  • 删除工单

  • 将附件上传到工单、评论、清单或工单类型

  • 从工单下载附件

  • 创建新的帮助台工单类型

  • 获取帮助台工单类型列表

  • 获取帮助台工单类型的详细信息

  • 更新帮助台工单类型

  • 删除工单类型

  • 从工单类型下载附件

  • 获取可用通知和分配用户列表

您可以使用潜在客户API来

  • 创建潜在客户

  • 获取潜在客户列表

  • 获取详细的潜在客户信息

  • 更新潜在客户

  • 创建新的潜在客户字段

  • 获取可用潜在客户字段列表

  • 获取潜在客户字段

  • 更新潜在客户字段

  • 更新潜在客户字段顺序位置

  • 创建潜在客户字段标签

  • 获取所有潜在客户字段标签列表

  • 获取潜在客户字段标签

  • 更新潜在客户字段标签

  • 创建潜在客户备注

  • 获取潜在客户备注

  • 创建潜在客户约会

  • 获取潜在客户约会

  • 填充PDF文档

  • 创建潜在客户任务

  • 获取潜在客户任务

  • 分配用户

  • 获取分配用户列表

  • 从潜在客户中取消用户分配

  • 上传文档

  • 获取可用文档列表

  • 获取可用文档标签列表

  • 下载文档

  • 使用模板向潜在客户发送电子邮件

  • 获取电子邮件模板列表

  • 下载邮箱电子邮件附件

  • 使用选定的短信模板向潜在客户发送短信

  • 获取短信模板列表

  • 获取所有潜在客户活动列表

  • 获取所有潜在客户删除活动列表

  • 获取所有潜在客户重复活动列表

  • 获取所有潜在客户链接活动列表

  • 获取所有潜在客户来源活动列表

  • 获取所有潜在客户状态活动列表

  • 获取可用活动列表

  • 获取可用组列表

  • 获取可用来源列表

  • 获取可用状态列表

  • 获取可用用户列表

您可以使用商户API来

  • 获取商户列表

  • 获取详细的商户信息

  • 更新现有商户

  • 获取批次和交易列表

  • 获取退款列表

  • 获取取回列表

  • 获取对账单列表

  • 下载对账单

您可以使用残差API来

  • 获取残差摘要数据

  • 获取带有商户行的残差摘要

  • 获取带有商户行的残差详情

  • 获取残差行项

  • 获取残差模板

  • 获取已分配残差模板的用户列表

生成API令牌

发送API请求时,您需要在请求中包含API令牌以验证您的账户。

令牌由CRM中的每个用户单独生成,每个用户可以创建一个或多个令牌。

要生成新的API令牌,请通过点击右上角的用户名打开您的用户设置页面,然后点击**设置**链接,或者您可以使用此链接

然后打开**API设置**选项卡,点击**创建新API令牌**,根据需要配置令牌的设置,然后点击**添加新令牌**

您的新令牌现在将在弹窗窗口中创建并显示

令牌创建后,它将显示在可用的API令牌列表中,您可以从这里复制令牌,更新其设置,或者在不使用时删除它

**注意**:创建的令牌将继承用户分配给商户、潜在客户、组和处理器的权限。

使用API

API的认证通过X-API-KEY头部执行。未经适当认证的请求将返回401错误代码。

curl -X GET "https://iriscrm.com/api/v1/merchants/[MID HERE]" -H "accept: application/json" -H "X-API-KEY: [YOURKEY]"

请注意,所有请求都应通过SSL进行。所有请求和响应体,包括错误,都编码为JSON。

API返回标准的HTTP成功或错误状态代码。在出现错误的情况下,我们还将包括有关错误原因的额外信息,该信息将编码在响应中的JSON中。

默认情况下,您可以每分钟进行120次请求。检查任何API请求返回的HTTP头部,以查看您的当前速率限制状态。

使用订阅API

API订阅用于将事件信息发送到URL并触发API调用。这比执行计划API调用更有效。

要创建订阅,请使用API设置页面或按照以下订阅部分中的说明发送请求。

您只需要知道您想订阅的事件以及需要发送更新信息的URL。

要使用我们的GUI创建订阅,请打开https://iriscrm.com/settings**中的** API设置**标签页。

认证

通过在API请求中包含您的密钥来验证您的账户。不要在公开可访问的区域、客户端代码等地方共享您的密钥API密钥。API的认证通过X-API-KEY头部执行。未经适当认证的请求将返回401错误代码。

错误

我们的API返回标准的HTTP成功或错误状态代码。对于错误,我们还将包括有关错误原因的额外信息,该信息将编码在响应中的JSON中。

限制

您可以每分钟进行120次请求。如果您将达到限制,您将从服务器收到429: Too Many Attempts.响应。检查任何API请求返回的HTTP头部,以查看您的当前速率限制状态。

头部描述

  • X-RateLimit-Limit告诉您在此应用程序的时间段内可以进行的最大请求数量

  • X-RateLimit-Remaining告诉您在此当前时间段内剩余的请求数量

  • Retry-After 告诉你等待多少秒后再次尝试。(只有在达到限制时才会得到 Retry-After)。

变更日志

1.6.0 (2021-03-02)

创建

  • 添加了 Get pricing templates 端点

1.5.20 (2021-02-12)

更新

  • filename 属性添加到 lead.document.uploaded 订阅响应中

1.5.19 (2021-02-17)

更新

  • 添加了存款端点

  • authorization_code 属性添加到冲销响应中

1.5.18 (2021-01-14)

更新

  • idinvoice_number 属性添加到交易响应的 transactions 部分

1.5.16 (2020-12-11)

更新

  • 将任务优先级从 "Low" 改为 "Normal"

1.5.15 (2021-01-18)

更新

  • 在获取票据列表端点中添加了 due 值用于 sort_bydate_filter 参数

  • 在获取票据列表端点中添加了 due 参数

  • 在获取票据详细信息端点中添加了 due 参数

  • 在获取票据列表端点中添加了 only_business_days 参数

  • 在获取票据详细信息端点中添加了 only_business_days 参数

  • 在创建票据端点中的票据添加了 only_business_days 属性

  • 在更新票据端点中的票据添加了 only_business_days 属性

  • 在获取票据类型列表端点中的票据类型添加了 only_business_days 属性

  • 在获取票据类型详细信息端点中添加了 only_business_days 参数

  • 在创建票据类型端点中的票据类型添加了 only_business_days 属性

  • 在更新票据类型端点中的票据类型添加了 only_business_days 属性

  • 在创建票据端点中的票据添加了 attached_files 属性

  • 在创建票据清单端点中的票据清单添加了 attached_files 属性

  • 在更新票据清单端点中的票据清单添加了 attached_files 属性

  • 在创建票据评论端点中的票据评论添加了 attached_files 属性

1.5.14 (2020-11-26)

更新

  • 在创建票据响应的 checklist 部分添加了 template_idcompleted_bycompleted_at 属性

  • 在票据详细信息响应的 checklist 部分添加了 template_idcompleted_bycompleted_at 属性

  • 在更新票据响应的 checklist 部分添加了 template_idcompleted_bycompleted_at 属性

  • 在更新票据清单订阅响应的 checklist 部分添加了 template_idcompleted_bycompleted_at 属性

1.5.13 (2020-11-20)

更新

  • 在创建票据类型端点中的票据类型添加了 priority 属性

  • 在更新票据类型端点中的票据类型添加了 priority 属性

1.5.12 (2020-11-02)

更新

  • 将创建票据端点中的 due_date 属性改为 datetime 格式

  • 将更新票据端点中的 due_date 属性改为 datetime 格式

1.5.11 (2020-10-20)

更新

  • 为票据创建有效载荷添加了 notify_assigned_users 属性

1.5.10 (2020-10-19)

更新

  • 为票据创建有效载荷添加了 group_id 属性

  • 为票据更新有效载荷添加了 group_id 属性

1.5.9 (2020-11-02)

更新

  • 为票据更新有效载荷添加了 new_files 属性

  • 为票据类型更新有效载荷添加了 new_files 属性

1.5.8 (2020-10-20)

更新

  • 为票据请求和响应数据添加了 preview_images 属性

  • 为票据评论请求和响应数据添加了 preview_images 属性

  • 为票据和票据评论属性添加了 preview_images 属性

  • 为票据请求和响应数据添加了 preview_images 属性

1.5.7 (2020-10-05)

更新

  • 为票据创建有效载荷添加了 notify_assigned_users 属性

1.5.5 (2020-07-23)

更新

  • 添加了带有文件标签的端点,可用于文档上传

1.5.5 (2020-10-20)

更新

  • 添加了带有文件标签的端点,可用于文档上传

1.5.4 (2020-07-13)

更新

  • 在创建票据端点的响应中添加了 files_count 属性

  • 在票据列表端点的响应中添加了 files_count 属性

  • 在票据详细信息端点的响应中添加了 files_count 属性

  • 在更新票据端点的响应中添加了 files_count 属性

  • 在票据创建订阅数据中添加了 files_count 属性

  • files_count 属性添加到 ticket.updated 订阅数据中。

  • files_count 属性添加到 ticket.resolved 订阅数据中。

  • files_count 属性添加到 ticket.checklist.updated 订阅数据中。

1.5.3 (2020-07-06)

更新

  • 在 tickets 列表端点添加了 search 过滤器。

1.5.2 (2020-07-10)

更新

  • 在 ticket 创建端点的请求和响应中添加了 due_date 属性。

  • 在 ticket 列表端点的响应中添加了 due_date 属性。

  • 在 ticket 详细信息端点的响应中添加了 due_date 属性。

  • 在 ticket 更新端点的请求和响应中添加了 due_date 属性。

  • 在 ticket.created 订阅数据中添加了 due_date 属性。

  • 在 ticket.updated 订阅数据中添加了 due_date 属性。

  • 在 ticket.resolved 订阅数据中添加了 due_date 属性。

  • 在 ticket.checklist.updated 订阅数据中添加了 due_date 属性。

1.5.1 (2020-08-10)

创建

  • 添加了用于处理您残差报告的 Residuals API。

1.4.9 (2020-06-26)

更新

  • 在 tickets 列表端点添加了 hide_resolved 过滤器。

1.4.8 (2020-06-12)

更新

  • 在 lead 预约端点的响应中添加了 set_forset_atset_bymodifiedmodified_bydate_endconfirmed_byseen_byrescheduledrescheduled_byrescheduled_count 属性。

  • 在 lead 预约端点中添加了 set_forset_bymodified_byconfirmed_byseen_byrescheduled_byrescheduled_countdate_filterstart_dateend_datedone 过滤器。

  • 在 lead 预约端点中添加了排序功能。

  • 将 lead 预约端点响应中的 user 属性标记为已弃用。

1.4.7 (2020-05-13)

更新

  • 在 lead 状态活动端点中添加了 old_status_id

  • 在 lead 状态活动端点中添加了 new_status_id

1.4.6 (2020-05-01)

创建

  • 添加了 lead.signature.generated 订阅端点。

  • 添加了 lead.signature.opened 订阅端点。

  • 添加了 lead.signature.signed 订阅端点。

更新

  • lead.updated 订阅端点中添加了 createdAtcreatedBy 属性。

  • lead.deleted 订阅端点中添加了 emailcontactphoneaddress 属性。

  • lead.restored 订阅端点中添加了 emailcontactphoneaddress 属性。

  • lead.status.updated 订阅端点中添加了 createdAtcreatedBy 属性。

1.4.5 (2020-04-21)

更新

  • 在 ticket 创建详情端点的响应中添加了 files 属性。

  • 在 ticket 创建详情端点的响应中为每个清单项添加了 file 属性。

  • 在 Helpdesk tickets 详细信息端点中添加了 files 属性。

  • 在 Helpdesk tickets 详细信息端点中为每个评论添加了 files 属性。

  • 在 Helpdesk tickets 详细信息端点中为每个清单项添加了 file 属性。

  • 在 Helpdesk ticket 更新端点中添加了 files 属性。

  • 在 Helpdesk ticket 更新端点中为每个评论添加了 file 属性。

  • 在 Helpdesk ticket 更新端点中为每个清单项添加了 file 属性。

  • 在 ticket 类型创建详情端点的响应中为每个清单项添加了 file 属性。

  • 在 ticket 类型端点上为每个清单项添加了 file 属性。

  • 在 ticket 类型更新端点上为每个清单项添加了 file 属性。

  • 为 ticket 创建订阅添加了 files 属性。

  • 为 ticket 更新订阅添加了 files 属性。

  • 为 ticket 解决订阅添加了 files 属性。

  • 为 ticket 评论订阅添加了 files 属性。

  • 为 ticket 清单更新订阅添加了 files 属性。

  • 在清单更新订阅中为每个清单项添加了 file 属性。

创建

  • 添加了从 Ticket 类型下载附件的端点。

1.4.4 (2020-04-02)

更新

  • 已将resolver过滤器添加到Helpdesk工单端点。

1.4.3 (2020-04-01)

更新

  • 已将status_updated选项添加到Helpdesk工单端点的date_filter过滤器。

1.4.2 (2020-03-27)

更新

  • 已将lid过滤器添加到Helpdesk工单端点。

  • 已将mid过滤器添加到Helpdesk工单端点。

1.4.1 (2020-03-20)

更新

  • 已将hashurl属性添加到“发送电子签名文档”端点。

1.4.0 (2020-03-05)

更新

  • 已将assigned_userslead_url属性添加到lead.created订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.updated订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.deleted订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.restored订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.status.updated订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.note.added订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.document.uploaded订阅的响应中。

  • 已将assigned_userslead_url属性添加到lead.email.received订阅的响应中。

  • 已将ticket_urlassigned_users属性添加到ticket.created订阅的响应中。

  • 已将ticket_urlassigned_users属性添加到ticket.updated订阅的响应中。

  • 已将ticket_urlassigned_users属性添加到ticket.resolved订阅的响应中。

  • 已将ticket_urlassigned_users属性添加到ticket.commented订阅的响应中。

  • 已将ticket_urlassigned_users属性添加到ticket.checklist.updated订阅的响应中。

  • 已将application_urlidentifierlid属性添加到turboapp.submitted订阅的响应中。

  • 已将application_urlidentifierlid属性添加到turboapp.updated订阅的响应中。

  • 已将application_urlidentifierlid属性添加到turboapp.approved订阅的响应中。

  • 已将application_urlidentifierlid属性添加到turboapp.declined订阅的响应中。

  • 将所有订阅的日期属性更改为蛇形命名。

1.3.5 (2020-02-26)

创建

  • 添加了一个Helpdesk API来处理您的Helpdesk数据。

1.3.4 (2020-02-25)

更新

  • 在“turboapp.submitted”订阅中添加了lid属性。

1.3.3 (2020-02-24)

更新

  • 在“lead.status.updated”订阅中添加了salesRep参数。

1.3.2 (2019-11-21)

更新

  • 在“生成电子签名文档”端点中添加了expire参数。

  • 增加了添加多个签署人的功能,并在“发送电子签名文档”端点中添加了expire参数。

1.3.1 (2019-11-18)

更新

  • 将订阅重命名为从“application.created”到“turboapp.submitted”和从“application.updated”到“turboapp.updated”。

创建

  • 为“turboapp.approved”事件添加了新的订阅。

  • 为“turboapp.declined”事件添加了新的订阅。

1.2.2 (2019-09-03)

更新

  • 为所有列表端点添加了per_page属性。

1.2.1 (2019-08-26)

更新

  • 在商家端点中添加了leads属性。

1.2.0 (2019-07-26)

更新

  • 已更新创建API订阅的端点。某些事件添加了基于状态的选项。

  • 已更新更新API订阅的端点。某些事件添加了基于状态的选项。

1.1.0 (2019-07-24)

创建

  • 添加了获取短信模板的端点。

  • application.created事件添加了新的订阅。

  • application.updated事件添加了新的订阅。

更新

  • 在商家端点中添加了sic_code属性。

1.0.0 (2019-06-20)

创建

  • 添加了变更日志。

需求

PHP 5.5 及以上版本

安装与使用

Composer

要使用 Composer 安装绑定,请运行以下命令:

composer require iris-crm/php-sdk

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请遵循安装过程,然后运行以下命令:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = 56; // int | Application Id
$page = 56; // int | Page number
$per_page = 56; // int | Count of records per page

try {
    $result = $apiInstance->leadsApplicationsAppIdMappingsGet($app_id, $page, $per_page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsApplicationsAppIdMappingsGet: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = 56; // int | Application Id
$map_id = 56; // int | Mapping Id

try {
    $result = $apiInstance->leadsApplicationsAppIdMappingsMapIdDelete($app_id, $map_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsApplicationsAppIdMappingsMapIdDelete: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = 56; // int | Application Id
$map_id = 56; // int | Mapping Id

try {
    $result = $apiInstance->leadsApplicationsAppIdMappingsMapIdGet($app_id, $map_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsApplicationsAppIdMappingsMapIdGet: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = 56; // int | Application Id
$map_id = 56; // int | Mapping Id
$body = new \Swagger\Client\Model\ApplicationField(); // \Swagger\Client\Model\ApplicationField | 

try {
    $result = $apiInstance->leadsApplicationsAppIdMappingsMapIdPatch($app_id, $map_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsApplicationsAppIdMappingsMapIdPatch: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$app_id = 56; // int | Application Id
$body = new \Swagger\Client\Model\ApplicationField(); // \Swagger\Client\Model\ApplicationField | 

try {
    $result = $apiInstance->leadsApplicationsAppIdMappingsPost($app_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsApplicationsAppIdMappingsPost: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->leadsApplicationsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsApplicationsGet: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$lead_id = 56; // int | Lead Id
$application_id = 56; // int | Application Id
$body = new \Swagger\Client\Model\Body9(); // \Swagger\Client\Model\Body9 | 

try {
    $result = $apiInstance->leadsLeadIdSignaturesApplicationIdGeneratePost($lead_id, $application_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsLeadIdSignaturesApplicationIdGeneratePost: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$lead_id = 56; // int | Lead Id
$application_id = 56; // int | Application Id
$body = new \Swagger\Client\Model\Body10(); // \Swagger\Client\Model\Body10 | 

try {
    $result = $apiInstance->leadsLeadIdSignaturesApplicationIdSendPost($lead_id, $application_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsLeadIdSignaturesApplicationIdSendPost: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$lead_id = 56; // int | Lead Id
$page = 56; // int | Page number
$per_page = 56; // int | Count of records per page

try {
    $result = $apiInstance->leadsLeadIdSignaturesGet($lead_id, $page, $per_page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsLeadIdSignaturesGet: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ESignatureApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$application_id = 56; // int | Application Id

try {
    $result = $apiInstance->leadsSignaturesApplicationIdDownloadGet($application_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ESignatureApi->leadsSignaturesApplicationIdDownloadGet: ', $e->getMessage(), PHP_EOL;
}
?>

API 端点文档

所有 URI 都相对于 https://iriscrm.com/api/v1

模型文档

授权文档

令牌

  • 类型:API密钥
  • API密钥参数名称:X-API-KEY
  • 位置:HTTP头

作者

support@iriscrm.com