C++

white

C++ API

The best way to use the Red Oxygen API from Visual C++ is to use the Red Oxygen DLL.

Example

int SendSMS(char *AccountID, char *EmailAddress, char *Password, char *Recipient, char *Message)
{
	HMODULE RedOxygenLibrary;
	SendSMSFunction *SendSMS;
	int Result;
 
	RedOxygenLibrary = LoadLibrary("redoxygen.dll");
	SendSMS = (SendSMSFunction *) GetProcAddress(RedOxygenLibrary, "SendSMS");
 
	Result = SendSMS(AccountID, EmailAddress, Password, Recipient, Message);
 
	FreeLibrary(RedOxygenLibrary);
 
	return Result;
}

Properties

Name Type Description Example
AccountId char This is your Red Oxygen Account ID, which uniquely identifies your account. CI00000001
Email char 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 char This is the password of your Red Oxygen user account. secret
Recipient char The destination mobile numbers. Multiple recipients can be specified comma separated. 61409000000,61419718927,61419718972
Message char 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 – DLL User Guide.

Want us to set it up for you?

Get in touch with our team and we will get back to you as soon as possible!

    white