From 26351642ed226fc1588436b0e802f6aa0eab8404 Mon Sep 17 00:00:00 2001 From: Ivan Pusic Date: Wed, 20 Jul 2016 21:19:05 +0200 Subject: [PATCH] add expires_in field to `TokenResponse` hard to know when to refresh token without this field --- types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types.go b/types.go index 60735f6..d3fd9f8 100644 --- a/types.go +++ b/types.go @@ -321,6 +321,7 @@ type ( RefreshToken string `json:"refresh_token"` Token string `json:"access_token"` Type string `json:"token_type"` + ExpiresIn int64 `json:"expires_in"` } // Transaction https://developer.paypal.com/webapps/developer/docs/api/#transaction-object