core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_URL = "https://open.kuaishou.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AppID  string
	Secret string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(appID string, secret string) *Client

func (*Client) Get

func (c *Client) Get(req model.GetRequest, ret model.Response) error

func (*Client) Post

func (c *Client) Post(req model.PostRequest, ret model.Response) error

func (*Client) PostForm

func (c *Client) PostForm(req model.FormRequest, ret model.Response) error

func (*Client) PostRaw

func (c *Client) PostRaw(req model.PostRequest, ret model.Response, contentType string) error

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) UploadData

func (c *Client) UploadData(req model.UploadDataRequest, ret model.Response) error

func (*Client) UploadFile

func (c *Client) UploadFile(req model.UploadRequest, ret model.Response) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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