sdk

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptRequestGetWithAccessToken

func OptRequestGetWithAccessToken(requestUrl string, params map[string]string, header map[string]string, accessToken string) string

OptRequestGetWithAccessToken 执行Get操作

func OptRequestPostWithAccessToken

func OptRequestPostWithAccessToken(requestUrl string, params map[string]string, header map[string]string, data map[string]interface{}, accessToken string) string

OptRequestPostWithAccessToken 执行Post操作

func OptSelfRequest

func OptSelfRequest(httpMethod string, hostUrl string, businessUrl string, params map[string]string, header map[string]string, data map[string]interface{}, tokenInfo map[string]string) string

OptSelfRequest 使用token信息获取accessToken后执行自建应用请求

func OptSelfToken

func OptSelfToken(appKey string, appSecret string, hostUrl string) string

OptSelfToken 获取自建应用token

func OptSelfTokenWithCache

func OptSelfTokenWithCache(appKey string, appSecret string, hostUrl string) string

OptSelfTokenWithCache OptSuiteToken 获取自建应用token 缓存结果

func OptSuiteRequest

func OptSuiteRequest(httpMethod string, hostUrl string, businessUrl string, params map[string]string, header map[string]string, data map[string]interface{}, tokenInfo map[string]string) string

OptSuiteRequest 使用token信息获取accessToken后执行生态应用请求

func OptSuiteToken

func OptSuiteToken(suiteKey string, tenantId string, appSecret string, hostUrl string) string

OptSuiteToken 获取生态应用token

func OptSuiteTokenWithCache

func OptSuiteTokenWithCache(suiteKey string, tenantId string, suiteSecret string, hostUrl string) string

OptSuiteTokenWithCache OptSuiteToken 获取生态应用token 缓存结果

Types

This section is empty.

Jump to

Keyboard shortcuts

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