-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Airtel Telecommunications Smart REST API SDK | ||
|
||
Provides a set of classes to build subscription, transactions funnel, payment gateway | ||
and operator discovery enterprise APIs | ||
|
||
_Export environment variables_ | ||
|
||
$ export SERVER_IP = <server_ip> | ||
$ export SERVER_PORT = <server_port> | ||
|
||
This package seeks to help Python developers implement the various Airtel Money APIs without much Challenges | ||
|
||
string json = "{\"InitiatorName\":\" here\"," + | ||
"\"SecurityCredential\":\" here \"," + | ||
"\"CommandID\":\" here \"," + | ||
"\"Amount\":\" here \"," + | ||
"\"PartyA\":\" here \"," + | ||
"\"PartyB\":\" here \"," + | ||
"\"Remarks\":\" here \"," + | ||
"\"QueueTimeOutURL\":\"http://your_timeout_url\"," + | ||
"\"ResultURL\":\"http://your_result_url\"," + | ||
"\"Occasion\":\" here \"}"; | ||
|
||
Write the json string to a Stream which will be sent along with your request. | ||
|
||
using (var streamWriter = new StreamWriter(request.GetRequestStream())) | ||
{ | ||
//the string (json) should be here | ||
streamWriter.Write(json); | ||
streamWriter.Flush(); | ||
streamWriter.Close(); | ||
} | ||
|
||
How to use ? | ||
|
||
Insert data to the API request body as stated above example. | ||
Insert the actual token to "ACCESS_TOKEN"; | ||
Use your application consumer key for this field "YOUR_APP_CONSUMER_KEY" | ||
Use your application consumer secret for this field "YOUR_APP_CONSUMER_SECRET". | ||
Development | ||
|
||
Python ^ Pycharm 2021 & .NET Framework 4.6.4 & | ||
Visual Studio Code 2020 are required. JayDwayne™ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from setuptools import setup | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup(name='airtel-python-sdk', | ||
version='0.1', | ||
description='Airtel Smart API SDK', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/sartim/airtel-python-sdk', | ||
author='sartim', | ||
license='MIT', | ||
packages=['airtel', ], | ||
install_requires=['requests', ], | ||
zip_safe=False | ||
) |