@@ -21,7 +21,7 @@ To start using the NextCaptcha Node.js SDK, you first need to obtain your API ke
21
21
you can create a NextCaptcha instance:
22
22
23
23
``` typescript
24
- import { NextCaptcha } from ' nextcaptcha' ;
24
+ import NextCaptcha from ' nextcaptcha-ts ' ;
25
25
26
26
const apiKey = ' YOUR_API_KEY' ;
27
27
const nextCaptcha = new NextCaptcha (apiKey );
@@ -32,48 +32,48 @@ Solving reCAPTCHA v2
32
32
To solve reCAPTCHA v2 challenges, use the recaptchaV2 method:
33
33
34
34
``` typescript
35
- const result = await nextCaptcha .recaptchaV2 (websiteURL , websiteKey );
35
+ const result = await nextCaptcha .recaptchaV2 ({ websiteURL , websiteKey } );
36
36
```
37
37
38
38
Solving reCAPTCHA v3
39
39
To solve reCAPTCHA v3 challenges, use the recaptchaV3 method:
40
40
41
41
``` typescript
42
- const result = await nextCaptcha .recaptchaV3 (websiteURL , websiteKey , pageAction );
42
+ const result = await nextCaptcha .recaptchaV3 ({ websiteURL , websiteKey , pageAction } );
43
43
```
44
44
45
45
Solving reCAPTCHA Mobile
46
46
To solve reCAPTCHA Mobile challenges, use the recaptchaMobile method:
47
47
48
48
``` typescript
49
- const result = await nextCaptcha .recaptchaMobile (websiteURL , websiteKey );
49
+ const result = await nextCaptcha .recaptchaMobile ({ websiteURL , websiteKey } );
50
50
```
51
51
52
52
Solving hCaptcha
53
53
To solve hCaptcha challenges, use the hcaptcha method:
54
54
55
55
``` typescript
56
- const result = await nextCaptcha .hcaptcha (websiteURL , websiteKey );
56
+ const result = await nextCaptcha .hcaptcha ({ websiteURL , websiteKey } );
57
57
```
58
58
59
59
Solving hCaptcha Enterprise
60
60
To solve hCaptcha Enterprise challenges, use the hcaptchaEnterprise method:
61
61
62
- ```
63
- const result = await nextCaptcha.hcaptchaEnterprise(websiteURL, websiteKey, enterprisePayload);
62
+ ``` typescript
63
+ const result = await nextCaptcha .hcaptchaEnterprise ({ websiteURL , websiteKey , enterprisePayload } );
64
64
```
65
65
66
66
Solving FunCaptcha
67
67
To solve FunCaptcha challenges, use the funcaptcha method:
68
68
69
- ```
70
- const result = await nextCaptcha.funcaptcha(websitePublicKey);
69
+ ``` typescript
70
+ const result = await nextCaptcha .funcaptcha ({ websitePublicKey , websiteURL } );
71
71
```
72
72
73
73
Checking Account Balance
74
74
To check your NextCaptcha account balance, use the getBalance method:
75
75
76
- ```
76
+ ``` typescript
77
77
const balance = await nextCaptcha .getBalance ();
78
78
console .log (` Account balance: ${balance } ` );
79
79
```
0 commit comments