pixiv

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 12 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 {
	Token string
	// contains filtered or unexported fields
}

func (*Client) DownloadArtwork

func (c *Client) DownloadArtwork(ctx context.Context, log logrus.FieldLogger, artwork string) error

downloadArtwork will download given artwork and save it to disk

If this function return nil, that means either download succeed or destination file exist. Probably downloaded in the past

func (*Client) FetchMember

func (c *Client) FetchMember(ctx context.Context, log logrus.FieldLogger, member string) ([]string, error)

fetchMember will go to the server and get all artwork (including illustrations and manga) of the member

If the member does not have any artwork, nil slice will be returned

Jump to

Keyboard shortcuts

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