Ozeki NG SMS Gateway

C# SMS API - login method

This method can be used to log into the SMS Gateway with your username and password. (To obtain a username and a password you should open the Management Console as admin and create a standard user

     Name Description
bool login(string userName, string password);

Use this function to log into the SMS gateway. You cannot perform any actions without logging in, so this will be the first function you use in your application.

Parameters

username - The username specified in the SMS gateway. You can set the username when you create a standard user.

password - The password of the user. The password is also set in the SMS gateway during the creation of the user.

Returns

true - if the login is successful.

false - if the username or password is incorrect.

Example

bool loggedin = login("admin","abc123");

More information