API Key is required when calling /users/token

46 views
Skip to first unread message

Victor Espina

unread,
Jun 18, 2013, 9:49:47 AM6/18/13
to slimti...@googlegroups.com
Hi.

I am new to slimtimer and I'm trying to test de REST API with no luck.  I'm trying to send a POST request to http://slimtimer.com/users/token with the exact XML showed in the API help (but using my login data and API key) but I allways get the "API key is required" error message.

I have tried this from VFP using WinHttpRequest as well as XmlHttpRequest, and using the provided C# class but allways get the same result. Funny thing is that if tried the POST using an online REST API test tool, like Chrome's Postman or CURL or API Kitchen the call works pretty well and I get the user id and access token.

What I'm missing here?   The REST server does not allow calls from fat clients ?  By the way, I had enabled cross-domain calls in my Internet Security, just in case.

TIA

Victor Espina

Victor Espina

unread,
Jun 18, 2013, 9:58:03 AM6/18/13
to slimti...@googlegroups.com
Well, I just found a post of a huy wich had the exact same problem and he resolved by passing authenticacion data via query string.  Any way, just wanted to highlight the fact that neither XML or YAML calls to users/token are working.  Here is the XML I was sending:

<?xml version="1.0" encoding="UTF-8"?>
<request>
 <user>
  <email>email</email>
  <password>pwd</password>
 </user>
 <api-key>apikey</api-key>
</request>


Regards

Victor Espin
Reply all
Reply to author
Forward
0 new messages