This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var restClient = new RestClient(clientId, clientSecret, true); | |
await restClient.Authorize(jwtToken); | |
var parameters = new MakeCallOutRequest | |
{ | |
from = new MakeCallOutCallerInfoRequestFrom { deviceId = deviceId }, | |
to = new MakeCallOutCallerInfoRequestTo { phoneNumber = phoneToCall } | |
}; | |
var resp = await restClient.Restapi().Account().Telephony().CallOut().Post(parameters); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ObjectComparer | |
{ | |
public static string GetChangedValues(object oldObject, object newObject) | |
{ | |
var oType = oldObject.GetType(); | |
var sb = new StringBuilder(); | |
foreach (var oProperty in oType.GetProperties()) | |
{ | |
if (oProperty.Name.ToLower().Equals("lastupdated")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Add required namespaces | |
public class AzureTokenService | |
{ | |
public static AzureCredentials GetAzureCredentials() | |
{ | |
var subscriptionId = "SUBSCRIPTION_ID"; | |
var appId = "APP_ID"; | |
var appSecret = "APP_SECRET"; | |
var tenantId = "TENANT_ID"; |