understanding paramaters
-
All the examples on the site show passing the parameters through the url.
I’m trying to use Postman to test this. I can get it working if I do this:
[POST] https://[site]
[params]
username=test
password=testing
rest_route=/simple-jwt-login/v1/authBut can I not do this?
[POST] https://[site]
[params]
rest_route=/simple-jwt-login/v1/auth
[Body]
{
“username”:”test”,
“password”:”testing”
}If I try the second, I get this:
{
“success”: false,
“data”: {
“message”: “The email or username parameter is missing from request.”,
“errorCode”: 46
}
}Do I have to send the details through the url? If not can someone provide me an example?
Also, should this not require an AUTH_KEY? What is keeping anyone from connecting to this other than ip address restriction?
Thanks in advance.
- The topic ‘understanding paramaters’ is closed to new replies.