api

package
v0.0.0-...-68e7138 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: GPL-3.0 Imports: 7 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 {
	Token   string
	Version string
	Url     string
	Client  *fasthttp.Client
	Encoder *schema.Encoder
}

func NewApi

func NewApi(token string) *Api

func (*Api) GroupsGetByID

func (api *Api) GroupsGetByID(
	req object.NewGetByID, target *object.GroupResponseSlice,
) error

func (*Api) GroupsGetLongPollServer

func (api *Api) GroupsGetLongPollServer(
	message object.GetServerMessage, target *object.ResponseInit,
) error

func (*Api) MessagesSend

func (api *Api) MessagesSend(message *object.Message) error

func (*Api) Method

func (api *Api) Method(methodName string, data map[string]string, target interface{}) error

func (*Api) Post

func (api *Api) Post(url string, data []byte, target interface{}) error

func (*Api) Request

func (api *Api) Request(methodName string, data interface{}, target interface{}) error

func (*Api) UsersGet

func (api *Api) UsersGet(
	user object.UsersGetObject, target *object.UsersGetResponse,
) error

Jump to

Keyboard shortcuts

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