GithubHelp home page GithubHelp logo

smsgw-client-java's Introduction

smsgw-client-java

Build Status Coverage Status Maven Central Codacy coverage

This Java library contains some convenience APIs that lets you connect to the Intelecom SMS Gateway. Alternatively, you could integrate directly with one of the interfaces yourself.

The library consist of two parts: One client builder and builders to create a request.

The client implementation uses the JAX-RS 2.0 Client interface. Therefore, you need to run it in a JAX-RS 2.0 J2EE compliant container or provide a JAX-RS 2.0 implementation yourself (e.g. Jersey).

Installation

Maven

<dependency>
	<groupId>com.intele.chimera</groupId>
	<artifactId>smsgw-client-java</artifactId>
	<version>1.0.0</version>
</dependency>

Gradle

compile "com.intele.chimera:smsgw-client-java:1.0.0"

Examples

Standalone

try(GatewayClient gatewayClient = new GatewayClientBuilder().build()) 
	GatewayRequest gatewayRequest = new GatewayRequest.Builder(100, "username", "password").build();
	gatewayRequest.addMessage(
			new Sms.Builder("+4741000000", "Test message").withPrice(0).build());
	Response response = gatewayClient.send(gatewayRequest);

	System.out.println(response.getMessageStatus().get(0).getStatusCode());
	System.out.println(response.getMessageStatus().get(0).getStatusMessage());
	System.out.println(response.getMessageStatus().get(0).getMessageId());
} catch(Exception e) {
	e.printStackTrace();
}

smsgw-client-java's People

Contributors

ahaeber avatar svenstaleosa avatar

Watchers

Morten Trydal avatar James Cloos avatar  avatar Sven Ståle Osa avatar  avatar Gunnar Grenlee avatar

Forkers

ahaeber

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.