执行
PDF 报告
PDF 报告包括 KPI、图表和表格,并在 whiteLabel 是真实的时使用工作空间品牌。
模型模型
创建报告,查询其状态,然后下载。
const { data } = await post("/reports", { type: "serp", websiteId });
let status = "queued";
while (status !== "completed") {
await sleep(2000);
status = (await get(`/reports/${data.id}`)).data.status;
}
const pdf = await fetch(`${base}/reports/${data.id}/download`, { headers });GET
/api/v1/reports/{id}/download阅读关键下载所产生的文件
验证:在授权标题中输入 API 密钥。
请求
curl "https://devnoro.com/api/v1/reports/cm1site9x0001/download" \
-H "Authorization: Bearer $DEVNORO_KEY"答案
Binary file with Content-Type application/pdf, text/csv or application/json404 not_foundreport missing or not completed yet