Page 1 of 1

Titanium ACS - REST service config -

Posted: Tue Jun 26, 2012 3:15 pm
by David Diaz

Hi, I'm triying to configa a REST service to connect with Titanium ACS but somehow it's allways giving me an error message:

401 Unauthorized request. Please provide a valid App key or Oauth key

The key provided is correct and I've used it a lot of times, also tryed with cUrl in the command line and succeeded, but not here.

I've set the key as header and logind, password as body parameters, don't know if somebody could help me to configure this.

Here's the commands to join:

http://cloud.appcelerator.com/docs/rest

Thanks in advance.


Titanium ACS - REST service config -

Posted: Tue Jun 26, 2012 3:45 pm
by maxkatz

Can you share the curl command? You can then delete or reset the private keys.


Titanium ACS - REST service config -

Posted: Tue Jun 26, 2012 4:01 pm
by David Diaz

Hi Max, thanks for your fast reply, here's the curl command as they show in the docs page:

$ curl --verbose -b cookies.txt -c cookies.txt -F "login=a href="mailto:mike@appcelerator.com" rel="nofollow"mike@appcelerator.com/a" -F "password=food" https://api.cloud.appcelerator.com/v1...

Edit: I cannot prevent the link from being cut, you can check the curl command in this link, under the" Testing with cURL and wget" section, in the second "command line like" box.

http://cloud.appcelerator.com/docs/rest


Titanium ACS - REST service config -

Posted: Tue Jun 26, 2012 5:06 pm
by maxkatz

Ah...yes, Appcelerator uses cookies for some reason. Let me see if I can get it working.

I can get the entire link if I right-click and do copy link.


Titanium ACS - REST service config -

Posted: Tue Jun 26, 2012 8:27 pm
by maxkatz

Because the service requires cookies, it won't work from Test Connection.

It should work from the page, assuming that you login, a cookie will be created and when you make the request the cookie should be sent automatically.


Titanium ACS - REST service config -

Posted: Wed Jun 27, 2012 6:41 am
by David Diaz

Thanks for your support Max, I will give it a try along the day.