This is a Python code sample to show how to retrieve information regarding an inbound fax received in InterFAX. This code sample is based on the Python library for InterFAX available on Github.
This sample demonstrates how to retrieve the information of a single fax based on the fax ID - all you need to do in order to change it is to provide a different fax ID.
You can retrieve the fax ID by using the sample code for checking on inbound faxes or by integrating the inbound callback.
# given an InterFAX fax ID fax_id = '12345' # retrieve the fax fax = interfax.inbound.find(fax_id) # check the status fax.image_status # check the number of pages fax.pages
The parameters of the fax are only two of several parameters that you can retrieve in regards to a fax. For a full list, please review our API documentation.