Device Limiter

FREEMIUM
By Roger Rosette | Updated hace un mes | Devices
Health Check

N/A

README

The login endpoint can be used to verify that a login of an end-user is within the limit of devices that are allowed to be used within a certain period of time (in days). Provide the following data structure in the body of the request (example):
{
“body”: {
“appid”: “83902eed-d865-4646-b161-3c719b485176”,
“userid”: “23490879874356abcdef873645868967”,
“deviceid”: “afe786234be786fea987234987befea9782347897”,
“useragent”: “Mozilla/5.0 (Linux; Android 10; SM-G996U Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.36”,
“ip”: “123.124.125.101”,
“maxDevices”: 6,
“maxDuration”: 20
}
}

appid: Define a sufficiently long, unique string to identify your application (10-1024 characters long).
userid: Your internal id of the end-user represented as a string.
deviceid: should be used to uniquely identify mobile devices
useragent: the userAgent from the client request passed on to a webserver.
ip: the IP address of the end-user request
maxDevices: pass on the maximum number of devices per user as integer (optional, default = 5)
maxDuration: pass on the maximum number of days of history to be used as integer (optional, default = 30)

The service will reply with a statusCode 200 when the request was processed successfully, otherwise statusCode 400.

Response:
{
“statusCode”: 200,
“body”: {
“loginRequestApproved”: true
}
}

the field loginRequestApproved contains either true or false; False if the request exceeds the defined limit of devices for this user.

Followers: 0
API Creator:
Rapid account: Roger Rosette
Roger Rosette
roger-bQSM1_SfU
Log In to Rate API
Rating: 5 - Votes: 1