Skip to content

Commit 3b4c167

Browse files
author
Mohammed Aljuraysh
committed
Update balance method to use GET request and parse response as JSON
1 parent 4350cf7 commit 3b4c167

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
### Version 2.1.0
44

5+
- update method to get balance.
6+
7+
### Version 2.1.0
8+
59
- add message model to log message send.
610
- you can link message with any notifiable model to get its messages.
711

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bitcodesa/msegat",
33
"description": "Notification Channel For Msegate msegat.com",
4-
"version": "2.4.0",
4+
"version": "2.5.0",
55
"keywords": [
66
"BitcodeSa",
77
"laravel",

src/MsegatBalance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function setRequest()
2828
public function balance()
2929
{
3030
$this->setRequest();
31-
$this->response = $this->client->post("/".$this->end_point, $this->request);
32-
return $this->response;
31+
$this->response = $this->client->get("/".$this->end_point, $this->request);
32+
return $this->response->json();
3333
}
3434
}

0 commit comments

Comments
 (0)