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