Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.MohsenK:kavenegar-android-sdk:v1.beta'
}
dependencies {
implementation("com.github.MohsenK:kavenegar-android-sdk:v1.beta")
}
<dependency>
<groupId>com.github.MohsenK</groupId>
<artifactId>kavenegar-android-sdk</artifactId>
<version>v1.beta</version>
</dependency>
libraryDependencies += "com.github.MohsenK" % "kavenegar-android-sdk" % "v1.beta"
:dependencies [[com.github.MohsenK/kavenegar-android-sdk "v1.beta"]]
#Java-example
If you need to future information about API document Please visit RESTful Document
First of all, You need to make an account on Kavenegar from Kaveneagr webpage
After that you just need to pick API-KEY up from My Account section. Here You can download the [Java SDK] (https://github.com/KaveNegar/kavenegar-java/archive/master.zip) or just pull it. Anyway there is good tutorial about Pull request
Add it depend on what you are using .
Step 1 <p> Add the JitPack repository to your build file </p>
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2<p>Add the dependency</p>
dependencies {
compile 'com.github.User:Repo:Tag'
}
Step 1 <p> Add the JitPack repository to your build file </p>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Step 2<p>Add the dependency</p>
<dependency>
<groupId>com.github.User</groupId>
<artifactId>Repo</artifactId>
<version>Tag</version>
</dependency>
Step 1 <p> Add the JitPack repository to your build file </p>
resolvers += "jitpack" at "https://jitpack.io"
Step 2<p>Add the dependency</p>
libraryDependencies += "com.github.User" % "Repo" % "Tag"
Step 1 <p> Add the JitPack repository to your build file </p>
:repositories [["jitpack" "https://jitpack.io"]]
}
Step 2<p>Add the dependency</p>
:dependencies [[com.github.User/Repo "Tag"]]
Well,You can see an example of sending SMS through JAVA below .
try {
KavenegarApi api= new KavenegarApi("");
SendResult Result = api.Send("SenderLine", "Your Receptor", "خدمات پیام کوتاه کاوه نگار");
}
catch (HttpException ex)
{ // در صورتی که خروجی وب سرویس 200 نباشد این خطارخ می دهد.
System.out.print("HttpException : " + ex.getMessage());
}
catch (ApiException ex)
{ // در صورتی که خروجی وب سرویس 200 نباشد این خطارخ می دهد.
System.out.print("ApiException : " + ex.getMessage());
}
Bug fixes, docs, and enhancements welcome!I know that there are so many people do these thingi you're one of the just please let us know support@kavenegar.com
<hr> <div dir='rtl'> <h4 id="">راهنمای فارسی</h4> <h5 id="-1">راهنما</h5> <p>در صورتی که مایل هستید راهنمای فارسی کیت توسعه کاوه نگار را مطالعه کنید به صفحه <a href="http://kavenegar.com/sdk.html">کد ارسال پیامک</a> مراجعه کنید.</p> <h5 id="-2">مستندات</h5> <p>برای مطالعه مستندات کار با <a href="http://kavenegar.com"> وب سرویس اس ام اس</a> کاوه نگار به صفحه <a href="http://kavenegar.com/rest.html">مستندات</a>مراجعه کنید</p> <h5 id="-3">معرفی وب سرویس کاوه نگار</h5> <p>برای مشاهده ویژگی های وب سرویس پیامک کاوه نگار به <a href="http://kavenegar.com/%D9%88%D8%A8%D8%B3%D8%B1%D9%88%DB%8C%D8%B3-%D9%BE%DB%8C%D8%A7%D9%85%DA%A9.html">صفحه وب سرویس</a>مراجعه نمائید.</p> <h5 id="-4">ایجاد حساب کاربری</h5> <p>و بالاخره اگر در استفاده از سرویس کاوه نگار مشکلی داشتید یا پیشنهاد همکاری بود لطفا حتما به ما اطلاع دهید.</p> <p><a href="mailto:support@kavenegar.com">support@kavenegar.com</a></p> </div>