You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may use our [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/master/optimizely/config_manager.py#L151) as needed. :
You may use our [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/master/optimizely/config_manager.py#L150) or
76
+
[AuthDatafilePollingConfigManager](https://github.com/optimizely/python-sdk/blob/master/optimizely/config_manager.py#L375) as needed:
78
77
79
78
optimizely.Optimizely(
80
79
config_manager=custom_config_manager
81
80
)
82
81
83
82
#### PollingConfigManager
84
83
85
-
The [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/master/optimizely/config_manager.py#L151) asynchronously polls for
86
-
datafiles from a specified URL at regular intervals by making HTTP
87
-
requests.
84
+
The [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/master/optimizely/config_manager.py#L150) asynchronously polls for
85
+
datafiles from a specified URL at regular intervals by making HTTP requests.
88
86
89
87
polling_config_manager = PollingConfigManager(
90
88
sdk_key=None,
91
-
datafile=None,
92
-
update_interval=None,
93
-
url=None,
89
+
datafile=None,
90
+
update_interval=None,
91
+
url=None,
94
92
url_template=None,
95
-
logger=None,
96
-
error_handler=None,
93
+
logger=None,
94
+
error_handler=None,
97
95
notification_center=None,
98
-
skip_json_validation=False
96
+
skip_json_validation=False
99
97
)
100
98
101
99
**Note**: You must provide either the sdk_key or URL. If
@@ -113,38 +111,57 @@ successful datafile poll.
113
111
**update_interval** The update_interval is used to specify a fixed
114
112
delay in seconds between consecutive HTTP requests for the datafile.
115
113
114
+
**url** The target URL from which to request the datafile.
115
+
116
116
**url_template** A string with placeholder `{sdk_key}` can be provided
117
117
so that this template along with the provided sdk key is
118
118
used to form the target URL.
119
119
120
120
You may also provide your own logger, error_handler, or
121
121
notification_center.
122
122
123
+
#### AuthDatafilePollingConfigManager
124
+
125
+
The [AuthDatafilePollingConfigManager](https://github.com/optimizely/python-sdk/blob/master/optimizely/config_manager.py#L375)
126
+
implements `PollingConfigManager` and asynchronously polls for authenticated datafiles from a specified URL at regular intervals
For Further details see the Optimizely [Full Stack documentation](https://docs.developers.optimizely.com/full-stack/docs) to learn how to set up your first Python project and use the SDK.
161
+
For Further details see the Optimizely [Full Stack documentation](https://docs.developers.optimizely.com/full-stack/docs)
162
+
to learn how to set up your first Python project and use the SDK.
0 commit comments