{"action":"closed","issue":{"url":"https://api.github.com/repos/paypal/PayPal-Python-SDK/issues/209","repository_url":"https://api.github.com/repos/paypal/PayPal-Python-SDK","labels_url":"https://api.github.com/repos/paypal/PayPal-Python-SDK/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-Python-SDK/issues/209/comments","events_url":"https://api.github.com/repos/paypal/PayPal-Python-SDK/issues/209/events","html_url":"https://github.com/paypal/PayPal-Python-SDK/issues/209","id":238295463,"number":209,"title":"How to avoid repeated authorisation by catching the token till it expires?","user":{"login":"cijo7","id":11996726,"avatar_url":"https://avatars3.githubusercontent.com/u/11996726?v=3","gravatar_id":"","url":"https://api.github.com/users/cijo7","html_url":"https://github.com/cijo7","followers_url":"https://api.github.com/users/cijo7/followers","following_url":"https://api.github.com/users/cijo7/following{/other_user}","gists_url":"https://api.github.com/users/cijo7/gists{/gist_id}","starred_url":"https://api.github.com/users/cijo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cijo7/subscriptions","organizations_url":"https://api.github.com/users/cijo7/orgs","repos_url":"https://api.github.com/users/cijo7/repos","events_url":"https://api.github.com/users/cijo7/events{/privacy}","received_events_url":"https://api.github.com/users/cijo7/received_events","type":"User","site_admin":false},"labels":[{"id":31138295,"url":"https://api.github.com/repos/paypal/PayPal-Python-SDK/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-24T05:05:26Z","updated_at":"2017-07-05T15:41:48Z","closed_at":"2017-07-05T15:41:48Z","body":"<!-- ** General notice: if you have an API issue, see our [REST API issues](https://github.com/paypal/PayPal-REST-API-issues) repository, or contact [PayPal Tech Support](https://developer.paypal.com/support/). ** -->\r\n### General information\r\n\r\n* SDK/Library version: <!-- Example: 4.7.2 -->\r\n* Environment: <!-- Is this issue in Sandbox or Production? -->\r\n* `PayPal-Debug-ID` values: <!-- Report PayPal-Debug-IDs from any logs -->\r\n* Language, language version, and OS: <!-- Example: Java 1.8.0_101-b13 on Ubuntu 16.10 -->\r\n\r\n### Issue description\r\n\r\n<!-- To help us quickly reproduce your issue, include as many details as possible, such as logs, steps to reproduce, and so on.  If the issue reports a new feature, follow the [user story](https://en.wikipedia.org/wiki/User_story) format to clearly describe the use case. -->\r\nThe following is the logs from a normal request with the SDK.\r\nINFO:paypalrestsdk.api:Request[POST]: https://api.sandbox.paypal.com/v1/oauth2/token\r\nINFO:paypalrestsdk.api:Response[200]: OK, Duration: 4.636123s.\r\nINFO:paypalrestsdk.api:PayPal-Request-Id: xxxxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxxxxxx\r\nINFO:paypalrestsdk.api:Request[POST]: https://api.sandbox.paypal.com/v1/payments/billing-agreements\r\nINFO:paypalrestsdk.api:Response[201]: Created, Duration: 6.574508s.\r\nHow can i avoid repeated authorizations by caching the Bearer token so that a new payment url could be obtained with a single request. Is there a built-in way?"}}
{"actor":{"display_login":"xiaoleih41"}}