DoceboRuby - Ruby wrapper for Decobo LMS API
Installation
gem install docebo
or add it to Gemfile
gem 'docebo', '~> 0.0.1'
Usage
api = Docebo::API.new(
key: 'key',
secret: 'secret',
url: 'your_saas_platform/api'
)
results = api.make_request(
'user',
'authenticate',
username: 'hello',
password: 'hell'
)
# Course
DoceboRuby::Course.all
# User
DoceboRuby::User.authenticate('john', 'Pa$$W0rd')
DoceboRuby::User.check_username('john')
DoceboRuby::User.sso_url('john')
# OrgChart
DoceboRuby::Orgchart.create_node(attributes)
TODO
Create User, Courses, etc. API classes.
Contributions
- Fork this repository.
- Create your own feature and spec.
- Create a pull request.
To run test
rspec