Skip to content

mbaralle/MessageApiClient-JAVA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MessageApiClient for JAVA

RingRing provides simple and fast API for sending and receiving text messages (SMS), calls and emails all over the world. We take care of the telecom infrastructure and bring additional services such as Cloud Call Center solutions, Transactional emails, SIP trunking, ...

How to use

  • Contact us at [email protected], we will create an account for you.
  • Once you have access to your account, you will be able to access to interface at https://portal.ringring.be. Here you will see all account information you need to send real messages through the API.
  • Lastly, download the code source from Github.

Example

public class Example {

    public static void main(String[] args) {
    
        Authentication token = new Authentication("YOUR_ACCESS_KEY");
        MessageClient client = new MessageClient(token);
		
		// Example using simple parameters (mandatory parameters)
		try {
			client.createMessage("PHONE_NUMBER", "YOUR_MESSAGE");
		} catch (MessageException e) {
			// ...
		}
		
		// Example using request object builder (for detailed query) 
		try {
			client.createMessage(new MessageRequest.Builder()
				.withTo("PHONE_NUMBER")
				.withMessage("YOUR_MESSAGE")
				.withFrom("FROM_WHO")
				.withTimeScheduled("DD/MM/YYYY")
				//...
				.build()
			);
		} catch (MessageException e) {
			// ...
		}
		
    }
    
}

Version

Java SE 6 or more

Installation

It is recommended to use maven to import dependencies.

Documentation

http://docs.ringring.be

About

Java client for MessageAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%