API Doc

API Name:Remote Play
API Description:This interface adopts a socket connection communication method,
socket address:ws://app.hismiths.com
socket port:8886
Download Demo
Establish a remote play connection with the server-request parameters
parameters type required example details
gameToken
String True 6YZREBW security token,Get it from the HISMITH APP remote play link
action
String True connection Operation Type: Create Remote Connection
langIso
String en customer language
Establish a remote play connection with the server-response parameters
parameters type required example details
serverConnection
Boolean 1 Successfully established a connection with the server
product
json Information on toy currently controlled remotely
-type
String sm toy type
-speed
Integer 0 toy current speed
-mode
Integer 0 toy current mode
-vibration
Integer 0 toy current vibration mode, If the toy has a vibration function
-vspeed
Integer toy current vibration speed, If the toy has a vibration function
-strokeType
Boolean 0 The control method of controllable stroke toys,1 is to automatically run the stroke according to the speed, 0 is to manually specify the stroke position
-strokeMin
Integer 0 Minimum travel position of the toy,0-100
-strokeMax
Integer 100 The maximum travel position of the toy,0-100
-strokeNow
Integer 66 The current travel position of the toy equipment,10-100
-smooth
Integer 10 Smoothness of travel toys,0-10
-climax
Boolean 1 Does the toy support one-click orgasm?
-modes
json Toy model details
-modesUrl
json New Toy Mode Details
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
set toy running speed-request parameters
parameters type required example details
action
String True setSpeed set toy running speed
type
String Speed type,S:toy main motor,V:toy vibration motor;default S, The maximum length:3
speed
Integer 50 toy speed number,0-100
set toy running speed-response parameters
parameters type required example details
action
String setSpeed set toy running speed
type
String Toy Motor Selection,S:toy main motor,V:toy vibration motor;default S
speed
Integer 50 toy speed number,0-100
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
set toy running mode-request parameters
parameters type required example details
action
String True setMode set toy running mode
type
String modes Toy Motor Selection,modes:toy main motor,vibrations:toy vibration motor
mode
Integer 3 toy Mode number
set toy running mode-response parameters
parameters type required example details
action
String setMode set toy running mode
type
String modes Toy Motor Selection,modes:toy main motor,vibrations:toy vibration motor
mode
Integer 3 toy Mode number
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Mode Control Status Notification-request parameters
parameters type required example details
Mode Control Status Notification-response parameters
parameters type required example details
action
String switchMode The current mode control state of the toy
status
Integer 1 1:Enable mode control,0:disable mode control
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Toys enter a one-click orgasm,Only some toys available-request parameters
parameters type required example details
action
String True setClimax Operate the toy in orgasmic mode
Toys enter a one-click orgasm,Only some toys available-response parameters
parameters type required example details
action
String setClimax Toy Orgasm Mode Notification
climax
Integer 1 Toy has gone into orgasm mode
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Toy Stroke Change Notice-request parameters
parameters type required example details
action
String True setStroke set toy Stroke
strokeMin
Integer 0 start of Stroke
strokeMax
Integer 100 end of Stroke
Toy Stroke Change Notice-response parameters
parameters type required example details
action
String setStroke set toy Stroke
strokeMin
Integer 0 start of Stroke
strokeMax
Integer 100 end of Stroke
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Set stroke toy smoothness-request parameters
parameters type required example details
action
String True setSmooth Set toy smoothness
smooth
Integer 0 smoothness number,0-10, maximum value:10
Set stroke toy smoothness-response parameters
parameters type required example details
action
String setSmooth Set toy smoothness
smooth
Integer 0 smoothness number,0-10
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Set the stroke run type-request parameters
parameters type required example details
action
String True setStrokeType Set the stroke run type
strokeType
Boolean 0 1 is to automatically run the stroke according to the speed, 0 is to manually specify the stroke position
Set the stroke run type-response parameters
parameters type required example details
action
String setStrokeType Set the stroke run type
strokeType
Boolean 0 1 is to automatically run the stroke according to the speed, 0 is to manually specify the stroke position
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Notify the toy of the current stroke position-request parameters
parameters type required example details
action
String True setStrokeNow Notify the toy of the current stroke position
strokeNow
Integer 0 current stroke number,0-100
Notify the toy of the current stroke position-response parameters
parameters type required example details
action
String setStrokeNow Notify the toy of the current stroke position
strokeNow
Integer 0 current stroke number,0-100
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details
Close Socket-request parameters
parameters type required example details
action
String True close Send value:close, Close Socket
Close Socket-response parameters
parameters type required example details
success
Boolean 1 Request success status,1:success,0:fail
error
json error report
-errorCode
String relogin error code
-errorMessage
String Token is invalid, please log in again error details