add expires_in field to TokenResponse

hard to know when to refresh token without this field
This commit is contained in:
Ivan Pusic 2016-07-20 21:19:05 +02:00 committed by GitHub
parent 2771e6788b
commit 26351642ed

View File

@ -321,6 +321,7 @@ type (
RefreshToken string `json:"refresh_token"` RefreshToken string `json:"refresh_token"`
Token string `json:"access_token"` Token string `json:"access_token"`
Type string `json:"token_type"` Type string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
} }
// Transaction https://developer.paypal.com/webapps/developer/docs/api/#transaction-object // Transaction https://developer.paypal.com/webapps/developer/docs/api/#transaction-object