Beispiel #1
0
 /// <summary>
 /// ClassUrl.
 /// </summary>
 /// <param name="baseUrl">baseUrl.</param>
 /// <returns>url.</returns>
 protected virtual string ClassUrl(string baseUrl = null)
 {
     baseUrl = baseUrl ?? TelnyxConfiguration.GetApiBase();
     return(baseUrl.UrlCombine(this.BasePath));
 }
Beispiel #2
0
 /// <summary>
 /// ClassUrl
 /// </summary>
 /// <param name="parentId">parentId</param>
 /// <param name="baseUrl">baseUrl</param>
 /// <returns>url</returns>
 protected virtual string ClassUrl(string parentId, string baseUrl = null)
 {
     baseUrl = baseUrl ?? TelnyxConfiguration.GetApiBase();
     return($"{baseUrl}{this.BasePath.Replace("{PARENT_ID}", parentId)}");
 }
Beispiel #3
0
 /// <summary>
 /// ClassUrl
 /// </summary>
 /// <param name="baseUrl">baseUrl</param>
 /// <returns>url</returns>
 protected virtual string ClassUrl(string baseUrl = null)
 {
     baseUrl = baseUrl ?? TelnyxConfiguration.GetApiBase();
     return($"{baseUrl}{this.BasePath}");
 }