Java Library for smsmanager.cz
- Add the JitPack repository to your build file
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories>
- Add the dependency
<dependency> <groupId>com.github.hrubysoftware</groupId> <artifactId>smsmanager-java-library</artifactId> <version>1.1.0</version> </dependency>
First parameter is a type of request, available values:
- Type.lowcost,
- Type.high,
- Type.economy.
class Main{
public static void main(String[] args){
SmsManager smsManager = new SmsManager("[email protected]", "smsmanager-password");
smsManager.sendMessage(Type.lowcost, "textMessage", "737111222", "777123456"); //one or more phone numbers
}
}