name.valery1707.smsc:smsc-http-ok-http

Network layer implementation: OkHttp

License

License

GroupId

GroupId

name.valery1707.smsc
ArtifactId

ArtifactId

smsc-http-ok-http
Last Version

Last Version

0.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

Network layer implementation: OkHttp

Download smsc-http-ok-http

How to add to project

<!-- https://jarcasting.com/artifacts/name.valery1707.smsc/smsc-http-ok-http/ -->
<dependency>
    <groupId>name.valery1707.smsc</groupId>
    <artifactId>smsc-http-ok-http</artifactId>
    <version>0.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/name.valery1707.smsc/smsc-http-ok-http/
implementation 'name.valery1707.smsc:smsc-http-ok-http:0.1.4'
// https://jarcasting.com/artifacts/name.valery1707.smsc/smsc-http-ok-http/
implementation ("name.valery1707.smsc:smsc-http-ok-http:0.1.4")
'name.valery1707.smsc:smsc-http-ok-http:jar:0.1.4'
<dependency org="name.valery1707.smsc" name="smsc-http-ok-http" rev="0.1.4">
  <artifact name="smsc-http-ok-http" type="jar" />
</dependency>
@Grapes(
@Grab(group='name.valery1707.smsc', module='smsc-http-ok-http', version='0.1.4')
)
libraryDependencies += "name.valery1707.smsc" % "smsc-http-ok-http" % "0.1.4"
[name.valery1707.smsc/smsc-http-ok-http "0.1.4"]

Dependencies

compile (3)

Group / Artifact Type Version
name.valery1707.smsc : smsc-http jar 0.1.4
com.squareup.okhttp3 : okhttp jar 3.9.1
com.google.code.findbugs : jsr305 jar 3.0.1

Project Modules

There are no modules declared in this project.

Maven Central Javadoc License

Stories to work on DevOps By Rultor.com

smsc-java

Java library for SMSC.

Features

How to use

First, connect the libraries smsc, smsc-http-ok-http and smsc-json-jackson to the project and then:

SmsCenter center = new SmsCenterImpl(
    new HttpClientOkHttp(),
    new JsonMapperJackson(),
    "demo", "demo1".toCharArray()
);
MessageSend send = center
    .messages()
    .send(new Message()
        .withContact(Contact.phone("79051234567"))
        .withText("SMS text")
);
System.out.println(String.format(
    "Sent %d messages with total cost %.2f, current balance is %.2f",
    send.getCnt(), send.getCost(), send.getBalance()
));

Versions

Version
0.1.4
0.1.3