Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 791 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 791 Bytes

java plugin for mobtexting

This package makes it easy to send Mobtexting notifications.

Installation

You can install the package through jar, click here to download

Usage

Send an SMS

import com.mobtexting.sms.Client;

public class Hello {
    public static final String ACCESS_TOKEN = "xxxxxxxxxxxxxxxxxx";
    
    public static void main(String[] args) {
        Client client = new Client(ACCESS_TOKEN);
        String to = "1234567890";
        String from = "MobTxt";
        String body = "Hello from Java!";
        char service = 'P';
        String response = client.send(to, from, body, service);
        System.out.println(response);
    }
}