From 1327d83d807e29ab2d8cee73bfc00b3acc442a0e Mon Sep 17 00:00:00 2001 From: bchavez Date: Wed, 21 Nov 2018 01:06:29 -0800 Subject: [PATCH] docs --- HISTORY.md | 3 +++ README.md | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 56bfb1e..a875bb5 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,6 @@ +## v5.0.0-beta-6 +* PR 44: Add callback method OnRefresh when client renews oauth token. + ## v5.0.0-beta-5 * PR 41: OAuth Auto Refresh tokens supported. * Renamed `CoinbaseApi` to `CoinbaseClient`. diff --git a/README.md b/README.md index 8ab7e18..4ec0715 100644 --- a/README.md +++ b/README.md @@ -146,8 +146,9 @@ var newRefreshToken = newToken.RefreshToken; The `CoinbaseClient` supports automatic token renewal. If you want to avoid refreshing your every two hours you can use the following `.WithAutomaticOAuthTokenRefresh()` extension method to activate automatic token renewal. When creating the `CoinbaseClient` object in **Step 3** above do the following: ```csharp -var client = new CoinbaseClient(new OAuthConfig { AccessToken = token.AccessToken }) - .WithAutomaticOAuthTokenRefresh(OAuthClientAppId, OAuthClientSecret, refreshToken); +var client = new CoinbaseClient(new OAuthConfig { AccessToken = token.AccessToken, + RefreshToken = token.RefreshToken }) + .WithAutomaticOAuthTokenRefresh(ClientId, ClientSecret); ``` You only need to call `.WithAutomaticOAuthTokenRefresh` once when creating the `CoinbaseClient` object.