Skip to content

Commit b663f5f

Browse files
committed
Fixed missing scopes.
Fixes #1.
1 parent 3056f91 commit b663f5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/autodesk_forge_sdk/dm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def create_bucket(
217217
headers = {
218218
"x-ads-region": region
219219
}
220-
return self._post("/buckets", WRITE_SCOPES, json=json, headers=headers).json()
220+
return self._post("/buckets", scopes=WRITE_SCOPES, json=json, headers=headers).json()
221221

222222
def delete_bucket(self, bucket_key: str):
223223
"""

src/autodesk_forge_sdk/md.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def submit_job(self, urn: str, output_formats: list[dict], **kwargs) -> dict:
146146
if "force" in kwargs:
147147
headers["x-ads-force"] = "true"
148148
# TODO: what about the EMEA endpoint?
149-
return self._post("/designdata/job", WRITE_SCOPES, json=json, headers=headers).json()
149+
return self._post("/designdata/job", scopes=WRITE_SCOPES, json=json, headers=headers).json()
150150

151151
def get_thumbnail(self, urn: str, width: int = None, height: int = None) -> bytes:
152152
"""

0 commit comments

Comments
 (0)