Skip to content

Commit

Permalink
bump version to 2.0.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSDavidSoft committed Nov 8, 2023
1 parent b4587f9 commit 7e39782
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 51 deletions.
91 changes: 43 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# kavenegar-PHP
# Kavenegar-PHP
[![Latest Stable Version](https://poser.pugx.org/kavenegar/php/v/stable.svg)](https://packagist.org/packages/kavenegar/php)
[![Total Downloads](https://poser.pugx.org/kavenegar/php/downloads.svg)](https://packagist.org/packages/kavenegar/php)
[![Total Downloads](https://poser.pugx.org/kavenegar/php/downloads.svg)](https://packagist.org/packages/kavenegar/php)

# <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
Expand All @@ -15,7 +15,7 @@ After that you just need to pick API-KEY up from <a href="http://panel.kavenegar
</p>
<hr>

Use in these ways :
Use in these ways:

```php
composer require kavenegar/php
Expand All @@ -26,7 +26,7 @@ or add
```php
"kavenegar/php": "*"
```
And run following command to download extension using **composer**
And run following command to download extension using **composer**


```php
Expand All @@ -37,7 +37,7 @@ $ composer update
Usage
-----

Well, There is an example to Send SMS by PHP.
Here is an example to Send SMS by PHP.

```php
require __DIR__ . '/vendor/autoload.php';
Expand All @@ -58,7 +58,7 @@ try{
echo "receptor = $r->receptor";
echo "date = $r->date";
echo "cost = $r->cost";
}
}
}
}
catch(\Kavenegar\Exceptions\ApiException $e){
Expand All @@ -69,51 +69,48 @@ catch(\Kavenegar\Exceptions\HttpException $e){
// در زمانی که مشکلی در برقرای ارتباط با وب سرویس وجود داشته باشد این خطا رخ می دهد
echo $e->errorMessage();
}
```

/*
sample output
Example output:
```json
{
"return":
{
"status":200,
"message":"تایید شد"
},
"entries":
[
{
"messageid":8792343,
"message":"خدمات پیام کوتاه کاوه نگار",
"status":1,
"statustext":"در صف ارسال",
"sender":"10004346",
"receptor":"09123456789",
"date":1356619709,
"cost":120
},
{
"messageid":8792344,
"message":"خدمات پیام کوتاه کاوه نگار",
"status":1,
"statustext":"در صف ارسال",
"sender":"10004346",
"receptor":"09367891011",
"date":1356619709,
"cost":120
}
]
"return": {
"status": 200,
"message": "تایید شد"
},
"entries": [
{
"messageid": 8792343,
"message": "خدمات پیام کوتاه کاوه نگار",
"status": 1,
"statustext": "در صف ارسال",
"sender": "10004346",
"receptor": "09123456789",
"date": 1356619709,
"cost": 120
},
{
"messageid": 8792344,
"message": "خدمات پیام کوتاه کاوه نگار",
"status": 1,
"statustext": "در صف ارسال",
"sender": "10004346",
"receptor": "09367891011",
"date": 1356619709,
"cost": 120
}
]
}
*/
```


## Contribution

Bug fixes, docs, and enhancements welcome! Please let us know <a href="mailto:support@kavenegar.com?Subject=SDK" target="_top">support@kavenegar.com</a>
Bug fixes, documentation, and enhancements are welcome! Please let us know here: <a href="mailto:support@kavenegar.com?Subject=SDK" target="_top">support@kavenegar.com</a>

<hr>

<div dir='rtl'>

## راهنما

### معرفی سرویس کاوه نگار
Expand All @@ -122,11 +119,11 @@ Bug fixes, docs, and enhancements welcome! Please let us know <a href="mailto:su

### ساخت حساب کاربری

اگر در وب سرویس کاوه نگار عضو نیستید میتوانید از [لینک عضویت](http://panel.kavenegar.com/client/membership/register) ثبت نام و اکانت آزمایشی برای تست API دریافت نمایید.
اگر در وب سرویس کاوه نگار عضو نیستید میتوانید از [لینک عضویت](http://panel.kavenegar.com/client/membership/register) ثبت نام و اکانت آزمایشی برای تست API دریافت نمایید.

### مستندات

برای مشاهده اطلاعات کامل مستندات [وب سرویس پیامک](http://kavenegar.com/وب-سرویس-پیامک.html) به صفحه [مستندات وب سرویس](http://kavenegar.com/rest.html) مراجعه نمایید.
برای مشاهده اطلاعات کامل مستندات [وب سرویس پیامک](http://kavenegar.com/وب-سرویس-پیامک.html) به صفحه [مستندات وب سرویس](http://kavenegar.com/rest.html) مراجعه نمایید.

### راهنمای فارسی

Expand All @@ -138,13 +135,11 @@ Bug fixes, docs, and enhancements welcome! Please let us know <a href="mailto:su
کاوه نگار
مراجعه نمایید .

اگر در استفاده از کیت های سرویس کاوه نگار مشکلی یا پیشنهادی داشتید ما را با یک Pull Request یا ارسال ایمیل به support@kavenegar.com خوشحال کنید.
اگر در استفاده از کیت های سرویس کاوه نگار مشکلی یا پیشنهادی داشتید ما را با یک Pull Request یا ارسال ایمیل به support@kavenegar.com خوشحال کنید.

##
![http://kavenegar.com](http://kavenegar.com/public/images/logo.png)
![http://kavenegar.com](http://kavenegar.com/public/images/logo.png)

[http://kavenegar.com](http://kavenegar.com)
[http://kavenegar.com](http://kavenegar.com)

</div>


1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "kavenegar/php",
"type": "library",
"description": "A PHP wrapper for Kavenegar's API",
"version": "2.0.0-dev",
"keywords": ["kavenegar", "sms", "api"],
"homepage": "http://github.com/Kavenegar/kavenegar-php",
"license": "MIT",
Expand Down
4 changes: 1 addition & 3 deletions src/KavenegarApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class KavenegarApi
{
const APIPATH = "%s://api.kavenegar.com/v1/%s/%s/%s.json/";
const VERSION = "1.2.2";
const VERSION = "2.0.0-dev";
private $apiKey = "";
private $insecure = false;
public function __construct($apiKey, $insecure=false)
Expand Down Expand Up @@ -189,7 +189,6 @@ public function Cancel($messageid)
"messageid" => is_array($messageid) ? implode(",", $messageid) : $messageid
);
return $this->execute($path,$params);

}

public function Receive($linenumber, $isread = 0)
Expand Down Expand Up @@ -294,4 +293,3 @@ public function CallMakeTTS($receptor, $message, $date = null, $localid = null)
return $this->execute($path, $params);
}
}
?>

0 comments on commit 7e39782

Please sign in to comment.