Hello, I'm trying to do some jQuery magic and get my access token.
I'm using this:
jQuery.ajax({
type:'POST',
url: '
http://www.slimtimer.com/users/token',
dataType: 'xml',
data: {
request : {
api_key: apikey,
user: { email: user_email , password: user_password }
}
},
error: function(response){
alert(response.responseXML.documentElement.childNodes[1].textContent);
},
success: function(response){
alert(response.);
}
});
But I'm getting just a 500 server error: "<?xml version="1.0"
encoding="UTF-8"?>\n<errors>\n <error>Authentication failed</error>\n</
errors>\n"
I'm sure my credentials and api key is correct.
:) Thanks for the help :)
PS. Slimtimer is great!