Documentation ¶
Index ¶
- func OptRequestGetWithAccessToken(requestUrl string, params map[string]string, header map[string]string, ...) string
- func OptRequestPostWithAccessToken(requestUrl string, params map[string]string, header map[string]string, ...) string
- func OptSelfRequest(httpMethod string, hostUrl string, businessUrl string, ...) string
- func OptSelfToken(appKey string, appSecret string, hostUrl string) string
- func OptSelfTokenWithCache(appKey string, appSecret string, hostUrl string) string
- func OptSuiteRequest(httpMethod string, hostUrl string, businessUrl string, ...) string
- func OptSuiteToken(suiteKey string, tenantId string, appSecret string, hostUrl string) string
- func OptSuiteTokenWithCache(suiteKey string, tenantId string, suiteSecret string, hostUrl string) string
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 ¶
OptSelfToken 获取自建应用token
func OptSelfTokenWithCache ¶
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 ¶
OptSuiteToken 获取生态应用token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.