Skip to content

Commit da75166

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent b0f6c10 commit da75166

37 files changed

+2028
-59
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ src/Bandwidth.Standard/Api/TranscriptionsApi.cs
202202
src/Bandwidth.Standard/Client/ApiClient.cs
203203
src/Bandwidth.Standard/Client/ApiException.cs
204204
src/Bandwidth.Standard/Client/ApiResponse.cs
205+
src/Bandwidth.Standard/Client/Auth/OAuthAuthenticator.cs
206+
src/Bandwidth.Standard/Client/Auth/OAuthFlow.cs
207+
src/Bandwidth.Standard/Client/Auth/TokenResponse.cs
205208
src/Bandwidth.Standard/Client/ClientUtils.cs
206209
src/Bandwidth.Standard/Client/Configuration.cs
207210
src/Bandwidth.Standard/Client/ExceptionFactory.cs

Bandwidth.Standard.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{90963038-62D5-4C4E-931F-91B8A5342BAC}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{90963038-62D5-4C4E-931F-91B8A5342BAC}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ namespace Example
7878
// Configure HTTP basic authorization: Basic
7979
config.Username = "YOUR_USERNAME";
8080
config.Password = "YOUR_PASSWORD";
81+
// Configure OAuth2 access token for authorization: OAuth2
82+
config.AccessToken = "YOUR_ACCESS_TOKEN";
8183

8284
var apiInstance = new CallsApi(config);
8385
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -349,3 +351,11 @@ Authentication schemes defined for the API:
349351

350352
- **Type**: HTTP basic authentication
351353

354+
<a id="OAuth2"></a>
355+
### OAuth2
356+
357+
- **Type**: OAuth
358+
- **Flow**: application
359+
- **Authorization URL**:
360+
- **Scopes**: N/A
361+

api/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ servers:
1111
- url: /
1212
security:
1313
- Basic: []
14+
- OAuth2: []
1415
tags:
1516
- name: Messages
1617
- name: Media
@@ -14800,4 +14801,10 @@ components:
1480014801
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
1480114802
scheme: basic
1480214803
type: http
14804+
OAuth2:
14805+
flows:
14806+
clientCredentials:
14807+
scopes: {}
14808+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
14809+
type: oauth2
1480314810

bandwidth.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ info:
99
version: 1.0.0
1010
security:
1111
- Basic: []
12+
- OAuth2: []
1213
tags:
1314
- name: Messages
1415
- name: Media
@@ -8427,6 +8428,12 @@ components:
84278428
84288429
84298430
- Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==`
8431+
OAuth2:
8432+
type: oauth2
8433+
flows:
8434+
clientCredentials:
8435+
tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token
8436+
scopes: {}
84308437
callbacks:
84318438
inboundCallback:
84328439
'{inboundCallbackUrl}':

docs/CallsApi.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ namespace Example
3737
// Configure HTTP basic authorization: Basic
3838
config.Username = "YOUR_USERNAME";
3939
config.Password = "YOUR_PASSWORD";
40+
// Configure OAuth2 access token for authorization: OAuth2
41+
config.AccessToken = "YOUR_ACCESS_TOKEN";
4042

4143
var apiInstance = new CallsApi(config);
4244
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -92,7 +94,7 @@ catch (ApiException e)
9294

9395
### Authorization
9496

95-
[Basic](../README.md#Basic)
97+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
9698

9799
### HTTP request headers
98100

@@ -142,6 +144,8 @@ namespace Example
142144
// Configure HTTP basic authorization: Basic
143145
config.Username = "YOUR_USERNAME";
144146
config.Password = "YOUR_PASSWORD";
147+
// Configure OAuth2 access token for authorization: OAuth2
148+
config.AccessToken = "YOUR_ACCESS_TOKEN";
145149

146150
var apiInstance = new CallsApi(config);
147151
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -197,7 +201,7 @@ catch (ApiException e)
197201

198202
### Authorization
199203

200-
[Basic](../README.md#Basic)
204+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
201205

202206
### HTTP request headers
203207

@@ -247,6 +251,8 @@ namespace Example
247251
// Configure HTTP basic authorization: Basic
248252
config.Username = "YOUR_USERNAME";
249253
config.Password = "YOUR_PASSWORD";
254+
// Configure OAuth2 access token for authorization: OAuth2
255+
config.AccessToken = "YOUR_ACCESS_TOKEN";
250256

251257
var apiInstance = new CallsApi(config);
252258
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -314,7 +320,7 @@ catch (ApiException e)
314320

315321
### Authorization
316322

317-
[Basic](../README.md#Basic)
323+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
318324

319325
### HTTP request headers
320326

@@ -364,6 +370,8 @@ namespace Example
364370
// Configure HTTP basic authorization: Basic
365371
config.Username = "YOUR_USERNAME";
366372
config.Password = "YOUR_PASSWORD";
373+
// Configure OAuth2 access token for authorization: OAuth2
374+
config.AccessToken = "YOUR_ACCESS_TOKEN";
367375

368376
var apiInstance = new CallsApi(config);
369377
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -417,7 +425,7 @@ void (empty response body)
417425

418426
### Authorization
419427

420-
[Basic](../README.md#Basic)
428+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
421429

422430
### HTTP request headers
423431

@@ -468,6 +476,8 @@ namespace Example
468476
// Configure HTTP basic authorization: Basic
469477
config.Username = "YOUR_USERNAME";
470478
config.Password = "YOUR_PASSWORD";
479+
// Configure OAuth2 access token for authorization: OAuth2
480+
config.AccessToken = "YOUR_ACCESS_TOKEN";
471481

472482
var apiInstance = new CallsApi(config);
473483
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -524,7 +534,7 @@ void (empty response body)
524534

525535
### Authorization
526536

527-
[Basic](../README.md#Basic)
537+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
528538

529539
### HTTP request headers
530540

docs/ConferencesApi.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ namespace Example
4141
// Configure HTTP basic authorization: Basic
4242
config.Username = "YOUR_USERNAME";
4343
config.Password = "YOUR_PASSWORD";
44+
// Configure OAuth2 access token for authorization: OAuth2
45+
config.AccessToken = "YOUR_ACCESS_TOKEN";
4446

4547
var apiInstance = new ConferencesApi(config);
4648
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -98,7 +100,7 @@ catch (ApiException e)
98100

99101
### Authorization
100102

101-
[Basic](../README.md#Basic)
103+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
102104

103105
### HTTP request headers
104106

@@ -148,6 +150,8 @@ namespace Example
148150
// Configure HTTP basic authorization: Basic
149151
config.Username = "YOUR_USERNAME";
150152
config.Password = "YOUR_PASSWORD";
153+
// Configure OAuth2 access token for authorization: OAuth2
154+
config.AccessToken = "YOUR_ACCESS_TOKEN";
151155

152156
var apiInstance = new ConferencesApi(config);
153157
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -203,7 +207,7 @@ catch (ApiException e)
203207

204208
### Authorization
205209

206-
[Basic](../README.md#Basic)
210+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
207211

208212
### HTTP request headers
209213

@@ -253,6 +257,8 @@ namespace Example
253257
// Configure HTTP basic authorization: Basic
254258
config.Username = "YOUR_USERNAME";
255259
config.Password = "YOUR_PASSWORD";
260+
// Configure OAuth2 access token for authorization: OAuth2
261+
config.AccessToken = "YOUR_ACCESS_TOKEN";
256262

257263
var apiInstance = new ConferencesApi(config);
258264
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -310,7 +316,7 @@ catch (ApiException e)
310316

311317
### Authorization
312318

313-
[Basic](../README.md#Basic)
319+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
314320

315321
### HTTP request headers
316322

@@ -360,6 +366,8 @@ namespace Example
360366
// Configure HTTP basic authorization: Basic
361367
config.Username = "YOUR_USERNAME";
362368
config.Password = "YOUR_PASSWORD";
369+
// Configure OAuth2 access token for authorization: OAuth2
370+
config.AccessToken = "YOUR_ACCESS_TOKEN";
363371

364372
var apiInstance = new ConferencesApi(config);
365373
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -417,7 +425,7 @@ catch (ApiException e)
417425

418426
### Authorization
419427

420-
[Basic](../README.md#Basic)
428+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
421429

422430
### HTTP request headers
423431

@@ -467,6 +475,8 @@ namespace Example
467475
// Configure HTTP basic authorization: Basic
468476
config.Username = "YOUR_USERNAME";
469477
config.Password = "YOUR_PASSWORD";
478+
// Configure OAuth2 access token for authorization: OAuth2
479+
config.AccessToken = "YOUR_ACCESS_TOKEN";
470480

471481
var apiInstance = new ConferencesApi(config);
472482
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -522,7 +532,7 @@ catch (ApiException e)
522532

523533
### Authorization
524534

525-
[Basic](../README.md#Basic)
535+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
526536

527537
### HTTP request headers
528538

@@ -572,6 +582,8 @@ namespace Example
572582
// Configure HTTP basic authorization: Basic
573583
config.Username = "YOUR_USERNAME";
574584
config.Password = "YOUR_PASSWORD";
585+
// Configure OAuth2 access token for authorization: OAuth2
586+
config.AccessToken = "YOUR_ACCESS_TOKEN";
575587

576588
var apiInstance = new ConferencesApi(config);
577589
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -635,7 +647,7 @@ catch (ApiException e)
635647

636648
### Authorization
637649

638-
[Basic](../README.md#Basic)
650+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
639651

640652
### HTTP request headers
641653

@@ -685,6 +697,8 @@ namespace Example
685697
// Configure HTTP basic authorization: Basic
686698
config.Username = "YOUR_USERNAME";
687699
config.Password = "YOUR_PASSWORD";
700+
// Configure OAuth2 access token for authorization: OAuth2
701+
config.AccessToken = "YOUR_ACCESS_TOKEN";
688702

689703
var apiInstance = new ConferencesApi(config);
690704
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -738,7 +752,7 @@ void (empty response body)
738752

739753
### Authorization
740754

741-
[Basic](../README.md#Basic)
755+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
742756

743757
### HTTP request headers
744758

@@ -788,6 +802,8 @@ namespace Example
788802
// Configure HTTP basic authorization: Basic
789803
config.Username = "YOUR_USERNAME";
790804
config.Password = "YOUR_PASSWORD";
805+
// Configure OAuth2 access token for authorization: OAuth2
806+
config.AccessToken = "YOUR_ACCESS_TOKEN";
791807

792808
var apiInstance = new ConferencesApi(config);
793809
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -844,7 +860,7 @@ void (empty response body)
844860

845861
### Authorization
846862

847-
[Basic](../README.md#Basic)
863+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
848864

849865
### HTTP request headers
850866

@@ -894,6 +910,8 @@ namespace Example
894910
// Configure HTTP basic authorization: Basic
895911
config.Username = "YOUR_USERNAME";
896912
config.Password = "YOUR_PASSWORD";
913+
// Configure OAuth2 access token for authorization: OAuth2
914+
config.AccessToken = "YOUR_ACCESS_TOKEN";
897915

898916
var apiInstance = new ConferencesApi(config);
899917
var accountId = 9900000; // string | Your Bandwidth Account ID.
@@ -949,7 +967,7 @@ void (empty response body)
949967

950968
### Authorization
951969

952-
[Basic](../README.md#Basic)
970+
[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
953971

954972
### HTTP request headers
955973

0 commit comments

Comments
 (0)