Envio de Mensagem
Instancie o objeto da classe do pacote SDK PHP:
<?php
require 'vendor/autoload.php';
use ZapMeSdk\Base as ZapMeSdk;
$zapMeSdk = (new ZapMeSdk())
->withApi('SUA_API_AQUI')
->withSecret('SUA_CHAVE_SECRETA_AQUI');
No exemplo acima altere:
SUA_API_AQUI
- para sua credencial de APISUA_CHAVE_SECRETA_AQUI
- para sua credencial de Chave Secreta
Envio de Mensagem Simples
Realize o envio da mensagem da seguinte forma:
$zapMeSdk->sendMessage('5511985850808', 'Teste!');
A resposta será um objeto jSON como este:
{
"status": true,
"result": "created",
"date": "2022-08-01 02:48:43",
"data": "message_sent"
}
Envio de Mensagem (Com Arquivo)
Realize o envio da mensagem da seguinte forma:
$zapMeSdk->sendMessage('5511985850808', 'Teste com imagem!', [
'file_content' => '/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAE8Aq8DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoooo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9uwO002B/46BXqdFAGPonhjR/DsHlaVp1var38tfmP1PU1rgYpaKACiiigArmfE3gLw94vuYZ9asTcSQpsjPmsuBnPYiumooA5zw14G0Dwg87aJZm2M4Ak/eM2cdOpNdHRRQAUUUUAIQTXN674C8M+JCW1TSLeWQ/8ALVRsf8xzXS0UAeT3P7Png+dyyTalACfuxzKQPzU060/Z+8HWzAyPqFyB/DLMAD/3yor1aigDndD8EeHPDnOl6TbQSf8APTbuY/iea6EDAFLRQAUUUUAFFFFABVXULCDU7Geyuk3286GORckZU9eRVqigDgIfgx4Gt5kmi0giRGDKftEnBH/Aq74DAApaKACiiigDnfE3gnQfF/kf23Zm4EGfL/eMuM9ehFc//wAKS8Bf9AZv/AiT/GvQqKAPPf8AhSXgL/oDN/4ESf40f8KS8Bf9AZv/AAIk/wAa9CooA4vSPhV4Q0HVYNS03SzDdQHdG/nucHGOhNdkVyCDyDTqKAOM134W+EfEMjy3mkxpO3WaA+W36cH8a5Vv2d/CLSbheaqo/uiVMf8AoNeu0UAcb4c+GHhXwxIs1jpqvcr0nnO9x9M8D8BXYAY7U6igAooooAz9a0ay1/S5tN1GIy2k2BIgYrnHPUc1y2n/AAi8GaVqEF/Z6UY7mBw8bee5wR7ZruaKAEUYGKWiigArlvEfw98N+LL2O81mwNxPGnlq3msuFznHBFdTRQB57/wpLwF/0Bm/8CJP8aP+FJeAv+gM3/gRJ/jXoVFAHnv/AApLwF/0Bm/8CJP8a1NB+GnhbwxqQ1HSNONvdBCm/wA52+U9eCa66igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/9k=',
'file_extension' => 'jpg'
]);
No exemplo acima considere que:
file_content
- deve ser uma string base64 do arquivo a ser enviado.file_extension
- deve ser: “jpg” para imagem jpg ou “pdf” para documento pdf.
Tratamento de Casos de Erros
Ao emitir uma requisição para a API da ZapMe, independente do método utilizado, uma série de validações será aplicada
afim de verificar se todos os requisitos necessários atendem as expectativas. Se você perceber que a requisição retornou com o
status
como false
, o result
irá conter um identificador do tipo do erro e haverá uma chave chamada: error
correspondendo a um array com as descrições sobre o erro:
{
"status": false,
"result": "invalid_credential",
"date": "2022-08-01 01:54:33",
"error": [
"credenciais invalidas"
]
}
Consulte a guia Tratamento de Erros para mais informações.