Skip to content

Commit

Permalink
Update FaxClient.cs
Browse files Browse the repository at this point in the history
Added US & Canadian PCI Endpoints to Config
  • Loading branch information
ricky-shake-n-bake-bobby authored May 3, 2021
1 parent 7146ab1 commit 18e3969
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions InterFAX.Api/FaxClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
Expand Down Expand Up @@ -30,7 +30,9 @@ public class FaxClient
public enum ApiRoot
{
InterFAX_Default,
InterFAX_PCI
InterFAX_PCI,
InterFAX_US_PCI,
InterFAX_CA_PCI
}

/// <summary>
Expand Down Expand Up @@ -92,6 +94,12 @@ private void Initialise(string username, string password, ApiRoot apiRoot, HttpM
case ApiRoot.InterFAX_Default:
root = "https://rest.interfax.net";
break;
case ApiRoot.InterFAX_US_PCI:
root = "https://restus-sl.interfax.net";
break;
case ApiRoot.InterFAX_CA_PCI:
root = "https://restca-sl.interfax.net";
break;
}

HttpClient.BaseAddress = new Uri(root);
Expand Down

0 comments on commit 18e3969

Please sign in to comment.