Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "TextMarksV2APIClient.php";
- // Broadcast a message to a TextMark group:
- $sMyApiKey = 'MyAPIKEY_12345678'; // (optional)
- $sMyTextMarksUser = 'mytmuser';
- $sMyTextMarksPass = 'mytmp@$$word';
- $sKeyword = 'MYKEYWORD';
- $sMessage = "This is an alert sent from the PHP API Client. Did it work?";
- $tmapi = new TextMarksV2APIClient($sMyApiKey, $sMyTextMarksUser, $sMyTextMarksPass);
- $tmapi->call('GroupLeader', 'broadcast_message', array(
- 'tm' => $sKeyword,
- 'msg' => $sMessage
- ));
- ?>
Add Comment
Please, Sign In to add comment