Skip to main content

Get user and session information

This Request will return information the user and their session (if in a session).

Request

GET https://api.emlalock.com/info?userid=[USERID]&apikey=[APIKEY]

Request Parameter

FieldTypeDescription
[USERID]StringYour UserID
[APIKEY]StringYour API-Key

Response

Success (Status: 200)

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"user": {
"userid": "15m8t4422p5xz20",
"username": "Tjommel",
"lastclick": 1519938780,
"subscriptionvalue": 10,
"financialinterests": 0,
"wearerrating": 0,
"holderrating": 7,
"sessions": 10,
"failedsessions": 9,
"maxsession": 269141,
"minsession": 6,
"sumsession": 582470,
"membersince": 1361226671,
"dateofbirth": 1473544800000,
"description": "😍😍😍",
"gender": 0,
"language": "en",
"chastityrole": 1,
"timezone": 2
},
"chastitysession": {
"chastitysessionid": "gy8uemdbtm",
"creatorid": "15m8t4422p5xz20",
"wearerid": "15m8t4422p5xz20",
"holderid": "15m8t4422p5xz20",
"inoneoercentrange": true,
"status": 1,
"sessiontype": 1,
"interval": 604800,
"keyword": "",
"testsession": 0,
"feed": 0,
"friendlink": 7,
"reqlink": 0,
"offer": 0,
"minimumholderscore": 0,
"holdergender": 0,
"transfer": 0,
"holderfriendlink": 1,
"offeruserid": "",
"requirements": 0,
"friendlinkadd": 86400,
"friendlinksub": 86400,
"reqlinkadd": 86400,
"reqlinksub": 86400,
"durationtype": 0,
"randomduration": 0,
"startduration": 604800,
"minduration": 86400,
"maxduration": 2419200,
"beatby": 10,
"specstartduration": 1520025180000,
"specminduration": 1519942380000,
"specmaxduration": 1520543580000,
"startweight": 0,
"targetweight": 0,
"displaymode": {
"timepassed": 1,
"timeleft": 1,
"showapproximate": 0,
"surpriseme": 0
},
"withpenaltypenalty": 3600,
"games": {
"blackjack": 1,
"slotmachine": 1,
"bingo": 1,
"voting": 7,
"wheeloffortune": 1
},
"voting": 86400,
"mustgamesperday": 0,
"mustgamesperiod": 1,
"gamesperday": 0,
"gamesperiod": 1,
"riscvoting": 10,
"description": "",
"wheeloffortune": [
{
"duration": "3600",
"operator": "add",
"color": "#c90000",
"text": ""
},
{
"duration": "86400",
"operator": "sub",
"color": "#42ff00",
"text": ""
},
{
"duration": "172800",
"operator": "add",
"color": "#ffd600",
"text": ""
}
],
"hygieneopening": 0,
"cleaningsperday": 0,
"cleaningperiod": 1,
"timeforcleaning": 3600,
"cleaningaction": 2,
"cleaningpenalty": 86400,
"penaltygamesminimum": 0,
"startdate": 1519938780,
"enddate": 1520543580,
"canbeclosed": false,
"playedgamesmust": 0,
"currentweight": 0,
"weightbalance": 0,
"lastverification": 0,
"cleanings": 0,
"lastweightupdate": 1519938780,
"playedgames": 0,
"duration": 604800,
"pictureby": 0,
"timeinlock": 0,
"created": 1519938780,
"closedate": 0,
"incleaning": 0,
"cleaningstarted": 0,
"applyriskvoting": 1,
"timewithpenaltyfrom": 3600,
"timewithpenaltyto": 86400,
"endtype": 0,
"wheelofsessionend": [
{
"duration": "0",
"operator": "rls",
"color": "#c90000",
"text": ""
},
{
"duration": "86400",
"operator": "add",
"color": "#42ff00",
"text": ""
},
{
"duration": "172800",
"operator": "add",
"color": "#ffd600",
"text": ""
}
],
"pillory": 1,
"pilloryleft": 0,
"pillorymessage": "",
"pillorypenalty": 3600
}
}

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.