Appcelerator-使用REST API [英] Appcelerator - Using REST API
问题描述
我正在调用以下curl命令,但它始终返回无效的用户名/密码.
I am calling the following curl command, but it is always returning me invalid username/password.
curl -F "login=myemailAddress" -F "password=myPassword" "https://api.cloud.appcelerator.com/v1/users/login.json?key=<API_KEY>"
我正在使用TiApp.xml中定义的密钥作为acs-api-key-production.现在,如果我使用相同的用户名和密码并通过dashboard.appcelerator.com登录,那么我就可以这样做.
I am using the key defined in TiApp.xml as acs-api-key-production. Now if I use the same username and password and login through dashboard.appcelerator.com, then I am able to do so.
有人可以指出这是什么问题吗?我正在C#中执行类似的实现,它也返回了相同的无效用户名/密码错误.
Can someone please point out as to what issue is this. I am doing a similar implementation in C#, which too is returning the same invalid username/password error.
推荐答案
用户名和密码不应来自您的AppC帐户,而应来自您在以下位置创建的(管理员)用户:
The username and password should not be from your AppC account, but from an (admin) user you create at:
https://platform.appcelerator.com/#/api/data/<GUID>/data.next/user
在仪表板中,导航到ArrowDB应用>管理数据>用户>创建用户.应该已经有一个管理员用户可以使用.
In the dashboard, navigate to your ArrowDB app > Manage Data > Users > Create User. There should already be an admin user you can use.
这篇关于Appcelerator-使用REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!