client

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 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 bilibili api client.

func New

func New(maxAge int) *Client

New to create new bilibili api client.

func (*Client) GetFollowerCount

func (c *Client) GetFollowerCount(ctx context.Context, id string) (int, int, error)

GetFollowerCount to get follower count.

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, id 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