Wiki

Clone wiki

ma3route-api-documentation / Contact Us

Home

#!https
POST /contactus
To post an update send a POST request to https://www.ma3route.com/findit-api/v2/json/contactus

The request body should be a json object with it's fields as in:

#!json
{
    "name":"?",
    "email":"?",
    "message":"?",
    "phone":"?"   
}
* name String value. Full name of the user. * email email address of the user. Mandatory. * message String value. Mandatory * phone phone number of the user. Optional.

Once you post, you will receive a response from the server, which is a JSON object that will indicate if you successfully posted the message or if an error occurred. For now, we are not pointing to the exact cause of the error, this will be done in future enhancements.

Server response

#!json
{
   "meta":{      
   },
   "data":{
      "success":true,
      "message":"You successfully posted an update"
   }
}
OR

#!json
{
   "meta":{      
   },
   "data":{
      "success":false,
      "message":"Error! Check that you have all mandatory properties in the object. Avoid empty strings!"
   }
}

Updated