问题描述
我正在调用以下curl命令,但它始终返回我无效的用户名/密码.
curl -F "login=myemailAddress" -F "password=myPassword" "https://api.cloud.appcelerator.com/v1/users/login.json?key=<API_KEY>"
我正在使用tiapp.xml中定义的密钥作为ACS-API-key-生产.现在,如果我使用相同的用户名和密码并通过dashboard.appcelerator.com登录,那么我就可以这样做了.
有人可以指出这是什么问题.我在C#中做了类似的实现,这也返回相同的无效用户名/密码错误.
推荐答案
用户名和密码不应该来自您的APPC帐户,而是来自您创建的(管理员)用户:
https://platform.appcelerator.com/#/api/data/<GUID>/data.next/user
在仪表板中,导航到arrowdb应用程序>管理数据>用户>创建用户.应该已经可以使用了管理员用户.
问题描述
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>"
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.
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.
推荐答案
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
In the dashboard, navigate to your ArrowDB app > Manage Data > Users > Create User. There should already be an admin user you can use.