From 0f7e1869c01fa8895f01c0b06cd38763e306b357 Mon Sep 17 00:00:00 2001 From: Dhawal Gawande Date: Tue, 23 Aug 2022 11:55:09 +0100 Subject: [PATCH] add info for ConfidentialClient --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 76ac9e2..8bbd410 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ First, you need to create the OAuth 2.0 client configuration that will be used t from fds.sdk.utils.authentication import ConfidentialClient import requests +# The ConfidentialClient instance should be reused in production environments. client = ConfidentialClient('/path/to/config.json') res = requests.get( 'https://api.factset.com/analytics/lookups/v3/currencies', @@ -59,6 +60,7 @@ Each helper class in the module has the following features: * Accepts a configuration file or `dict` that contains information about the OAuth 2.0 client, including the client ID and private key. * Performs authentication with FactSet's OAuth 2.0 authorization server and retrieves an access token. * Caches the access token for reuse and requests a new access token as needed when one expires. + * In order for this to work correctly, the helper class instance should be reused in production environments. #### Configuration