Start Session
GET : https://whatsapp.contrateumdev.com.br/start?sessionName=NOME_ALEATORIO_DA_SUA_SESSAO
Get QRCODE base64
GET : https://whatsapp.contrateumdev.com.br/qrcode?sessionName=NOME_ALEATORIO_DA_SUA_SESSAO
- json (base64) ** recommended
Send Message
GET : https://whatsapp.contrateumdev.com.br/sendText
Request Body
- sessionName - name of session started
- number - number with code of country
- text - text of send to number
Get Number Profile
GET : https://whatsapp.contrateumdev.com.br/getNumberProfile
Request Body
- sessionName - name of session started
- number - number with code of country
Status Session
GET : https://whatsapp.contrateumdev.com.br/status?sessionName=NOME_ALEATORIO_DA_SUA_SESSAO
Close Session
GET : https://whatsapp.contrateumdev.com.br/close?sessionName=NOME_ALEATORIO_DA_SUA_SESSAO
Get QRCODE
GET : https://whatsapp.contrateumdev.com.br/qrcode?sessionName=NOME_ALEATORIO_DA_SUA_SESSAO&image=true
- image
Send Files
GET : https://whatsapp.contrateumdev.com.br/sendFile
Request Body
- sessionName - name of session started
- number - number with code of country
- base64Data:"44696d61",//hexadecimal
- fileName: "test.txt",
- caption - text (optional)
$.post({
method: 'POST',
url: `https://whatsapp.contrateumdev.com.br/sendText`,
contentType:"application/json; charset=utf-8",
dataType:"json",
data: JSON.stringify({
sessionName: `session99`,
number: `5531995360492`,
text: `Olá`
}),
success: function(resultado, status, xhr) {
console.log(resultado)
}
})
$.post({
method: 'POST',
url: `https://whatsapp.contrateumdev.com.br/sendFile`,
contentType:"application/json; charset=utf-8",
dataType:"json",
data: JSON.stringify({
sessionName: "session99",
number: '556334140378',
base64Data:"44696d61", //hexadecimal
fileName:"test.txt",
caption: "Document" //optional
}),
success: function(resultado, status, xhr) {
console.log(resultado)
}
})