CanvasDataClient
This gem is meant to provide an easy-to-use ruby client wrapping the Canvas Hosted Data API.
It calculates and attaches HMAC signatures for each request, and returns the parsed JSON response.
Usage
The client can be initialized as such:
client = CanvasDataClient::Client.new(api_key, api_secret)
As much as possible, the methods available in the client match those given in the API docs
List of methods:
client.latest_files
client.dumps
client.dump('b349ad95-4839-48f3-b763-ec555fc2f42f')
client.tables('course_dim')
client.schemas
client.latest_schema
client.schema('1.0.0')
client.download_to_csv_file(dump_id: 'b349ad95-4839-48f3-b763-ec555fc2f42f', table: 'requests', path: '/path/to/output_file.csv')
client.download_latest_to_csv_file(table: 'requests', path: '/path/to/output_file.csv')
Source
Originally from a partners GitHub at https://github.com/ben-y/canvas_data_client.
License
The gem is available as open source under the terms of the MIT License.