summaryrefslogtreecommitdiff
path: root/data/en_us/aligenie/oauth2_1.0
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/aligenie/oauth2_1.0')
-rw-r--r--data/en_us/aligenie/oauth2_1.0/api-docs.php769
1 files changed, 143 insertions, 626 deletions
diff --git a/data/en_us/aligenie/oauth2_1.0/api-docs.php b/data/en_us/aligenie/oauth2_1.0/api-docs.php
index c03e466..e4c52df 100644
--- a/data/en_us/aligenie/oauth2_1.0/api-docs.php
+++ b/data/en_us/aligenie/oauth2_1.0/api-docs.php
@@ -1,35 +1,18 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'AliGenie',
- 'product' => 'AliGenie',
- 'version' => 'oauth2_1.0',
- ],
+ 'info' => ['style' => 'AliGenie', 'product' => 'AliGenie', 'version' => 'oauth2_1.0'],
'directories' => [
[
'id' => 196076,
'title' => null,
'type' => 'directory',
- 'children' => [
- 'GetSmartHomeSceneList',
- 'ExecuteSmartHomeScene',
- 'GetUserBasicInfo',
- 'GetUserPhone',
- 'GetSceneList',
- 'ExecuteScene',
- 'QueryDeviceList',
- 'PushDeviceNotification',
- 'CreatePlayingList',
- ],
+ 'children' => ['GetSmartHomeSceneList', 'ExecuteSmartHomeScene', 'GetUserBasicInfo', 'GetUserPhone', 'GetSceneList', 'ExecuteScene', 'QueryDeviceList', 'PushDeviceNotification', 'CreatePlayingList'],
],
[
'id' => 196077,
'title' => null,
'type' => 'directory',
- 'children' => [
- 'OAuth2TokenEndpoint',
- 'OAuth2RevocationEndpoint',
- ],
+ 'children' => ['OAuth2TokenEndpoint', 'OAuth2RevocationEndpoint'],
],
],
'components' => [
@@ -39,25 +22,17 @@
'GetSmartHomeSceneList' => [
'summary' => '获取场景列表(全屋)',
'path' => '/v1.0/oauth2/iot/smart_home/scene/list',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
@@ -65,12 +40,7 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '435CF567-12DC-5761-AFA8-650774502E2D'."\n",
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '', 'type' => 'string', 'example' => '435CF567-12DC-5761-AFA8-650774502E2D'."\n"],
'FamilySceneList' => [
'description' => '',
'type' => 'array',
@@ -78,32 +48,16 @@
'description' => '',
'type' => 'object',
'properties' => [
- 'familyId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2iS1AH5eo8qrw1PYBL/Ulq==',
- ],
- 'familyName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
+ 'familyId' => ['description' => '', 'type' => 'string', 'example' => '2iS1AH5eo8qrw1PYBL/Ulq=='],
+ 'familyName' => ['description' => '', 'type' => 'string', 'example' => ''],
'sceneList' => [
'description' => '',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'SceneId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '6813AH5586qrw1P5ln/123==',
- ],
- 'SceneName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
+ 'SceneId' => ['description' => '', 'type' => 'string', 'example' => '6813AH5586qrw1P5ln/123=='],
+ 'SceneName' => ['description' => '', 'type' => 'string', 'example' => ''],
],
],
],
@@ -114,55 +68,33 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"435CF567-12DC-5761-AFA8-650774502E2D\\\\n\\",\\n \\"FamilySceneList\\": [\\n {\\n \\"familyId\\": \\"2iS1AH5eo8qrw1PYBL/Ulq==\\",\\n \\"familyName\\": \\"我的家\\",\\n \\"sceneList\\": [\\n {\\n \\"SceneId\\": \\"6813AH5586qrw1P5ln/123==\\",\\n \\"SceneName\\": \\"温馨模式\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
],
'ExecuteSmartHomeScene' => [
'summary' => '执行场景(全屋)',
'path' => '/v1.0/oauth2/iot/smart_home/scene/execute',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- ],
+ 'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'FamilyId',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '2iS1AH5eo8qrw1PYBL/Ulq==',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => '2iS1AH5eo8qrw1PYBL/Ulq=='],
],
[
'name' => 'SceneId',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Y1lCALepjYmTEouxsTrkjB==',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'example' => 'Y1lCALepjYmTEouxsTrkjB=='],
],
],
'responses' => [
@@ -172,43 +104,28 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '435CF567-12DC-5761-AFA8-650774502E2D',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '', 'type' => 'string', 'example' => '435CF567-12DC-5761-AFA8-650774502E2D'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"435CF567-12DC-5761-AFA8-650774502E2D\\"\\n}","type":"json"}]',
],
'GetUserBasicInfo' => [
'summary' => '获取',
'path' => '/v1.0/oauth2/users/basic',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
@@ -217,78 +134,42 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'OpenId' => [
- 'title' => '用户openId',
- 'description' => '',
- 'type' => 'string',
- 'example' => '3hPPBd9YuhfJQCzZ/07AAWdoO3K8zCb/KAqW96zPHXPiFkzjB/JfcWuuFHQQDaGZ4wVbNMV6wYuj075p/rhVLg==',
- ],
+ 'OpenId' => ['title' => '用户openId', 'description' => '', 'type' => 'string', 'example' => '3hPPBd9YuhfJQCzZ/07AAWdoO3K8zCb/KAqW96zPHXPiFkzjB/JfcWuuFHQQDaGZ4wVbNMV6wYuj075p/rhVLg=='],
'UnionIds' => [
'title' => '用户unionId列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'OrganizationId' => [
- 'title' => '组织id',
- 'type' => 'string',
- ],
- 'UnionId' => [
- 'title' => 'unionId',
- 'type' => 'string',
- ],
+ 'OrganizationId' => ['title' => '组织id', 'type' => 'string'],
+ 'UnionId' => ['title' => 'unionId', 'type' => 'string'],
],
],
],
- 'Nickname' => [
- 'title' => '用户昵称',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'xxxxxx',
- ],
- 'AvatarUrl' => [
- 'title' => '用户头像地址',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'https://xxxxxx',
- ],
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => '4070039E-5822-1F32-9295-1D2883E48BA5',
- ],
+ 'Nickname' => ['title' => '用户昵称', 'description' => '', 'type' => 'string', 'example' => 'xxxxxx'],
+ 'AvatarUrl' => ['title' => '用户头像地址', 'description' => '', 'type' => 'string', 'example' => 'https://xxxxxx'],
+ 'RequestId' => ['title' => '请求ID', 'description' => '', 'type' => 'string', 'example' => '4070039E-5822-1F32-9295-1D2883E48BA5'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OpenId\\": \\"3hPPBd9YuhfJQCzZ/07AAWdoO3K8zCb/KAqW96zPHXPiFkzjB/JfcWuuFHQQDaGZ4wVbNMV6wYuj075p/rhVLg==\\",\\n \\"UnionIds\\": [\\n {\\n \\"OrganizationId\\": \\"\\",\\n \\"UnionId\\": \\"\\"\\n }\\n ],\\n \\"Nickname\\": \\"xxxxxx\\",\\n \\"AvatarUrl\\": \\"https://xxxxxx\\",\\n \\"RequestId\\": \\"4070039E-5822-1F32-9295-1D2883E48BA5\\"\\n}","type":"json"}]',
],
'GetUserPhone' => [
'summary' => '获取天猫精灵用户绑定的手机号',
'path' => '/v1.0/oauth2/user/profile/phone',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
@@ -297,49 +178,29 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'Phone' => [
- 'title' => '天猫精灵用户绑定的手机号',
- 'description' => '',
- 'type' => 'string',
- 'example' => '18612345678',
- ],
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'CEADB586-51CB-1B6B-95BD-AB85A7A08E97',
- ],
+ 'Phone' => ['title' => '天猫精灵用户绑定的手机号', 'description' => '', 'type' => 'string', 'example' => '18612345678'],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'CEADB586-51CB-1B6B-95BD-AB85A7A08E97'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Phone\\": \\"18612345678\\",\\n \\"RequestId\\": \\"CEADB586-51CB-1B6B-95BD-AB85A7A08E97\\"\\n}","type":"json"}]',
],
'GetSceneList' => [
'summary' => '获取场景列表',
'path' => '/v1.0/oauth2/iot/scene/list',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
@@ -357,71 +218,38 @@
'description' => '',
'type' => 'object',
'properties' => [
- 'SceneId' => [
- 'title' => '场景Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '840960b85c3c48e0bd7260c1718295fd',
- ],
- 'SceneName' => [
- 'title' => '场景名称',
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
+ 'SceneId' => ['title' => '场景Id', 'description' => '', 'type' => 'string', 'example' => '840960b85c3c48e0bd7260c1718295fd'],
+ 'SceneName' => ['title' => '场景名称', 'description' => '', 'type' => 'string', 'example' => ''],
],
],
],
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => '435CF567-58DC-5761-AFA8-650772602E2D',
- ],
+ 'RequestId' => ['title' => '请求ID', 'description' => '', 'type' => 'string', 'example' => '435CF567-58DC-5761-AFA8-650772602E2D'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"SceneList\\": [\\n {\\n \\"SceneId\\": \\"840960b85c3c48e0bd7260c1718295fd\\",\\n \\"SceneName\\": \\"回家场景\\"\\n }\\n ],\\n \\"RequestId\\": \\"435CF567-58DC-5761-AFA8-650772602E2D\\"\\n}","type":"json"}]',
],
'ExecuteScene' => [
'summary' => '执行场景',
'path' => '/v1.0/oauth2/iot/scene/execute',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- ],
+ 'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'SceneId',
'in' => 'formData',
- 'schema' => [
- 'title' => '场景Id',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'a84a55aa410e460a9ac753570c76fecc',
- ],
+ 'schema' => ['title' => '场景Id', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'a84a55aa410e460a9ac753570c76fecc'],
],
],
'responses' => [
@@ -431,42 +259,28 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '191C79AD-F9F9-531E-B8C1-73DF6433B920',
- ],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '191C79AD-F9F9-531E-B8C1-73DF6433B920'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"191C79AD-F9F9-531E-B8C1-73DF6433B920\\"\\n}","type":"json"}]',
],
'QueryDeviceList' => [
'summary' => '查询设备列表',
'path' => '/v1.0/oauth2/device/list',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- ],
+ 'systemTags' => ['operationType' => 'get'],
'parameters' => [],
'responses' => [
200 => [
@@ -475,18 +289,8 @@
'description' => '',
'type' => 'object',
'properties' => [
- 'EncodeType' => [
- 'title' => '实体类型',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'PROJECT_ID',
- ],
- 'EncodeKey' => [
- 'title' => '实体key',
- 'description' => '',
- 'type' => 'string',
- 'example' => '125****0946',
- ],
+ 'EncodeType' => ['title' => '实体类型', 'description' => '', 'type' => 'string', 'example' => 'PROJECT_ID'],
+ 'EncodeKey' => ['title' => '实体key', 'description' => '', 'type' => 'string', 'example' => '125****0946'],
'DeviceList' => [
'title' => '设备列表',
'description' => '',
@@ -494,12 +298,7 @@
'items' => [
'type' => 'object',
'properties' => [
- 'DeviceOpenId' => [
- 'title' => '设备唯一标识',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'jMR2********ojVJXk=',
- ],
+ 'DeviceOpenId' => ['title' => '设备唯一标识', 'description' => '', 'type' => 'string', 'example' => 'jMR2********ojVJXk='],
'DeviceUnionIds' => [
'title' => '设备UnionId信息列表',
'type' => 'array',
@@ -507,78 +306,40 @@
'title' => '设备UnionId信息',
'type' => 'object',
'properties' => [
- 'OrganizationId' => [
- 'title' => '组织ID',
- 'type' => 'string',
- ],
- 'UnionId' => [
- 'title' => 'UnionId',
- 'type' => 'string',
- ],
+ 'OrganizationId' => ['title' => '组织ID', 'type' => 'string'],
+ 'UnionId' => ['title' => 'UnionId', 'type' => 'string'],
],
],
],
- 'DeviceName' => [
- 'title' => '设备名称',
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'DeviceIconUrl' => [
- 'title' => '设备图片地址',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'https://XXXXXX',
- ],
- 'Online' => [
- 'title' => '在线状态,1:在线,0离线',
- 'description' => '',
- 'type' => 'string',
- 'example' => '1',
- ],
+ 'DeviceName' => ['title' => '设备名称', 'description' => '', 'type' => 'string', 'example' => ''],
+ 'DeviceIconUrl' => ['title' => '设备图片地址', 'description' => '', 'type' => 'string', 'example' => 'https://XXXXXX'],
+ 'Online' => ['title' => '在线状态,1:在线,0离线', 'description' => '', 'type' => 'string', 'example' => '1'],
],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '0EC7*726E',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '', 'type' => 'string', 'example' => '0EC7*726E'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"EncodeType\\": \\"PROJECT_ID\\",\\n \\"EncodeKey\\": \\"125****0946\\",\\n \\"DeviceList\\": [\\n {\\n \\"DeviceOpenId\\": \\"jMR2********ojVJXk=\\",\\n \\"DeviceUnionIds\\": [\\n {\\n \\"OrganizationId\\": \\"123456\\",\\n \\"UnionId\\": \\"cJwXrIut3zIgcKyCiS7aKMAiEiE\\"\\n }\\n ],\\n \\"DeviceName\\": \\"CC10电池版\\",\\n \\"DeviceIconUrl\\": \\"https://XXXXXX\\",\\n \\"Online\\": \\"1\\"\\n }\\n ],\\n \\"RequestId\\": \\"0EC7*726E\\"\\n}","type":"json"}]',
],
'PushDeviceNotification' => [
'summary' => '推送设备通知',
'path' => '/v1.0/oauth2/device/notification/push',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- ],
+ 'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'body',
@@ -602,67 +363,24 @@
'type' => 'string',
'required' => false,
'example' => 'DEVICE_OPEN_ID',
- 'enum' => [
- 'DEVICE_UNION_ID',
- 'DEVICE_OPEN_ID',
- ],
- ],
- 'TargetIdentity' => [
- 'title' => '推送目标类型对应的标识值。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2VpiDQ6aMjxz******Eo7r6e08oIVZ3fKrm5TyEfY=',
+ 'enum' => ['DEVICE_UNION_ID', 'DEVICE_OPEN_ID'],
],
+ 'TargetIdentity' => ['title' => '推送目标类型对应的标识值。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => '2VpiDQ6aMjxz******Eo7r6e08oIVZ3fKrm5TyEfY='],
],
'required' => true,
],
- 'MessageTemplateId' => [
- 'title' => '消息模板,在天猫精灵应用平台中申请消息模板时得到的模板id。',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '2iU81*****G9elJ',
- ],
+ 'MessageTemplateId' => ['title' => '消息模板,在天猫精灵应用平台中申请消息模板时得到的模板id。', 'description' => '', 'type' => 'string', 'required' => true, 'example' => '2iU81*****G9elJ'],
'PlaceHolder' => [
'title' => '占位符信息,例如:模板是【你好,{nick}!】这里可以是:{"nick":"小甜甜"}',
'description' => '',
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '',
- 'description' => '',
- ],
- ],
- 'EncodeType' => [
- 'title' => '实体类型',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'PROJECT_ID',
- ],
- 'EncodeKey' => [
- 'title' => '实体key',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1923792******8R7392',
- ],
- 'OrganizationId' => [
- 'title' => '组织标识,推送类型是XX_UNION_XX时才需要配。当存在多种途径获取猫精设备或用户标识且又需要能互通的情况下需要找平台申请组织,申请通过后由平台分配得到。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '29837******2938',
- ],
- 'IsDebug' => [
- 'title' => '调试标识',
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
+ 'additionalProperties' => ['type' => 'string', 'example' => '', 'description' => ''],
],
+ 'EncodeType' => ['title' => '实体类型', 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'PROJECT_ID'],
+ 'EncodeKey' => ['title' => '实体key', 'description' => '', 'type' => 'string', 'required' => true, 'example' => '1923792******8R7392'],
+ 'OrganizationId' => ['title' => '组织标识,推送类型是XX_UNION_XX时才需要配。当存在多种途径获取猫精设备或用户标识且又需要能互通的情况下需要找平台申请组织,申请通过后由平台分配得到。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => '29837******2938'],
+ 'IsDebug' => ['title' => '调试标识', 'description' => '', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
@@ -676,13 +394,7 @@
'description' => '',
'type' => 'object',
'properties' => [
- 'SubjectId' => [
- 'title' => '猫精应用id,【开发者平台-技能应用】创建应用后得到的应用id',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '12797******304102',
- ],
+ 'SubjectId' => ['title' => '猫精应用id,【开发者平台-技能应用】创建应用后得到的应用id', 'description' => '', 'type' => 'string', 'required' => false, 'example' => '12797******304102'],
],
'required' => false,
],
@@ -695,46 +407,29 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => '908FA068-529C-0C20-8DB5-63B0EF7CFF1F',
- ],
+ 'requestId' => ['title' => '请求ID', 'description' => '', 'type' => 'string', 'example' => '908FA068-529C-0C20-8DB5-63B0EF7CFF1F'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"908FA068-529C-0C20-8DB5-63B0EF7CFF1F\\"\\n}","type":"json"}]',
],
'CreatePlayingList' => [
'summary' => '创建播放列表',
'path' => '/v1.0/oauth2/content/playing/create',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'OAuth 2.0 Bearer Token' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- ],
+ 'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'OpenCreatePlayingListRequest',
@@ -745,15 +440,9 @@
'description' => '',
'type' => 'object',
'properties' => [
- 'PlayFrom' => [
- 'title' => '播放来源,配置播控能力的唯一标识'."\n"
- ."\n"
- .'可空,默认为default',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'default',
- ],
+ 'PlayFrom' => ['title' => '播放来源,配置播控能力的唯一标识'."\n"
+ ."\n"
+ .'可空,默认为default', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'default'],
'ContentType' => [
'title' => '播放内容类型'."\n"
."\n"
@@ -762,11 +451,7 @@
'type' => 'string',
'required' => true,
'example' => 'content',
- 'enum' => [
- 'content',
- 'album',
- 'collect',
- ],
+ 'enum' => ['content', 'album', 'collect'],
],
'ContentList' => [
'title' => '播放内容列表'."\n"
@@ -777,45 +462,19 @@
'items' => [
'type' => 'object',
'properties' => [
- 'RawId' => [
- 'title' => '三方id'."\n"
- ."\n"
- .'如果是内容则是内容id;如果是专辑则是专辑id'."\n",
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345',
- ],
- 'Source' => [
- 'title' => '来源'."\n",
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ximalayaH5',
- ],
+ 'RawId' => ['title' => '三方id'."\n"
+ ."\n"
+ .'如果是内容则是内容id;如果是专辑则是专辑id'."\n", 'description' => '', 'type' => 'string', 'required' => true, 'example' => '12345'],
+ 'Source' => ['title' => '来源'."\n", 'description' => '', 'type' => 'string', 'required' => true, 'example' => 'ximalayaH5'],
],
'required' => true,
],
'required' => true,
],
- 'Index' => [
- 'title' => '播放的index'."\n"
- ."\n"
- .'可空。默认为0,表示从头播放',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'NeedAlbumContinued' => [
- 'title' => '专辑是否续播,比如上次专辑听到第五集,是否继续从第五集开始。默认为true',
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'true',
- ],
+ 'Index' => ['title' => '播放的index'."\n"
+ ."\n"
+ .'可空。默认为0,表示从头播放', 'description' => '', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'NeedAlbumContinued' => ['title' => '专辑是否续播,比如上次专辑听到第五集,是否继续从第五集开始。默认为true', 'description' => '', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'],
'PlayMode' => [
'title' => '播放模式'."\n"
."\n"
@@ -824,24 +483,10 @@
'type' => 'string',
'required' => false,
'example' => 'Normal',
- 'enum' => [
- 'Repeat',
- 'Shuffle',
- 'RepeatOne',
- 'Normal',
- ],
- ],
- 'ExtendInfo' => [
- 'title' => '扩展信息',
- 'description' => '',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{}',
- ],
- 'RequestId' => [
- 'title' => '系统RequestId,调用方不需要传 系统自动填写',
- 'type' => 'string',
+ 'enum' => ['Repeat', 'Shuffle', 'RepeatOne', 'Normal'],
],
+ 'ExtendInfo' => ['title' => '扩展信息', 'description' => '', 'type' => 'object', 'required' => false, 'example' => '{}'],
+ 'RequestId' => ['title' => '系统RequestId,调用方不需要传 系统自动填写', 'type' => 'string'],
],
'required' => true,
],
@@ -861,42 +506,19 @@
'type' => 'string',
'required' => true,
'example' => 'UC_CLIENT_ID',
- 'enum' => [
- 'UC_CLIENT_ID',
- ],
- ],
- 'EncodeKey' => [
- 'title' => '编码类型对应的值,此处填写该产品所在项目的Project ID。请在天猫精灵AI平台的控制台中查看。',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '123',
+ 'enum' => ['UC_CLIENT_ID'],
],
+ 'EncodeKey' => ['title' => '编码类型对应的值,此处填写该产品所在项目的Project ID。请在天猫精灵AI平台的控制台中查看。', 'description' => '', 'type' => 'string', 'required' => true, 'example' => '123'],
'IdType' => [
'title' => '设备Id的类型 : OPEN_ID:默认的设备ID标识。 UNION_ID: 组织维度的设备ID标识,需要提前在开放平台申请组织。',
'description' => '',
'type' => 'string',
'required' => true,
'example' => 'OPEN_ID',
- 'enum' => [
- 'OPEN_ID',
- 'UNION_ID',
- ],
- ],
- 'Id' => [
- 'title' => '设备标识,填写deviceOpenId或deviceUnionId的值。',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '123',
- ],
- 'OrganizationId' => [
- 'title' => '组织ID,如果IdType为UNION_ID时必填。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
+ 'enum' => ['OPEN_ID', 'UNION_ID'],
],
+ 'Id' => ['title' => '设备标识,填写deviceOpenId或deviceUnionId的值。', 'description' => '', 'type' => 'string', 'required' => true, 'example' => '123'],
+ 'OrganizationId' => ['title' => '组织ID,如果IdType为UNION_ID时必填。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => '1'],
],
'required' => true,
],
@@ -909,90 +531,50 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '10002398812',
- ],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '10002398812'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"10002398812\\"\\n}","type":"json"}]',
],
'OAuth2TokenEndpoint' => [
'summary' => 'OAuth2令牌端点',
'path' => '/v1.0/oauth2/token',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AliGenie_Auth_SPI' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- ],
+ 'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'GrantType',
'in' => 'formData',
- 'schema' => [
- 'title' => '授权类型,必填。'."\n"
- .'authorization_code: 用授权码来获取访问令牌'."\n"
- .'refresh_token: 刷新访问令牌',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'authorization_code',
- ],
+ 'schema' => ['title' => '授权类型,必填。'."\n"
+ .'authorization_code: 用授权码来获取访问令牌'."\n"
+ .'refresh_token: 刷新访问令牌', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'authorization_code'],
],
[
'name' => 'Code',
'in' => 'formData',
- 'schema' => [
- 'title' => '授权码,通过授权码换取访问令牌时必填。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rf3mi4JOU-xRIX2zEuRLHi-U9mPnvISeSphbwiBHJ5mEKZtG-xJsbBWrq8RmhQEPRYh0JOd3DaS_VZ90soD_YrsT4OBtgD06DmdIKL2_5KFfI6p_SjXX2-UMJuGfXDkB',
- ],
+ 'schema' => ['title' => '授权码,通过授权码换取访问令牌时必填。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'rf3mi4JOU-xRIX2zEuRLHi-U9mPnvISeSphbwiBHJ5mEKZtG-xJsbBWrq8RmhQEPRYh0JOd3DaS_VZ90soD_YrsT4OBtgD06DmdIKL2_5KFfI6p_SjXX2-UMJuGfXDkB'],
],
[
'name' => 'RedirectUri',
'in' => 'formData',
- 'schema' => [
- 'title' => '重定向地址,该值必须与您发起授权请求的参数值完全一致。通过授权码换取访问令牌时必填。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://xxx.xxx.com/xxx',
- ],
+ 'schema' => ['title' => '重定向地址,该值必须与您发起授权请求的参数值完全一致。通过授权码换取访问令牌时必填。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'https://xxx.xxx.com/xxx'],
],
[
'name' => 'RefreshToken',
'in' => 'formData',
- 'schema' => [
- 'title' => '刷新令牌,刷新访问令牌时必填。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zsEcmaUeb8-NZW4IIUDD7qdgBNflrj6fH8BXJYbW9iXihZTgvbcr1_utC9p5HJLn_lXVwhfivBTgUQZBCGvGl5lxqaxFhmFtt-OrBduFQKL9x8p2lpEMKlxuKHZZZJ3A',
- ],
+ 'schema' => ['title' => '刷新令牌,刷新访问令牌时必填。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'zsEcmaUeb8-NZW4IIUDD7qdgBNflrj6fH8BXJYbW9iXihZTgvbcr1_utC9p5HJLn_lXVwhfivBTgUQZBCGvGl5lxqaxFhmFtt-OrBduFQKL9x8p2lpEMKlxuKHZZZJ3A'],
],
],
'responses' => [
@@ -1002,100 +584,45 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'AccessToken' => [
- 'title' => '天猫精灵给您的应用颁发的令牌。',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'UJMiksSwuMJvwXrJLULMykSw6qZ6VqaxOkN4qd5cW1Q4HhsLxvUR5xVOIv1WB3br5LoP20lPa8xiYLSMbt8JqHACXdSdw7fNkhRTIHnadxWW5jfDg7BELUB0FcFfPiv0',
- ],
- 'ExpiresIn' => [
- 'title' => '访问令牌的剩余生命周期(以秒为单位)。',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '604799',
- ],
- 'RefreshToken' => [
- 'title' => '可用于获取新访问令牌的令牌。',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'zsEcmaUeb8-NZW4IIUDD7qdgBNflrj6fH8BXJYbW9iXihZTgvbcr1_utC9p5HJLn_lXVwhfivBTgUQZBCGvGl5lxqaxFhmFtt-OrBduFQKL9x8p2lpEMKlxuKHZZZJ3A'."\n",
- ],
- 'Scope' => [
- 'title' => 'access_token 授予的访问权限范围,表示为以空格分隔、区分大小写的字符串列表。',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'aligenie:user:basic:read aligenie:iot:scene:read',
- ],
- 'TokenType' => [
- 'title' => '返回的令牌的类型。此时,此字段的值始终设置为 Bearer。',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Bearer',
- ],
- 'RequestId' => [
- 'title' => '请求ID。',
- 'description' => '',
- 'type' => 'string',
- 'example' => '4070039E-5822-1F32-9295-1D2883E48BA5',
- ],
+ 'AccessToken' => ['title' => '天猫精灵给您的应用颁发的令牌。', 'description' => '', 'type' => 'string', 'example' => 'UJMiksSwuMJvwXrJLULMykSw6qZ6VqaxOkN4qd5cW1Q4HhsLxvUR5xVOIv1WB3br5LoP20lPa8xiYLSMbt8JqHACXdSdw7fNkhRTIHnadxWW5jfDg7BELUB0FcFfPiv0'],
+ 'ExpiresIn' => ['title' => '访问令牌的剩余生命周期(以秒为单位)。', 'description' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '604799'],
+ 'RefreshToken' => ['title' => '可用于获取新访问令牌的令牌。', 'description' => '', 'type' => 'string', 'example' => 'zsEcmaUeb8-NZW4IIUDD7qdgBNflrj6fH8BXJYbW9iXihZTgvbcr1_utC9p5HJLn_lXVwhfivBTgUQZBCGvGl5lxqaxFhmFtt-OrBduFQKL9x8p2lpEMKlxuKHZZZJ3A'."\n"],
+ 'Scope' => ['title' => 'access_token 授予的访问权限范围,表示为以空格分隔、区分大小写的字符串列表。', 'description' => '', 'type' => 'string', 'example' => 'aligenie:user:basic:read aligenie:iot:scene:read'],
+ 'TokenType' => ['title' => '返回的令牌的类型。此时,此字段的值始终设置为 Bearer。', 'description' => '', 'type' => 'string', 'example' => 'Bearer'],
+ 'RequestId' => ['title' => '请求ID。', 'description' => '', 'type' => 'string', 'example' => '4070039E-5822-1F32-9295-1D2883E48BA5'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccessToken\\": \\"UJMiksSwuMJvwXrJLULMykSw6qZ6VqaxOkN4qd5cW1Q4HhsLxvUR5xVOIv1WB3br5LoP20lPa8xiYLSMbt8JqHACXdSdw7fNkhRTIHnadxWW5jfDg7BELUB0FcFfPiv0\\",\\n \\"ExpiresIn\\": 604799,\\n \\"RefreshToken\\": \\"zsEcmaUeb8-NZW4IIUDD7qdgBNflrj6fH8BXJYbW9iXihZTgvbcr1_utC9p5HJLn_lXVwhfivBTgUQZBCGvGl5lxqaxFhmFtt-OrBduFQKL9x8p2lpEMKlxuKHZZZJ3A\\\\n\\",\\n \\"Scope\\": \\"aligenie:user:basic:read aligenie:iot:scene:read\\",\\n \\"TokenType\\": \\"Bearer\\",\\n \\"RequestId\\": \\"4070039E-5822-1F32-9295-1D2883E48BA5\\"\\n}","type":"json"}]',
],
'OAuth2RevocationEndpoint' => [
'summary' => 'OAuth2令牌撤销端点',
'path' => '/v1.0/oauth2/revoke',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AliGenie_Auth_SPI' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- ],
+ 'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'Token',
'in' => 'formData',
- 'schema' => [
- 'title' => '要撤销的令牌,可以是访问令牌或刷新令牌。'."\n"
- .'如果传递的是access_token,则仅会撤销access_token,refresh_token依然可以刷新获取新的访问令牌。'."\n"
- .'如果传递的是refresh_token,则会同时撤销access_token和对应的refresh_token。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'UJMiksSwuMJvwXrJLULMykSw6qZ6VqaxOkN4qd5cW1Q4HhsLxvUR5xVOIv1WB3br5LoP20lPa8xiYLSMbt8JqHACXdSdw7fNkhRTIHnadxWW5jfDg7BELUB0FcFfPiv0',
- ],
+ 'schema' => ['title' => '要撤销的令牌,可以是访问令牌或刷新令牌。'."\n"
+ .'如果传递的是access_token,则仅会撤销access_token,refresh_token依然可以刷新获取新的访问令牌。'."\n"
+ .'如果传递的是refresh_token,则会同时撤销access_token和对应的refresh_token。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'UJMiksSwuMJvwXrJLULMykSw6qZ6VqaxOkN4qd5cW1Q4HhsLxvUR5xVOIv1WB3br5LoP20lPa8xiYLSMbt8JqHACXdSdw7fNkhRTIHnadxWW5jfDg7BELUB0FcFfPiv0'],
],
[
'name' => 'TokenTypeHint',
'in' => 'formData',
- 'schema' => [
- 'title' => '令牌类型的提示,可以是access_token或refresh_token,用于帮助授权服务器理解要撤销的是哪种类型的令牌。',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'refresh_token',
- ],
+ 'schema' => ['title' => '令牌类型的提示,可以是access_token或refresh_token,用于帮助授权服务器理解要撤销的是哪种类型的令牌。', 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'refresh_token'],
],
],
'responses' => [
@@ -1105,26 +632,16 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4070039E-5822-1F32-9295-1D2883E48BA5',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4070039E-5822-1F32-9295-1D2883E48BA5'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4070039E-5822-1F32-9295-1D2883E48BA5\\"\\n}","type":"json"}]',
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-zhangjiakou',
- 'endpoint' => 'openapi.aligenie.com',
- ],
+ ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'openapi.aligenie.com'],
],
];