The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CanvasCloud - Perl access for Canvas LMS API

VERSION

version 0.007

SYNOPSIS

  use CanvasCloud;

  my $canvas = CanavasCloud->new( config => { domain => 'yourdomain.instructure.com', token => 'stringSoupGoesHere', account_id => 'A' } );

  ## To list Terms

  my $terms = $canvas->api( 'terms' )->list;

  ## or

  my $terms = $canvas->api( 'Account::Term' )->list;

  ## or but why

  my $terms = $canvas->api( 'CanvasCloud::API::Account::Term' )->list;

  print to_json( $terms );  ## show contents of what was returned!!!

DESCRIPTION

This module provides a factory method for accessing various API modules.

ATTRIBUTES

config

required: HashRef of key value pairs to be accessed when ->api is called

METHODS

api( 'api type' )

Factory method that creates Canvas::API object based on 'api type' passed.

  'reports'    or 'Account::Report'    CanvasCloud::API::Account::Report
  'terms'      or 'Account::Term'      CanvasCloud::API::Account::Term
  'sisimports' or 'Account::SISImport' CanvasCloud::API::Account::SISImport
  'outcomeimport' or 'Account::OutcomeImport' CanvasCloud::API::Account::OutcomeImport

SEE ALSO

CanvasCloud::API

AUTHOR

Ted Katseres

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Ted Katseres.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.