Google-Client-Collection
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Google/Client/Files.pm view on Meta::CPAN
sub list {
my ($self, $params) = @_;
my $url = $self->_url(undef, $params);
my $json = $self->_request(
method => 'GET',
url => $url
);
return $json;
}
sub update_media {
my ($self, $id, $params, $content) = @_;
confess("No ID provided") unless ($id);
unless ( $content && %$content ) {
confess("No content provided to update");
}
my $url = $self->_url("/upload/drive/v3/files/$id", $params);
my $json = $self->_request(
method => 'PATCH',
url => $url,
content => encode_json($content)
);
return $json;
}
sub update {
my ($self, $id, $params, $content) = @_;
confess("No ID provided") unless ($id);
unless ( $content && %$content ) {
confess("No content provided to update");
}
my $url = $self->_url("/$id", $params);
my $json = $self->_request(
method => 'PATCH',
url => $url,
content => encode_json($content)
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.499 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )