Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function send_blast($client, $message)
  2. {
  3. $apikey = "XXXXXXXXX";
  4. $user = "XXXXXXX";
  5. $pass = "XXXXXXXXX";
  6.  
  7. $db = retrieveList("prospects", "client", $client);
  8. $num_rows = $db->num_rows;
  9.  
  10. for($i=0; $i<$num_rows; $i++)
  11. {
  12. $row = $db->fetch_assoc();
  13. if($row['status'] != 'banned' && $row['status'] != 'inactive')
  14. {
  15. $tmapi = new TextMarksV2APIClient($apikey, $user, $pass);
  16. $tmapi->call('GroupLeader', 'send_one_message', array( 'tm' => $row['keyword'], 'msg' => $message, 'to' => "+1".$row['number']));
  17. sleep(1);
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement