API request to join/add user to an existing Group
<?php $url = ‘https://yourdomain/connect/’; $ch = curl_init($url); $datas = array( ‘key’ => ‘Grupo Connect Secret Key’, ‘do’ => ‘joingroup’, ‘groupid’ => ‘groupid’,//Specify the groupid (You will find group id in gr_options table id column) ‘userid’ => ‘[email protected]’, ‘role’ => 0, ); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); $res = json_decode($res); if […]