cURL
curl --request POST \ --url https://apizap.loce.io/v1/message/location \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "sessionId": "<string>", "phone": "<string>", "latitude": 123, "longitude": 123, "quoteId": "<string>" } '
{ "messageId": "<string>", "sessionId": "<string>", "phone": "<string>", "type": "<string>", "status": "<string>", "quoteId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Compartilha latitude e longitude com o contato.
await zap.sendMessageLocation('my-session-id', { to: '5564999999999', latitude: -16.7033, longitude: -49.263, });
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Sessão que enviará a mensagem.
Destino no formato MSISDN com DDI e DDD.
ID da mensagem original quando for uma resposta.
Localização enviada.