Versions in this module Expand all Collapse all v0 v0.0.2 Jan 30, 2026 v0.0.1 Jan 29, 2026 Changes in this version + func CacheFirst(objCache cache.ObjectCache, retrieveFunc RetrieveFunc) (string, error) + func CheckResult(result Result, url string, request ...any) error + func Get[RESULT any](url string, request ...any) (RESULT, error) + func PostResponse(url string, request ...any) ([]byte, error) + func Post[RESULT any](url string, request ...any) (RESULT, error) + type API interface + GetAccessToken func() (string, error) + GetAppId func() string + GetAppSecret func() string + func New(appId, appSecret string, redisProvider ...types.RedisProvider) API + type AccessTokenResult struct + AccessToken string + ExpiresIn int + type Result struct + ErrCode int + ErrMsg string + type RetrieveFunc func() (string, int, error)