Members - Reset *



* This is an advanced endpoint. To use, please make sure your plan has advanced access.

Endpoint

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

Description

Updates member password based on provided email and member_service_id

Parameters
required *

apiKey *  string Your API access key
memberid *  integer unique id of the member
email *  string email address member registered with
password *  string new password for member
member_service_id *  integer unique id of the email service account (available in services node of member data)

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/reset?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&"
$curl = curl_init();

curl_setopt_array($curl, array( 
	CURLOPT_URL => "https://api.theappreciationengine.com/v1.1/member/123456/reset?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&", 
	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/reset?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&"

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/reset?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&',
	'headers': {}
};
request(options, function (error, response) {
	if (error) throw new Error(error);
	console.log(response.body);
});

Example Response

{
"data": {
"Email": "captjeanlucpicard@starfleet.com",
"Username": "captjeanlucpicard",
"Gender": "M",
"AccessToken": "7e2f1715b56d083c1bfb01e3a262bd81_1588809620",
"ID": 44444,
"AvatarURL": "http://www.someurl.com",
"Country": "",
"City": null,
"State": null,
"CountryCode": "",
"GeoCountry": null
},
"optins": [],
"services": [
{
"Service": "email",
"Valid": "1",
"ActivitySharing": "1",
"ID": "22222",
"UserID": "12345",
"Username": "captjeanlucpicard@starfleet.com",
"UserURL": null,
"Token": "$2y$10$3cbb0e4932e43688NOm1H5A9zNHPobGQhiClgu",
"TokenSecret": "10$3cbb0e43688c63382",
"LastUpdated": "2360-03-08 14:00:00",
"LastLogin": "2361-05-06 14:00:00",
"VerifiedEmail": "captjeanlucpicard@starfleet.com",
"PaidAccount": "1",
"Followers": "0",
"Likes": "0",
"PartnerCode": null,
"PartnerID": null,
"Domains": [
"API"
]
}
],
"jwt": "eyJhbGciOiJSUzI1NiVP2vcDE11G5B75Hl4g0CyYPRu7BKXvPfitnwvnRYIMcb1rDh1RxCjWcB2OGMl_90esVE"
}