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
db71bca7
Commit
db71bca7
authored
May 28, 2017
by
Camoo Sarl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VERSION.txt and LICENSE added
parent
734c08fe
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
46 additions
and
16 deletions
+46
-16
LICENSE
LICENSE
+20
-0
README.md
README.md
+1
-1
VERSION.txt
VERSION.txt
+17
-0
example-airtime-view.php
examples/example-airtime-view.php
+1
-1
example-balance.php
examples/example-balance.php
+1
-1
example-get-airtime-msisdninfo.php
examples/example-get-airtime-msisdninfo.php
+1
-1
example-get-airtime-retail-price-list.php
examples/example-get-airtime-retail-price-list.php
+1
-1
example-get-airtime-topup-list.php
examples/example-get-airtime-topup-list.php
+1
-1
example-get-airtime-wholesale-price-list.php
examples/example-get-airtime-wholesale-price-list.php
+1
-1
example-send-airtime.php
examples/example-send-airtime.php
+1
-1
Token.php
src/Authentifications/Token.php
+0
-2
CamooHttpClient.php
src/HttpClients/CamooHttpClient.php
+0
-1
bootstrap.php
tests/bootstrap.php
+1
-5
No files found.
LICENSE
0 → 100644
View file @
db71bca7
The MIT License (MIT)
Copyright (c) 2017 CAMOO SARL
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
README.md
View file @
db71bca7
...
...
@@ -17,7 +17,7 @@ Quick Examples
1) Get available general info about destination msisdn
```
php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
// set api_key and secret_key
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
...
...
VERSION.txt
0 → 100644
View file @
db71bca7
////////////////////////////////////////////////////////////////////////////////////////////////////
// +--------------------------------------------------------------------------------------------+ //
// CAMOO/Airtime Version
//
// Holds a static string representing the current version of CAMOO/Airtime
//
// Copyright Copyright (c) CAMOO SARL (http://camoo.cm)
//
// Licensed under The MIT License
// Redistributions of files must retain the above copyright notice.
//
// @copyright Copyright (c) CAMOO SARL (http://camoo.cm)
// @link http://camoo.cm
// @license http://www.opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
2.0.3
examples/example-airtime-view.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
// set transaction Id
...
...
examples/example-balance.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oBalance
=
new
\CAMOO\Balance\Balance
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
...
...
examples/example-get-airtime-msisdninfo.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
// receiver recipient
...
...
examples/example-get-airtime-retail-price-list.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
// receiver recipient
...
...
examples/example-get-airtime-topup-list.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
// receiver recipient
...
...
examples/example-get-airtime-wholesale-price-list.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
// receiver recipient
...
...
examples/example-send-airtime.php
View file @
db71bca7
<?php
require_once
(
'src/autoload.php'
)
;
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
$oAirtime
=
new
\CAMOO\Airtime\Airtime
(
'592595095gh57'
,
'4e32da5979879b89479847b9798479494984'
);
...
...
src/Authentifications/Token.php
View file @
db71bca7
...
...
@@ -14,11 +14,9 @@ namespace CAMOO\Authentifications;
* @link http://www.camoo.cm
*/
require_once
(
CAMOO_ROOT_SRC_DIR
.
'vendor/autoload.php'
);
use
Lcobucci\JWT\Builder
;
use
Lcobucci\JWT\Signer\Hmac\Sha256
;
/**
* Class Token
*
...
...
src/HttpClients/CamooHttpClient.php
View file @
db71bca7
...
...
@@ -13,7 +13,6 @@ namespace CAMOO\HttpClients;
*
* @link http://www.camoo.cm
*/
require_once
(
CAMOO_ROOT_SRC_DIR
.
'vendor/autoload.php'
);
use
GuzzleHttp\Exception\RequestException
;
use
CAMOO\Exceptions\HttpClientException
;
...
...
tests/bootstrap.php
View file @
db71bca7
...
...
@@ -4,8 +4,4 @@
*
*/
if
(
is_file
(
'src/autoload.php'
))
{
require_once
'src/autoload.php'
;
}
else
{
require_once
dirname
(
__DIR__
)
.
'/src/autoload.php'
;
}
require_once
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/autoload.php'
;
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