Guest User

Untitled

a guest
Oct 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. require "TextMarksV2APIClient.php";
  3.  
  4. // Broadcast a message to a TextMark group:
  5. $sMyApiKey = 'MyAPIKEY_12345678'; // (optional)
  6. $sMyTextMarksUser = 'mytmuser';
  7. $sMyTextMarksPass = 'mytmp@$$word';
  8. $sKeyword = 'MYKEYWORD';
  9. $sMessage = "This is an alert sent from the PHP API Client. Did it work?";
  10. $tmapi = new TextMarksV2APIClient($sMyApiKey, $sMyTextMarksUser, $sMyTextMarksPass);
  11. $tmapi->call('GroupLeader', 'broadcast_message', array(
  12. 'tm' => $sKeyword,
  13. 'msg' => $sMessage
  14. ));
  15. ?>
Add Comment
Please, Sign In to add comment