opensdk

package
v0.0.0-...-bafa72e Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(key []byte, cryptoText string) string

decrypt from base64 to decrypted string

func AesEncrypt

func AesEncrypt(key []byte, text string) string

encrypt string to base64 crypto using AES

func AesKeyDecrypt

func AesKeyDecrypt(keyStr string, cryptoText string) string

func AesKeyEncrypt

func AesKeyEncrypt(keyStr string, cryptoText string) string

Types

type Client

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

func NewClient

func NewClient(appKey string, appSecret string, env string) *Client

func (*Client) AccessToken

func (c *Client) AccessToken() string

func (*Client) AppKey

func (c *Client) AppKey() string

func (*Client) AppSecret

func (c *Client) AppSecret() string

func (*Client) ChannelNotifyPayCb

func (c *Client) ChannelNotifyPayCb(inCode string) *ResultState

func (*Client) Env

func (c *Client) Env() string

func (*Client) GetChannelAdBanner

func (c *Client) GetChannelAdBanner(frameId int) *ResultState

func (*Client) GetChannelAdBanners

func (c *Client) GetChannelAdBanners(frameId int) *ResultState

func (*Client) GetChannelAdFrameList

func (c *Client) GetChannelAdFrameList() *ResultState

func (*Client) GetChannelTestCategoryList

func (c *Client) GetChannelTestCategoryList() *ResultState

func (*Client) GetOpenToken

func (c *Client) GetOpenToken() *ResultState

func (*Client) GetTestCode

func (c *Client) GetTestCode(testId int, no string) *ResultState

func (*Client) GetTestCodeStatus

func (c *Client) GetTestCodeStatus(testId int, inCode string) *ResultState

func (*Client) GetTestDetail

func (c *Client) GetTestDetail(testId int) *ResultState

func (*Client) GetTestEntireReport

func (c *Client) GetTestEntireReport(testId int, taskToken string) *ResultState

func (*Client) GetTestInfoList

func (c *Client) GetTestInfoList(testId int, inCode string) *ResultState

func (*Client) GetTestList

func (c *Client) GetTestList(categoryId int, page int, size int) *ResultState

func (*Client) GetTestQuestion

func (c *Client) GetTestQuestion(testId int, inCode string) *ResultState

func (*Client) GetTestRecommendList

func (c *Client) GetTestRecommendList() *ResultState

func (*Client) GetTestReport

func (c *Client) GetTestReport(testId int, inCode string) *ResultState

func (*Client) GetTestShareCode

func (c *Client) GetTestShareCode(testId int, inCode string) *ResultState

func (*Client) SetAccessToken

func (c *Client) SetAccessToken(accessToken string)

func (*Client) SetAppKey

func (c *Client) SetAppKey(appKey string)

func (*Client) SetAppSecret

func (c *Client) SetAppSecret(appSecret string)

func (*Client) SetEnv

func (c *Client) SetEnv(env string)

func (*Client) TestEntireReportTask

func (c *Client) TestEntireReportTask(testId int, inCodeList string, traceSetting map[string]interface{}) *ResultState

func (*Client) TestInfo

func (c *Client) TestInfo(testId int, inCode string, setting map[string]interface{}) *ResultState

func (*Client) TestRedeemShareCode

func (c *Client) TestRedeemShareCode(testId int, code string) *ResultState

func (*Client) TestResult

func (c *Client) TestResult(testId int, inCode string, choices string) *ResultState

type ResultState

type ResultState struct {
	Status     bool        `json:"status"`
	HttpStatus int         `json:"http_status"`
	Msg        string      `json:"msg"`
	Data       interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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