1 answer
- 10-1
Hey yuxinshi,
You can use the public API key only for public requests (ex., publicSearch). If you are trying to make an authenticated/private request (like add an animal) you have to generate a token and tokenHash and use that instead of the API key. You can get a token and tokenHash by calling the login action: HTTP API "login" action.
I would recommend that you login, and then make a request to define using your token and tokenHash. You should see the additional actions like add, according to your permissions.
Hope that helps,
Richard
- yuxinshi
Thank you Richard!!! I solved the problem!!! I am so happy!
Yuxin
Add your comment...
Hi,
I came through a problem and search a lot. I use "define" action to search "add" action and cannot find it. So I guess I have no permission to it. I don't know why.
Thank you for your help!
ps:I am a volunteer and my role is already animal add. I can do public search and define. But when I try to add animal, it display: [messageCriticality] => error [messageText] => The action you specified was not found. Really very confusing. TOT