client

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is niconico api client.

func New

func New(maxAge int) *Client

New to create new niconico api client.

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, userURL string) (*entity.User, int, error)

GetUser to get user.

func (*Client) GetVideos

func (c *Client) GetVideos(ctx context.Context, id string) ([]entity.Video, int, error)

GetVideos to get videos.

Jump to

Keyboard shortcuts

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