cURL
curl --request POST \ --url https://apizap.loce.io/v1/message/sticker \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "sessionId": "<string>", "phone": "<string>", "stickerUrl": "<string>", "quoteId": "<string>" } '
{ "messageId": "<string>", "sessionId": "<string>", "phone": "<string>", "type": "<string>", "status": "<string>", "quoteId": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Converte uma imagem .webp/.gif em figurinha e envia ao usuário.
await zap.sendMessageSticker('my-session-id', { to: phone, stickerUrl: 'https://stickerurl.com.br/', })
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.
Figurinha enviada.