File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { getCredits } from "scrapegraph-sdk";
2
2
import 'dotenv/config' ;
3
3
4
4
try {
5
- const apiKey = process . env . SGAI_APIKEY ;
5
+ const apiKey = process . env . SGAI_APIKEY ;
6
6
7
- const myCredit = await getCredits ( apiKey ) ;
7
+ const myCredit = await getCredits ( apiKey ) ;
8
8
9
- console . log ( myCredit )
9
+ console . log ( myCredit )
10
10
} catch ( error ) {
11
- console . error ( error )
11
+ console . error ( error )
12
12
}
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import { getSmartScraperRequest } from "scrapegraph-sdk";
2
2
import 'dotenv/config' ;
3
3
4
4
try {
5
- const apiKey = process . env . SGAI_APIKEY ;
6
- const requestId = " 3fa85f64-5717-4562-b3fc-2c963f66afa6"
5
+ const apiKey = process . env . SGAI_APIKEY ;
6
+ const requestId = ' 3fa85f64-5717-4562-b3fc-2c963f66afa6'
7
7
8
- const requestInfo = await getSmartScraperRequest ( apiKey , requestId ) ;
8
+ const requestInfo = await getSmartScraperRequest ( apiKey , requestId ) ;
9
9
10
- console . log ( requestInfo ) ;
10
+ console . log ( requestInfo ) ;
11
11
} catch ( error ) {
12
- console . error ( error ) ;
12
+ console . error ( error ) ;
13
13
}
You can’t perform that action at this time.
0 commit comments