Skip to content

Commit 131ba35

Browse files
authored
Update markdown-endpoint.mdx
fix /markdown typescript example
1 parent b4379e5 commit 131ba35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/browser-rendering/rest-api/markdown-endpoint.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ curl -X 'POST' 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browse
3939
import Cloudflare from "cloudflare";
4040

4141
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
42+
apiToken: process.env["CLOUDFLARE_API_TOKEN"],
4443
});
4544

4645
const markdown = await client.browserRendering.markdown.create({
47-
account_id: "account_id",
46+
account_id: process.env["CLOUDFLARE_ACCOUNT_ID"],
47+
url: "https://developers.cloudflare.com/",
4848
});
4949

5050
console.log(markdown);

0 commit comments

Comments
 (0)