Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

API always returns "401 Unauthorized request. Please provide a valid App key or Oauth key."

$
0
0

It seems that any API method that requires the user to be logged in returns a 401, even though it looks like I login correctly.

Here's the command I use to log in, which returns with a JSON object containing a session ID.

curl --verbose -b cookies.txt -c cookies.txt -F "login=username" -F "password=password" https://api.cloud.appcelerator.com/v1/users/login.json?key=mykey

And when I call the following I can see the session id in the header request e.g.

> Host: api.cloud.appcelerator.com

> Accept: /

> Cookie: _session_id=3uu4Ar4dVITzqRg-xckfhjfoVOk

curl --verbose -b cookies.txt -c cookies.txt  https://api.cloud.appcelerator.com/v1/users/show/me.json?key=mykey
I'm at a loss as to why this is happening.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>