Go

Go

We provide a library to make deploying services in Go-based applications easy. You only need to install the library and call the services directly. In the article below, we explain how to use seamlessly this library.

Installation

We prepared a Go-based library that you can install only with one comment in the terminal (or cmd in Windows). Using our service with this library would be really easier and you no longer need to implement this side of your application. you only need to call post-prepared functions.

1 go get github.com/metabypass/captcha-solver-go

Configuration

After you installed the library first you need to import it into your application:

1 import captcha_solver_go "github.com/metabypass/captcha-solver-go"

Now to connect your program to your Metabypass account, you need to set the following credentials from the Application section of your panel (if you delete your application, first generate a new one and then set new client_id and client_secret).


 

1 2 3 4 5 6 captcha_solver_go.NewAuthClient( "YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", "YOUR_ACCOUNT_EMAIL", "YOUR_ACCOUNT_PASSWORD") // ****CHANGE HERE WITH YOUR VALUE*******

Sample Code

Text Captcha
1 2 3 4 5 6 7 8 9 10 11 12 13 14 package main import "fmt" import "strconv" import captcha_solver_go "github.com/metabypass/captcha-solver-go" func main() { captcha_solver_go.NewAuthClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", "YOUR_ACCOUNT_EMAIL", "YOUR_ACCOUNT_PASSWORD") // ****CHANGE HERE WITH YOUR VALUE******* token, code, message := captcha_solver_go.TextCaptcha("YOUR_CAPTCHA_IMAGE_PATH") // ****CHANGE HERE WITH YOUR VALUE******* fmt.Println("code: " + strconv.Itoa(code)) fmt.Println("message: " + message) fmt.Println("token: " + token) }

Full documentation & samples in Github