Skip to content

Commit ad7ec2c

Browse files
committed
🎉
1 parent 8f3e13b commit ad7ec2c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3232
import {
@@ -38,7 +38,7 @@ import {
3838
} from '@websiteshot/nodejs-client'
3939
```
4040

41-
Use the Client:
41+
### Init Client
4242

4343
```js
4444
const config: Config = {
@@ -47,7 +47,11 @@ const config: Config = {
4747
}
4848

4949
const websiteshotController = new WebsiteshotController(config)
50+
```
51+
52+
### Create Screenshot Job
5053

54+
```js
5155
const screenshotParameter: ScreenshotParameter = {
5256
width: 1200,
5357
height: 720,
@@ -68,7 +72,17 @@ const createRequest: CreateRequest = {
6872
await 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
7488
const config: Config = {

0 commit comments

Comments
 (0)