Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.krenfro:eztexting-java

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.krenfro:eztexting-java

A Java client for the EZ Texting SMS text messaging API

  • 0.0.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

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 (will soon) be in the Maven Central Repository.

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

FAQs

Package last updated on 25 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc