Hi,
I am trying to test sample web service provided by native web_services plugin from postnam but I am getting some errors.
Here is the behavior
1- Using Postman Params
When using Postman Params, everything works as expected
2- Using Postman Body (raw json)
When posting using raw json as body I got the following error message
Here is the Json I am sending
{
"username": "newuser",
"password": "securepassword123"
}
{"status":-1,"message":"Missing parameter username in method auth.gettoken"}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- Hermand Pessek@rheman

Hermand Pessek - 0 likes
- Jerome Bakker@jeabakker

Jerome Bakker - 0 likes
You must log in to post replies.First, you need to get auth_token using auth.gettoken method and pass it to your service to perform the task.
That's, your service should accept the token and return it to Elgg with a new task.
Perhaps more details about what you're doing will help clarify the situation better.
There is no need to add auth_token because I set the following two parameters to false
"I would like to test the service by sending a JSON payload via a POST request using Postman."
Sending the requests to Elgg you should not send JSON.
In Postman set the POST body to x-www-form-urlencoded and the params as the api call requires.
In response you'll get a JSON, but you can't do that in the request.