rocketapi 1.0.13__tar.gz → 1.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rocketapi-1.0.13 → rocketapi-1.0.14}/PKG-INFO +2 -2
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi/instagramapi.py +3 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi/rocketapi.py +2 -2
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi.egg-info/PKG-INFO +2 -2
- {rocketapi-1.0.13 → rocketapi-1.0.14}/setup.py +2 -2
- {rocketapi-1.0.13 → rocketapi-1.0.14}/README.md +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/pyproject.toml +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi/__init__.py +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi/exceptions.py +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi/threadsapi.py +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi.egg-info/SOURCES.txt +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi.egg-info/dependency_links.txt +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi.egg-info/requires.txt +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/rocketapi.egg-info/top_level.txt +0 -0
- {rocketapi-1.0.13 → rocketapi-1.0.14}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rocketapi
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.14
|
|
4
4
|
Summary: RocketAPI Python SDK
|
|
5
5
|
Home-page: https://github.com/rocketapi-io/rocketapi-python
|
|
6
|
-
Download-URL: https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.
|
|
6
|
+
Download-URL: https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.14.tar.gz
|
|
7
7
|
Author: RocketAPI
|
|
8
8
|
Author-email: developer@rocketapi.io
|
|
@@ -19,9 +19,12 @@ class InstagramAPI(RocketAPI):
|
|
|
19
19
|
"""
|
|
20
20
|
self.last_response = None
|
|
21
21
|
self.counter = 0
|
|
22
|
+
self.version = None
|
|
22
23
|
super().__init__(token, max_timeout=max_timeout)
|
|
23
24
|
|
|
24
25
|
def request(self, method, data):
|
|
26
|
+
if isinstance(self.version, str):
|
|
27
|
+
data = {**data, "version": self.version}
|
|
25
28
|
response = super().request(method, data)
|
|
26
29
|
self.last_response = response
|
|
27
30
|
self.counter += 1
|
|
@@ -11,7 +11,7 @@ class RocketAPI:
|
|
|
11
11
|
For more information, see documentation: https://docs.rocketapi.io/api/
|
|
12
12
|
"""
|
|
13
13
|
self.base_url = "https://v1.rocketapi.io/"
|
|
14
|
-
self.
|
|
14
|
+
self.sdk_version = "1.0.14"
|
|
15
15
|
self.token = token
|
|
16
16
|
self.max_timeout = max_timeout
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ class RocketAPI:
|
|
|
21
21
|
json=data,
|
|
22
22
|
headers={
|
|
23
23
|
"Authorization": f"Token {self.token}",
|
|
24
|
-
"User-Agent": f"RocketAPI Python SDK/{self.
|
|
24
|
+
"User-Agent": f"RocketAPI Python SDK/{self.sdk_version}",
|
|
25
25
|
},
|
|
26
26
|
timeout=self.max_timeout,
|
|
27
27
|
).json()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rocketapi
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.14
|
|
4
4
|
Summary: RocketAPI Python SDK
|
|
5
5
|
Home-page: https://github.com/rocketapi-io/rocketapi-python
|
|
6
|
-
Download-URL: https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.
|
|
6
|
+
Download-URL: https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.14.tar.gz
|
|
7
7
|
Author: RocketAPI
|
|
8
8
|
Author-email: developer@rocketapi.io
|
|
@@ -3,12 +3,12 @@ import setuptools
|
|
|
3
3
|
|
|
4
4
|
setuptools.setup(
|
|
5
5
|
name="rocketapi",
|
|
6
|
-
version="1.0.
|
|
6
|
+
version="1.0.14",
|
|
7
7
|
author="RocketAPI",
|
|
8
8
|
author_email="developer@rocketapi.io",
|
|
9
9
|
description="RocketAPI Python SDK",
|
|
10
10
|
packages=["rocketapi"],
|
|
11
11
|
url="https://github.com/rocketapi-io/rocketapi-python",
|
|
12
|
-
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.
|
|
12
|
+
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.14.tar.gz",
|
|
13
13
|
install_requires=["requests"],
|
|
14
14
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|