Python Fax - Retrieve Outbound Fax Image

Download the Python fax code samples and library.

This Python fax example demonstrates how to retrieve the image of an outbound (previously-submitted) fax with the GetFaxImage method:

The Python fax snippet below retrieves an image of an outbound fax using GetFaxImage:

"""
A simple script to check the status of a few fax transmissions
using the InterFAX GetFaxImage SOAP API call.
"""
from interfax import client
 
print 'Testing GetFaxImage...'
c = client.InterFaxClient('USERNAME','PASSWORD')  # Enter your Interfax username/password here
 
txId = 123264664 # Enter the TransactionID of the fax to get an image of.
result = c.getFaxImage( tcId, "/tmp/%d.tif" % txId )
print '   GetFaxImage returned with code %d' % result