Returns an OSS pre-signed URL (file_url) valid for 2 hours. You can directly GET this URL to download the zip package content.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /skills/{skill_id}/versions/{version}/content
Request example
curl "$AGENTSTUDIO_URL/skills/skill_xxx/versions/1.0/content" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"content = client.skills.versions.download("skill_xxx", "1.0")
print(content["file_url"])JsonObject content = client.skills().downloadVersion("skill_xxx", "1.0");
System.out.println(content.get("file_url").getAsString());Response example
{
"skill_id": "skill_xxx",
"version": "1.0",
"file_url": "https://<oss-bucket>.oss-cn-xxx.aliyuncs.com/...?Expires=...&Signature=...",
"request_id": "xxx"
}
该文章对您有帮助吗?