core

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDKClient

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

SDKClient object

func NewSDKClient

func NewSDKClient(appID string, secret string) *SDKClient

NewSDKClient init sdk client

func (*SDKClient) ActionCb added in v1.2.8

func (c *SDKClient) ActionCb(req model.ActionCbRequest) error

func (*SDKClient) AppID added in v1.2.9

func (c *SDKClient) AppID() string

func (*SDKClient) Conversion added in v1.2.8

func (c *SDKClient) Conversion(req model.ConversionRequest, resp interface{}) (*model.ResponseHeader, error)

func (*SDKClient) Do

func (c *SDKClient) Do(req *model.Request, resp interface{}) (*model.ResponseHeader, error)

Do execute api request

func (*SDKClient) Get added in v1.2.8

func (c *SDKClient) Get(reqUrl string, resp interface{}) error

Get data through api

func (*SDKClient) OAuth added in v1.2.9

func (c *SDKClient) OAuth(req model.RequestBody, resp interface{}) error

OAuth execute oauth api request

func (*SDKClient) Post

func (c *SDKClient) Post(reqUrl string, bs []byte, resp interface{}) error

Post data through api

func (*SDKClient) Secret added in v1.2.9

func (c *SDKClient) Secret() string

func (*SDKClient) SetDebug

func (c *SDKClient) SetDebug(debug bool)

SetDebug set debug mode

func (*SDKClient) SetHttpClient added in v1.2.8

func (c *SDKClient) SetHttpClient(httpClient *http.Client)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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