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 can initialize the Optimizely instance in three ways: with a datafile, by providing an `sdk_key`, or by providing a Config Manager. Each method is described below.
33
+
You can initialize the Optimizely instance in three ways: with a datafile, by providing an `sdk_key`, or by providing a `ConfigManager`_. Each method is described below.
34
34
35
35
1. Initialize Optimizely with a datafile. This datafile will be used as
36
36
ProjectConfig throughout the life of Optimizely instance.
@@ -42,20 +42,18 @@ You can initialize the Optimizely instance in three ways: with a datafile, by pr
42
42
43
43
2. Initialize Optimizely by providing an 'sdk_key'. This will initialize
44
44
a PollingConfigManager that makes an HTTP GET request to the URL (formed
45
-
using your provided `sdk key` and the default datafile CDN url
45
+
using your provided `sdk key` and the default datafile CDN URL
46
46
template) to asynchronously download the project datafile at regular
47
47
intervals and update ProjectConfig when a new datafile is recieved. A
48
48
hard-coded datafile can also be provided along with the `sdk_key` that
49
49
will be used initially before any update.
50
50
::
51
51
52
52
optimizely.Optimizely(
53
-
datafile=None,
54
53
sdk_key='put_your_sdk_key_here'
55
54
)
56
55
57
-
3. Initialize Optimizely by providing a Config Manager that implements a
58
-
'get_config' method. You may use our `PollingConfigManager` as needed.
56
+
3. Initialize Optimizely by providing a ConfigManager that implements `BaseConfigManager`_. You may use our `PollingConfigManager` as needed.
59
57
::
60
58
61
59
optimizely.Optimizely(
@@ -112,7 +110,7 @@ datafile None Initia
112
110
113
111
A notification signal will be triggered whenever a *new* datafile is
114
112
fetched and Project Config is updated. To subscribe to these
0 commit comments