Perl API
The best way to use the Red Oxygen API from Perl is to use the HTTP interface. You must have the LWP module present in your Perl installation to be able to send via HTTP.
Example
sub SendSMS { my $Browser = LWP::UserAgent->new; (my $AccountID, my $Email, my $Password, my $Recipient, my $Message) = @_; my $URL = 'http://www2redoxygen.net/sms.dll?Action=SendSMS'; my $Response = $Browser->post($URL, ['AccountID' => $AccountID, 'Email' => $Email, 'Password' => $Password, 'Recipient' => $Recipient, 'Message' => $Message]); print $Response->content; }
Properties
Name | Description | Example |
---|---|---|
AccountID | This is your Red Oxygen Account ID, which uniquely identifies your account. | CI00000001 |
This is the email address of your Red Oxygen user account. It is also the address that will receive replies to the sent SMS. | username@company.com | |
Password | This is the password of your Red Oxygen user account. | secret |
Recipient | The destination mobile numbers. Multiple recipients can be specified comma separated. | 61409000000,61419718927,61419718972 |
Message | A single SMS has a maximum length of 160 characters. If the message is greater than 160 characters then multiple SMS will be sent as a concatenated SMS which will result in an additional charge for the additional messages. The maximum length of a message is 765 characters. If you exceed this limit only the first 765 characters of your message will be sent. | Server 23 is offline. |
For more details see the Red Oxygen API HTTP User Guide.