-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
3,524 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build/ | ||
/nbproject/private/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
# kavenegar-java | ||
#Java SDK | ||
# <a href="http://kavenegar.com/rest.html">Kavenegar RESTful API Document</a> | ||
If you need to future information about API document Please visit RESTful Document | ||
|
||
## Installation | ||
<p> | ||
First of all, You need to make an account on Kavenegar from <a href="https://panel.kavenegar.com/Client/Membership/Register">Here</a> | ||
</p> | ||
<p> | ||
After that you just need to pick API-KEY up from <a href="http://panel.kavenegar.com/Client/setting/index">My Account</a> section. | ||
Here You can download the Java SDK <a href="https://github.com/KaveNegar/kavenegar-java/archive/master.zip">Here</a> or just pull it. | ||
Anyway there is good tutorial about <a href="http://gun.io/blog/how-to-github-fork-branch-and-pull-request/">Pull request</a> | ||
</p> | ||
|
||
## Usage | ||
Well, There is an example to Send SMS by Java. | ||
|
||
```java | ||
|
||
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()); | ||
} | ||
|
||
``` | ||
|
||
#Contribution | ||
Bug fixes, docs, and enhancements welcome! Please let us know <a href="mailto:[email protected]?Subject=SDK" target="_top">[email protected]</a> | ||
|
||
|
||
|
||
## Persian tutorial / راهنمای فارسی | ||
###راهنما | ||
در صورتی که مایل هستید راهنمای فارسی کیت توسعه کاوه نگار را مطالعه کنید به سفحه | ||
<a href="http://kavenegar.com/sdk.html">کد ارسال پیامک</a> | ||
مراجعه کنید | ||
|
||
###مستندات | ||
<p> | ||
برای مطالعه مستندات کار با | ||
<a href="http://kavenegar.com" target="_blank">وب سرویس اس ام اس</a> | ||
کاوه نگار به سفحه <a href="http://kavenegar.com/rest.html">مستندات</a>مراجعه کنید | ||
</p> | ||
###معرفی وب سرویس کاوه نگار | ||
<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> | ||
### ایجاد حساب کاربری | ||
<p> | ||
و بالاخره اگر در استفاده از سرویس کاوه نگار مشکلی داشتید یا پیشنهاد همکاری بود لطفا حتما به ما اطلاع دهید | ||
<br> | ||
<a href="mailto:[email protected]">[email protected]</a> | ||
|
||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- You may freely edit this file. See commented blocks below for --> | ||
<!-- some examples of how to customize the build. --> | ||
<!-- (If you delete it and reopen the project it will be recreated.) --> | ||
<!-- By default, only the Clean and Build commands use this build script. --> | ||
<!-- Commands such as Run, Debug, and Test only use this build script if --> | ||
<!-- the Compile on Save feature is turned off for the project. --> | ||
<!-- You can turn off the Compile on Save (or Deploy on Save) setting --> | ||
<!-- in the project's Project Properties dialog box.--> | ||
<project name="Kavenegar" default="default" basedir="."> | ||
<description>Builds, tests, and runs the project Kavenegar.</description> | ||
<import file="nbproject/build-impl.xml"/> | ||
<!-- | ||
There exist several targets which are by default empty and which can be | ||
used for execution of your tasks. These targets are usually executed | ||
before and after some main targets. They are: | ||
-pre-init: called before initialization of project properties | ||
-post-init: called after initialization of project properties | ||
-pre-compile: called before javac compilation | ||
-post-compile: called after javac compilation | ||
-pre-compile-single: called before javac compilation of single file | ||
-post-compile-single: called after javac compilation of single file | ||
-pre-compile-test: called before javac compilation of JUnit tests | ||
-post-compile-test: called after javac compilation of JUnit tests | ||
-pre-compile-test-single: called before javac compilation of single JUnit test | ||
-post-compile-test-single: called after javac compilation of single JUunit test | ||
-pre-jar: called before JAR building | ||
-post-jar: called after JAR building | ||
-post-clean: called after cleaning build products | ||
(Targets beginning with '-' are not intended to be called on their own.) | ||
Example of inserting an obfuscator after compilation could look like this: | ||
<target name="-post-compile"> | ||
<obfuscate> | ||
<fileset dir="${build.classes.dir}"/> | ||
</obfuscate> | ||
</target> | ||
For list of available properties check the imported | ||
nbproject/build-impl.xml file. | ||
Another way to customize the build is by overriding existing main targets. | ||
The targets of interest are: | ||
-init-macrodef-javac: defines macro for javac compilation | ||
-init-macrodef-junit: defines macro for junit execution | ||
-init-macrodef-debug: defines macro for class debugging | ||
-init-macrodef-java: defines macro for class execution | ||
-do-jar: JAR building | ||
run: execution of project | ||
-javadoc-build: Javadoc generation | ||
test-report: JUnit report generation | ||
An example of overriding the target for project execution could look like this: | ||
<target name="run" depends="Kavenegar-impl.jar"> | ||
<exec dir="bin" executable="launcher.exe"> | ||
<arg file="${dist.jar}"/> | ||
</exec> | ||
</target> | ||
Notice that the overridden target depends on the jar target and not only on | ||
the compile target as the regular run target does. Again, for a list of available | ||
properties which you can use, check the target you are overriding in the | ||
nbproject/build-impl.xml file. | ||
--> | ||
</project> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.