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
@@ -45,10 +47,11 @@ import { DeviceType } from "@ding-live/ding/dist/models/components";
45
47
46
48
```
47
49
50
+
### Check a code
48
51
49
-
## Check a code
50
52
Check that a code entered by a user is valid.
51
53
54
+
52
55
```typescript
53
56
import { Ding } from"@ding-live/ding";
54
57
@@ -70,10 +73,11 @@ import { Ding } from "@ding-live/ding";
70
73
71
74
```
72
75
76
+
### Retry an authentication
73
77
74
-
## Retry an authentication
75
78
Retry an authentication if a user has not received the code.
76
79
80
+
77
81
```typescript
78
82
import { Ding } from"@ding-live/ding";
79
83
@@ -102,8 +106,8 @@ import { Ding } from "@ding-live/ding";
102
106
### [otp](docs/sdks/otp/README.md)
103
107
104
108
*[check](docs/sdks/otp/README.md#check) - Check an authentication code
105
-
*[createAutentication](docs/sdks/otp/README.md#createautentication) - Create an authentication
106
109
*[retry](docs/sdks/otp/README.md#retry) - Retry an authentication
110
+
*[send](docs/sdks/otp/README.md#send) - Create an authentication
107
111
108
112
### [lookup](docs/sdks/lookup/README.md)
109
113
@@ -115,7 +119,7 @@ import { Ding } from "@ding-live/ding";
115
119
<!-- End Dev Containers -->
116
120
117
121
<!-- Start Error Handling -->
118
-
# Error Handling
122
+
##Error Handling
119
123
120
124
Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type.
121
125
@@ -124,9 +128,7 @@ Handling errors in this SDK should largely match your expectations. All operati
124
128
| errors.ErrorResponse | 400 | application/json |
125
129
| errors.SDKError | 400-600 |*/*|
126
130
127
-
128
-
## Check a code
129
-
Check that a code entered by a user is valid.
131
+
Example
130
132
131
133
```typescript
132
134
import { Ding } from"@ding-live/ding";
@@ -158,11 +160,10 @@ import { Ding } from "@ding-live/ding";
158
160
<!-- End Error Handling -->
159
161
160
162
<!-- Start Custom HTTP Client -->
161
-
# Custom HTTP Client
163
+
## Custom HTTP Client
162
164
163
165
The Typescript SDK makes API calls using the (axios)[https://axios-http.com/docs/intro] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `AxiosInstance` object.
164
166
165
-
166
167
For example, you could specify a header for every request that your sdk makes as follows:
This SDK supports the following security scheme globally:
187
187
@@ -190,9 +190,6 @@ This SDK supports the following security scheme globally:
190
190
| `apiKey` | apiKey | API key |
191
191
192
192
To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:
193
-
## Check a code
194
-
Check that a code entered by a user is valid.
195
-
196
193
```typescript
197
194
import { Ding } from"@ding-live/ding";
198
195
@@ -218,19 +215,16 @@ import { Ding } from "@ding-live/ding";
218
215
219
216
220
217
<!-- Start Server Selection -->
221
-
# Server Selection
218
+
## Server Selection
222
219
223
-
## Select Server by Name
220
+
### Select Server by Name
224
221
225
222
You can override the default server globally by passing a server name to the `server: string` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
0 commit comments