/// <summary> /// Construtor for the OAuth object make sure all the dcetails are correctly entered here. /// </summary> /// <param name="clientId">Unique Client ID issued by TelecomsCloud.</param> /// <param name="clientSecret">Client secret issued by TelecomsCloud.</param> /// <param name="baseUrl">First part of the API url. Example: "https://api.telecomscloud.com/v1/"</param> public OAuth(string clientId, string clientSecret, string baseUrl) { _clientId = clientId; _clientSecret = clientSecret; _apiUrlBase = baseUrl; _headers.Add("Content-Type", "application/json"); _httpCommands = new HttpCommands(); }
/// <summary> /// Constructor for the AccountInfo Object make sure all the details are correctly entered here. /// </summary> /// <param name="clientGrant">Response from Gaining Access.</param> /// <param name="baseUrl">First part of the API url. Example: "https://api.telecomscloud.com/v1/"</param> public AccountInfo(ClientGrantResponse clientGrant, string baseUrl) { _clientGrant = clientGrant; _baseApiUrl = baseUrl; _httpCommands = new HttpCommands(); }
/// <summary> /// Constructor for the FaxInbound Object make sure all the details are correctly entered here. /// </summary> /// <param name="clientGrant">Response from Gaining Access.</param> /// <param name="baseApiUrl">First part of the API url. Example: "https://api.telecomscloud.com/v1/"</param> public FaxInbound(ClientGrantResponse clientGrant, string baseApiUrl) { _clientGrant = clientGrant; _baseApiUrl = baseApiUrl; _httpCommands = new HttpCommands(); }