eztexting-java

A Java client for the EZ Texting SMS text messaging API

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.github.krenfro
ArtifactId

ArtifactId

eztexting-java
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

eztexting-java
A Java client for the EZ Texting SMS text messaging API
Project URL

Project URL

https://github.com/krenfro/eztexting-java
Source Code Management

Source Code Management

https://github.com/krenfro/eztexting-java

Download eztexting-java

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.krenfro/eztexting-java/ -->
<dependency>
    <groupId>com.github.krenfro</groupId>
    <artifactId>eztexting-java</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.krenfro/eztexting-java/
implementation 'com.github.krenfro:eztexting-java:0.0.1'
// https://jarcasting.com/artifacts/com.github.krenfro/eztexting-java/
implementation ("com.github.krenfro:eztexting-java:0.0.1")
'com.github.krenfro:eztexting-java:jar:0.0.1'
<dependency org="com.github.krenfro" name="eztexting-java" rev="0.0.1">
  <artifact name="eztexting-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.krenfro', module='eztexting-java', version='0.0.1')
)
libraryDependencies += "com.github.krenfro" % "eztexting-java" % "0.0.1"
[com.github.krenfro/eztexting-java "0.0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
com.sun.jersey : jersey-client jar 1.18.1
com.sun.jersey : jersey-json jar 1.18.1
com.fasterxml.jackson.core : jackson-databind jar 2.3.3

test (1)

Group / Artifact Type Version
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

eztexting-java

A Java client for the EZ Texting SMS text messaging API

Overview

EZ Texting provides an API for sending SMS text messages.

You will need an account to use this library. Consult the API Documentation

This library does not implement all the features of their API.
This library can:

  • Send SMS messages
  • Manage Contacts
  • Manage Groups
  • Carrier Lookup

This library cannot:

  • Manage Inbox
  • Manage Keywords
  • Manage Credits
  • Voice Broadcast

If you need a feature implemented, please submit a pull request or file an issue.

Basic Usage

Sending a SMS message

    EzTextingClient ez = new EzTextingClient(
        new EzTextingCredentials("username","password"));
    Messaging messaging = new Messaging(ez);
    Message message = new Message.Builder()
        .subject("test")
        .message("Here I am EZ Texting")
        .phone("5551234567")
        .build();
    messaging.send(message);

Managing Groups

    GroupManager groups = new GroupManager(ez);
    Group group = groups.create("neat");
    GroupQuery query = new GroupQuery.Builder()
        .sortBy(SortBy.GROUP_NAME)
        .itemsPerPage(10)
        .page(1)
        .build();
    List<Group> all = groups.retrieveAll(query);

Managing Contacts

    ContactManager contacts = new ContactManager(ez);
    CreateRequest request = new CreateRequest.Builder()
        .phone("5551234567")
        .first("first")
        .last("last")
        .email("[email protected]")
        .group("group1")
        .group("group2")
        .build();
    Contact contact = contacts.create(request);

    UpdateRequest update = new UpdateRequest.Builder()
        .email("[email protected]")
        .group("group1", "group3")
        .build();
    contact = contacts.update(contact, update);
    contacts.delete(contact);
    
    ContactQuery query = new ContactQuery.Builder()
        .query("5551234567")
        .sortBy(SortBy.LAST_NAME)
        .ascending()
        .itemsPerPage(100)
        .build();
    List<Contact> found = contactManager.retrieveAll(query);
    

Dependencies

Maven 2 Support

This library is in the Maven Central Repository.

<dependencies>
    <dependency>
        <groupId>com.github.krenfro</groupId>
        <artifactId>eztexting-java</artifactId>
        <version>0.0.3</version>
    </dependency>
</dependencies>

Versions

Version
0.0.1