Skip to content

Commit

Permalink
Update PublicOAuthAuthentication.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere authored Nov 14, 2024
1 parent ca7bf01 commit 054d55c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/PublicOAuthAuthentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ class Program
{
CredentialProvider credentialProvider = new ClientCredentialProvider(CLIENT_ID, CLIENT_SECRET);
TwilioClient.Init(credentialProvider, ACCOUNT_SID);

/*
* Or use the following if accountSid is not required as a path parameter for an API or when setting accountSid in the API.
TwilioClient.init(new ClientCredentialProvider(CLIENT_ID, CLIENT_SECRET));
*/
FetchMessageOptions fm = new FetchMessageOptions(MESSAGE_SID);
MessageResource m = MessageResource.Fetch(fm);
Expand Down

0 comments on commit 054d55c

Please sign in to comment.