From c87820b7367a6123e25a8c03a64af67300c8911c Mon Sep 17 00:00:00 2001 From: Slava Rudnev Date: Wed, 11 Sep 2019 09:42:51 +0300 Subject: [PATCH] Add balance detail api call --- SendPulse.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/SendPulse.php b/SendPulse.php index 0b09ad8..9cd8808 100644 --- a/SendPulse.php +++ b/SendPulse.php @@ -775,6 +775,20 @@ public function getBalance($currency = '') return $this->handleResult($requestResult); } + + /** + * Get balance detail + * + * @return mixed + */ + public function getBalanceDetail() + { + $url = 'user/balance/detail'; + + $requestResult = $this->sendRequest($url); + + return $this->handleResult($requestResult); + } /** * SMTP: get list of emails @@ -1095,4 +1109,4 @@ public function createPushTask($taskInfo, $additionalParams = array()) return $this->handleResult($requestResult); } -} \ No newline at end of file +}