TwilioSms

A simple Android library for Twilio Programmable SMS

License

License

Apache 2.0
GroupId

GroupId

com.github.hihi-dev
ArtifactId

ArtifactId

twiliosms
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

aar
Description

Description

TwilioSms
A simple Android library for Twilio Programmable SMS
Project URL

Project URL

https://github.com/hihi-dev/android-twilio-sms
Source Code Management

Source Code Management

https://github.com/hihi-dev/android-twilio-sms

Download twiliosms

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.hihi-dev/twiliosms/ -->
<dependency>
    <groupId>com.github.hihi-dev</groupId>
    <artifactId>twiliosms</artifactId>
    <version>0.1.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.hihi-dev/twiliosms/
implementation 'com.github.hihi-dev:twiliosms:0.1.1'
// https://jarcasting.com/artifacts/com.github.hihi-dev/twiliosms/
implementation ("com.github.hihi-dev:twiliosms:0.1.1")
'com.github.hihi-dev:twiliosms:aar:0.1.1'
<dependency org="com.github.hihi-dev" name="twiliosms" rev="0.1.1">
  <artifact name="twiliosms" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.hihi-dev', module='twiliosms', version='0.1.1')
)
libraryDependencies += "com.github.hihi-dev" % "twiliosms" % "0.1.1"
[com.github.hihi-dev/twiliosms "0.1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

android-twilio-sms

A simple Android library for Twilio Programmable SMS https://www.twilio.com/sms

Use with maven: implementation 'com.github.hihi-dev:twiliosms:0.1.1'

How to use

Create an instance of the Twilio library in your application, providing application context and String values of your TwilioSID and TwilioAuth tokens.

Twilio twilio = Twilio.create(Context context, String sid, String token);

Create an SMS message, providing The recipient's number, the senders number, the message body and a callback URL. The callback URL is an optional field and be left null if you do not wish to utilise this functionality.

TwilioMessage message = TwilioMessage.create(String to, String from, String body, String callback);

Twilio SMS also allows media URLs, provide a list of String URL's to add media to the SMS.

TwilioMessage message = TwilioMessage.create(String to, String from, String body, List<String> media, String callback);

Finally, send the SMS providing your TwilioMessage. A Callable TwilioResponse will be returned containing the success state, respose code, and any relevant error message.

twilio.send(TwilioMessage message);

com.github.hihi-dev

HiHi Limited

Versions

Version
0.1.1
0.1.0