confirmEmailAddressByCode

Confirms an Account User's email address.

confirmEmailAddressByCode

Confirms an Account User's email address.

Top ↑

Syntax

bool confirmEmailAddressByCode( string api_key, string code );

Parameters

api_key (string)

The key required to access the API. See Getting Started for more information.

code (string)

The code required to confirm the User's email address

Return Value

Returns true on success or false on failure.

Examples

$api = new Api($url, 'YOURAPIKEY');

$result = $api->invokeMethod('confirmEmailAddressByCode', '123456');
{
    "id": 1,
    "method": "confirmEmailAddressByCode",
    "params": [
        "YOURAPIKEY","123456"
    ]
}
{
    "id": 1,
    "result": true,
    "error": null
}

See Also