Skip to content

Commit 544315f

Browse files
sbanslaJenniferMah
andauthored
feat!: Merging RC branch to main (#645)
* fix: correct the Oauth/UserInfo naming * docs: Update README.md for 6.x release (#643) Co-authored-by: Jennifer Mah <[email protected]>
1 parent c0898f2 commit 544315f

File tree

1,338 files changed

+130253
-204403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,338 files changed

+130253
-204403
lines changed

.github/workflows/test-and-deploy.yml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3636
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37+
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
38+
TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY }}
39+
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
40+
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
41+
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
3742
run: |
3843
dotnet tool install --global dotnet-sonarscanner
3944
make cover

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local.properties
1515
.classpath
1616
.settings/
1717
.loadpath
18+
**/.openapi-generator*
1819

1920
# External tool builders
2021
.externalToolBuilders/

CONTRIBUTING.md

+16
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ This code was generated by
3737
/ /
3838
"""
3939
```
40+
or
41+
```
42+
/*
43+
* This code was generated by
44+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
45+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
46+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
47+
*
48+
* Twilio - XXXX
49+
* This is the public Twilio REST API.
50+
*
51+
* NOTE: This class is auto generated by OpenAPI Generator.
52+
* https://openapi-generator.tech
53+
* Do not edit the class manually.
54+
*/
55+
```
4056
then it is a generated file and the change will need to be made by us, but
4157
submitting an issue will help us track it and keep you up-to-date. If the file
4258
isn't generated, you can help us out even more by submitting a Pull Request with

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ install:
1111

1212
test:
1313
dotnet build -c Release
14-
dotnet test -c Release
14+
dotnet test -c Release --filter TestCategory!="ClusterTest"
1515

1616
test-docker:
1717
docker build -t twilio/twilio-csharp .
18-
docker run twilio/twilio-csharp /bin/bash -c "dotnet build -c Release; dotnet test -c Release"
18+
docker run twilio/twilio-csharp /bin/bash -c "dotnet build -c Release; dotnet test -c Release --filter TestCategory!=\"ClusterTest\""
1919

2020
release:
2121
dotnet pack -c Release

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
## Twilio REST API and TwiML Libraries for .NET
99

10-
Twilio provides a simple HTTP-based API for sending and receiving phone calls and text messages. Learn more on [twilio.com][apidocs].
10+
Twilio provides a HTTP-based API for sending and receiving phone calls and text messages. Learn more on [twilio.com][apidocs].
1111

1212
More documentation for this library can be found [here][libdocs].
1313

1414
## Versions
1515

1616
`twilio-csharp` uses a modified version of [Semantic Versioning](https://semver.org) for all changes. [See this document](VERSIONS.md) for details.
1717

18-
### Migrating from earlier versions
18+
### Migrate from earlier versions
1919

2020
See the migration guide [here][migrating]. Also, if you were using the `Twilio.Mvc` package, that has been replaced by the [Twilio.AspNet.Mvc][aspnet] package which is compatible with this version of the library.
2121

@@ -46,7 +46,7 @@ If you are building with the .NET Core command line tools, then you can run the
4646

4747
dotnet add package Twilio
4848

49-
## Sample Usage
49+
## Sample usage
5050

5151
The examples below show how to have your application initiate and outbound phone call and send an SMS message using the Twilio .NET helper library:
5252
```csharp
@@ -78,18 +78,18 @@ TwilioClient.SetEdge("sydney");
7878

7979
This will result in the `hostname` transforming from `api.twilio.com` to `api.sydney.au1.twilio.com`.
8080

81-
## Enable Debug Logging
81+
## Enable debug logging
8282
There are two ways to enable debug logging in the default HTTP client. You can create an environment variable called `TWILIO_LOG_LEVEL` and set it to `debug` or you can set the LogLevel variable on the client as debug:
8383

8484
```csharp
8585
TwilioClient.SetLogLevel("debug");
8686
```
8787

88-
## Handling Exceptions
88+
## Handle exceptions
8989

90-
For an example on how to handle exceptions in this helper library, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/csharp-dotnet/usage-guide#handling-errors).
90+
For an example on how to handle exceptions in this helper library, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/csharp-dotnet/usage-guide#handle-errors).
9191

92-
## Generating TwiML
92+
## Generate TwiML
9393

9494
To control phone calls, your application needs to output [TwiML][twiml].
9595

@@ -129,7 +129,7 @@ Console.WriteLine(response);
129129
*/
130130
```
131131

132-
## Using a Custom HTTP Client
132+
## Use a custom HTTP Client
133133

134134
To use a custom HTTP client with this helper library, please see the [Twilio documentation](https://www.twilio.com/docs/libraries/csharp-dotnet/custom-http-clients-dot-net-framework).
135135

@@ -155,7 +155,7 @@ make test
155155
```
156156

157157

158-
## Getting help
158+
## Get support
159159

160160
If you need help installing or using the library, please check the [Twilio Support Help Center](https://support.twilio.com) first, and [file a support ticket](https://twilio.com/help/contact) if you don't find an answer to your question.
161161

@@ -164,6 +164,6 @@ If you've instead found a bug in the library or would like new features added, g
164164
[twilio]: https://www.twilio.com
165165
[apidocs]: https://www.twilio.com/docs/api
166166
[twiml]: https://www.twilio.com/docs/api/twiml
167-
[libdocs]: https://twilio.github.io/twilio-csharp
168-
[migrating]: https://www.twilio.com/docs/libraries/csharp/migrating-your-csharp-dot-net-application-twilio-sdk-4x-5x
167+
[libdocs]: https://www.twilio.com/docs/libraries/reference/twilio-csharp/
168+
[migrating]: https://www.twilio.com/docs/libraries/csharp-dotnet/usage-guide
169169
[aspnet]: https://github.com/twilio/twilio-aspnet

UPGRADE.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
_`MAJOR` version bumps will have upgrade notes posted here._
44

5+
[2022-11-XX] 5.x.x to 6.x.x
6+
---------------------------
7+
### Overview
8+
9+
#### Twilio Csharp Helper Library’s major version 6.0.1 is now available. We ensured that you can upgrade to Csharp helper Library 6.0.1 version without any breaking changes
10+
11+
Behind the scenes Csharp Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages.
12+
13+
To learn more about the Csharp Helper Library, check out [our docs](https://www.twilio.com/docs/libraries/csharp-dotnet).
14+
515
[2017-11-XX] 5.8.x to 5.9.x
616
---------------------------
717

Original file line numberDiff line numberDiff line change
@@ -1,30 +1,47 @@
1-
/// This code was generated by
2-
/// \ / _ _ _| _ _
3-
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
4-
/// / /
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Accounts
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
515

616
using System;
717
using System.Collections.Generic;
818
using Twilio.Base;
919
using Twilio.Converters;
1020

21+
22+
23+
1124
namespace Twilio.Rest.Accounts.V1
1225
{
13-
14-
/// <summary>
15-
/// Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old
16-
/// primary Auth Token will result in an error.
17-
/// </summary>
26+
/// <summary> Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error. </summary>
1827
public class UpdateAuthTokenPromotionOptions : IOptions<AuthTokenPromotionResource>
1928
{
20-
/// <summary>
21-
/// Generate the necessary parameters
22-
/// </summary>
23-
public List<KeyValuePair<string, string>> GetParams()
29+
30+
31+
32+
33+
34+
/// <summary> Generate the necessary parameters </summary>
35+
public List<KeyValuePair<string, string>> GetParams()
2436
{
2537
var p = new List<KeyValuePair<string, string>>();
38+
2639
return p;
2740
}
41+
42+
2843
}
2944

30-
}
45+
46+
}
47+

0 commit comments

Comments
 (0)