Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDwayne authored Jun 24, 2021
1 parent b1de14b commit 5d5d806
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
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™
17 changes: 17 additions & 0 deletions setup.py
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
)

0 comments on commit 5d5d806

Please sign in to comment.