SDK: download files (#4196)

This commit is contained in:
Stanislav Novosad
2025-12-04 10:50:29 -07:00
committed by GitHub
parent b30f3b09c8
commit 4665f8907d
16 changed files with 983 additions and 105 deletions

View File

@@ -160,6 +160,24 @@ await skyvern.login({
onepassword_item_id: "1PASSWORD ITEM ID"
});
"""
FILE_DOWNLOAD_CODE_SAMPLE_PYTHON = """from skyvern import Skyvern
skyvern = Skyvern(api_key="YOUR_API_KEY")
await skyvern.file_download(
url="https://example.com/downloads",
navigation_goal="Navigate to the downloads page and click the 'Download PDF' button",
download_suffix="report.pdf"
)
"""
FILE_DOWNLOAD_CODE_SAMPLE_TS = """import { SkyvernClient } from "@skyvern/client";
const skyvern = new SkyvernClient({ apiKey: "YOUR_API_KEY" });
await skyvern.fileDownload({
url: "https://example.com/downloads",
navigation_goal: "Navigate to the downloads page and click the 'Download PDF' button",
download_suffix: "report.pdf"
});
"""
# Workflows
CREATE_WORKFLOW_CODE_SAMPLE_CURL = """curl -X POST https://api.skyvern.com/v1/workflows \