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
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,7 @@ using SpeakeasySDK.Models.Shared;
21
21
usingSpeakeasySDK.Models.Operations;
22
22
usingSystem.Collections.Generic;
23
23
24
-
varsdk=newSpeakeasy(
25
-
security: newSecurity() {
24
+
varsdk=newSpeakeasy(security: newSecurity() {
26
25
APIKey="<YOUR_API_KEY_HERE>",
27
26
});
28
27
@@ -128,6 +127,32 @@ You can override the default server globally by passing a server name to the `se
128
127
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:
129
128
<!-- End Server Selection [server] -->
130
129
130
+
<!-- Start Authentication [security] -->
131
+
## Authentication
132
+
133
+
### Per-Client Security Schemes
134
+
135
+
This SDK supports the following security scheme globally:
136
+
137
+
| Name | Type | Scheme |
138
+
| -------- | -------- | -------- |
139
+
|`apiKey`| apiKey | API key |
140
+
141
+
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
142
+
```csharp
143
+
usingSpeakeasySDK;
144
+
usingSpeakeasySDK.Models.Shared;
145
+
146
+
varsdk=newSpeakeasy(security: newSecurity() {
147
+
APIKey="<YOUR_API_KEY_HERE>",
148
+
});
149
+
150
+
varres=awaitsdk.ValidateApiKeyAsync();
151
+
152
+
// handle response
153
+
```
154
+
<!-- End Authentication [security] -->
155
+
131
156
<!-- Placeholder for Future Speakeasy SDK Sections -->
0 commit comments