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屋!