Skip to content

Commit 6680972

Browse files
committed
adjusted urls and setup.py
1 parent 8452d2d commit 6680972

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Here is an example on how to send an SMS with this package;
2828

2929
>> import nextsms
3030
>> sender = nextsms('your username', 'your password')
31-
>> sender.sendsms(message='hello', recipients=['075XXXXX',['065XXXX'])
31+
>> sender.sendsms(message='hello', recipients=['075XXXXX',['065XXXX'], sender_id="NEXTSMS")
3232

3333
```
3434

nextsms/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def sendsms(self, message: str, recipients: Union[str, List[str]], sender_id: st
154154
f"message should be of type <class 'str'> not {type(message)}")
155155

156156
return requests.post(
157-
self.BASE_URL_SINGLE,
157+
self.base_url_single,
158158
headers=self.create_header(),
159159
json={
160160
'from': sender_id,
@@ -189,7 +189,7 @@ def send_bulk(self, messages: List[Dict]) -> Dict:
189189
f"messages should be of type <class 'list'> not type {type(messages)}")
190190

191191
return requests.post(
192-
self.BASE_URL_MULTIPLE,
192+
self.base_url_multiple,
193193
headers=self.create_header(),
194194
json={
195195
'messages': messages

setup.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
from distutils.core import setup
2+
3+
setup(
4+
name="nextsms",
5+
version="0.1",
6+
description='Python package to easy integration with NextSms API for bulksms',
7+
url='https://github.com/Kalebu/nextsms',
8+
download_url="https://github.com/Kalebu/nextsms/archive/0.1.tar.gz",
9+
author="Jordan Kalebu",
10+
author_email="isaackeinstein@gmail.com",
11+
license="MIT",
12+
packages=["nextsms"],
13+
keywords=[
14+
"nextsms",
15+
"python-nextsms",
16+
"tanzania sms",
17+
"nextsms-tanzania",
18+
],
19+
20+
install_requires=[
21+
'requests',
22+
],
23+
24+
python_requires=">=3.6",
25+
26+
classifiers=[
27+
"Development Status :: 3 - Alpha",
28+
"Intended Audience :: Developers",
29+
"Topic :: Software Development :: Build Tools",
30+
"License :: OSI Approved :: MIT License",
31+
"Programming Language :: Python :: 3.6",
32+
"Programming Language :: Python :: 3.7",
33+
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3.9",
35+
],
36+
)

0 commit comments

Comments
 (0)