EtherFaxClient Class

A full-featured class library that simplifies programming with etherFAX.

public class EtherFaxClient

CONSTRUCTORS

NameDescription
๐Ÿ”นEtherFaxClient()Initializes a new instance of the EtherFaxClient class.
๐Ÿ”นEtherFaxClient(string apikey)Initializes a new instance of the EtheFaxClient class and sets the apikey for authorization.
๐Ÿ”นEtherFaxClient(string user, string password)Initializes a new instance of the EtherFaxClient class and sets the username and password used for authorization.
๐Ÿ”นEtherFaxClient(HttpClientHandler handler)Initializes a new instance of the EtherFaxClient class and specifies the HttpClientHandler to be used as a proxy.

PROPERTIES

NameDescription
LoggerGets/sets the ILogger used for error logging.
ServiceAddressGets/sets the current service base address.
StatusCodeReturns the HTTP status code of the last operation.
TimeoutGets/sets the web client timeout. If unspecified, the default HTTP client timeout is used.
VersionGets/sets the rest API version (the default value is 3).

METHODS

NameDescription
๐Ÿ”นGetFax(Guid jobId)
GetFaxAsync(Guid jobId)
Gets (downloads) the specified fax id including the fax image.
๐Ÿ”นGetFaxAccount()
GetFaxAccountAsync()
Returns information about the current account.
๐Ÿ”นGetFaxStatus(Guid jobId)
GetFaxStatusAsync(Guid jobId)
Get fax status for single job id.
๐Ÿ”นGetFaxStatus(List jobIds)
GetFaxStatusAsync(List jobIds)
Get fax status for multiple job ids at once.
๐Ÿ”นGetNextUnreadFax(bool download)
GetNextUnreadFaxAsync(bool download)
Gets (downloads) the next available fax waiting on the service.
๐Ÿ”นGetPendingFaxes()
GetPendingFaxesAsync()
Returns the number of pending faxes for this account.
๐Ÿ”นGetRouteInfo(string route)
GetRouteInfoAsync(string route)
Returns information for the specified route/number.
๐Ÿ”นGetUnreadFaxCount()
GetUnreadFaxCountAsync()
Returns the number of unread faxes for this account.
๐Ÿ”นGetUnreadFaxList(int count)
GetUnreadFaxListAsync(int count)
Returns a list of unread faxes (information only) up to count. If count is 0, all unread faxes are returned.
๐Ÿ”นSendFax(FaxSend fax)
SendFaxAsync(FaxSend fax)
Sends the fax to the etherFAX service and returns the result to the caller.
๐Ÿ”นSetCredentials(string apikey)Sets the credentials using an api-key, authorization token.
๐Ÿ”นSetCredentials(string user, string password)Sets the credentials using a user name + password.
๐Ÿ”นSetFaxReceived(Guid jobId, FaxResult? result)
SetFaxReceivedAsync(Guid jobId, FaxResult? result)
Sets/marks the specified fax as received, with an optional final status for in-network faxes (SEN).
๐Ÿ”นSetPublicKey(string pkinfo)
SetPublicKeyAsync(string pkinfo)
Uploads the public key contents (PEM format) to the account.
๐Ÿ”นStartPushListener()
StartPushListenerAsync()
Starts the push notification listener service.
๐Ÿ”นStopPushListener()
StopPushListenerAsync()
Stops the push listener and disposes push related resources.