Skip to content

Commit 8bea069

Browse files
authored
Create example-screenshot-from-url.mdx
1 parent d7caea7 commit 8bea069

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```bash
2+
curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-rendering/screenshot' \
3+
-H 'Authorization: Bearer <apiToken>' \
4+
-H 'Content-Type: application/json' \
5+
-d '{
6+
"html": "Hello World!",
7+
"screenshotOptions": {
8+
"omitBackground": true
9+
}
10+
}' \
11+
--output "screenshot.png"
12+
```

0 commit comments

Comments
 (0)