Random subtract requirement links
This Request will lower your requirement links randomly between [FROM]
and [TO]
.
Request​
GET https://api.emlalock.com/subrequirementrandom?userid=[USERID]&apikey=[APIKEY]&from=[FROM]&to=[TO]
Request Parameter​
Field | Type | Description |
---|---|---|
[USERID] | String | Your UserID |
[APIKEY] | String | Your API-Key |
[HOLDERAPIKEY] | String | The holder API-Key |
[FROM] | Integer | Link value |
[TO] | Integer | Link value |
Response​
Success (Status: 200)​
Response​
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"user": { ... },
"chastitysession": { ... }
}
Description​
Field | Type | Description |
---|---|---|
user | Object | The user object |
chastitysession | Object | The session object |
Error (Status: 4xx)​
Response​
HTTP/1.1 400 Bad Request
{
"error": "MissingRequiredData",
"values": [
"userid"
]
}
Description​
Error | Description |
---|---|
MissingRequiredData | Required parameters are not set. See response for missing values. |
UserNotFound | The user was not found. |
WrongAPIKey | The apikey was not correct. |
NoActiveSession | The user has no active session. |
SessionHasNoHolder | The session has no holder. |
HolderNotFound | The user data of the holder could not be found. |
HolderNotFound | The apikey of the holder was not correct. |
InvalidTimeValue | The value of [FROM] or [TO] is invalid. |