canonicalwebteam.store-api 6.8.1__tar.gz → 6.9.0__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.
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/PKG-INFO +1 -1
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/store_api/devicegw.py +28 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/pyproject.toml +1 -1
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/LICENSE +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/README.md +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/__init__.py +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/exceptions.py +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/retry_utils.py +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/store_api/__init__.py +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/store_api/base.py +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/store_api/dashboard.py +0 -0
- {canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/store_api/publishergw.py +0 -0
|
@@ -229,6 +229,34 @@ class DeviceGW(Base):
|
|
|
229
229
|
)
|
|
230
230
|
return self.process_response(response)
|
|
231
231
|
|
|
232
|
+
def get_snap_details(
|
|
233
|
+
self,
|
|
234
|
+
name: str,
|
|
235
|
+
channel: Optional[str] = None,
|
|
236
|
+
fields: list = [],
|
|
237
|
+
) -> dict:
|
|
238
|
+
"""
|
|
239
|
+
Documentation: https://api.snapcraft.io/docs/details.html#snap_details
|
|
240
|
+
Endpoint: [GET]
|
|
241
|
+
https://api.snapcraft.io/api/v1/{name_space}/details/{package_name}
|
|
242
|
+
"""
|
|
243
|
+
# this method is only available in API version 1
|
|
244
|
+
api_version = 1
|
|
245
|
+
url = self.get_endpoint_url("details/" + name, api_version=api_version)
|
|
246
|
+
params = {}
|
|
247
|
+
if fields:
|
|
248
|
+
params = {"fields": ",".join(fields)}
|
|
249
|
+
if channel:
|
|
250
|
+
params["channel"] = channel
|
|
251
|
+
headers = self.config[api_version].get("headers")
|
|
252
|
+
|
|
253
|
+
response = self.session.get(
|
|
254
|
+
url,
|
|
255
|
+
params=params,
|
|
256
|
+
headers=headers,
|
|
257
|
+
)
|
|
258
|
+
return self.process_response(response)
|
|
259
|
+
|
|
232
260
|
def get_public_metrics(self, json: dict, api_version: int = 1) -> dict:
|
|
233
261
|
"""
|
|
234
262
|
Documentation: https://api.snapcraft.io/docs/metrics.html
|
|
File without changes
|
|
File without changes
|
{canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/__init__.py
RENAMED
|
File without changes
|
{canonicalwebteam_store_api-6.8.1 → canonicalwebteam_store_api-6.9.0}/canonicalwebteam/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|