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

NAME

CanvasCloud::API - Base Class for talking Canvas LMS API

VERSION

version 0.007

DESCRIPTION

Base class to be inherited by CanvasCloud API modules.

ATTRIBUTES

domain

required: Domain for your Canvas LMS site.

token

required: Your Oauth2 string token

debug

optional: 1 or 0 : 0 is default

scheme

optional: http or https : https is default

ua

LWP::UserAgent

METHODS

uri

Base uri for Canvas LMS

request( $method, $uri )

returns HTTP::Request;

request creates a HTTP::Request->new( $method => $uri ) it then sets the 'Authorization' header

send( $request )

Attempts to send request to Canvas recursively depending on return Link header. Finally returns a hashref data structure as response from Canvas.

decode( 'jsonstring' );

returns results from from_json on jsonstring

encode_url( $content )

encode structure to url

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.