Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶
GetAccessToken https://openapi-fxg.jinritemai.com/token/create?app_key=your_app_key&method=token.create¶m_json={"code":"your_code","grant_type":"authorization_code"}×tamp=2021-06-07 17:34:46&v=2&sign=your_sign_here
func RefreshToken ¶
RefreshToken https://openapi-fxg.jinritemai.com/token/refresh?app_key=your_app_key&method=token.refresh¶m_json={"grant_type":"refresh_token","refresh_token":"your_refresh_token"}×tamp=2021-06-07 17:36:56&v=2&sign=your_sign
Types ¶
type Token ¶
type Token struct { AcsToken string `json:"access_token"` RefToken string `json:"refresh_token"` AcsExpireIn int64 `json:"expires_in,omitempty"` RefExpireIn int64 `json:"refresh_expires_in,omitempty"` Scope string `json:"scope,omitempty"` }
func (Token) GetAccessToken ¶
func (Token) GetRefAccessToken ¶
Click to show internal directories.
Click to hide internal directories.