File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs/how-to/Client-Side SDKs
i18n/zh-CN/docusaurus-plugin-content-docs/current/how-to/Client-Side SDKs Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ Initialize SDK client with required options
47
47
48
48
49
49
``` js
50
- import { featureProbeClient , FPUser } from ' featureprobe-client-sdk-miniprogram' ;
50
+ import { initialize , FPUser } from ' featureprobe-client-sdk-miniprogram' ;
51
51
52
52
const user = new FPUser ();
53
53
user .with (" userId" , /* userId */ );
54
54
55
- featureProbeClient . init ({
55
+ const featureProbeClient = initialize ({
56
56
remoteUrl: " https://featureprobe.io/server" ,
57
57
// remoteUrl: "https://127.0.0.1:4007", // for local docker
58
58
clientSdkKey: /* clientSdkKey */
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ npm install featureprobe-client-sdk-miniprogram --save
47
47
48
48
49
49
``` js
50
- import { featureProbeClient , FPUser } from ' featureprobe-client-sdk-miniprogram' ;
50
+ import { initialize , FPUser } from ' featureprobe-client-sdk-miniprogram' ;
51
51
52
52
const user = new FPUser ();
53
53
user .with (" userId" , /* userId */ );
54
54
55
- featureProbeClient . init ({
55
+ const featureProbeClient = initialize ({
56
56
remoteUrl: " https://featureprobe.io/server" ,
57
57
// remoteUrl: "https://127.0.0.1:4007", // for local docker
58
58
clientSdkKey: /* clientSdkKey */
You can’t perform that action at this time.
0 commit comments