Page MenuHomeDatingVIP

account.getuserid
Updated 2,666 Days AgoPublic

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
    }
}
Last Author
boris
Last Edited
Jan 6 2017, 08:30

Event Timeline

boris edited the content of this document. (Show Details)
boris shifted this object from the Restricted Space space to the S6 Everyone space.Aug 8 2018, 08:13