Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit 0a3df2c

Browse files
author
Josh Wolff
committed
1.0.0
1 parent 69a0e01 commit 0a3df2c

18 files changed

+47
-53
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.idea/workspace.xml

+35-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Using the Spontit API and Spontit app/webapp, you can send your own push notific
55

66
## TL;DR :running:
77

8-
1) Sign up at <a href="https://www.spontit.com" target="_blank">spontit.com</a> (you might need to click "Take me to the Desktop version."). Note down your username. It should be displayed in the top right.
9-
2) Get a secret key at <a href="https://www.spontit.com/secret_keys" target="_blank">spontit.com/secret_keys<a>.
8+
1) Sign up at <a href="https://www.spontit.com" target="_blank">spontit.com</a> (you might need to click "Take me to the Desktop version."). Note down your username. It should be displayed in the top left.
9+
2) Get a secret key at <a href="https://www.spontit.com/secret_keys" target="_blank">spontit.com/secret_keys</a>.
1010
3) Get the iPhone app or Android app. Sign in and allow notifications.
1111
4) `pip install spontit`
1212
5) `from spontit import SpontitResource`

build/lib/spontit/resource.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def __get_payload_dict(self, method_str):
3535
"""
3636
if type(method_str) is SpontitResource.FunctionStrings:
3737
method_str = method_str.value
38-
print(type(method_str))
3938
assert type(method_str) is str
4039
return {
4140
'user_id': self.user_id,

build/lib/spontit/util.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

55
def put_request(payload):
66
"""
7-
8-
:param payload:
9-
:return:
7+
A PUT request helper.
8+
:param payload: The content being PUT
9+
:return: The content resulting from the PUT request
1010
"""
1111
r = requests.post("https://www.spontit.com/api", data=payload, json=payload)
12-
print(r.status_code)
1312
if str(r.status_code) != "200":
1413
return {
1514
"Error": "Internal Server Error"
1615
}
1716
json_content = json.loads(r.content)
18-
print(json_content)
1917
return json_content

dist/spontit-0.0.3-py3-none-any.whl

-8.16 KB
Binary file not shown.

dist/spontit-0.0.3.tar.gz

-5.31 KB
Binary file not shown.

dist/spontit-1.0.0-py3-none-any.whl

8.22 KB
Binary file not shown.

dist/spontit-1.0.0.tar.gz

5.34 KB
Binary file not shown.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setuptools.setup(
99
name="spontit",
10-
version="0.0.3",
10+
version="1.0.0",
1111
author="Spontit Inc",
1212
author_email="info@spontit.io",
1313
description="Send your own mobile push notifications.",

spontit.egg-info/PKG-INFO

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: spontit
3-
Version: 0.0.3
3+
Version: 1.0.0
44
Summary: Send your own mobile push notifications.
55
Home-page: https://github.com/joshwolff1/spontit_api
66
Author: Spontit Inc
@@ -13,8 +13,8 @@ Description: # SPONTIT :vibration_mode:
1313

1414
## TL;DR :running:
1515

16-
1) Sign up at <a href="https://www.spontit.com" target="_blank">spontit.com</a> (you might need to click "Take me to the Desktop version."). Note down your username. It should be displayed in the top right.
17-
2) Get a secret key at <a href="https://www.spontit.com/secret_keys" target="_blank">spontit.com/secret_keys<a>.
16+
1) Sign up at <a href="https://www.spontit.com" target="_blank">spontit.com</a> (you might need to click "Take me to the Desktop version."). Note down your username. It should be displayed in the top left.
17+
2) Get a secret key at <a href="https://www.spontit.com/secret_keys" target="_blank">spontit.com/secret_keys</a>.
1818
3) Get the iPhone app or Android app. Sign in and allow notifications.
1919
4) `pip install spontit`
2020
5) `from spontit import SpontitResource`

spontit/__init__.pyc

178 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
69 Bytes
Binary file not shown.

spontit/resource.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def __get_payload_dict(self, method_str):
3535
"""
3636
if type(method_str) is SpontitResource.FunctionStrings:
3737
method_str = method_str.value
38-
print(type(method_str))
3938
assert type(method_str) is str
4039
return {
4140
'user_id': self.user_id,

spontit/resource.pyc

3.56 KB
Binary file not shown.

spontit/util.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

55
def put_request(payload):
66
"""
7-
8-
:param payload:
9-
:return:
7+
A PUT request helper.
8+
:param payload: The content being PUT
9+
:return: The content resulting from the PUT request
1010
"""
1111
r = requests.post("https://www.spontit.com/api", data=payload, json=payload)
12-
print(r.status_code)
1312
if str(r.status_code) != "200":
1413
return {
1514
"Error": "Internal Server Error"
1615
}
1716
json_content = json.loads(r.content)
18-
print(json_content)
1917
return json_content

spontit/util.pyc

607 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)