api

package
v0.0.0-...-0bd9bcd Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APICode = beego.AppConfig.DefaultString("api_code", "")
View Source
var APISecret = beego.AppConfig.DefaultString("api_secret", "")

Functions

func MakeRequest

func MakeRequest(method string, api string, params []string, postBody []byte) ([]byte, error)

func RandomString

func RandomString(length int) string

Types

type ErrorCodeResponse

type ErrorCodeResponse struct {
	ErrMsg          string `json:"error,omitempty"`
	ErrCode         int    `json:"error_code,omitempty"`
	Message         string `json:"message,omitempty"`
	ServerTimestamp int64  `json:"server_timestamp,omitempty"`
}

func (*ErrorCodeResponse) String

func (m *ErrorCodeResponse) String() string

Jump to

Keyboard shortcuts

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