To access the debug function and add virtual toys, please do the following:
Send a POST request to https://api.lovense.com/api/lan/getQrCode with the following parameters:
token (your developer token) - string
uid (user ID) - string
You will get a response that looks like this
{
"result": true,
"code": 0,
"message": "https://apps.lovense.com/UploadFiles/qr/20220615/d9f295xx3e341cbbe60xx495xxxa7.jpg"
}
Scan the QR code received in the response with Lovense Connect and then the Debug function will appear.
Clicking on it will display a list of virtual toys that you can select.
Selecting any, will put them in the Toys section and you can access them with the same functions as a regular toy, for example a GetToys request will result in:
{
"code": "200",
"data": {
"7ce50b1cad3f": {
"nickName": "",
"fVersion": "0",
"name": "Max",
"id": "7ce50b1cad3f",
"battery": -1,
"version": "",
"status": 1
}
},
"type": "ok"
}