Project

aircall

0.01
No commit activity in last 3 years
No release in over 3 years
Ruby Gem for Aircall
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 2.2
~> 3.5
~> 5.11
~> 10.0

Runtime

~> 0.16.2
 Project Readme

Aircall

License Gem

A Ruby gem for Aircall. Only some methods are presents for the moment.

Installation

Add this line to your application's Gemfile:

gem 'aircall'

And then execute:

$ bundle

Or install it yourself as:

$ gem install aircall

Usage

Init

Create new Aircall connection like this:

require 'aircall'
aircall = Aircall.new({id: [AIRCALL_ID], token: [AIRCALL_TOKEN]})

Or like this:

require 'aircall'
aircall = Aircall.new
aircall.id = [AIRCALL_ID]
aircall.token = [AIRCALL_TOKEN]

Methods

Examples

aircall.contacts.get_by_email("youremail@gmail.com")
aircall.contacts.get_by_phone_number("+33612345678", per_page:1, page:3, order: "desc", order_by: "updated_at")
aircall.calls.get_all(per_page: 2, from: 1495542462, to: 1514035662)

Development

Build

gem build aircall.gemspec

Local installation

gem install ./aircall-[version].gem

Tests

Create .env file from .env.example. Complete with your variables.

Run test with rake test.

Deployment

Deployment from Github

bundle exec rake release

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request