account.getuserid
account.getuserid
Returns user_id (integer, uniquely identifies user on DatingVIP system) for given email and domain parameters.
Example:
/api.json?cmd=account.getuserid&email=someemail@example.com&domain=front-m1.dvipdev.com
Required params:
email (string) domain (string)
Example calls and responses:
Success
Request:
/api.json?cmd=account.getuserid&email=apitest1@example.com&domain=front-m1.dvipdev.com
Response:
{ "meta": { "status": "OK" }, "result": { "user_id": "4152398" } }
Error - missing email
Request:
/api.json?cmd=account.getuserid&domain=front-m1.dvipdev.com
Response:
{ "meta": { "app": [ { "code": "app_error_missing_param", "params": "email", "sticky": false, "text": "Missing parameter: email" } ], "status": "OK" }, "result": { "user_id": false } }
Error - missing domain
Request:
/api.json?cmd=account.getuserid&email=apitest1@example.com
Response:
{ "meta": { "app": [ { "code": "app_error_missing_param", "params": "domain", "sticky": false, "text": "Missing parameter: domain" } ], "status": "OK" }, "result": { "user_id": false } }
Referenced Files
None
Subscribers
None
- Last Author
- boris
- Last Edited
- Jan 6 2017, 08:30