Skip to content

Commit

Permalink
chore: update hcaptcha solution object
Browse files Browse the repository at this point in the history
  • Loading branch information
hhendrikk committed Oct 2, 2023
1 parent 9743157 commit d9c054b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 6 additions & 0 deletions anticaptcha/model/task-result-response.model.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ type TaskResultSolutionResponse struct {
// ImageToTextTask
Url string `json:"url"`

// UserAgent
UserAgent string `json:"userAgent"`

// Recaptcha
GRecaptchaResponse string `json:"gRecaptchaResponse"`

// Recaptcha RespKey
RecaptchaRespKey string `json:"respKey"`

// Funcaptcha
Token string `json:"token"`

Expand Down
4 changes: 0 additions & 4 deletions anticaptcha/task/hcaptcha-proxyless.task.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ type HCaptchaProxylessTask struct {
WebsiteURL string `json:"websiteURL"`
// hCaptcha sitekey
WebsiteKey string `json:"websiteKey"`
// Provide the User Agent you are using to navigate the website.
// Our workers will use same value during Hcaptcha solving process.
UserAgent string `json:"userAgent"`
// Specify whether or not Hcaptcha is invisible.
// This will render an appropriate widget for our workers.
IsInvisible bool `json:"isInvisible"`
Expand All @@ -32,6 +29,5 @@ func NewHCaptchaProxylessTask(websiteURL string, websiteKey string, userAgent st
Type: "HCaptchaTaskProxyless",
WebsiteURL: websiteURL,
WebsiteKey: websiteKey,
UserAgent: userAgent,
}
}
4 changes: 0 additions & 4 deletions anticaptcha/task/hcaptcha.task.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ type HCaptchaTask struct {
ProxyLogin string `json:"proxyLogin"`
// Proxy password
ProxyPassword string `json:"proxyPassword"`
// Provide the User Agent you are using to navigate the website.
// Our workers will use same value during Hcaptcha solving process.
UserAgent string `json:"userAgent"`
// Specify whether or not Hcaptcha is invisible.
// This will render an appropriate widget for our workers.
IsInvisible bool `json:"isInvisible"`
Expand All @@ -42,6 +39,5 @@ func NewHCaptchaTask(websiteURL string, websiteKey string, proxyType string, pro
ProxyType: proxyType,
ProxyAddress: proxyAddress,
ProxyPort: proxyPort,
UserAgent: userAgent,
}
}

0 comments on commit d9c054b

Please sign in to comment.