client

package
v0.0.0-...-41c8f94 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PixivClient

type PixivClient struct {
	UserName     string
	UserID       int64
	Host         string
	RefreshToken string
	Headers      map[string]string
}

func Refresh

func Refresh(refreshToken string) (PixivClient, error)

func (PixivClient) Get

func (c PixivClient) Get(endpoint string, params map[string]string) (map[string]interface{}, error)

func (PixivClient) Post

func (c PixivClient) Post(endpoint string, params map[string]string) ([]byte, error)

Jump to

Keyboard shortcuts

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