PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Third Party API Rest
Third Party API Rest
Débuté par JESUS, 01 juin 2019 02:39 - 1 réponse
Membre enregistré
8 messages
Posté le 01 juin 2019 - 02:39
Good day everybody

I need to create a webservice that receives automatic notifications from a third party API REST, how can I program this since the WS will only be waiting for it to send information in JSON format.

The API REST documentation is as follows:

https://www.waboxapp.com/assets/doc/waboxapp-API-v2.pdf

Request (POST form)



//Example

POST https://requestb.in/xh9tvh
{
"event": "message",
"token": "abcd1234",
"contact[uid]": "34666123456",
"contact[name]": "Peter",
"contact[type]": "user",
"message[dtm]": 1487082303,
"message[uid]": "62397B58E3E0B",
"message[cuid]": "",
"message[dir]": "i",
"message[type]": "chat",
"message[body][text]": "Hey! How are you doing?",
"message[ack]": 3
}

--
Jesus Madrigal
JESMAD Soluciones TICS
Membre enregistré
8 messages
Posté le 02 juin 2019 - 03:40
Well for now solve the problem by receiving the data in webdev using the PageParameter () function, when trying with webservice they showed 400 and 500 errors.

--
Jesus Madrigal
JESMAD Soluciones TICS