2Way allows you to receive push messages from mobile app directly on your own server through a HTTP GET / POST call.
You can setup the endpoint url and the call method for each app in the Receive Push 2Way section inside your panel:
You can choose between GET and POST method. Depending on this choice parameters will be sent as an HTTP Get Query or in the Raw Request Body.
Catapush will send following parameters:
An example of the parameters received is:
sender: 12345678910
text: Hi
applicationId: 318
timestamp: 2016-05-24T13:57:07Z
messageId: 16d01e1c-aac6-4f4d-8786-fa94fd7cc78e
type: IncomingMessage
Incoming messages with attachment will always be sent as an HTTP POST with a multipart/form-data body, that includes the attachment’s binary content and meta information, together with the set of key-value pairs described above.
We provide an easy way to test the call request you will receive. Simply compile the following form to get a CURL Example: