eztexting-java

A Java client for the EZ Texting SMS text messaging API

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.github.krenfro
Идентификатор

Идентификатор

eztexting-java
Последняя версия

Последняя версия

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

eztexting-java
A Java client for the EZ Texting SMS text messaging API
Ссылка на сайт

Ссылка на сайт

https://github.com/krenfro/eztexting-java
Система контроля версий

Система контроля версий

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

Скачать eztexting-java

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10

Модули Проекта

Данный проект не имеет модулей.

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("my@email.com")
        .group("group1")
        .group("group2")
        .build();
    Contact contact = contacts.create(request);

    UpdateRequest update = new UpdateRequest.Builder()
        .email("another@email.com")
        .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>

Версии библиотеки

Версия
0.0.1