Overview:

    *
      A very basic Ruby code sample that will allows to send a fax to the Multitech Fax Finder device  using API interface.

Prerequisites:

    * Download and Install Ruby Interpreter 1.9.1 – p378 RubyInstaller at http://www.ruby-lang.org/en/downloads/
    * Download the Ruby sample source code SendFax-Ruby.zip here.

Notes: The SendFax-Ruby.zip contained two files:

    * sendfax.rb.
    * schedule.xml.

Modify schedule.xml:

Load the schedule.xml file into your favorite editor, find the section below, and modify the fax number to point to your recipient fax number:

<recipient>
...
<fax_number>5138</fax_number>
</recipient>

Save it.

Modify sendfax.rb:

Using the SciTE Editor that came with the Ruby Interpreter, load up the source file sendfax.rb into it, and modify the following:

Change the path to point to your ruby directory:

#!/ruby/bin/ruby

Change the IP address to point to your Fax Finder’s IP address:

hostname = "216.133.69.247"

Change the user name and password to match yours.

req.basic_auth('admin','admin')

Save and Run it.

Now, if you web into your FaxFinder device and go to Status & Log -> Fax Status, you should be able to see the Fax Finder is sending out a fax.