profile

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Client Requester
}

Api provides profile related API.

func (*Api) Balance

func (a *Api) Balance(ctx context.Context) (result *BalanceResponse, err error)

Balance return daily statistics see documentation https://dadata.ru/api/stat/

type BalanceResponse

type BalanceResponse struct {
	Balance float64 `json:"balance"`
}

BalanceResponse Response of API request

type Requester

type Requester interface {
	// Get makes a GET API call. Assumes sending params in a request query string.
	Get(ctx context.Context, apiMethod string, params url.Values, result interface{}) error
}

Requester provides transport level API calls.

Jump to

Keyboard shortcuts

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