We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4379e5 commit 131ba35Copy full SHA for 131ba35
src/content/docs/browser-rendering/rest-api/markdown-endpoint.mdx
@@ -39,12 +39,12 @@ curl -X 'POST' 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browse
39
import Cloudflare from "cloudflare";
40
41
const client = new Cloudflare({
42
- apiEmail: process.env["CLOUDFLARE_EMAIL"], // This is the default and can be omitted
43
- apiKey: process.env["CLOUDFLARE_API_KEY"], // This is the default and can be omitted
+ apiToken: process.env["CLOUDFLARE_API_TOKEN"],
44
});
45
46
const markdown = await client.browserRendering.markdown.create({
47
- account_id: "account_id",
+ account_id: process.env["CLOUDFLARE_ACCOUNT_ID"],
+ url: "https://developers.cloudflare.com/",
48
49
50
console.log(markdown);
0 commit comments