File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ const url = capture.buildImageUrl('https://capture.techulus.in/', {
26
26
delay: 3 ,
27
27
t: Date .now ()
28
28
});
29
+
30
+ // or
31
+
32
+ const image = await capture .fetchImage (' https://capture.techulus.in/' , {
33
+ full: true ,
34
+ delay: 3 ,
35
+ t: Date .now ()
36
+ });
29
37
```
30
38
Now stick that url in an img tag to render the screenshot!
31
39
@@ -42,6 +50,14 @@ const url = capture.buildPdfUrl('https://capture.techulus.in/', {
42
50
delay: 3 ,
43
51
t: Date .now ()
44
52
});
53
+
54
+ // or
55
+
56
+ const pdf = capture .fetchPdf (' https://capture.techulus.in/' , {
57
+ full: true ,
58
+ delay: 3 ,
59
+ t: Date .now ()
60
+ });
45
61
```
46
62
47
63
### Content
@@ -53,6 +69,10 @@ const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET);
53
69
// var url = capture.buildContentUrl(URL_TO_CAPTURE, CAPTURE_OPTIONS);
54
70
55
71
const url = capture .buildContentUrl (' https://capture.techulus.in/' );
72
+
73
+ // or
74
+
75
+ const content = await capture .fetchContent (' https://capture.techulus.in/' );
56
76
```
57
77
58
78
### Metadata
@@ -64,4 +84,8 @@ const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET);
64
84
// var url = capture.buildMetadataUrl(URL_TO_CAPTURE, CAPTURE_OPTIONS);
65
85
66
86
const url = capture .buildMetadataUrl (' https://capture.techulus.in/' );
87
+
88
+ // or
89
+
90
+ const content = await capture .fetchMetadata (' https://capture.techulus.in/' );
67
91
```
You can’t perform that action at this time.
0 commit comments