canonicalwebteam.store-api 7.3.1__py3-none-any.whl → 7.3.2__py3-none-any.whl
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.
Potentially problematic release.
This version of canonicalwebteam.store-api might be problematic. Click here for more details.
- canonicalwebteam/store_api/devicegw.py +5 -3
- {canonicalwebteam_store_api-7.3.1.dist-info → canonicalwebteam_store_api-7.3.2.dist-info}/METADATA +1 -1
- {canonicalwebteam_store_api-7.3.1.dist-info → canonicalwebteam_store_api-7.3.2.dist-info}/RECORD +5 -5
- {canonicalwebteam_store_api-7.3.1.dist-info → canonicalwebteam_store_api-7.3.2.dist-info}/WHEEL +1 -1
- {canonicalwebteam_store_api-7.3.1.dist-info → canonicalwebteam_store_api-7.3.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -307,7 +307,7 @@ class DeviceGW(Base):
|
|
|
307
307
|
)["revisions"]
|
|
308
308
|
|
|
309
309
|
def get_featured_snaps(
|
|
310
|
-
self, api_version: int = 1, fields: str = "snap_id"
|
|
310
|
+
self, api_version: int = 1, fields: str = "snap_id", headers: dict = {}
|
|
311
311
|
) -> dict:
|
|
312
312
|
"""
|
|
313
313
|
Documentation: (link to spec)
|
|
@@ -315,7 +315,9 @@ class DeviceGW(Base):
|
|
|
315
315
|
Endpoint: https://api.snapcraft.io/api/v1/snaps/search
|
|
316
316
|
"""
|
|
317
317
|
url = self.get_endpoint_url("search")
|
|
318
|
-
|
|
318
|
+
default_headers = self.config[api_version].get("headers", {})
|
|
319
|
+
|
|
320
|
+
merged_headers = {**default_headers, **headers}
|
|
319
321
|
|
|
320
322
|
params = {
|
|
321
323
|
"scope": "wide",
|
|
@@ -326,5 +328,5 @@ class DeviceGW(Base):
|
|
|
326
328
|
}
|
|
327
329
|
|
|
328
330
|
return self.process_response(
|
|
329
|
-
self.session.get(url, params=params, headers=
|
|
331
|
+
self.session.get(url, params=params, headers=merged_headers)
|
|
330
332
|
)
|
{canonicalwebteam_store_api-7.3.1.dist-info → canonicalwebteam_store_api-7.3.2.dist-info}/RECORD
RENAMED
|
@@ -4,11 +4,11 @@ canonicalwebteam/retry_utils.py,sha256=zGGabWzHyoXPNdwXBS_gbz3W0Qpdg3wN1G6aNy_xe
|
|
|
4
4
|
canonicalwebteam/store_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
canonicalwebteam/store_api/base.py,sha256=_kx3_hPQHJPUtdf3z4NXmcwHlswV1g1mw483fZXD5LM,3331
|
|
6
6
|
canonicalwebteam/store_api/dashboard.py,sha256=M5JLjTTahN-bfiVz9SuP6ahLjqEvOalwmNim6X5Ky6o,22796
|
|
7
|
-
canonicalwebteam/store_api/devicegw.py,sha256=
|
|
7
|
+
canonicalwebteam/store_api/devicegw.py,sha256=NxO0kGtKjSixmwmyp-dXz53ohtlSDw-hJ55ugsUKj5I,10723
|
|
8
8
|
canonicalwebteam/store_api/publishergw.py,sha256=u2D2Y76xC8ms16XTZcUe_KmRdcyzqOV2g0aN9HYZBrQ,29702
|
|
9
9
|
canonicalwebteam/stores_web_redis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
canonicalwebteam/stores_web_redis/utility.py,sha256=iT5Wb6tk53ywtDVWMcfzAT_Sljmvo0bdhaUg6uepT2o,4290
|
|
11
|
-
canonicalwebteam_store_api-7.3.
|
|
12
|
-
canonicalwebteam_store_api-7.3.
|
|
13
|
-
canonicalwebteam_store_api-7.3.
|
|
14
|
-
canonicalwebteam_store_api-7.3.
|
|
11
|
+
canonicalwebteam_store_api-7.3.2.dist-info/METADATA,sha256=I7Po50dEoiflvNsbb675IAY2owGLspq8QjVg_uA4mMo,2357
|
|
12
|
+
canonicalwebteam_store_api-7.3.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
13
|
+
canonicalwebteam_store_api-7.3.2.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
14
|
+
canonicalwebteam_store_api-7.3.2.dist-info/RECORD,,
|
|
File without changes
|