api

package
v0.0.0-...-9708d91 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Id     string `json:"id"`     // Уникальный идентификатор актива
	Url    string `json:"url"`    // URL актива
	Width  int    `json:"width"`  // Ширина актива
	Height int    `json:"height"` // Высота актива
}

Asset представляет информацию об активе.

func (Asset) Info

func (a Asset) Info() string

Info возвращает строковое представление информации об активе.

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

func (Client) GetAsset

func (c Client) GetAsset(quantity string, apiKey string) ([]Asset, error)

func (Client) PostAsset

func (c Client) PostAsset(file, url, apiKey string) (string, error)

Jump to

Keyboard shortcuts

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