sdk

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// constants
	P_OPENAPI = "openapi"
	P_API     = "api"
	P_PARAM2  = "param2"

	// system parameters
	P_ACCESS_TOKEN = "access_token"
	P_TIMESTAMP    = "_aop_timestamp"
	P_SIGN         = "_aop_signature"

	P_ERROR_CODE    = "error_code"
	P_ERROR_MESSAGE = "error_message"
	P_EXCEPTION     = "exception"
	P_REQUEST_ID    = "request_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UmengAPI

type UmengAPI interface {
	GetApiUri() string
	GetRequiredParams() []string
	NeedSign() bool
	IsInnerApi() bool
}

type UmengClient

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

func CreateUmengClient

func CreateUmengClient(apiKey, apiSecurity string) *UmengClient

func (*UmengClient) Do

func (cli *UmengClient) Do(method UmengAPI, params url.Values) (respDeco *json.Decoder, err error)

func (*UmengClient) SetDefaultServer

func (cli *UmengClient) SetDefaultServer(newDefaultServer string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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