summaryrefslogtreecommitdiff
path: root/data/paiplugin/2022-01-12/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/paiplugin/2022-01-12/api-docs.php
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/paiplugin/2022-01-12/api-docs.php')
-rw-r--r--data/paiplugin/2022-01-12/api-docs.php1988
1 files changed, 613 insertions, 1375 deletions
diff --git a/data/paiplugin/2022-01-12/api-docs.php b/data/paiplugin/2022-01-12/api-docs.php
index 03a941d..1ad7022 100644
--- a/data/paiplugin/2022-01-12/api-docs.php
+++ b/data/paiplugin/2022-01-12/api-docs.php
@@ -1,74 +1,49 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'PaiPlugin',
- 'version' => '2022-01-12',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'PaiPlugin', 'version' => '2022-01-12'],
'components' => [
'schemas' => [],
],
'apis' => [
- 'GetUser' => [
- 'path' => '/api/v2/users',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateCampaign' => [
+ 'path' => '/api/v2/campaigns',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'parameters' => [],
- ],
- 'GetMessageConfig' => [
- 'path' => '/api/v2/users/messageConfig',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
+ 'parameters' => [
[
- 'AK' => [],
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Remark' => ['type' => 'string', 'required' => false],
+ ],
+ ],
],
],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [],
],
- 'CreateSignature' => [
- 'path' => '/api/v2/signatures',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateGroup' => [
+ 'path' => '/api/v2/groups',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -79,153 +54,135 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'Algorithm' => ['type' => 'string', 'required' => false],
+ 'Column' => ['type' => 'string', 'required' => false],
+ 'Filter' => ['type' => 'string', 'required' => false],
+ 'InferenceJobId' => ['type' => 'string', 'required' => false],
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'PhoneNumber' => ['type' => 'boolean', 'required' => false],
+ 'Project' => ['type' => 'string', 'required' => false],
+ 'Remark' => ['type' => 'string', 'required' => false],
+ 'Source' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'Table' => ['type' => 'string', 'required' => false],
+ 'Text' => ['type' => 'string', 'required' => false],
+ 'Uri' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'DeleteSignature' => [
- 'path' => '/api/v2/signatures/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateInferenceJob' => [
+ 'path' => '/api/v2/inference/jobs',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Algorithm' => ['type' => 'string', 'required' => false],
+ 'CampaignId' => ['type' => 'string', 'required' => false],
+ 'DataPath' => ['type' => 'string', 'required' => false],
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Remark' => ['type' => 'string', 'required' => false],
+ 'TargetPath' => ['type' => 'string', 'required' => false],
+ 'TrainingJobId' => ['type' => 'string', 'required' => false],
+ 'UserConfig' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'ListSignatures' => [
- 'path' => '/api/v2/signatures',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateSchedule' => [
+ 'path' => '/api/v2/schedules',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'EndTime' => ['type' => 'string', 'format' => 'int32', 'required' => false],
+ 'ExecuteTime' => ['type' => 'string', 'required' => false],
+ 'GroupId' => ['type' => 'string', 'required' => true],
+ 'Name' => ['type' => 'string', 'required' => true],
+ 'RepeatCycle' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'RepeatCycleUnit' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'RepeatTimes' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'SignName' => ['type' => 'string', 'required' => false],
+ 'SignatureId' => ['type' => 'string', 'required' => false],
+ 'TemplateCode' => ['type' => 'string', 'required' => false],
+ 'TemplateId' => ['type' => 'string', 'required' => false],
+ 'AISendStartDate' => ['type' => 'string', 'required' => false],
+ 'AISendEndDate' => ['type' => 'string', 'required' => false],
+ 'PaymentType' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'GetSignature' => [
- 'path' => '/api/v2/signatures/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateSignature' => [
+ 'path' => '/api/v2/signatures',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'Description' => ['type' => 'string', 'required' => false],
+ 'Name' => ['type' => 'string', 'required' => true],
+ ],
],
],
],
],
'CreateTemplate' => [
'path' => '/api/v2/templates',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -236,1662 +193,943 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Content' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Signature' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SignatureId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Type' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'Content' => ['type' => 'string', 'required' => false],
+ 'Description' => ['type' => 'string', 'required' => false],
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Signature' => ['type' => 'string', 'required' => false],
+ 'SignatureId' => ['type' => 'string', 'required' => false],
+ 'Type' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
],
],
- 'DeleteTemplate' => [
- 'path' => '/api/v2/templates/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateTrainingJob' => [
+ 'path' => '/api/v2/training/jobs',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'Algorithm' => ['type' => 'string', 'required' => false],
+ 'CampaignId' => ['type' => 'string', 'required' => false],
+ 'DataPath' => ['type' => 'string', 'required' => false],
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Remark' => ['type' => 'string', 'required' => false],
+ 'UserConfig' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'ListTemplates' => [
- 'path' => '/api/v2/templates',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteCampaign' => [
+ 'path' => '/api/v2/campaigns/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Content',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Type',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'GetTemplate' => [
- 'path' => '/api/v2/templates/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteGroup' => [
+ 'path' => '/api/v2/groups/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'SendMessage' => [
- 'path' => '/api/v2/messages',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteInferenceJob' => [
+ 'path' => '/api/v2/inference/jobs/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'GroupId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'OutIds' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'PhoneNumbers' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'ScheduleId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SignName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SignatureId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SmsUpExtendCodes' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'TemplateCode' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TemplateId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TemplateParams' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'PaymentType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListMessages' => [
- 'path' => '/api/v2/messages',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteSchedule' => [
+ 'path' => '/api/v2/schedules/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Datetime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'ErrorCode',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'GroupId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MessageId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PhoneNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'RequestId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'ScheduleId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Signature',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'SignatureId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TemplateCode',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TemplateId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TemplateType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListMessageMetrics' => [
- 'path' => '/api/v2/messages/metrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteSignature' => [
+ 'path' => '/api/v2/signatures/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'EndDate',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'GroupId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'ScheduleId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Signature',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'SignatureId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'StartDate',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'TemplateCode',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TemplateId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TemplateType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'CreateCampaign' => [
- 'path' => '/api/v2/campaigns',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTemplate' => [
+ 'path' => '/api/v2/templates/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Remark' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'DeleteCampaign' => [
- 'path' => '/api/v2/campaigns/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTrainingJob' => [
+ 'path' => '/api/v2/training/jobs/{Id}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListCampaigns' => [
- 'path' => '/api/v2/campaigns',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetAlgorithm' => [
+ 'path' => '/api/v2/algorithms/{Id}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Remark',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'GetCampaign' => [
'path' => '/api/v2/campaigns/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'UpdateCampaign' => [
- 'path' => '/api/v2/campaigns/{Id}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetGroup' => [
+ 'path' => '/api/v2/groups/{Id}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Remark' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListAlgorithms' => [
- 'path' => '/api/v2/algorithms',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetInferenceJob' => [
+ 'path' => '/api/v2/inference/jobs/{Id}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
+ ],
+ ],
+ 'GetMessageConfig' => [
+ 'path' => '/api/v2/users/messageConfig',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'GetSchedule' => [
+ 'path' => '/api/v2/schedules/{Id}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'GetAlgorithm' => [
- 'path' => '/api/v2/algorithms/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetSignature' => [
+ 'path' => '/api/v2/signatures/{Id}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'CreateTrainingJob' => [
- 'path' => '/api/v2/training/jobs',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTemplate' => [
+ 'path' => '/api/v2/templates/{Id}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Algorithm' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'CampaignId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DataPath' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Remark' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'UserConfig' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'Id',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'DeleteTrainingJob' => [
+ 'GetTrainingJob' => [
'path' => '/api/v2/training/jobs/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListTrainingJobs' => [
- 'path' => '/api/v2/training/jobs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetUser' => [
+ 'path' => '/api/v2/users',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [],
+ ],
+ 'ListAlgorithms' => [
+ 'path' => '/api/v2/algorithms',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'CampaignId',
+ 'name' => 'Id',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ ],
+ ],
+ 'ListCampaigns' => [
+ 'path' => '/api/v2/campaigns',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
],
+ ],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'Remark',
+ 'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Status',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
- 'name' => 'TrainingScheduleId',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
- 'name' => 'CampaignName',
+ 'name' => 'Remark',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'GetTrainingJob' => [
- 'path' => '/api/v2/training/jobs/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListGroups' => [
+ 'path' => '/api/v2/groups',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- ],
- 'CreateInferenceJob' => [
- 'path' => '/api/v2/inference/jobs',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Algorithm' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'CampaignId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DataPath' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Remark' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TargetPath' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TrainingJobId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'UserConfig' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
- ],
- ],
- 'DeleteInferenceJob' => [
- 'path' => '/api/v2/inference/jobs/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'PhoneNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'Remark',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Source',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
'ListInferenceJobs' => [
'path' => '/api/v2/inference/jobs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'CampaignId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'Remark',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'CampaignName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'TrainingJobName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'GetInferenceJob' => [
- 'path' => '/api/v2/inference/jobs/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListMessageMetrics' => [
+ 'path' => '/api/v2/messages/metrics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'EndDate',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true],
],
- ],
- ],
- 'CreateGroup' => [
- 'path' => '/api/v2/groups',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Algorithm' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Column' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Filter' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'InferenceJobId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'PhoneNumber' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'Project' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Remark' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Source' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'Table' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Text' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Uri' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
- ],
- ],
- 'DeleteGroup' => [
- 'path' => '/api/v2/groups/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'ScheduleId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Signature',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'SignatureId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'StartDate',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'TemplateCode',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'TemplateType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'ListGroups' => [
- 'path' => '/api/v2/groups',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListMessages' => [
+ 'path' => '/api/v2/messages',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Name',
+ 'name' => 'Datetime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'ErrorCode',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'MessageId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PhoneNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Remark',
+ 'name' => 'RequestId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Source',
+ 'name' => 'ScheduleId',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Signature',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'SignatureId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'TemplateCode',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'TemplateType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'GetGroup' => [
- 'path' => '/api/v2/groups/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListSchedules' => [
+ 'path' => '/api/v2/schedules',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'CreateSchedule' => [
- 'path' => '/api/v2/schedules',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListSignatures' => [
+ 'path' => '/api/v2/signatures',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'EndTime' => [
- 'type' => 'string',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'ExecuteTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'GroupId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'RepeatCycle' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'RepeatCycleUnit' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'RepeatTimes' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'SignName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SignatureId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TemplateCode' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'TemplateId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'AISendStartDate' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'AISendEndDate' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'PaymentType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'DeleteSchedule' => [
- 'path' => '/api/v2/schedules/{Id}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTemplates' => [
+ 'path' => '/api/v2/templates',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'Id',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'Content',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
],
],
- 'ListSchedules' => [
- 'path' => '/api/v2/schedules',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTrainingJobs' => [
+ 'path' => '/api/v2/training/jobs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
+ 'name' => 'CampaignId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Remark',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Status',
'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'TrainingScheduleId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'CampaignName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ 'SendMessage' => [
+ 'path' => '/api/v2/messages',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'GroupId' => ['type' => 'string', 'required' => false],
+ 'OutIds' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ 'PhoneNumbers' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ 'ScheduleId' => ['type' => 'string', 'required' => false],
+ 'SignName' => ['type' => 'string', 'required' => false],
+ 'SignatureId' => ['type' => 'string', 'required' => false],
+ 'SmsUpExtendCodes' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ 'TemplateCode' => ['type' => 'string', 'required' => false],
+ 'TemplateId' => ['type' => 'string', 'required' => false],
+ 'TemplateParams' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ 'PaymentType' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'GetSchedule' => [
- 'path' => '/api/v2/schedules/{Id}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateCampaign' => [
+ 'path' => '/api/v2/campaigns/{Id}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Id',
'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Remark' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'paiplugin.cn-hangzhou.aliyuncs.com',
- ],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paiplugin.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paiplugin.cn-hangzhou.aliyuncs.com', 'vpc' => 'paiplugin-vpc.cn-hangzhou.aliyuncs.com'],
],
];