API - SISTEMA | BAILEYS | OFIC...
Deletar TODOS os Contatos
2min
Repita quantas vezes forem necessárias para que todos sejam excluídos
Isto pode levar horas dependendo da quantidade de mensagens e tickets
Faça por conta e risco e de preferência fora do horário comercial!
PHP
1<?php
2
3$curl = curl_init();
4
5curl_setopt_array($curl, array(
6 CURLOPT_URL => 'https://{BACKEND_URL}/contacts-delete',
7 CURLOPT_RETURNTRANSFER => true,
8 CURLOPT_ENCODING => '',
9 CURLOPT_MAXREDIRS => 10,
10 CURLOPT_TIMEOUT => 0,
11 CURLOPT_FOLLOWLOCATION => true,
12 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13 CURLOPT_CUSTOMREQUEST => 'DELETE',
14 CURLOPT_HTTPHEADER => array(
15 'Authorization: seutokenaqui'
16 ),
17));
18
19$response = curl_exec($curl);
20
21curl_close($curl);
22echo $response;
JSON
1{
2 "message": "All Contacts has been deleted!"
3}
Updated 19 Jul 2024

Did this page help you?