Maya

Fetch

Request URL:

POST /provider/fetch

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number" : "{Maya Serial Number}"
}

Response:

{
"provider": {
"online": true,
"power": "true",
"electricity_left": "1",
"power_go": "false",
"direction_control": "forward",
"mode": "standby",
"status": "standby",
"seek": "false",
"suction": "normal",
"voice_switch": "false",
"clean_area": "0",
"clean_time": "0",
"clean_record": "00000000131"
},
"_links": {
"self": {
"href": "/v1/provider/fetch"
}
}
}

Power

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number": “{Maya Serial Number}”,
"command" : "power",
"state" : "false" // "true", "false"
}

Response:

{
"provider": {
"result": true,
"success": true,
"t": 1606732918436
},
"_links": {
"self": {
"href": "/v1/provider/send"
}
}
}

Power Go

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number": “{Maya Serial Number}”,
"command" : "power_go",
"state" : "false" // "true", "false"
}

Response:

{
"provider": {
"result": true,
"success": true,
"t": 1606732918436
},
"_links": {
"self": {
"href": "/v1/provider/send"
}
}
}

Direction Control

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number": “{Maya Serial Number}”,
"command" : "direction_control",
"state" : "forward" // "forward","backward","turn_left","turn_right","stop"
}

Response:

{
"provider": {
"result": true,
"success": true,
"t": 1606732918436
},
"_links": {
"self": {
"href": "/v1/provider/send"
}
}
}

Mode

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number": “{Maya Serial Number}”,
"command" : "mode",
"state" : "standby" //"standby","smart","wall_follow","single","point","chargego"
}

Response:

{
"provider": {
"result": true,
"success": true,
"t": 1606732918436
},
"_links": {
"self": {
"href": "/v1/provider/send"
}
}
}

Seek

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number": “{Maya Serial Number}”,
"command" : "seek",
"state" : "false" // "true","false"
}

Response:

{
"provider": {
"result": true,
"success": true,
"t": 1606732918436
},
"_links": {
"self": {
"href": "/v1/provider/send"
}
}
}

Suction

Request URL:

POST /provider/send

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
"serial_number": “{Maya Serial Number}”,
"command" : "suction",
"state" : "gentle" // "strong","normal","gentle"
}

Response:

{
"provider": {
"result": true,
"success": true,
"t": 1606732918436
},
"_links": {
"self": {
"href": "/v1/provider/send"
}
}
}