Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Airtime
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
opensources
Airtime
Commits
ec72fe8f
Commit
ec72fe8f
authored
May 25, 2017
by
camoo
Committed by
GitHub
May 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
7ec1feeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
README.md
README.md
+11
-1
No files found.
README.md
View file @
ec72fe8f
...
...
@@ -15,7 +15,7 @@ This library needs minimum requirement for doing well on run.
Quick Examples
1)
Sending a Airtime
1)
Get available general info about destination msisdn
```
php
require_once
(
'src/autoload.php'
);
...
...
@@ -23,6 +23,16 @@ $oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b
// receiver recipient
$oAirtime
->
destination_msisdn
=
'237671234567'
;
#Retrieve MsisdnInfo
$ohMsisdnInfo
=
$oAirtime
->
getMsisdnInfo
();
```
2) Check available topup list and wholsale price list
```
php
$sTopupList
=
$ohMsisdnInfo
->
msisdn_info
->
topup_list
;
$sWholseSalePriceList
=
$ohMsisdnInfo
->
msisdn_info
->
wholesale_price_list
;
// your price for each topup product
```
3) Choose a topup amount from the key topup_list and send airtime
```php
// airtime from
$oAirtime->msisdn= '237661562859';
// airtime product
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment