Update basic and extended member data
string |
Your API access key | |
integer |
The ID of the user to be queried. | |
firstname | string |
firstname if available |
surname | string |
lastname/surname if available |
username | string |
username from if available |
string |
email address if available | |
birthdate | string |
date of birth (dd/mm/yyyy) |
address | string |
street address |
addressline2 | string |
unit, apt, etc |
city | string |
city of member |
state | string |
state of member |
country | string |
country of member |
postcode | string |
country of member |
homephone | string |
home phone number |
mobilephone | string |
mobile phone number |
website | string |
member's website or blog |
bio | string |
member background information |
gender | string |
M, F or Other |
Sign in with your developer account to use the console, or sign up here
curl -X POST "https://api.theappreciationengine.com/v1.1/member/123456/update?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p"
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.theappreciationengine.com/v1.1/member/123456/update?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/update?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/update?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p',
'headers': {}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
{
"data": {
"FirstName": "Jean Luc",
"Surname": "Picard",
"Email": "captjeanlucpicard@starfleet.com",
"Username": "JLP",
"Gender": "M",
"AccessToken": "0345481675dc6a036e42_1588732857",
"ID": 1234,
"Bio": "Tea, Earl Grey, Hot.",
"AvatarURL": "http://someurl.com",
"Country": "",
"City": null,
"State": null,
"CountryCode": "",
"GeoCountry": null,
"VerifiedEmail": "captjeanlucpicard@starfleet.com"
},
"optins": [
{
"ID": "111",
"Type": "Brand",
"SegmentID": null,
"Label": null,
"Name": "Starfleet"
}
],
"services": [
{
"Service": "spotify",
"Valid": "1",
"ActivitySharing": "1",
"ID": "2222",
"UserID": "1111",
"Username": "JLP",
"UserURL": null,
"Token": "asdf",
"TokenSecret": "asdfasdf",
"LastUpdated": null,
"LastLogin": "2361-05-05 16:40:57",
"VerifiedEmail": "captjeanlucpicard@starfleet.com",
"PaidAccount": "1",
"Followers": "0",
"Likes": "0",
"PartnerCode": null,
"PartnerID": null,
"Domains": [
"API"
]
}
],
"jwt": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpcCcUVtpRE7OLMPhLfBYkGDhQXCgCgLAhUeCW1i_HA"
}