简体   繁体   中英

how to get POST webhook with geo data from Whatsapp - while using studio flow

So i use studio flow for a whatsapp interaction. Sometimes our users lack inte.net, so we have an option to send locations in offline mode.

Once reconnected, we initiate a http_request in studio, that then uses the Twilio API to get all the inbound messages the user has been sending to whatsapp while offline. The http request only gets the last message send, so not the previous maybe 6 - 20 messages.

I can get the body text of all those, when i perform CLIENT.messages.stream. But not the geo information. As those are send in the Webhook POST request, that go to studio flow.

My question is thus how can i get the latitude/longitude? Is it possible at all?

Twilio does not store the geolocation data sent via WhatsApp. So you'll have to accept the geolocation data via the webhook HTTP request and store it somewhere else if you need to retrieve it later.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM