Skip to main content

Random subtract time

This Request will lower your duration randomly between [FROM] and [TO].

Request​

GET https://api.emlalock.com/subrandom?userid=[USERID]&apikey=[APIKEY]&holderapikey=[HOLDERAPIKEY]&from=[FROM]&to=[TO]&text=[TEXT]

Request Parameter​

FieldTypeDescription
[USERID]StringYour UserID
[APIKEY]StringYour API-Key
[HOLDERAPIKEY]StringThe holder API-Key
[FROM]Integer|StringTime value (see Short terms)
[TO]Integer|StringTime value (see Short terms)
[TEXT](optional) urlencoded stringText shown in the activity feed (max. 49 characters)

Response​

Success (Status: 200)​

Response​

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"user": { ... },
"chastitysession": { ... }
}

Description​

FieldTypeDescription
userObjectThe user object
chastitysessionObjectThe session object

Error (Status: 4xx)​

Response​

HTTP/1.1 400 Bad Request
{
"error": "MissingRequiredData",
"values": [
"userid"
]
}

Description​

ErrorDescription
MissingRequiredDataRequired parameters are not set. See response for missing values.
UserNotFoundThe user was not found.
WrongAPIKeyThe apikey was not correct.
NoActiveSessionThe user has no active session.
SessionHasNoHolderThe session has no holder.
HolderNotFoundThe user data of the holder could not be found.
HolderNotFoundThe apikey of the holder was not correct.
InvalidTimeValueThe value of [FROM] or [TO] is invalid.

Short Terms​

The time value can be in seconds (like 604800) or in short terms (like W5D4H7M34S12)

The syntax for short terms is

TermMeaningExample
WWeeksW5 = 5 weeks
DDaysD4 = 4 days
HHoursH7 = 7 hours
MMinutesM34 = 34 minutes
SSecondsS12 = 12 seconds