Documentation ¶
Index ¶
- type CafeBazaarAPI
- func (ca *CafeBazaarAPI) Authorize(scope string) (token string, err error)
- func (ca *CafeBazaarAPI) GetAuthorizationTokens(code string) (token *Token, err error)
- func (ca *CafeBazaarAPI) InAppPurchaseValidate(packageName, productId, purchaseToken string) (response *InAppPurchaseValidate, err error)
- func (ca *CafeBazaarAPI) LastToken() (token *Token)
- func (ca *CafeBazaarAPI) RefreshToken() (err error)
- func (ca *CafeBazaarAPI) SetToken(accessToken, refreshToken string)
- type InAppPurchaseValidate
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CafeBazaarAPI ¶
type CafeBazaarAPI struct {
// contains filtered or unexported fields
}
func NewCafeBazaarAPI ¶
func NewCafeBazaarAPI(clientId, clientSecret, clientUri string) *CafeBazaarAPI
func (*CafeBazaarAPI) Authorize ¶
func (ca *CafeBazaarAPI) Authorize(scope string) (token string, err error)
func (*CafeBazaarAPI) GetAuthorizationTokens ¶
func (ca *CafeBazaarAPI) GetAuthorizationTokens(code string) (token *Token, err error)
func (*CafeBazaarAPI) InAppPurchaseValidate ¶
func (ca *CafeBazaarAPI) InAppPurchaseValidate(packageName, productId, purchaseToken string) (response *InAppPurchaseValidate, err error)
func (*CafeBazaarAPI) LastToken ¶
func (ca *CafeBazaarAPI) LastToken() (token *Token)
func (*CafeBazaarAPI) RefreshToken ¶
func (ca *CafeBazaarAPI) RefreshToken() (err error)
func (*CafeBazaarAPI) SetToken ¶
func (ca *CafeBazaarAPI) SetToken(accessToken, refreshToken string)
type InAppPurchaseValidate ¶
type InAppPurchaseValidate struct { ConsumptionState int `json:"consumptionState"` PurchaseState int `json:"purchaseState"` Kind string `json:"kind"` DeveloperPayload string `json:"developerPayload"` PurchaseTime int64 `json:"purchaseTime"` Error string `json:"error,omitempty"` ErrorDescription string `json:"error_description,omitempty"` }
Click to show internal directories.
Click to hide internal directories.