## or but why
my $terms = $canvas->api( 'CanvasCloud::API::Account::Term' )->list;
print to_json( $terms ); ## show contents of what was returned!!!
=head1 DESCRIPTION
This module provides a
bject response from POST ->uri / $csvfile
=head2 csvstatus
get sendfile status as GET ->uri/$id.json
=head1 AUTHOR
Ted Katseres
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2019 b
t', $file_or_hash, ref($file_or_hash) );
}
my $r = $self->request( 'POST', $self->uri . '.json?import_type=instructure_csv&extension=zip' );
$r->content_type( 'application/zip' );
$r->
ie 'id must be given!';
return $self->send( $self->request( 'GET', $self->uri . '/' . $id . '.json' ) );
}
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Can
head2 sendzip
send zip data as POST ->uri
=head2 zipstatus
get sendzip status as GET ->uri/$id.json
=head1 AUTHOR
Ted Katseres
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2019 b
use Moose;
use namespace::autoclean;
use LWP::UserAgent;
use Hash::Merge qw/merge/;
use URI;
use JSON;
has debug => ( is => 'ro', lazy => 1, default => 0 );
has scheme => ( is => 'ro', lazy => 1, d
self->send( $request ) );
}
}
}
return $struct;
}
sub decode { from_json $_[1]; }
sub _parse_link {
my $link = shift;
$link =~ s/\R//g;
my %struct = map { $
turns a hashref data structure as response from Canvas.
=head2 decode( 'jsonstring' );
returns results from from_json on jsonstring
=head2 encode_url( $content )
encode structure to url
=head1 AU