0.0
No commit activity in last 3 years
No release in over 3 years
Nimbo X Ruby Wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
~> 10.0
>= 0
>= 0

Runtime

~> 0.4.0
 Project Readme

Nimbo X Ruby Gem

A Ruby wrapper for the Nimbo X API.

You should access the Nimbo X API documentation in order to learn more about the request/response parameters for each endpoint.

Installation

$ gem install nimbox_ruby

API Usage Examples

You will need to get an app_id, app_secret and access token in order to make authenticated requests.

# initializing the client
client = Nimbox::Client.new(client_id: <redacted>, client_secret: <redacted>,
  access_token: <redacted>)

People

Create a person.

attributes = { first_name: 'John', last_name: 'Doe' }
response = client.people.create!(attributes)
response['person'].inspect

Update a person.

client.people('1').update!(first_name: 'Foo')

Retrieve a person.

client.people!('1')

Consultations

Create a consultation.

attributes = { cause: 'John', person_id: 1 }
response = client.consultations.create!(attributes)
response['consultation'].inspect

Update a consultation.

client.consultations('1').update!(cause: 'Foo')

Retrieve a consultation.

client.consultations!('1')

Finish a consultation.

client.consultations.finish('1')

License

The gem is available as open source under the terms of the MIT License.