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
Copy file name to clipboardExpand all lines: README.md
+35-6Lines changed: 35 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,7 @@ Send an OTP code to a user's phone number.
26
26
usingDingSDK;
27
27
usingDingSDK.Models.Components;
28
28
29
-
varsdk=newDing(
30
-
security: newSecurity() {
29
+
varsdk=newDing(security: newSecurity() {
31
30
APIKey="YOUR_API_KEY",
32
31
});
33
32
@@ -50,8 +49,7 @@ Check that a code entered by a user is valid.
50
49
usingDingSDK;
51
50
usingDingSDK.Models.Components;
52
51
53
-
varsdk=newDing(
54
-
security: newSecurity() {
52
+
varsdk=newDing(security: newSecurity() {
55
53
APIKey="YOUR_API_KEY",
56
54
});
57
55
@@ -75,8 +73,7 @@ Perform a retry if a user has not received the code.
75
73
usingDingSDK;
76
74
usingDingSDK.Models.Components;
77
75
78
-
varsdk=newDing(
79
-
security: newSecurity() {
76
+
varsdk=newDing(security: newSecurity() {
80
77
APIKey="YOUR_API_KEY",
81
78
});
82
79
@@ -125,6 +122,38 @@ You can override the default server globally by passing a server name to the `se
125
122
The default server can also be overridden globally by passing a URL to the `serverUrl: str` optional parameter when initializing the SDK client instance. For example:
126
123
<!-- End Server Selection [server] -->
127
124
125
+
<!-- Start Authentication [security] -->
126
+
## Authentication
127
+
128
+
### Per-Client Security Schemes
129
+
130
+
This SDK supports the following security scheme globally:
131
+
132
+
| Name | Type | Scheme |
133
+
| -------- | -------- | -------- |
134
+
|`apiKey`| apiKey | API key |
135
+
136
+
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
0 commit comments