zpdatafetch 2.3.0__tar.gz → 2.3.1__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.
- {zpdatafetch-2.3.0/src/zpdatafetch.egg-info → zpdatafetch-2.3.1}/PKG-INFO +1 -1
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/pyproject.toml +1 -1
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/rideons.py +3 -3
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1/src/zpdatafetch.egg-info}/PKG-INFO +1 -1
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/LICENSE +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/README.md +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/setup.cfg +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/__init__.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/cli.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/error_helpers.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/exceptions.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/http_client.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/json_helpers.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/logging.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/shared/validation.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/__init__.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/activity.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/auth.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/cli.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/followers.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/profile.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/ridersinworld.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zdatafetch/worlds.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/__init__.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/async_zp.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/cli.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zp.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zp_obj.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zp_utils.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpcyclist.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpcyclistfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpleague.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpleaguefetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpprime.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpprimesfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpracefinish.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpracelog.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpraceresult.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpracesignup.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpracesprint.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpresultfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpsignupfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpsprintsfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpteam.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch/zpteamfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch.egg-info/SOURCES.txt +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch.egg-info/dependency_links.txt +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch.egg-info/entry_points.txt +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch.egg-info/requires.txt +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zpdatafetch.egg-info/top_level.txt +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/__init__.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/async_zr.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/cli.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/rate_limiter.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zr.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zr_utils.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zrraceresult.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zrresultfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zrrider.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zrriderfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zrteamfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zrdatafetch/zrteamroster.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/__init__.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/async_zs.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/cli.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/__init__.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/component.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/incident.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/maintenance.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/page.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/status.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/models/summary.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/zs.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/zsincidentfetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/zsmaintenancefetch.py +0 -0
- {zpdatafetch-2.3.0 → zpdatafetch-2.3.1}/src/zsdatafetch/zssummaryfetch.py +0 -0
|
@@ -25,7 +25,7 @@ class ZwiftRideOns:
|
|
|
25
25
|
Also supports giving RideOns to activities.
|
|
26
26
|
|
|
27
27
|
API Endpoints:
|
|
28
|
-
GET https://us-or-rly101.zwift.com/api/profiles/{riderId}/activities/{activityId}/
|
|
28
|
+
GET https://us-or-rly101.zwift.com/api/profiles/{riderId}/activities/{activityId}/rideon
|
|
29
29
|
POST https://us-or-rly101.zwift.com/api/profiles/{riderId}/activities/{activityId}/rideon
|
|
30
30
|
|
|
31
31
|
Documentation: https://github.com/strukturunion-mmw/zwift-api-documentation
|
|
@@ -106,7 +106,7 @@ class ZwiftRideOns:
|
|
|
106
106
|
self.rider_id = rider_id
|
|
107
107
|
self.activity_id = activity_id
|
|
108
108
|
|
|
109
|
-
url = f'{self.BASE_URL}/api/profiles/{rider_id}/activities/{activity_id}/
|
|
109
|
+
url = f'{self.BASE_URL}/api/profiles/{rider_id}/activities/{activity_id}/rideon'
|
|
110
110
|
|
|
111
111
|
try:
|
|
112
112
|
with httpx2.Client() as client:
|
|
@@ -190,7 +190,7 @@ class ZwiftRideOns:
|
|
|
190
190
|
with httpx2.Client() as client:
|
|
191
191
|
for rider_id, activity_id in activity_tuples:
|
|
192
192
|
try:
|
|
193
|
-
url = f'{cls.BASE_URL}/api/profiles/{rider_id}/activities/{activity_id}/
|
|
193
|
+
url = f'{cls.BASE_URL}/api/profiles/{rider_id}/activities/{activity_id}/rideon'
|
|
194
194
|
response = client.get(url, headers=headers, timeout=30.0)
|
|
195
195
|
|
|
196
196
|
if response.status_code == 200:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|