Where and how do I use the HTTP SMS objects?
The HTTP API allows you to create the following objects for use in your programs:
-
SMS - an object for holding an individual SMS message, including message body, UDH etc.
-
clientPolled - an object/library for retrieving incoming SMS messages and delivery receipts
-
sendSMS - an object/library for sending SMS objects/SMS messages
-
incomingFormat - an object/library for formatting incoming data
To access these classes you will need to include the HTTP SMS API library in your program:
Visual Basic.NET
Imports HTTPSMS
PHP
require_once("SendSMS.php");
require_once("SMS.php");
require_once("ClientPolled.php");
Perl
use SendSMS;
use SMS;
use ClientPolled;
Java
import CBFSMS.*;
Python
(Please note the
SMS library is included in sendSMS)
from SendSMS import *
import SendSMS
from ClientPolled import *
import ClientPolled
And then you can create these objects and use library methods at suitable points in your software to allow you to send/receive messages from your program.