Versions in this module Expand all Collapse all v0 v0.1.1 Oct 24, 2025 v0.1.0 Oct 24, 2025 Changes in this version + 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() (*GetAccessTokenResult, error) + GetAppId func() string + GetAppSecret func() string + func New(appId, appSecret string) API + type GetAccessTokenResult struct + AccessToken string + ExpiresIn int + type Result struct + ErrCode int + ErrMsg string