Skip to content
An application to send faxes with the Twilio Fax API
Ruby CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
public
views
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
app.rb
config.ru

README.md

Send and track Faxes with the Twilio Fax API using Sinatra and Ruby

This is an example application that you can use to send and track faxes using the Twilio Fax API.

Running the app

You'll need the following to run the app:

Then clone the application:

git clone https://github.com/philnash/twilio-fax-ruby-sinatra.git
cd twilio-fax-ruby-sinatra

Install the dependencies:

bundle install

Copy the example config file to config/env.yml:

cp config/env.yml.example config/env.yml

Fill in config/env.yml with your Twilio Account SID and Auth Token available on your Twilio console. Enter a fax capable Twilio number from your account as the FROM_NUMBER.

Start ngrok to point at port 3000.

ngrok http 3000

Fill in the URL_BASE in config/env.yml with your ngrok URL.

Start the application:

bundle exec shotgun config.ru -p 3000

Open localhost:3000 and start sending faxes!

You can’t perform that action at this time.