();
use OAuth::Cmdline::GoogleDrive ();
use Net::Google::Drive::Simple::Item ();
use JSON qw( from_json to_json );
use Log::Log4perl qw(:easy);
# used in V3.pm too
use constant {
'HTTP_CODE_OK'
$post_data = to_json( $info->{'body_parameters'} );
if ( !$info->{'multipart'} && !$info->{'resumable'} ) {
push @headers, 'Content-Type', 'application/json';
}
}
le content
# The $post_data is the JSON content
# We need to create a new body from them
my $part1 = "Content-type: application/json; charset=UTF-8\r\n\r\n" . $post_data;
use LWP::UserAgent ();
use HTTP::Request ();
use File::Basename qw( basename );
use JSON qw( from_json to_json );
use Log::Log4perl qw(:easy);
our $VERSION = '3.02';
#############################
= ();
while (1) {
my $url = $self->file_url($opts);
my $data = $self->http_json($url);
return unless defined $data;
my $next_item = $self->item_iterator($data);
pe, $parent ) = @_;
my $url = URI->new( $self->{api_file_url} );
my $data = $self->http_json(
$url,
{
title => $title,
parents => [ { id => $paren
mple::Core >;
use URI ();
use URI::QueryParam ();
use File::Basename ();
use JSON qw< from_json >;
use Log::Log4perl qw(:easy);
use constant {
'HTTP_METHOD_GET' => 'GET',
'HT
pe?
if ( keys %{$options} > 1 ) {
push @extra_headers, 'Content-Type' => 'application/json; charset=UTF-8';
}
my $info = {
'query_parameters' => {
'uploadType'
pe?
if ( keys %{$options} > 1 ) {
push @extra_headers, 'Content-Type' => 'application/json; charset=UTF-8';
}
my $info = {
'query_parameters' => {
'uploadType'