File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ npm i @websiteshot/nodejs-client --save
2626
2727## Usage
2828
29- Import the Controller and the needed types:
29+ ### Import Controller and Types
3030
3131``` js
3232import {
@@ -38,7 +38,7 @@ import {
3838} from ' @websiteshot/nodejs-client'
3939```
4040
41- Use the Client:
41+ ### Init Client
4242
4343``` js
4444const config: Config = {
@@ -47,7 +47,11 @@ const config: Config = {
4747}
4848
4949const websiteshotController = new WebsiteshotController (config)
50+ ```
51+
52+ ### Create Screenshot Job
5053
54+ ``` js
5155const screenshotParameter: ScreenshotParameter = {
5256 width: 1200 ,
5357 height: 720 ,
@@ -68,7 +72,17 @@ const createRequest: CreateRequest = {
6872await websiteshotController .create (createRequest)
6973```
7074
71- Get Screenshot Jobs:
75+ ### Create Screenshot Job with Template
76+
77+ ``` js
78+ const createRequest: CreateRequest = {
79+ templateId: ' ...' ,
80+ }
81+
82+ await websiteshotController .create (createRequest)
83+ ```
84+
85+ ### Get Screenshot Jobs
7286
7387``` js
7488const config: Config = {
You can’t perform that action at this time.
0 commit comments