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.
$ gem install nimbox_ruby
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>)
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')
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')
The gem is available as open source under the terms of the MIT License.