validate_user
– Validate User
Use the documentation for validating a user from the previous section to see what is going to be sent. The ppwlink_push
field from the request event_data can be used to alert PPW that new orders have been assigned to the account. Pinging this URL will force PPWL to check for new orders. The get_all_orders
event will be added to the event queue and ran shortly after. Timing will depend on system load and other events in the queue but usually less than a minute.
Request payload JSON
curl -X POST \
--data 'payload={
"username": "demo",
"password": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"site_id": "dcc363d0-8ed1-48a2-ba2e-f638275db4f",
"event_name": "validate_user",
"event_data": "{\"ppwlink_push\":\"https://www.mysite.com/api/push.php?key=myrandomkey\"}"
}' \
https://www.propertypreswizard.com/api/link/receiver.php
Response for invalid authentication (JSON)
{
"remote_site_id": "1fc25d06-72bd-42f8-ad34-ecbdc5f1a4a4",
"success": false,
"return_error_msg": "Could not validate username and password.",
"result_data": "",
"error": true
}