Maya

Fetch

Request URL:
1
POST /provider/fetch
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number" : "{Maya Serial Number}"
3
}
Copied!
Response:
1
{
2
"provider": {
3
"online": true,
4
"power": "true",
5
"electricity_left": "1",
6
"power_go": "false",
7
"direction_control": "forward",
8
"mode": "standby",
9
"status": "standby",
10
"seek": "false",
11
"suction": "normal",
12
"voice_switch": "false",
13
"clean_area": "0",
14
"clean_time": "0",
15
"clean_record": "00000000131"
16
},
17
"_links": {
18
"self": {
19
"href": "/v1/provider/fetch"
20
}
21
}
22
}
Copied!

Power

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Maya Serial Number}”,
3
"command" : "power",
4
"state" : "false" // "true", "false"
5
}
Copied!
Response:
1
{
2
"provider": {
3
"result": true,
4
"success": true,
5
"t": 1606732918436
6
},
7
"_links": {
8
"self": {
9
"href": "/v1/provider/send"
10
}
11
}
12
}
Copied!

Power Go

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Maya Serial Number}”,
3
"command" : "power_go",
4
"state" : "false" // "true", "false"
5
}
Copied!
Response:
1
{
2
"provider": {
3
"result": true,
4
"success": true,
5
"t": 1606732918436
6
},
7
"_links": {
8
"self": {
9
"href": "/v1/provider/send"
10
}
11
}
12
}
Copied!

Direction Control

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Maya Serial Number}”,
3
"command" : "direction_control",
4
"state" : "forward" // "forward","backward","turn_left","turn_right","stop"
5
}
Copied!
Response:
1
{
2
"provider": {
3
"result": true,
4
"success": true,
5
"t": 1606732918436
6
},
7
"_links": {
8
"self": {
9
"href": "/v1/provider/send"
10
}
11
}
12
}
Copied!

Mode

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Maya Serial Number}”,
3
"command" : "mode",
4
"state" : "standby" //"standby","smart","wall_follow","single","point","chargego"
5
}
Copied!
Response:
1
{
2
"provider": {
3
"result": true,
4
"success": true,
5
"t": 1606732918436
6
},
7
"_links": {
8
"self": {
9
"href": "/v1/provider/send"
10
}
11
}
12
}
Copied!

Seek

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Maya Serial Number}”,
3
"command" : "seek",
4
"state" : "false" // "true","false"
5
}
Copied!
Response:
1
{
2
"provider": {
3
"result": true,
4
"success": true,
5
"t": 1606732918436
6
},
7
"_links": {
8
"self": {
9
"href": "/v1/provider/send"
10
}
11
}
12
}
Copied!

Suction

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Maya Serial Number}”,
3
"command" : "suction",
4
"state" : "gentle" // "strong","normal","gentle"
5
}
Copied!
Response:
1
{
2
"provider": {
3
"result": true,
4
"success": true,
5
"t": 1606732918436
6
},
7
"_links": {
8
"self": {
9
"href": "/v1/provider/send"
10
}
11
}
12
}
Copied!
Last modified 5mo ago