Members - Check Member Activity



Endpoint

GET /v1.1/member/[MemberID]/activity/check

Description

Returns a state of true or false, as well as information for a completed action on a social network for a specified user.

Parameters
required *

apiKey *  string Your API access key
activityID *  integer The ID of the activity as defined in the Dashboard
id *  integer The ID of the user to check. Instead of id, you may provide email or partnerId/partnerCode combination
brandID  integer The ID of the brand to be queried
refresh  integer value of 1 forces the user record to be refreshed on this call.

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

Example Request

curl -v -X GET "https://api.theappreciationengine.com/v1.1/member/123456/activity/check?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&activityid=4327&id=123456"
$curl = curl_init();

curl_setopt_array($curl, array( 
	CURLOPT_URL => "https://api.theappreciationengine.com/v1.1/member/123456/activity/check?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&activityid=4327&id=123456", 
	CURLOPT_RETURNTRANSFER => true, 
	CURLOPT_ENCODING => "", 
	CURLOPT_MAXREDIRS => 10, 
	CURLOPT_TIMEOUT => 0, 
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 
	CURLOPT_CUSTOMREQUEST => "GET", 
));

$response = curl_exec($curl);

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

url = "https://api.theappreciationengine.com/v1.1/member/123456/activity/check?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&activityid=4327&id=123456"

headers = {}
payload = {}

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

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

Example Response

{
"done": true,
"data": {
"ID": "12345678",
"Marker": "a1a1a1a1a1a1",
"BrandID": "333333",
"Link": "https://open.spotify.com/track/1bYtKF2sY2wLU6xdVaqIqD",
"Media": "https://open.spotify.com/track/1bYtKF2sY2wLU6xdVaqIqD",
"Category": null,
"Content": "Added a track by Starfleet to library: 'Launch Music'",
"CompleteDate": "2020-04-25 21:17:58",
"Name": "Added a track by Starfleet to library on Spotify",
"ShortName": "added_to_library",
"GeoData": null,
"MemberName": "Jean-Luc Picard",
"Value": "6",
"ActivityID": "4444",
"ActivityType": "Listened",
"ServiceType": "spotify",
"MemberID": "555555",
"ServiceUserName": "JeanLuc Picard",
"RemoteUserURL": "https://open.spotify.com/user/111",
"ServiceUserID": "111",
"MemberEmail": "jeanluc@picard.com",
"Username": "jean_luc_picard",
"MemberAvatarURL": "http://someurl.com"
}
}