Skip to content

eyecuelab/smarteru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmarterU API wrapper

Ruby wrapper for a SmarterU API. Allows access to a Smarteru API operations: api documentation

Basic Usage

API wrapper can be used from the command line or as part of a Ruby web framework. First install the gem:

gem install smarteru

Instantiate a client with your SmarterU credentials. You can get it here

require 'smarteru'
client = Smarteru::Client.new(account_api_key: "ACCOUNT_API_KEY", user_api_key: "USER_API_KEY")

Make api calls. You can find a list of API endpoints here

response = client.request('getGroup', {group: {name: 'MyGroup'}})
response.result =>
  {
    group: {
      name: "MyGroup",
      group_id: nil,
      created_date: "2015-01-22 23:42:55.553",
      modified_date: "2015-01-23 01:25:02.013",
      description: {
        p: "Group Description ..."
      },
      home_group_message: {
        p: "Welcome to The Group"
      },
      notification_emails: nil,
      user_count: "2",
      learning_module_count: "2",
      tags: nil,
      status: "Active"
    }
  }

Testing

bundle install
rake

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages