Swisscom SMS-API-Client

A Java library for easy use of the Swisscom SMS API in Java

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

be.rufer.swisscom.sms
Идентификатор

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

api-client
Последняя версия

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

1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Swisscom SMS-API-Client
A Java library for easy use of the Swisscom SMS API in Java
Ссылка на сайт

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

https://github.com/rufer7/swisscom-sms-api-client
Система контроля версий

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

https://github.com/rufer7/swisscom-sms-api-client

Скачать api-client

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

<!-- https://jarcasting.com/artifacts/be.rufer.swisscom.sms/api-client/ -->
<dependency>
    <groupId>be.rufer.swisscom.sms</groupId>
    <artifactId>api-client</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/be.rufer.swisscom.sms/api-client/
implementation 'be.rufer.swisscom.sms:api-client:1.0'
// https://jarcasting.com/artifacts/be.rufer.swisscom.sms/api-client/
implementation ("be.rufer.swisscom.sms:api-client:1.0")
'be.rufer.swisscom.sms:api-client:jar:1.0'
<dependency org="be.rufer.swisscom.sms" name="api-client" rev="1.0">
  <artifact name="api-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='be.rufer.swisscom.sms', module='api-client', version='1.0')
)
libraryDependencies += "be.rufer.swisscom.sms" % "api-client" % "1.0"
[be.rufer.swisscom.sms/api-client "1.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.springframework : spring-web jar 4.1.3.RELEASE
com.fasterxml.jackson.core : jackson-databind jar 2.4.4

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.mockito : mockito-all jar 1.8.4

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

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

Swisscom SMS-API-Client

Build Status Coverage Status License Releases Maven Central

A Java library for easy use of the Swisscom SMS API in Java. The SMS-API of Swisscom is published and documented at the Swisscom Developer Portal.

How to use

To use the API with this client you have to register at the Swisscom developer portal and create an API-Key.

Maven dependency

<dependency>
    <groupId>be.rufer.swisscom.sms</groupId>
    <artifactId>api-client</artifactId>
    <version>1.0</version>
</dependency>

Example code snippet

The following code snippet shows how to use the Swisscom API-Client

import be.rufer.swisscom.sms.api.client.SwisscomSmsSender;
import be.rufer.swisscom.sms.api.domain.CommunicationWrapper;

public class SmsSenderExample
{
    public static void main( String[] args )
    {
      // SENDER_NUMBER and RECEIVER_NUMBER1 in the following format: +41791234567
      SwisscomSmsSender smsSender = new SwisscomSmsSender("API_KEY", "SENDER_NUMBER");
      CommunicationWrapper response = smsSender.sendSms("MESSAGE", "RECEIVER_NUMBER1");
      // Sending a SMS to several receivers
      CommunicationWrapper response2 = smsSender.sendSms("MESSAGE", "RECEIVER_NUMBER1", "RECEIVER_NUMBER2");
    }
}

Release

For releasing consider the maven central manual

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

Версия
1.0