Skip to content

Commit 7207244

Browse files
authored
Updated README.md with new examples
Added new examples in README.md for: - Get account balance - Get account pricing
1 parent a2b3d58 commit 7207244

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,40 @@ print_r($message);
222222
?>
223223
```
224224

225+
### Get account balance
226+
227+
```php
228+
<?php
229+
230+
//Your account username and password
231+
$username = "";
232+
$password = "";
233+
234+
$client = new APIClient($username, $password);
235+
236+
//Get account balance and print it
237+
echo $client->getBalance();
238+
239+
?>
240+
```
241+
242+
### Get account pricing
243+
244+
```php
245+
<?php
246+
247+
//Your account username and password
248+
$username = "";
249+
$password = "";
250+
251+
$client = new APIClient($username, $password);
252+
253+
//Get account pricing and print it
254+
print_r($client->getPricing());
255+
256+
?>
257+
```
258+
225259
### Receive delivery reports
226260

227261
Delivery reports are forwarded automatically, to the user system / platform. When an SMS delivery report is received by our SMS API Platform, the DLR information is immediately forwarded to your specified DLR Callback URL via a POST request. You can setup your DLR Callback URL in the [web portal][webpanel].
@@ -283,4 +317,4 @@ If you've instead found a bug in the library or would like new features added, g
283317
[apidocumentation]: https://api.solutions4mobiles.com/sms-api.html
284318
[apiaccount]: https://www.solutions4mobiles.com/product/sms-messaging
285319
[webpanel]: https://sms.solutions4mobiles.com
286-
[MobiWebSupportCenter]: https://www.solutions4mobiles.com/support
320+
[MobiWebSupportCenter]: https://www.solutions4mobiles.com/support

0 commit comments

Comments
 (0)