Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: interfax/interfax-dotnet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.1.5
Choose a base ref
...
head repository: interfax/interfax-dotnet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Jun 16, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    043c8ec View commit details

Commits on Jul 9, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1c5bf59 View commit details

Commits on May 8, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d6894fe View commit details
Showing with 10 additions and 4 deletions.
  1. +10 −4 README.md
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ Send and receive faxes in [CLI Languages](https://en.wikipedia.org/wiki/List_of_

This library targets .NET Standard 2.0/.NET 4.6.1+ and is installed via NuGet:
```
Install-Package InterFAX.Api -Version 3.1.4
Install-Package InterFAX.Api -Version 3.1.5
```

For a full list of supported platforms see the [.NET Standard](https://github.com/dotnet/standard/blob/master/docs/versions.md) reference documentation.
@@ -51,11 +51,17 @@ var interfax = new FaxClient(username: "...", password: "...");
// INTERFAX_PASSWORD : InterFax Password
var interfax = new FaxClient();

// Initialize with an alternative InterFAX API (EG PCI Compliant)
// Initialize with a specific InterFAX API Endpoint (EG PCI Compliant)
// InterFAX_Default: https://www.interfax.net/en-us/dev/rest/reference
// InterFAX_PCI: https://www.interfax.net/en-us/dev/rest_pci/reference
var interfax = new FaxClient(apiRoot: FaxClient.ApiRoot.InterFAX_PCI);

// Locale specific endpoints for data-sovereignty
// InterFAX_US_PCI: USA
var interfax = new FaxClient(apiRoot: FaxClient.ApiRoot.InterFAX_US_PCI);
// InterFAX_CA_PCI: Canada
var interfax = new FaxClient(apiRoot: FaxClient.ApiRoot.InterFAX_CA_PCI);

```

Use of configurationManager was removed in 2.0.0, due to conversion to .NET Standard.
@@ -99,14 +105,14 @@ var options = new SendOptions { FaxNumber = "+11111111112"};

// with a path
var fileDocument = interfax.Documents.BuildFaxDocument(@".\folder\fax.txt");
var messageId = await interfax.Outbound.SendFax(faxDocument, options);
var messageId = await interfax.Outbound.SendFax(fileDocument, options);

// with a stream
// NB : the caller is responsible for opening and closing the stream.
using (var fileStream = File.OpenRead(@".\folder\fax.txt"))
{
var fileDocument = interfax.Documents.BuildFaxDocument("fax.txt", fileStream);
var messageId = await interfax.Outbound.SendFax(faxDocument, options);
var messageId = await interfax.Outbound.SendFax(fileDocument, options);
}
// with a byte array
byte[] file = ...