Skip to content

Commit

Permalink
feat: Updating documents and examples for Public OAuth feature uptake (
Browse files Browse the repository at this point in the history
…#765)

* Modfiying cluster tests

* Updating documents for Public OAuth
  • Loading branch information
AsabuHere authored Oct 23, 2024
1 parent ae3e6c0 commit 777b060
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ To use a custom HTTP client with this helper library, please see the [advanced e
### Beta
Features marked with the `[Beta]` attribute are in a beta stage and may undergo changes in future releases. Use these features with caution as they may not be stable.

### Deprecated
Features marked with the `[Deprecated]` attribute are deprecated and are not encouraged to use

### Preview
Features marked with the `[Preview]` attribute are in a preview stage and are intended for evaluation purposes. They are subject to change and should not be used in production without thorough testing.

Expand Down
7 changes: 5 additions & 2 deletions examples/BearerTokenAuthentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ class Program
{
static void Main(string[] args)
{
TwilioOrgsTokenAuthClient.Init(GRANT_TYPE, CLIENT_ID, CLIENT_SECRET);
Twilio.Base.BearerToken.TokenResourceSet<Twilio.Rest.PreviewIam.Organizations.AccountResource> accountList = null;

CredentialProvider credentialProvider = new ClientCredentialProvider(CLIENT_ID, CLIENT_SECRET);
TwilioClient.Init(credentialProvider);

Twilio.Base.ResourceSet<Twilio.Rest.PreviewIam.Organizations.AccountResource> accountList = null;
accountList = Twilio.Rest.PreviewIam.Organizations.AccountResource.Read(pathOrganizationSid: ORGS_SID);
Console.WriteLine(accountList.ElementAt(0).FriendlyName);
var account = Twilio.Rest.PreviewIam.Organizations.AccountResource.Fetch(pathOrganizationSid: ORGS_SID, pathAccountSid: PATH_ACCOUNT_SID);
Expand Down

0 comments on commit 777b060

Please sign in to comment.