Appcelerator - Using REST API

只愿长相守 提交于 2020-01-07 02:01:12

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/37354975/appcelerator-using-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!