Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct {
ErrorCode int `json:"error_code,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
}
BaseResponse defines optional fields included in all responses.
type GetOAuthTokenRequest ¶
type GetOAuthTokenRequest struct {
Scopes []string `json:"scopes"`
Secret []byte `json:"secret"`
AccountID string `json:"account_id"`
}
GetOAuthTokenRequest is parameters for GetOAuthToken RPC call.
func (*GetOAuthTokenRequest) Validate ¶
func (r *GetOAuthTokenRequest) Validate() error
Validate checks that the request is structurally valid.
type GetOAuthTokenResponse ¶
type GetOAuthTokenResponse struct {
BaseResponse
AccessToken string `json:"access_token"`
Expiry int64 `json:"expiry"`
}
GetOAuthTokenResponse is returned by GetOAuthToken RPC call.
Source Files
¶
- base.go
- getoauthtoken.go
Click to show internal directories.
Click to hide internal directories.