From 2e7fcfb697076aa223ac5f5ca3cb310b301a4651 Mon Sep 17 00:00:00 2001 From: Tennyleaz Date: Fri, 16 Aug 2019 11:22:09 +0800 Subject: [PATCH] Update README.md Add a description of getting the latest API version in authentication client. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index bb826c57..094527f4 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ You can also specify a SalesForce API version when creating an authentication cl var auth = new AuthenticationClient("v44.0"); ``` +You can get the latest API version from your Force.com instance in authentication client. + +```cs +var auth = new AuthenticationClient(); +await auth.GetLatestVersionAsync(); +``` + #### Web-Server Authentication Flow The Web-Server Authentication Flow requires a few additional steps but has the advantage of allowing you to authenticate your users and let them interact with the Force.com using their own access token.