Standard JS SDK

This implementation is based on the Official Lovense Basic JS SDK Documentation.

1. Get Auth Token

First, obtain an authentication token using your developer credentials.

Request:

URL: https://api.lovense-api.com/api/basicApi/getToken
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...

2. Initialize the SDK

Request:

URL: `LovenseBasicSdk` initialized
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...

3. Get QR Code

1 Download Lovense Remote for mobile
2 Connect Lovense Toys on Remote
3 Scan QR Code to allow control
e.g. Livestream Display
Scan QR Code
QR Code will appear here

Request:

URL: Get QR Code
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...

3.1 Connect Lovense APP (Mobile Only)

This method can directly launch the app on a mobile web page and automatically complete the code scanning. This function only works on mobile devices (iPhone, iPad, Android).

Request:

URL: basicSdkInstance.connectLovenseAPP()
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...

4. Search For Toys

Request:

URL:
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...

5. Test Function Commands

Request:

URL: basicSDKInstance.sendToyCommand()
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...

6. Test Pattern Commands

Strength values (0-20) separated by semicolons. Each value runs for the specified interval.

Request:

URL: basicSdkInstance.sendPatternCommand()
Timestamp: -
Request will appear here...

Response:

Timestamp: -
Response will appear here...