view release on metacpan or search on metacpan
lib/AsposeSlidesCloud/ApiClient.pm view on Meta::CPAN
return 'application/octet-stream';
} else {
return $header[0]
}
}
# add auth, user agent and other headers
#
# @param array $headerParams header parameters (by ref)
sub update_headers {
my ($self, $header_params) = @_;
my $custom_headers = $self->{config}{custom_headers};
foreach my $key (keys %$custom_headers) {
$header_params->{$key} = $self->{config}{custom_headers}{$key};
}
$self->update_params_for_auth($header_params);
}
# update header and query param based on authentication setting
#
# @param array $headerParams header parameters (by ref)
sub update_params_for_auth {
my ($self, $header_params) = @_;
if ((defined $self->{config}{app_sid} && $self->{config}{app_sid} ne "") && (!defined $self->{config}{access_token} || $self->{config}{access_token} eq "")) {
my $_url = $self->{config}{auth_base_url} . "/connect/token";
my $_request = POST($_url, {}, Content => 'grant_type=client_credentials&client_id='.$self->{config}{app_sid}.'&client_secret='.$self->{config}{app_key});
my $_response = $self->{ua}->request($_request);
unless ($_response->is_success) {
my $content = sprintf("%s", $_response->content);
croak(sprintf "API Exception(%s): %s\n%s", 401, $_response->message, $content);
}
my $decoded_data = decode_json $_response->content;
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_animation_effect' } = {
summary => 'Modify an animation effect for a slide.',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_animation_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_animation_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_animation_effect");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_animation_interactive_sequence_effect' } = {
summary => 'Modify an animation effect for a slide interactive sequence.',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_animation_interactive_sequence_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_animation_interactive_sequence_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_animation_interactive_sequence_effect");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_chart_category' } = {
summary => 'Update a chart category.',
params => $params,
returns => 'Chart',
};
}
# @return Chart
#
sub update_chart_category {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_chart_category");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_chart_category");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_chart_data_point' } = {
summary => 'Update a data point in a chart series.',
params => $params,
returns => 'Chart',
};
}
# @return Chart
#
sub update_chart_data_point {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_chart_data_point");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_chart_data_point");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_chart_series' } = {
summary => 'Update a series in a chart.',
params => $params,
returns => 'Chart',
};
}
# @return Chart
#
sub update_chart_series {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_chart_series");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_chart_series");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_layout_slide' } = {
summary => 'Update a layoutSlide.',
params => $params,
returns => 'LayoutSlide',
};
}
# @return LayoutSlide
#
sub update_layout_slide {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_layout_slide");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_layout_slide");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_notes_slide' } = {
summary => 'Update notes slide properties.',
params => $params,
returns => 'NotesSlide',
};
}
# @return NotesSlide
#
sub update_notes_slide {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_notes_slide");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_notes_slide");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_paragraph' } = {
summary => 'Update paragraph properties.',
params => $params,
returns => 'Paragraph',
};
}
# @return Paragraph
#
sub update_paragraph {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_paragraph");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_paragraph");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_portion' } = {
summary => 'Update portion properties.',
params => $params,
returns => 'Portion',
};
}
# @return Portion
#
sub update_portion {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_portion");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_portion");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_section' } = {
summary => 'Update section name.',
params => $params,
returns => 'Sections',
};
}
# @return Sections
#
sub update_section {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_section");
}
# verify the required parameter 'section_index' is set
unless (exists $args{'section_index'} && defined $args{'section_index'}) {
croak("Missing the required parameter 'section_index' when calling update_section");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_shape' } = {
summary => 'Update shape properties.',
params => $params,
returns => 'ShapeBase',
};
}
# @return ShapeBase
#
sub update_shape {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_shape");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_shape");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_slide' } = {
summary => 'Update a slide.',
params => $params,
returns => 'Slide',
};
}
# @return Slide
#
sub update_slide {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_slide");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_slide");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_animation_effect' } = {
summary => 'Modify an animation effect for a special slide (master, layout, notes).',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_special_slide_animation_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_animation_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_animation_effect");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_animation_interactive_sequence_effect' } = {
summary => 'Modify an animation effect for a special slide (master, layout, notes) interactive sequence.',
params => $params,
returns => 'SlideAnimation',
};
}
# @return SlideAnimation
#
sub update_special_slide_animation_interactive_sequence_effect {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_animation_interactive_sequence_effect");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_animation_interactive_sequence_effect");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_paragraph' } = {
summary => 'Update paragraph properties.',
params => $params,
returns => 'Paragraph',
};
}
# @return Paragraph
#
sub update_special_slide_paragraph {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_paragraph");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_paragraph");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_portion' } = {
summary => 'Update portion properties.',
params => $params,
returns => 'Portion',
};
}
# @return Portion
#
sub update_special_slide_portion {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_portion");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_portion");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_special_slide_shape' } = {
summary => 'Update shape properties.',
params => $params,
returns => 'ShapeBase',
};
}
# @return ShapeBase
#
sub update_special_slide_shape {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_special_slide_shape");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_special_slide_shape");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_table_cell' } = {
summary => 'Update the table cell.',
params => $params,
returns => 'TableCell',
};
}
# @return TableCell
#
sub update_table_cell {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_cell");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_cell");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_table_cell_paragraph' } = {
summary => 'Updates table cell paragraph.',
params => $params,
returns => 'Paragraph',
};
}
# @return Paragraph
#
sub update_table_cell_paragraph {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_cell_paragraph");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_cell_paragraph");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_table_cell_portion' } = {
summary => 'Updates table cell portion.',
params => $params,
returns => 'Portion',
};
}
# @return Portion
#
sub update_table_cell_portion {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_cell_portion");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_cell_portion");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_table_row' } = {
summary => 'Update the table row.',
params => $params,
returns => 'TableRow',
};
}
# @return TableRow
#
sub update_table_row {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_table_row");
}
# verify the required parameter 'slide_index' is set
unless (exists $args{'slide_index'} && defined $args{'slide_index'}) {
croak("Missing the required parameter 'slide_index' when calling update_table_row");
lib/AsposeSlidesCloud/SlidesApi.pm view on Meta::CPAN
},
};
__PACKAGE__->method_documentation->{ 'update_vba_module' } = {
summary => 'Update VBA module.',
params => $params,
returns => 'VbaModule',
};
}
# @return VbaModule
#
sub update_vba_module {
my ($self, %args) = @_;
# verify the required parameter 'name' is set
unless (exists $args{'name'} && defined $args{'name'} && $args{'name'}) {
croak("Missing the required parameter 'name' when calling update_vba_module");
}
# verify the required parameter 'module_index' is set
unless (exists $args{'module_index'} && defined $args{'module_index'}) {
croak("Missing the required parameter 'module_index' when calling update_vba_module");