This gem wraps IFaxapp's API. https://www.ifaxapp.com/docs/api/v1
Add this line to your application's Gemfile:
gem 'ifaxapp_api'
And then execute:
bundle
Or install it yourself as:
gem install ifaxapp_api
If you want to use this its quite simple first create a client object of Cms api:
@client = IfaxappApi::Client.new(api_key: "API_KEY")
To get send fax
params = {
"faxNumber" : "+12345678901",
"faxData" : [{
"fileName" : "abc.pdf",
"fileUrl" : "HTTP url of file"
},
{
"fileName" : "xyz.pdf",
"fileUrl" : "HTTP url of file"
}]
}
@client.fax.send(params: params)
To resend fax
params = {"jobId" : 12345}
@client.fax.resend(params: params)
To Get fax status
params = {"jobId" : 12345}
@client.fax.status(params: params)
- Fork it ( https://github.com/dilkhush/ifaxapp/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request