This API will update all of your joined whatsapp group whether you are admin or not.
This API should called only once : when you are joining new group or never call this API yet.
Abusing this API may lead to whatsapp number ban.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.fonnte.com/fetch-group',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Authorization: TOKEN'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
If you prefer to see on postman, see here.
TOKEN must be filled by your own token. See how to get token.
Response
Successfull response
{
"detail": "update whatsapp group list finished",
"status": true
}
- Token invalid : token is not valid
{
"detail": "token invalid",
"status": false
}
- Cannot fetch with disconnected device : Your device is disconnected, connect your device before proceed
{
"detail": "cannot fetch with disconnected device",
"status": false
}
- Failed to fetch whatsapp group list : There is something wrong with your whatsapp number or the server is in trouble.
{
"detail": "failed to fetch whatsapp group list",
"status": false
}
- Failed to update : There is something wrong, most likely fonnte's fault. please contact admin for further investigation
{
"detail": "failed to update",
"status": false
}