client

package
v0.0.0-...-022f9fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrorOrResponse

func GetErrorOrResponse(res string) (string, error)

Types

type CaptchaError

type CaptchaError struct {
	What string
}

func (CaptchaError) Error

func (c CaptchaError) Error() string

func (CaptchaError) GetCode

func (c CaptchaError) GetCode() string

type Client

type Client struct {
	Key string
}

func GetClient

func GetClient(key string) *Client

func (*Client) GetBalanse

func (c *Client) GetBalanse() (float64, error)

func (*Client) GetCaptchaText

func (c *Client) GetCaptchaText(id string) (string, error)

func (*Client) SendAndGet

func (c *Client) SendAndGet(path string) (string, error)

func (*Client) SendAndGetByURL

func (c *Client) SendAndGetByURL(url string) (string, error)

func (*Client) UploadCaptcha

func (c *Client) UploadCaptcha(path string) (string, error)

func (*Client) UploadCaptchaByURL

func (c *Client) UploadCaptchaByURL(url string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL