C# Fax - Get Fax Information with FaxQuery
This sample shows you how to retrieve information for one or more submitted C# faxes using the FaxQuery method.
The following C# Fax API snippet displays information for a number of submitted faxes:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FaxQuery { class Program { static void Main(string[] args) { string username = "my username"; string password = "my password"; string verb = "EQ"; string verbData = "196805130"; int maxItems = 1; // just a single item int st = 0; interfax.InterFax ifws = new interfax.InterFax(); interfax.FaxItemEx[] result = ifws.FaxQuery(username, password, verb, verbData, maxItems, ref st); Console.WriteLine("Status is " + st); if (st==0) Console.WriteLine("Num of transactions: " + result.Length); } } }
