The Sinch SMS Java SDK helps you interact with the SMS API from your Java Application. This guide helps you set up SMS SDK in your application.
dependencies {
implementation 'com.sinch:sdk-sms:1.*'
}
//Sinch SDK i hosted by maven so make you have MavenCentral in your repositories
repositories {
mavenCentral()
}
//In **Maven**, please put the lines below in your **pom.xml**
<dependency>
<dependency>
<groupId>com.sinch</groupId>
<artifactId>sdk-sms</artifactId>
<version>1.1.0</version>
</dependency>
While we recommend using a package manager (like the ones above) to track the dependencies in your application, it's possible to download and use the Java SDK by downloading a pre-built jar file. Select the directory for the latest version and download one of these jar files:
- sdk-sms-{version}-jar-with-dependencies.jar
- sdk-sms-{version}.jar
Follow this step:
File -> Project Structure -> Modules -> Plus Sign -> Browse the SDK SMS Jar.
Follow this step:
Project -> Build Path -> Configure Build Path -> Libraries -> Add Jar.