Ausführung
PDF Berichte
Download generierte Dateien direkt. PDF-Berichte enthalten KPIs, Charts und Tabellen und verwenden Sie Ihre Arbeitsplatz-Marke, wenn WhiteLabel wahr ist.
Polling Pattern
Erzeugen Sie den Bericht, prüfen Sie den Status und herunterladen Sie ihn.
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}/downloadLesen Sie SchlüsselDownload der generierten Datei
Authentikierung: Tragen Sie den API-Schlüssel im Autorisierungs-Header.
Anfrage
curl "https://devnoro.com/api/v1/reports/cm1site9x0001/download" \
-H "Authorization: Bearer $DEVNORO_KEY"Antwort
Binary file with Content-Type application/pdf, text/csv or application/json404 not_foundreport missing or not completed yet