Hello,
I am trying to download videos from my project using the Python SDK.
First, I am trying to find the asset_ids of each video I would like to download. So, I started by
I started by getting my account_id from this command:
requests.get("https://api.frame.io/v2/accounts", headers=headers)
Then I used that to get the team id using:
requests.get(f"https://api.frame.io/v2/accounts/{account_id}/teams", headers=headers)
From there, I was able to get my projects using this command:
requests.get(f"https://api.frame.io/v2/teams/{team_id}/projects", headers=headers)
And from this, I was able to extract the ‘root_asset_id’ for the project I want to download videos from.
Now I want to explore the folders/files within this project so I can find the asset_ids of the videos I want to download. But, when I try this command:
response = requests.get(
f"https://api.frame.io/v2/assets/131bd915-0a13-43cc-943e-1f80d8ce0f0f/children?type=folder",
headers=headers
)
I get this error:
Failed. Status code: 401, Response: {"code":401,"errors":[{"code":401,"detail":"You are not allowed to access that resource","status":401,"title":"Not Authorized"}],"message":"Not Authorized"}
I am wondering why I am not able to make this API call despite being able to make the other API calls? Is there an issue with the API token I am using? 401 Error when Attempting to Access Children Folders