Members - Verify



Endpoint

POST /v1.1/member/[MemberID]/verify

Description

Manually verify an email address for a user. Will initiate a merge on verified emails.

NOTE: As this will merge accounts please ensure that the email has been properly verified before submitting this request. It is up to the developer to ensure proper validation has taken place prior to this API call.

Parameters
required *

apiKey *  string Your API access key. NOTE: must match the specific API key of the AE App used to register the user
service *  string service identifier - email, twitter, facebook, google, instagram, lastfm, rdio, youtube, spotify, tumblr, beatsmusic, soundcloud, foursquare, deezer
verified_email *  string email to verify
serviceid  number specific member service record to verify
[MemberID] *  string ID of member. Eg. returned from registration event or API call

Sign in with your developer account to use the console, or sign up here

Example Request

curl -X POST "https://api.theappreciationengine.com/v1.1/member/123456/verify?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&service=facebook"
$curl = curl_init();

curl_setopt_array($curl, array( 
	CURLOPT_URL => "https://api.theappreciationengine.com/v1.1/member/123456/verify?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&service=facebook", 
	CURLOPT_RETURNTRANSFER => true, 
	CURLOPT_ENCODING => "", 
	CURLOPT_MAXREDIRS => 10, 
	CURLOPT_TIMEOUT => 0, 
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 
	CURLOPT_CUSTOMREQUEST => "POST", 
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://api.theappreciationengine.com/v1.1/member/123456/verify?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&service=facebook"

headers = {}
payload = {}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text.encode('utf8'))
var request = require('request');
var options = {
	'method': 'POST',
	'url': 'https://api.theappreciationengine.com/v1.1/member/123456/verify?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&service=facebook',
	'headers': {}
};
request(options, function (error, response) {
	if (error) throw new Error(error);
	console.log(response.body);
});

Example Response

{
"data": {
"FirstName": "Jean Luc",
"Surname": "Picard",
"Email": "captjeanlucpicard@starfleet.com",
"Username": "JLP",
"Gender": "M",
"AccessToken": "0345481636f4028dc1a036e42_1588732857",
"ID": 111,
"AvatarURL": "http://someurl.com",
"Country": "",
"City": null,
"State": null,
"CountryCode": "",
"GeoCountry": null,
"VerifiedEmail": "captjeanlucpicard@starfleet.com"
},
"optins": [],
"services": [
{
"Service": "spotify",
"Valid": "1",
"ActivitySharing": "1",
"ID": "33333",
"UserID": "1111",
"Username": "JLP",
"UserURL": null,
"Token": "asdf",
"TokenSecret": "asdfasdf",
"LastUpdated": null,
"LastLogin": "2364-05-05 16:40:57",
"VerifiedEmail": "captjeanlucpicard@starfleet.com",
"PaidAccount": "0",
"Followers": "0",
"Likes": "0",
"PartnerCode": null,
"PartnerID": null,
"Domains": [
"API"
]
}
],
"jwt": "eyJhbGciOiJSUzINshogKk2VXa3cG11IJ_9IEPx7ilqwlwVh2j-nLpX32MUF_o9oQ-_bCfo"
}