Accepts authentication credentials to login an existing member. Logs login event and returns information about the existing member.
string |
Your API access key | |
string |
service identifier - email, twitter, facebook, google, instagram, lastfm, rdio, youtube, spotify, tumblr, beatsmusic, soundcloud, foursquare, deezer | |
authtoken | string |
primary token returned by authorizing service. Required for social network registrations |
uid | string |
unique id of user. Required for social network registrations. |
authsecret | string |
authentication secret returned by some authorizing services. eg Twitter |
string |
email address from authorizing services. Required for email login. | |
password | string |
Required for email login. |
domain | string |
website to associate registration with |
ip | string |
IP address to associate registration with |
strict_sso | integer |
A value of 1 means member must have registered previously on specified domain. Otherwise a previous registration anywhere using current AE Application is valid (SSO) |
Sign in with your developer account to use the console, or sign up here
curl -X POST "https://api.theappreciationengine.com/v1.1/member/login?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&service=facebook"
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.theappreciationengine.com/v1.1/member/login?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/login?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/login?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p&service=facebook',
'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",
"Bio": "Tea, Earl Grey, Hot.",
"AccessToken": "0e2feea5d863",
"ID": 1111,
"AvatarURL": "http://someurl.com",
"Country": null,
"City": null,
"State": null,
"CountryCode": null,
"GeoCountry": null,
"GeoCity": null,
"GeoRegion": null,
"GeoLat": null,
"GeoLong": null,
"VerifiedEmail": "captjeanlucpicard@starfleet.com"
},
"optins": [
{
"ID": "1111",
"Type": "Brand",
"SegmentID": null,
"Label": null,
"Name": "Starfleet"
},
{
"ID": "1701",
"Type": "3333",
"SegmentID": "Segment",
"Label": null,
"Name": "Launching the new Enterprise"
}
],
"services": [
{
"Service": "email",
"Valid": "1",
"ActivitySharing": "1",
"ID": "2222",
"UserID": "b8c44c025b",
"Username": "captjeanlucpicard@starfleet.com",
"UserURL": null,
"Token": "$2y$10$a42da5662OqqyyGEl4.",
"TokenSecret": "1033c28a4e",
"LastUpdated": null,
"LastLogin": "2363-05-07 15:00:00",
"VerifiedEmail": "captjeanlucpicard@starfleet.com",
"PaidAccount": "0",
"Followers": "0",
"Likes": "0",
"PartnerCode": null,
"PartnerID": null,
"Domains": [
"API"
]
},
{
"Service": "twitter",
"Valid": "1",
"ActivitySharing": "1",
"ID": "4444",
"UserID": "3456",
"Username": "jlp",
"UserURL": "http://twitter.com/jeanlucpicard",
"Token": "thisisatokenofmyappreciation",
"TokenSecret": "itsasecret",
"LastUpdated": "2363-05-07 15:00:00",
"LastLogin": "2363-05-07 15:00:00",
"VerifiedEmail": "captjeanlucpicard@starfleet.com",
"PaidAccount": "0",
"Followers": "0",
"Likes": "0",
"PartnerCode": null,
"PartnerID": null,
"Domains": [
"API"
]
}
],
"jwt": "eyJhbGciOiJSUzI1NiIsInRnwjrAxvDvg1Cas8m5XOz80zz9n0l5CxrHsSljw477_3-rtOlQLkuLGjKCPRsmZJvNIz-02h9_EbCkVDr1zOGNNR1vBu3l4-SWaEbqWeBVs"
}