diff --git a/Turbosms.php b/Turbosms.php index 31b7b6a..252a133 100644 --- a/Turbosms.php +++ b/Turbosms.php @@ -125,4 +125,24 @@ public function saveToDb($text, $phone, $message) { $model->save(); } + /** + * Get balance + * + * @return int + */ + public function getBalance() { + $result = $this->client->GetCreditBalance(); + return intval($result->GetCreditBalanceResult); + } + + /** + * @param $messageId + * + * @return mixed + */ + public function getMessageStatus($messageId) { + $result = $this->client->GetMessageStatus(['MessageId' => $messageId]); + return $result->GetMessageStatusResult; + } + } \ No newline at end of file