line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AsposeWordsCloud::WordsApi; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.6.0; |
4
|
1
|
|
|
1
|
|
157659
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
6
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
7
|
1
|
|
|
1
|
|
17
|
use Exporter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
8
|
1
|
|
|
1
|
|
5
|
use Carp qw( croak ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
42
|
|
9
|
1
|
|
|
1
|
|
6
|
use Log::Any qw($log); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
10
|
1
|
|
|
1
|
|
192
|
use File::Slurp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
59
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
266
|
use AsposeWordsCloud::ApiClient; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
13
|
1
|
|
|
1
|
|
5
|
use AsposeWordsCloud::Configuration; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34197
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $VERSION = '1.03'; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub new { |
18
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
19
|
0
|
0
|
|
|
|
|
my $default_api_client = $AsposeWordsCloud::Configuration::api_client ? $AsposeWordsCloud::Configuration::api_client : |
20
|
|
|
|
|
|
|
AsposeWordsCloud::ApiClient->new; |
21
|
0
|
|
|
|
|
|
my (%self) = ( |
22
|
|
|
|
|
|
|
'api_client' => $default_api_client, |
23
|
|
|
|
|
|
|
@_ |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#my $self = { |
27
|
|
|
|
|
|
|
# #api_client => $options->{api_client} |
28
|
|
|
|
|
|
|
# api_client => $default_api_client |
29
|
|
|
|
|
|
|
#}; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
bless \%self, $class; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# |
36
|
|
|
|
|
|
|
# PutConvertDocument |
37
|
|
|
|
|
|
|
# |
38
|
|
|
|
|
|
|
# |
39
|
|
|
|
|
|
|
# |
40
|
|
|
|
|
|
|
# @param String $format (optional) |
41
|
|
|
|
|
|
|
# @param String $outPath (optional) |
42
|
|
|
|
|
|
|
# @param String $replaceResourcesHostTo (optional) |
43
|
|
|
|
|
|
|
# @param File $file (required) |
44
|
|
|
|
|
|
|
# @return ResponseMessage |
45
|
|
|
|
|
|
|
# |
46
|
|
|
|
|
|
|
sub PutConvertDocument { |
47
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
51
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
52
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PutConvertDocument"); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
# parse inputs |
57
|
0
|
|
|
|
|
|
my $_resource_path = '/words/convert/?appSid={appSid}&toFormat={toFormat}&outPath={outPath}&replaceResourcesHostTo={replaceResourcesHostTo}'; |
58
|
|
|
|
|
|
|
|
59
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
60
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
61
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
62
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
63
|
|
|
|
|
|
|
|
64
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
65
|
0
|
|
|
|
|
|
my $query_params = {}; |
66
|
0
|
|
|
|
|
|
my $header_params = {}; |
67
|
0
|
|
|
|
|
|
my $form_params = {}; |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
70
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
71
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
72
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
73
|
|
|
|
|
|
|
} |
74
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
# query params |
77
|
0
|
0
|
|
|
|
|
if ( exists $args{'format'}) { |
78
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{format}\E/$args{'format'}/g; |
79
|
|
|
|
|
|
|
}else{ |
80
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; |
81
|
|
|
|
|
|
|
}# query params |
82
|
0
|
0
|
|
|
|
|
if ( exists $args{'outPath'}) { |
83
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{outPath}\E/$args{'outPath'}/g; |
84
|
|
|
|
|
|
|
}else{ |
85
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]outPath.*?(?=&|\?|$)//g; |
86
|
|
|
|
|
|
|
}# query params |
87
|
0
|
0
|
|
|
|
|
if ( exists $args{'replaceResourcesHostTo'}) { |
88
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{replaceResourcesHostTo}\E/$args{'replaceResourcesHostTo'}/g; |
89
|
|
|
|
|
|
|
}else{ |
90
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]replaceResourcesHostTo.*?(?=&|\?|$)//g; |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
|
94
|
0
|
|
|
|
|
|
my $_body_data; |
95
|
|
|
|
|
|
|
# form params |
96
|
0
|
0
|
|
|
|
|
if ( exists $args{'file'} ) { |
97
|
|
|
|
|
|
|
|
98
|
0
|
|
|
|
|
|
$_body_data = read_file( $args{'file'} , binmode => ':raw' ); |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
# authentication setting, if any |
104
|
0
|
|
|
|
|
|
my $auth_settings = []; |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
# make the API Call |
107
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
108
|
|
|
|
|
|
|
$query_params, $form_params, |
109
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
110
|
0
|
0
|
|
|
|
|
if (!$response) { |
111
|
0
|
|
|
|
|
|
return; |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
115
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
|
118
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
119
|
0
|
|
|
|
|
|
return $_response_object; |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
} |
122
|
|
|
|
|
|
|
# |
123
|
|
|
|
|
|
|
# PutExecuteMailMergeOnline |
124
|
|
|
|
|
|
|
# |
125
|
|
|
|
|
|
|
# |
126
|
|
|
|
|
|
|
# |
127
|
|
|
|
|
|
|
# @param Boolean $withRegions (required) |
128
|
|
|
|
|
|
|
# @param String $cleanup (optional) |
129
|
|
|
|
|
|
|
# @param File $file (required) |
130
|
|
|
|
|
|
|
# @param File $data (required) |
131
|
|
|
|
|
|
|
# @return ResponseMessage |
132
|
|
|
|
|
|
|
# |
133
|
|
|
|
|
|
|
sub PutExecuteMailMergeOnline { |
134
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
# verify the required parameter 'withRegions' is set |
138
|
0
|
0
|
|
|
|
|
unless (exists $args{'withRegions'}) { |
139
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'withRegions' when calling PutExecuteMailMergeOnline"); |
140
|
|
|
|
|
|
|
} |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
143
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
144
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PutExecuteMailMergeOnline"); |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
# verify the required parameter 'data' is set |
148
|
0
|
0
|
|
|
|
|
unless (exists $args{'data'}) { |
149
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'data' when calling PutExecuteMailMergeOnline"); |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# parse inputs |
153
|
0
|
|
|
|
|
|
my $_resource_path = '/words/executeMailMerge/?withRegions={withRegions}&appSid={appSid}&cleanup={cleanup}'; |
154
|
|
|
|
|
|
|
|
155
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
156
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
157
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
158
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
159
|
|
|
|
|
|
|
|
160
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
161
|
0
|
|
|
|
|
|
my $query_params = {}; |
162
|
0
|
|
|
|
|
|
my $header_params = {}; |
163
|
0
|
|
|
|
|
|
my $form_params = {}; |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
166
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
167
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
168
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
169
|
|
|
|
|
|
|
} |
170
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
# query params |
173
|
0
|
0
|
|
|
|
|
if ( exists $args{'withRegions'}) { |
174
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{withRegions}\E/$args{'withRegions'}/g; |
175
|
|
|
|
|
|
|
}else{ |
176
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]withRegions.*?(?=&|\?|$)//g; |
177
|
|
|
|
|
|
|
}# query params |
178
|
0
|
0
|
|
|
|
|
if ( exists $args{'cleanup'}) { |
179
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{cleanup}\E/$args{'cleanup'}/g; |
180
|
|
|
|
|
|
|
}else{ |
181
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]cleanup.*?(?=&|\?|$)//g; |
182
|
|
|
|
|
|
|
} |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
|
185
|
0
|
|
|
|
|
|
my $_body_data; |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
# form params |
188
|
0
|
0
|
0
|
|
|
|
if ( exists $args{'file'} and exists $args{'data'}) { |
189
|
0
|
0
|
|
|
|
|
$form_params->{'file'} = [] unless defined $form_params->{'file'}; |
190
|
0
|
0
|
|
|
|
|
$form_params->{'data'} = [] unless defined $form_params->{'data'}; |
191
|
|
|
|
|
|
|
|
192
|
0
|
|
|
|
|
|
push @{$form_params->{'file'}}, ($args{'file'}, 'file', ('Content-Type' => 'application/octet-stream')) ; |
|
0
|
|
|
|
|
|
|
193
|
0
|
|
|
|
|
|
push @{$form_params->{'data'}}, ($args{'data'}, 'data', ('Content-Type' => 'application/xml')) ; |
|
0
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
} |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
# authentication setting, if any |
197
|
0
|
|
|
|
|
|
my $auth_settings = []; |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
# make the API Call |
200
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
201
|
|
|
|
|
|
|
$query_params, $form_params, |
202
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
203
|
0
|
0
|
|
|
|
|
if (!$response) { |
204
|
0
|
|
|
|
|
|
return; |
205
|
|
|
|
|
|
|
} |
206
|
|
|
|
|
|
|
|
207
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
208
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
209
|
|
|
|
|
|
|
} |
210
|
|
|
|
|
|
|
|
211
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
212
|
0
|
|
|
|
|
|
return $_response_object; |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
} |
215
|
|
|
|
|
|
|
# |
216
|
|
|
|
|
|
|
# PutExecuteTemplateOnline |
217
|
|
|
|
|
|
|
# |
218
|
|
|
|
|
|
|
# |
219
|
|
|
|
|
|
|
# |
220
|
|
|
|
|
|
|
# @param String $cleanup (optional) |
221
|
|
|
|
|
|
|
# @param Boolean $useWholeParagraphAsRegion (optional) |
222
|
|
|
|
|
|
|
# @param Boolean $withRegions (optional) |
223
|
|
|
|
|
|
|
# @param File $file (required) |
224
|
|
|
|
|
|
|
# @return ResponseMessage |
225
|
|
|
|
|
|
|
# |
226
|
|
|
|
|
|
|
sub PutExecuteTemplateOnline { |
227
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
231
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
232
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PutExecuteTemplateOnline"); |
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
# verify the required parameter 'data' is set |
236
|
0
|
0
|
|
|
|
|
unless (exists $args{'data'}) { |
237
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'data' when calling PutExecuteTemplateOnline"); |
238
|
|
|
|
|
|
|
} |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
# parse inputs |
241
|
0
|
|
|
|
|
|
my $_resource_path = '/words/executeTemplate/?appSid={appSid}&cleanup={cleanup}&useWholeParagraphAsRegion={useWholeParagraphAsRegion}&withRegions={withRegions}'; |
242
|
|
|
|
|
|
|
|
243
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
244
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
245
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
246
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
247
|
|
|
|
|
|
|
|
248
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
249
|
0
|
|
|
|
|
|
my $query_params = {}; |
250
|
0
|
|
|
|
|
|
my $header_params = {}; |
251
|
0
|
|
|
|
|
|
my $form_params = {}; |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
254
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
255
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
256
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
257
|
|
|
|
|
|
|
} |
258
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
# query params |
261
|
0
|
0
|
|
|
|
|
if ( exists $args{'cleanup'}) { |
262
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{cleanup}\E/$args{'cleanup'}/g; |
263
|
|
|
|
|
|
|
}else{ |
264
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]cleanup.*?(?=&|\?|$)//g; |
265
|
|
|
|
|
|
|
}# query params |
266
|
0
|
0
|
|
|
|
|
if ( exists $args{'useWholeParagraphAsRegion'}) { |
267
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useWholeParagraphAsRegion}\E/$args{'useWholeParagraphAsRegion'}/g; |
268
|
|
|
|
|
|
|
}else{ |
269
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useWholeParagraphAsRegion.*?(?=&|\?|$)//g; |
270
|
|
|
|
|
|
|
}# query params |
271
|
0
|
0
|
|
|
|
|
if ( exists $args{'withRegions'}) { |
272
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{withRegions}\E/$args{'withRegions'}/g; |
273
|
|
|
|
|
|
|
}else{ |
274
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]withRegions.*?(?=&|\?|$)//g; |
275
|
|
|
|
|
|
|
} |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
|
278
|
0
|
|
|
|
|
|
my $_body_data; |
279
|
|
|
|
|
|
|
# form params |
280
|
0
|
0
|
0
|
|
|
|
if ( exists $args{'file'} and exists $args{'data'}) { |
281
|
0
|
0
|
|
|
|
|
$form_params->{'file'} = [] unless defined $form_params->{'file'}; |
282
|
0
|
0
|
|
|
|
|
$form_params->{'data'} = [] unless defined $form_params->{'data'}; |
283
|
|
|
|
|
|
|
|
284
|
0
|
|
|
|
|
|
push @{$form_params->{'file'}}, ($args{'file'}, 'file', ('Content-Type' => 'application/octet-stream')) ; |
|
0
|
|
|
|
|
|
|
285
|
0
|
|
|
|
|
|
push @{$form_params->{'data'}}, ($args{'data'}, 'data', ('Content-Type' => 'application/xml') ) ; |
|
0
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
} |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
# authentication setting, if any |
291
|
0
|
|
|
|
|
|
my $auth_settings = []; |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
# make the API Call |
294
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
295
|
|
|
|
|
|
|
$query_params, $form_params, |
296
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
297
|
0
|
0
|
|
|
|
|
if (!$response) { |
298
|
0
|
|
|
|
|
|
return; |
299
|
|
|
|
|
|
|
} |
300
|
|
|
|
|
|
|
|
301
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
302
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
303
|
|
|
|
|
|
|
} |
304
|
|
|
|
|
|
|
|
305
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
306
|
0
|
|
|
|
|
|
return $_response_object; |
307
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
} |
309
|
|
|
|
|
|
|
# |
310
|
|
|
|
|
|
|
# PostLoadWebDocument |
311
|
|
|
|
|
|
|
# |
312
|
|
|
|
|
|
|
# |
313
|
|
|
|
|
|
|
# |
314
|
|
|
|
|
|
|
# @return SaveResponse |
315
|
|
|
|
|
|
|
# |
316
|
|
|
|
|
|
|
sub PostLoadWebDocument { |
317
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
|
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
# parse inputs |
322
|
0
|
|
|
|
|
|
my $_resource_path = '/words/loadWebDocument/?appSid={appSid}'; |
323
|
|
|
|
|
|
|
|
324
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
325
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
326
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
327
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
328
|
|
|
|
|
|
|
|
329
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
330
|
0
|
|
|
|
|
|
my $query_params = {}; |
331
|
0
|
|
|
|
|
|
my $header_params = {}; |
332
|
0
|
|
|
|
|
|
my $form_params = {}; |
333
|
|
|
|
|
|
|
|
334
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
335
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
336
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
337
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
338
|
|
|
|
|
|
|
} |
339
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
|
342
|
0
|
|
|
|
|
|
my $_body_data; |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
# body params |
345
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
346
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
347
|
|
|
|
|
|
|
} |
348
|
|
|
|
|
|
|
|
349
|
|
|
|
|
|
|
# authentication setting, if any |
350
|
0
|
|
|
|
|
|
my $auth_settings = []; |
351
|
|
|
|
|
|
|
|
352
|
|
|
|
|
|
|
# make the API Call |
353
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
354
|
|
|
|
|
|
|
$query_params, $form_params, |
355
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
356
|
0
|
0
|
|
|
|
|
if (!$response) { |
357
|
0
|
|
|
|
|
|
return; |
358
|
|
|
|
|
|
|
} |
359
|
|
|
|
|
|
|
|
360
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
361
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
362
|
|
|
|
|
|
|
} |
363
|
|
|
|
|
|
|
|
364
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaveResponse', $response->header('content-type')); |
365
|
0
|
|
|
|
|
|
return $_response_object; |
366
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
} |
368
|
|
|
|
|
|
|
# |
369
|
|
|
|
|
|
|
# PutDocumentFieldNames |
370
|
|
|
|
|
|
|
# |
371
|
|
|
|
|
|
|
# |
372
|
|
|
|
|
|
|
# |
373
|
|
|
|
|
|
|
# @param Boolean $useNonMergeFields (optional) |
374
|
|
|
|
|
|
|
# @return FieldNamesResponse |
375
|
|
|
|
|
|
|
# |
376
|
|
|
|
|
|
|
sub PutDocumentFieldNames { |
377
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
|
381
|
|
|
|
|
|
|
# parse inputs |
382
|
0
|
|
|
|
|
|
my $_resource_path = '/words/mailMergeFieldNames/?appSid={appSid}&useNonMergeFields={useNonMergeFields}'; |
383
|
|
|
|
|
|
|
|
384
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
385
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
386
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
387
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
388
|
|
|
|
|
|
|
|
389
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
390
|
0
|
|
|
|
|
|
my $query_params = {}; |
391
|
0
|
|
|
|
|
|
my $header_params = {}; |
392
|
0
|
|
|
|
|
|
my $form_params = {}; |
393
|
|
|
|
|
|
|
|
394
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
395
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
396
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
397
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
398
|
|
|
|
|
|
|
} |
399
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
400
|
|
|
|
|
|
|
|
401
|
|
|
|
|
|
|
# query params |
402
|
0
|
0
|
|
|
|
|
if ( exists $args{'useNonMergeFields'}) { |
403
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useNonMergeFields}\E/$args{'useNonMergeFields'}/g; |
404
|
|
|
|
|
|
|
}else{ |
405
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useNonMergeFields.*?(?=&|\?|$)//g; |
406
|
|
|
|
|
|
|
} |
407
|
|
|
|
|
|
|
|
408
|
|
|
|
|
|
|
|
409
|
0
|
|
|
|
|
|
my $_body_data; |
410
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
|
412
|
|
|
|
|
|
|
|
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
# authentication setting, if any |
415
|
0
|
|
|
|
|
|
my $auth_settings = []; |
416
|
|
|
|
|
|
|
|
417
|
|
|
|
|
|
|
# make the API Call |
418
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
419
|
|
|
|
|
|
|
$query_params, $form_params, |
420
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
421
|
0
|
0
|
|
|
|
|
if (!$response) { |
422
|
0
|
|
|
|
|
|
return; |
423
|
|
|
|
|
|
|
} |
424
|
|
|
|
|
|
|
|
425
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
426
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
427
|
|
|
|
|
|
|
} |
428
|
|
|
|
|
|
|
|
429
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldNamesResponse', $response->header('content-type')); |
430
|
0
|
|
|
|
|
|
return $_response_object; |
431
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
} |
433
|
|
|
|
|
|
|
# |
434
|
|
|
|
|
|
|
# PostRunTask |
435
|
|
|
|
|
|
|
# |
436
|
|
|
|
|
|
|
# |
437
|
|
|
|
|
|
|
# |
438
|
|
|
|
|
|
|
# @return ResponseMessage |
439
|
|
|
|
|
|
|
# |
440
|
|
|
|
|
|
|
sub PostRunTask { |
441
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
442
|
|
|
|
|
|
|
|
443
|
|
|
|
|
|
|
|
444
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
# parse inputs |
446
|
0
|
|
|
|
|
|
my $_resource_path = '/words/tasks/?appSid={appSid}'; |
447
|
|
|
|
|
|
|
|
448
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
449
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
450
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
451
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
452
|
|
|
|
|
|
|
|
453
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
454
|
0
|
|
|
|
|
|
my $query_params = {}; |
455
|
0
|
|
|
|
|
|
my $header_params = {}; |
456
|
0
|
|
|
|
|
|
my $form_params = {}; |
457
|
|
|
|
|
|
|
|
458
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
459
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
460
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
461
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
462
|
|
|
|
|
|
|
} |
463
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
464
|
|
|
|
|
|
|
|
465
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
|
467
|
|
|
|
|
|
|
|
468
|
0
|
|
|
|
|
|
my $_body_data; |
469
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
|
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
|
473
|
|
|
|
|
|
|
# authentication setting, if any |
474
|
0
|
|
|
|
|
|
my $auth_settings = []; |
475
|
|
|
|
|
|
|
|
476
|
|
|
|
|
|
|
# make the API Call |
477
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
478
|
|
|
|
|
|
|
$query_params, $form_params, |
479
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
480
|
0
|
0
|
|
|
|
|
if (!$response) { |
481
|
0
|
|
|
|
|
|
return; |
482
|
|
|
|
|
|
|
} |
483
|
|
|
|
|
|
|
|
484
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
485
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
486
|
|
|
|
|
|
|
} |
487
|
|
|
|
|
|
|
|
488
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
489
|
0
|
|
|
|
|
|
return $_response_object; |
490
|
|
|
|
|
|
|
|
491
|
|
|
|
|
|
|
} |
492
|
|
|
|
|
|
|
# |
493
|
|
|
|
|
|
|
# GetDocument |
494
|
|
|
|
|
|
|
# |
495
|
|
|
|
|
|
|
# |
496
|
|
|
|
|
|
|
# |
497
|
|
|
|
|
|
|
# @param String $name (required) |
498
|
|
|
|
|
|
|
# @param String $storage (optional) |
499
|
|
|
|
|
|
|
# @param String $folder (optional) |
500
|
|
|
|
|
|
|
# @return ResponseMessage |
501
|
|
|
|
|
|
|
# |
502
|
|
|
|
|
|
|
sub GetDocument { |
503
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
504
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
|
506
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
507
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
508
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocument"); |
509
|
|
|
|
|
|
|
} |
510
|
|
|
|
|
|
|
|
511
|
|
|
|
|
|
|
|
512
|
|
|
|
|
|
|
# parse inputs |
513
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/?appSid={appSid}&storage={storage}&folder={folder}'; |
514
|
|
|
|
|
|
|
|
515
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
516
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
517
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
518
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
519
|
|
|
|
|
|
|
|
520
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
521
|
0
|
|
|
|
|
|
my $query_params = {}; |
522
|
0
|
|
|
|
|
|
my $header_params = {}; |
523
|
0
|
|
|
|
|
|
my $form_params = {}; |
524
|
|
|
|
|
|
|
|
525
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
526
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
527
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
528
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
529
|
|
|
|
|
|
|
} |
530
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
531
|
|
|
|
|
|
|
|
532
|
|
|
|
|
|
|
# query params |
533
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
534
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
535
|
|
|
|
|
|
|
}else{ |
536
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
537
|
|
|
|
|
|
|
}# query params |
538
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
539
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
540
|
|
|
|
|
|
|
}else{ |
541
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
542
|
|
|
|
|
|
|
}# query params |
543
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
544
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
545
|
|
|
|
|
|
|
}else{ |
546
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
547
|
|
|
|
|
|
|
} |
548
|
|
|
|
|
|
|
|
549
|
|
|
|
|
|
|
|
550
|
0
|
|
|
|
|
|
my $_body_data; |
551
|
|
|
|
|
|
|
|
552
|
|
|
|
|
|
|
|
553
|
|
|
|
|
|
|
|
554
|
|
|
|
|
|
|
|
555
|
|
|
|
|
|
|
# authentication setting, if any |
556
|
0
|
|
|
|
|
|
my $auth_settings = []; |
557
|
|
|
|
|
|
|
|
558
|
|
|
|
|
|
|
# make the API Call |
559
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
560
|
|
|
|
|
|
|
$query_params, $form_params, |
561
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
562
|
0
|
0
|
|
|
|
|
if (!$response) { |
563
|
0
|
|
|
|
|
|
return; |
564
|
|
|
|
|
|
|
} |
565
|
|
|
|
|
|
|
|
566
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
567
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
568
|
|
|
|
|
|
|
} |
569
|
|
|
|
|
|
|
|
570
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
571
|
0
|
|
|
|
|
|
return $_response_object; |
572
|
|
|
|
|
|
|
|
573
|
|
|
|
|
|
|
} |
574
|
|
|
|
|
|
|
# |
575
|
|
|
|
|
|
|
# GetRenderPage |
576
|
|
|
|
|
|
|
# |
577
|
|
|
|
|
|
|
# |
578
|
|
|
|
|
|
|
# |
579
|
|
|
|
|
|
|
# @param String $name (required) |
580
|
|
|
|
|
|
|
# @param Integer $pageNumber (required) |
581
|
|
|
|
|
|
|
# @param String $format (required) |
582
|
|
|
|
|
|
|
# @param String $storage (optional) |
583
|
|
|
|
|
|
|
# @param String $folder (optional) |
584
|
|
|
|
|
|
|
# @return ResponseMessage |
585
|
|
|
|
|
|
|
# |
586
|
|
|
|
|
|
|
sub GetRenderPage { |
587
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
588
|
|
|
|
|
|
|
|
589
|
|
|
|
|
|
|
|
590
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
591
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
592
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetRenderPage"); |
593
|
|
|
|
|
|
|
} |
594
|
|
|
|
|
|
|
|
595
|
|
|
|
|
|
|
# verify the required parameter 'pageNumber' is set |
596
|
0
|
0
|
|
|
|
|
unless (exists $args{'pageNumber'}) { |
597
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'pageNumber' when calling GetRenderPage"); |
598
|
|
|
|
|
|
|
} |
599
|
|
|
|
|
|
|
# verify the required parameter 'format' is set |
600
|
0
|
0
|
|
|
|
|
unless (exists $args{'format'}) { |
601
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'format' when calling GetRenderPage"); |
602
|
|
|
|
|
|
|
} |
603
|
|
|
|
|
|
|
|
604
|
|
|
|
|
|
|
# parse inputs |
605
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/pages/{pageNumber}/render/?appSid={appSid}&format={format}&storage={storage}&folder={folder}'; |
606
|
|
|
|
|
|
|
|
607
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
608
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
609
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
610
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
611
|
|
|
|
|
|
|
|
612
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
613
|
0
|
|
|
|
|
|
my $query_params = {}; |
614
|
0
|
|
|
|
|
|
my $header_params = {}; |
615
|
0
|
|
|
|
|
|
my $form_params = {}; |
616
|
|
|
|
|
|
|
|
617
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
618
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
619
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
620
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
621
|
|
|
|
|
|
|
} |
622
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
623
|
|
|
|
|
|
|
|
624
|
|
|
|
|
|
|
# query params |
625
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
626
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
627
|
|
|
|
|
|
|
}else{ |
628
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
629
|
|
|
|
|
|
|
}# query params |
630
|
0
|
0
|
|
|
|
|
if ( exists $args{'pageNumber'}) { |
631
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; |
632
|
|
|
|
|
|
|
}else{ |
633
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; |
634
|
|
|
|
|
|
|
}# query params |
635
|
0
|
0
|
|
|
|
|
if ( exists $args{'format'}) { |
636
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{format}\E/$args{'format'}/g; |
637
|
|
|
|
|
|
|
}else{ |
638
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; |
639
|
|
|
|
|
|
|
} |
640
|
|
|
|
|
|
|
# query params |
641
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
642
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
643
|
|
|
|
|
|
|
}else{ |
644
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
645
|
|
|
|
|
|
|
}# query params |
646
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
647
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
648
|
|
|
|
|
|
|
}else{ |
649
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
650
|
|
|
|
|
|
|
} |
651
|
|
|
|
|
|
|
|
652
|
|
|
|
|
|
|
|
653
|
0
|
|
|
|
|
|
my $_body_data; |
654
|
|
|
|
|
|
|
|
655
|
|
|
|
|
|
|
|
656
|
|
|
|
|
|
|
|
657
|
|
|
|
|
|
|
|
658
|
|
|
|
|
|
|
# authentication setting, if any |
659
|
0
|
|
|
|
|
|
my $auth_settings = []; |
660
|
|
|
|
|
|
|
|
661
|
|
|
|
|
|
|
# make the API Call |
662
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
663
|
|
|
|
|
|
|
$query_params, $form_params, |
664
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
665
|
0
|
0
|
|
|
|
|
if (!$response) { |
666
|
0
|
|
|
|
|
|
return; |
667
|
|
|
|
|
|
|
} |
668
|
|
|
|
|
|
|
|
669
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
670
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
671
|
|
|
|
|
|
|
} |
672
|
|
|
|
|
|
|
|
673
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
674
|
0
|
|
|
|
|
|
return $_response_object; |
675
|
|
|
|
|
|
|
|
676
|
|
|
|
|
|
|
} |
677
|
|
|
|
|
|
|
# |
678
|
|
|
|
|
|
|
# GetFields |
679
|
|
|
|
|
|
|
# |
680
|
|
|
|
|
|
|
# |
681
|
|
|
|
|
|
|
# |
682
|
|
|
|
|
|
|
# @param String $name (required) |
683
|
|
|
|
|
|
|
# @param Integer $sectionIndex (required) |
684
|
|
|
|
|
|
|
# @param Integer $paragraphIndex (required) |
685
|
|
|
|
|
|
|
# @param String $storage (optional) |
686
|
|
|
|
|
|
|
# @param String $folder (optional) |
687
|
|
|
|
|
|
|
# @return ResponseMessage |
688
|
|
|
|
|
|
|
# |
689
|
|
|
|
|
|
|
sub GetFields { |
690
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
691
|
|
|
|
|
|
|
|
692
|
|
|
|
|
|
|
|
693
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
694
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
695
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetFields"); |
696
|
|
|
|
|
|
|
} |
697
|
|
|
|
|
|
|
|
698
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
699
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
700
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling GetFields"); |
701
|
|
|
|
|
|
|
} |
702
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
703
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
704
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling GetFields"); |
705
|
|
|
|
|
|
|
} |
706
|
|
|
|
|
|
|
|
707
|
|
|
|
|
|
|
# parse inputs |
708
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; |
709
|
|
|
|
|
|
|
|
710
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
711
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
712
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
713
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
714
|
|
|
|
|
|
|
|
715
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
716
|
0
|
|
|
|
|
|
my $query_params = {}; |
717
|
0
|
|
|
|
|
|
my $header_params = {}; |
718
|
0
|
|
|
|
|
|
my $form_params = {}; |
719
|
|
|
|
|
|
|
|
720
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
721
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
722
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
723
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
724
|
|
|
|
|
|
|
} |
725
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
726
|
|
|
|
|
|
|
|
727
|
|
|
|
|
|
|
# query params |
728
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
729
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
730
|
|
|
|
|
|
|
}else{ |
731
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
732
|
|
|
|
|
|
|
}# query params |
733
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
734
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
735
|
|
|
|
|
|
|
}else{ |
736
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
737
|
|
|
|
|
|
|
}# query params |
738
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
739
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
740
|
|
|
|
|
|
|
}else{ |
741
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
742
|
|
|
|
|
|
|
} |
743
|
|
|
|
|
|
|
# query params |
744
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
745
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
746
|
|
|
|
|
|
|
}else{ |
747
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
748
|
|
|
|
|
|
|
}# query params |
749
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
750
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
751
|
|
|
|
|
|
|
}else{ |
752
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
753
|
|
|
|
|
|
|
} |
754
|
|
|
|
|
|
|
|
755
|
|
|
|
|
|
|
|
756
|
0
|
|
|
|
|
|
my $_body_data; |
757
|
|
|
|
|
|
|
|
758
|
|
|
|
|
|
|
|
759
|
|
|
|
|
|
|
|
760
|
|
|
|
|
|
|
|
761
|
|
|
|
|
|
|
# authentication setting, if any |
762
|
0
|
|
|
|
|
|
my $auth_settings = []; |
763
|
|
|
|
|
|
|
|
764
|
|
|
|
|
|
|
# make the API Call |
765
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
766
|
|
|
|
|
|
|
$query_params, $form_params, |
767
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
768
|
0
|
0
|
|
|
|
|
if (!$response) { |
769
|
0
|
|
|
|
|
|
return; |
770
|
|
|
|
|
|
|
} |
771
|
|
|
|
|
|
|
|
772
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
773
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
774
|
|
|
|
|
|
|
} |
775
|
|
|
|
|
|
|
|
776
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
777
|
0
|
|
|
|
|
|
return $_response_object; |
778
|
|
|
|
|
|
|
|
779
|
|
|
|
|
|
|
} |
780
|
|
|
|
|
|
|
# |
781
|
|
|
|
|
|
|
# DeleteField |
782
|
|
|
|
|
|
|
# |
783
|
|
|
|
|
|
|
# |
784
|
|
|
|
|
|
|
# |
785
|
|
|
|
|
|
|
# @param String $name (required) |
786
|
|
|
|
|
|
|
# @param Integer $sectionIndex (required) |
787
|
|
|
|
|
|
|
# @param Integer $paragraphIndex (required) |
788
|
|
|
|
|
|
|
# @param Integer $fieldIndex (required) |
789
|
|
|
|
|
|
|
# @param String $storage (optional) |
790
|
|
|
|
|
|
|
# @param String $folder (optional) |
791
|
|
|
|
|
|
|
# @return SaaSposeResponse |
792
|
|
|
|
|
|
|
# |
793
|
|
|
|
|
|
|
sub DeleteField { |
794
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
795
|
|
|
|
|
|
|
|
796
|
|
|
|
|
|
|
|
797
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
798
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
799
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteField"); |
800
|
|
|
|
|
|
|
} |
801
|
|
|
|
|
|
|
|
802
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
803
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
804
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling DeleteField"); |
805
|
|
|
|
|
|
|
} |
806
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
807
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
808
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling DeleteField"); |
809
|
|
|
|
|
|
|
} |
810
|
|
|
|
|
|
|
# verify the required parameter 'fieldIndex' is set |
811
|
0
|
0
|
|
|
|
|
unless (exists $args{'fieldIndex'}) { |
812
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'fieldIndex' when calling DeleteField"); |
813
|
|
|
|
|
|
|
} |
814
|
|
|
|
|
|
|
# parse inputs |
815
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/fields/{fieldIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
816
|
|
|
|
|
|
|
|
817
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
818
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
819
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
820
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
821
|
|
|
|
|
|
|
|
822
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
823
|
0
|
|
|
|
|
|
my $query_params = {}; |
824
|
0
|
|
|
|
|
|
my $header_params = {}; |
825
|
0
|
|
|
|
|
|
my $form_params = {}; |
826
|
|
|
|
|
|
|
|
827
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
828
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
829
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
830
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
831
|
|
|
|
|
|
|
} |
832
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
833
|
|
|
|
|
|
|
|
834
|
|
|
|
|
|
|
# query params |
835
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
836
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
837
|
|
|
|
|
|
|
}else{ |
838
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
839
|
|
|
|
|
|
|
}# query params |
840
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
841
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
842
|
|
|
|
|
|
|
}else{ |
843
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
844
|
|
|
|
|
|
|
}# query params |
845
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
846
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
847
|
|
|
|
|
|
|
}else{ |
848
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
849
|
|
|
|
|
|
|
}# query params |
850
|
0
|
0
|
|
|
|
|
if ( exists $args{'fieldIndex'}) { |
851
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{fieldIndex}\E/$args{'fieldIndex'}/g; |
852
|
|
|
|
|
|
|
}else{ |
853
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]fieldIndex.*?(?=&|\?|$)//g; |
854
|
|
|
|
|
|
|
} |
855
|
|
|
|
|
|
|
|
856
|
|
|
|
|
|
|
# query params |
857
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
858
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
859
|
|
|
|
|
|
|
}else{ |
860
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
861
|
|
|
|
|
|
|
}# query params |
862
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
863
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
864
|
|
|
|
|
|
|
}else{ |
865
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
866
|
|
|
|
|
|
|
} |
867
|
|
|
|
|
|
|
|
868
|
|
|
|
|
|
|
|
869
|
0
|
|
|
|
|
|
my $_body_data; |
870
|
|
|
|
|
|
|
|
871
|
|
|
|
|
|
|
|
872
|
|
|
|
|
|
|
|
873
|
|
|
|
|
|
|
|
874
|
|
|
|
|
|
|
# authentication setting, if any |
875
|
0
|
|
|
|
|
|
my $auth_settings = []; |
876
|
|
|
|
|
|
|
|
877
|
|
|
|
|
|
|
# make the API Call |
878
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
879
|
|
|
|
|
|
|
$query_params, $form_params, |
880
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
881
|
0
|
0
|
|
|
|
|
if (!$response) { |
882
|
0
|
|
|
|
|
|
return; |
883
|
|
|
|
|
|
|
} |
884
|
|
|
|
|
|
|
|
885
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
886
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
887
|
|
|
|
|
|
|
} |
888
|
|
|
|
|
|
|
|
889
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
890
|
0
|
|
|
|
|
|
return $_response_object; |
891
|
|
|
|
|
|
|
|
892
|
|
|
|
|
|
|
} |
893
|
|
|
|
|
|
|
# |
894
|
|
|
|
|
|
|
# GetParagraphRuns |
895
|
|
|
|
|
|
|
# |
896
|
|
|
|
|
|
|
# |
897
|
|
|
|
|
|
|
# |
898
|
|
|
|
|
|
|
# @param String $name (required) |
899
|
|
|
|
|
|
|
# @param Integer $sectionIndex (required) |
900
|
|
|
|
|
|
|
# @param Integer $paragraphIndex (required) |
901
|
|
|
|
|
|
|
# @param String $storage (optional) |
902
|
|
|
|
|
|
|
# @param String $folder (optional) |
903
|
|
|
|
|
|
|
# @return ResponseMessage |
904
|
|
|
|
|
|
|
# |
905
|
|
|
|
|
|
|
sub GetParagraphRuns { |
906
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
907
|
|
|
|
|
|
|
|
908
|
|
|
|
|
|
|
|
909
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
910
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
911
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetParagraphRuns"); |
912
|
|
|
|
|
|
|
} |
913
|
|
|
|
|
|
|
|
914
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
915
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
916
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling GetParagraphRuns"); |
917
|
|
|
|
|
|
|
} |
918
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
919
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
920
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling GetParagraphRuns"); |
921
|
|
|
|
|
|
|
} |
922
|
|
|
|
|
|
|
# parse inputs |
923
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/runs/?appSid={appSid}&storage={storage}&folder={folder}".Replace("{format}'; |
924
|
|
|
|
|
|
|
|
925
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
926
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
927
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
928
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
929
|
|
|
|
|
|
|
|
930
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
931
|
0
|
|
|
|
|
|
my $query_params = {}; |
932
|
0
|
|
|
|
|
|
my $header_params = {}; |
933
|
0
|
|
|
|
|
|
my $form_params = {}; |
934
|
|
|
|
|
|
|
|
935
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
936
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
937
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
938
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
939
|
|
|
|
|
|
|
} |
940
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
941
|
|
|
|
|
|
|
|
942
|
|
|
|
|
|
|
# query params |
943
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
944
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
945
|
|
|
|
|
|
|
}else{ |
946
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
947
|
|
|
|
|
|
|
}# query params |
948
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
949
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
950
|
|
|
|
|
|
|
}else{ |
951
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
952
|
|
|
|
|
|
|
}# query params |
953
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
954
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
955
|
|
|
|
|
|
|
}else{ |
956
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
957
|
|
|
|
|
|
|
}# query params |
958
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
959
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
960
|
|
|
|
|
|
|
}else{ |
961
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
962
|
|
|
|
|
|
|
}# query params |
963
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
964
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
965
|
|
|
|
|
|
|
}else{ |
966
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
967
|
|
|
|
|
|
|
} |
968
|
|
|
|
|
|
|
|
969
|
|
|
|
|
|
|
|
970
|
0
|
|
|
|
|
|
my $_body_data; |
971
|
|
|
|
|
|
|
|
972
|
|
|
|
|
|
|
|
973
|
|
|
|
|
|
|
|
974
|
|
|
|
|
|
|
|
975
|
|
|
|
|
|
|
# authentication setting, if any |
976
|
0
|
|
|
|
|
|
my $auth_settings = []; |
977
|
|
|
|
|
|
|
|
978
|
|
|
|
|
|
|
# make the API Call |
979
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
980
|
|
|
|
|
|
|
$query_params, $form_params, |
981
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
982
|
0
|
0
|
|
|
|
|
if (!$response) { |
983
|
0
|
|
|
|
|
|
return; |
984
|
|
|
|
|
|
|
} |
985
|
|
|
|
|
|
|
|
986
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
987
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
988
|
|
|
|
|
|
|
} |
989
|
|
|
|
|
|
|
|
990
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
991
|
0
|
|
|
|
|
|
return $_response_object; |
992
|
|
|
|
|
|
|
|
993
|
|
|
|
|
|
|
} |
994
|
|
|
|
|
|
|
# |
995
|
|
|
|
|
|
|
# GetDocumentWithFormat |
996
|
|
|
|
|
|
|
# |
997
|
|
|
|
|
|
|
# |
998
|
|
|
|
|
|
|
# |
999
|
|
|
|
|
|
|
# @param String $name (required) |
1000
|
|
|
|
|
|
|
# @param String $format (required) |
1001
|
|
|
|
|
|
|
# @param String $storage (optional) |
1002
|
|
|
|
|
|
|
# @param String $folder (optional) |
1003
|
|
|
|
|
|
|
# @param String $outPath (optional) |
1004
|
|
|
|
|
|
|
# @return ResponseMessage |
1005
|
|
|
|
|
|
|
# |
1006
|
|
|
|
|
|
|
sub GetDocumentWithFormat { |
1007
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1008
|
|
|
|
|
|
|
|
1009
|
|
|
|
|
|
|
|
1010
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1011
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1012
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentWithFormat"); |
1013
|
|
|
|
|
|
|
} |
1014
|
|
|
|
|
|
|
|
1015
|
|
|
|
|
|
|
# verify the required parameter 'format' is set |
1016
|
0
|
0
|
|
|
|
|
unless (exists $args{'format'}) { |
1017
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'format' when calling GetDocumentWithFormat"); |
1018
|
|
|
|
|
|
|
} |
1019
|
|
|
|
|
|
|
|
1020
|
|
|
|
|
|
|
|
1021
|
|
|
|
|
|
|
# parse inputs |
1022
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/?appSid={appSid}&toFormat={toFormat}&storage={storage}&folder={folder}&outPath={outPath}'; |
1023
|
|
|
|
|
|
|
|
1024
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1025
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1026
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1027
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1028
|
|
|
|
|
|
|
|
1029
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
1030
|
0
|
|
|
|
|
|
my $query_params = {}; |
1031
|
0
|
|
|
|
|
|
my $header_params = {}; |
1032
|
0
|
|
|
|
|
|
my $form_params = {}; |
1033
|
|
|
|
|
|
|
|
1034
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1035
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
1036
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1037
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1038
|
|
|
|
|
|
|
} |
1039
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1040
|
|
|
|
|
|
|
|
1041
|
|
|
|
|
|
|
# query params |
1042
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1043
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1044
|
|
|
|
|
|
|
}else{ |
1045
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1046
|
|
|
|
|
|
|
}# query params |
1047
|
0
|
0
|
|
|
|
|
if ( exists $args{'format'}) { |
1048
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{format}\E/$args{'format'}/g; |
1049
|
|
|
|
|
|
|
}else{ |
1050
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; |
1051
|
|
|
|
|
|
|
}# query params |
1052
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1053
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1054
|
|
|
|
|
|
|
}else{ |
1055
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1056
|
|
|
|
|
|
|
}# query params |
1057
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1058
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1059
|
|
|
|
|
|
|
}else{ |
1060
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1061
|
|
|
|
|
|
|
}# query params |
1062
|
0
|
0
|
|
|
|
|
if ( exists $args{'outPath'}) { |
1063
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{outPath}\E/$args{'outPath'}/g; |
1064
|
|
|
|
|
|
|
}else{ |
1065
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]outPath.*?(?=&|\?|$)//g; |
1066
|
|
|
|
|
|
|
} |
1067
|
|
|
|
|
|
|
|
1068
|
|
|
|
|
|
|
|
1069
|
0
|
|
|
|
|
|
my $_body_data; |
1070
|
|
|
|
|
|
|
|
1071
|
|
|
|
|
|
|
|
1072
|
|
|
|
|
|
|
|
1073
|
|
|
|
|
|
|
|
1074
|
|
|
|
|
|
|
# authentication setting, if any |
1075
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1076
|
|
|
|
|
|
|
|
1077
|
|
|
|
|
|
|
# make the API Call |
1078
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1079
|
|
|
|
|
|
|
$query_params, $form_params, |
1080
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1081
|
0
|
0
|
|
|
|
|
if (!$response) { |
1082
|
0
|
|
|
|
|
|
return; |
1083
|
|
|
|
|
|
|
} |
1084
|
|
|
|
|
|
|
|
1085
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1086
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1087
|
|
|
|
|
|
|
} |
1088
|
|
|
|
|
|
|
|
1089
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
1090
|
0
|
|
|
|
|
|
return $_response_object; |
1091
|
|
|
|
|
|
|
|
1092
|
|
|
|
|
|
|
} |
1093
|
|
|
|
|
|
|
# |
1094
|
|
|
|
|
|
|
# PostDocumentSaveAs |
1095
|
|
|
|
|
|
|
# |
1096
|
|
|
|
|
|
|
# |
1097
|
|
|
|
|
|
|
# |
1098
|
|
|
|
|
|
|
# @param String $name (required) |
1099
|
|
|
|
|
|
|
# @param String $storage (optional) |
1100
|
|
|
|
|
|
|
# @param String $folder (optional) |
1101
|
|
|
|
|
|
|
# @param SaveOptionsData $body (required) |
1102
|
|
|
|
|
|
|
# @return SaveResponse |
1103
|
|
|
|
|
|
|
# |
1104
|
|
|
|
|
|
|
sub PostDocumentSaveAs { |
1105
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1106
|
|
|
|
|
|
|
|
1107
|
|
|
|
|
|
|
|
1108
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1109
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1110
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostDocumentSaveAs"); |
1111
|
|
|
|
|
|
|
} |
1112
|
|
|
|
|
|
|
|
1113
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
1114
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
1115
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostDocumentSaveAs"); |
1116
|
|
|
|
|
|
|
} |
1117
|
|
|
|
|
|
|
|
1118
|
|
|
|
|
|
|
|
1119
|
|
|
|
|
|
|
# parse inputs |
1120
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/SaveAs/?appSid={appSid}&storage={storage}&folder={folder}'; |
1121
|
|
|
|
|
|
|
|
1122
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1123
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1124
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1125
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1126
|
|
|
|
|
|
|
|
1127
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
1128
|
0
|
|
|
|
|
|
my $query_params = {}; |
1129
|
0
|
|
|
|
|
|
my $header_params = {}; |
1130
|
0
|
|
|
|
|
|
my $form_params = {}; |
1131
|
|
|
|
|
|
|
|
1132
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1133
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1134
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1135
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1136
|
|
|
|
|
|
|
} |
1137
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1138
|
|
|
|
|
|
|
|
1139
|
|
|
|
|
|
|
# query params |
1140
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1141
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1142
|
|
|
|
|
|
|
}else{ |
1143
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1144
|
|
|
|
|
|
|
}# query params |
1145
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1146
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1147
|
|
|
|
|
|
|
}else{ |
1148
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1149
|
|
|
|
|
|
|
}# query params |
1150
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1151
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1152
|
|
|
|
|
|
|
}else{ |
1153
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1154
|
|
|
|
|
|
|
} |
1155
|
|
|
|
|
|
|
|
1156
|
|
|
|
|
|
|
|
1157
|
0
|
|
|
|
|
|
my $_body_data; |
1158
|
|
|
|
|
|
|
|
1159
|
|
|
|
|
|
|
|
1160
|
|
|
|
|
|
|
# body params |
1161
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
1162
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
1163
|
|
|
|
|
|
|
} |
1164
|
|
|
|
|
|
|
|
1165
|
|
|
|
|
|
|
# authentication setting, if any |
1166
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1167
|
|
|
|
|
|
|
|
1168
|
|
|
|
|
|
|
# make the API Call |
1169
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1170
|
|
|
|
|
|
|
$query_params, $form_params, |
1171
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1172
|
0
|
0
|
|
|
|
|
if (!$response) { |
1173
|
0
|
|
|
|
|
|
return; |
1174
|
|
|
|
|
|
|
} |
1175
|
|
|
|
|
|
|
|
1176
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1177
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1178
|
|
|
|
|
|
|
} |
1179
|
|
|
|
|
|
|
|
1180
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaveResponse', $response->header('content-type')); |
1181
|
0
|
|
|
|
|
|
return $_response_object; |
1182
|
|
|
|
|
|
|
|
1183
|
|
|
|
|
|
|
} |
1184
|
|
|
|
|
|
|
# |
1185
|
|
|
|
|
|
|
# PutDocumentSaveAsTiff |
1186
|
|
|
|
|
|
|
# |
1187
|
|
|
|
|
|
|
# |
1188
|
|
|
|
|
|
|
# |
1189
|
|
|
|
|
|
|
# @param String $name (required) |
1190
|
|
|
|
|
|
|
# @param String $resultFile (optional) |
1191
|
|
|
|
|
|
|
# @param Boolean $useAntiAliasing (optional) |
1192
|
|
|
|
|
|
|
# @param Boolean $useHighQualityRendering (optional) |
1193
|
|
|
|
|
|
|
# @param String $imageBrightness (optional) |
1194
|
|
|
|
|
|
|
# @param String $imageColorMode (optional) |
1195
|
|
|
|
|
|
|
# @param String $imageContrast (optional) |
1196
|
|
|
|
|
|
|
# @param String $numeralFormat (optional) |
1197
|
|
|
|
|
|
|
# @param String $pageCount (optional) |
1198
|
|
|
|
|
|
|
# @param String $pageIndex (optional) |
1199
|
|
|
|
|
|
|
# @param String $paperColor (optional) |
1200
|
|
|
|
|
|
|
# @param String $pixelFormat (optional) |
1201
|
|
|
|
|
|
|
# @param String $resolution (optional) |
1202
|
|
|
|
|
|
|
# @param String $scale (optional) |
1203
|
|
|
|
|
|
|
# @param String $tiffCompression (optional) |
1204
|
|
|
|
|
|
|
# @param String $dmlRenderingMode (optional) |
1205
|
|
|
|
|
|
|
# @param String $dmlEffectsRenderingMode (optional) |
1206
|
|
|
|
|
|
|
# @param String $tiffBinarizationMethod (optional) |
1207
|
|
|
|
|
|
|
# @param String $storage (optional) |
1208
|
|
|
|
|
|
|
# @param String $folder (optional) |
1209
|
|
|
|
|
|
|
# @param Boolean $zipOutput (optional) |
1210
|
|
|
|
|
|
|
# @param TiffSaveOptionsData $body (required) |
1211
|
|
|
|
|
|
|
# @return SaveResponse |
1212
|
|
|
|
|
|
|
# |
1213
|
|
|
|
|
|
|
sub PutDocumentSaveAsTiff { |
1214
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1215
|
|
|
|
|
|
|
|
1216
|
|
|
|
|
|
|
|
1217
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1218
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1219
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PutDocumentSaveAsTiff"); |
1220
|
|
|
|
|
|
|
} |
1221
|
|
|
|
|
|
|
|
1222
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
1223
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
1224
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PutDocumentSaveAsTiff"); |
1225
|
|
|
|
|
|
|
} |
1226
|
|
|
|
|
|
|
|
1227
|
|
|
|
|
|
|
|
1228
|
|
|
|
|
|
|
# parse inputs |
1229
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/SaveAs/tiff/?appSid={appSid}&resultFile={resultFile}&useAntiAliasing={useAntiAliasing}&useHighQualityRendering={useHighQualityRendering}&imageBrightness={imageBrightness}&imageColorMode={imageColorMode}&imageContrast={imageContrast}&numeralFormat={numeralFormat}&pageCount={pageCount}&pageIndex={pageIndex}&paperColor={paperColor}&pixelFormat={pixelFormat}&resolution={resolution}&scale={scale}&tiffCompression={tiffCompression}&dmlRenderingMode={dmlRenderingMode}&dmlEffectsRenderingMode={dmlEffectsRenderingMode}&tiffBinarizationMethod={tiffBinarizationMethod}&storage={storage}&folder={folder}&zipOutput={zipOutput}'; |
1230
|
|
|
|
|
|
|
|
1231
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1232
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1233
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1234
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1235
|
|
|
|
|
|
|
|
1236
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
1237
|
0
|
|
|
|
|
|
my $query_params = {}; |
1238
|
0
|
|
|
|
|
|
my $header_params = {}; |
1239
|
0
|
|
|
|
|
|
my $form_params = {}; |
1240
|
|
|
|
|
|
|
|
1241
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1242
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1243
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1244
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1245
|
|
|
|
|
|
|
} |
1246
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1247
|
|
|
|
|
|
|
|
1248
|
|
|
|
|
|
|
# query params |
1249
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1250
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1251
|
|
|
|
|
|
|
}else{ |
1252
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1253
|
|
|
|
|
|
|
}# query params |
1254
|
0
|
0
|
|
|
|
|
if ( exists $args{'resultFile'}) { |
1255
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{resultFile}\E/$args{'resultFile'}/g; |
1256
|
|
|
|
|
|
|
}else{ |
1257
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]resultFile.*?(?=&|\?|$)//g; |
1258
|
|
|
|
|
|
|
}# query params |
1259
|
0
|
0
|
|
|
|
|
if ( exists $args{'useAntiAliasing'}) { |
1260
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useAntiAliasing}\E/$args{'useAntiAliasing'}/g; |
1261
|
|
|
|
|
|
|
}else{ |
1262
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useAntiAliasing.*?(?=&|\?|$)//g; |
1263
|
|
|
|
|
|
|
}# query params |
1264
|
0
|
0
|
|
|
|
|
if ( exists $args{'useHighQualityRendering'}) { |
1265
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useHighQualityRendering}\E/$args{'useHighQualityRendering'}/g; |
1266
|
|
|
|
|
|
|
}else{ |
1267
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useHighQualityRendering.*?(?=&|\?|$)//g; |
1268
|
|
|
|
|
|
|
}# query params |
1269
|
0
|
0
|
|
|
|
|
if ( exists $args{'imageBrightness'}) { |
1270
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{imageBrightness}\E/$args{'imageBrightness'}/g; |
1271
|
|
|
|
|
|
|
}else{ |
1272
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]imageBrightness.*?(?=&|\?|$)//g; |
1273
|
|
|
|
|
|
|
}# query params |
1274
|
0
|
0
|
|
|
|
|
if ( exists $args{'imageColorMode'}) { |
1275
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{imageColorMode}\E/$args{'imageColorMode'}/g; |
1276
|
|
|
|
|
|
|
}else{ |
1277
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]imageColorMode.*?(?=&|\?|$)//g; |
1278
|
|
|
|
|
|
|
}# query params |
1279
|
0
|
0
|
|
|
|
|
if ( exists $args{'imageContrast'}) { |
1280
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{imageContrast}\E/$args{'imageContrast'}/g; |
1281
|
|
|
|
|
|
|
}else{ |
1282
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]imageContrast.*?(?=&|\?|$)//g; |
1283
|
|
|
|
|
|
|
}# query params |
1284
|
0
|
0
|
|
|
|
|
if ( exists $args{'numeralFormat'}) { |
1285
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{numeralFormat}\E/$args{'numeralFormat'}/g; |
1286
|
|
|
|
|
|
|
}else{ |
1287
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]numeralFormat.*?(?=&|\?|$)//g; |
1288
|
|
|
|
|
|
|
}# query params |
1289
|
0
|
0
|
|
|
|
|
if ( exists $args{'pageCount'}) { |
1290
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{pageCount}\E/$args{'pageCount'}/g; |
1291
|
|
|
|
|
|
|
}else{ |
1292
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]pageCount.*?(?=&|\?|$)//g; |
1293
|
|
|
|
|
|
|
}# query params |
1294
|
0
|
0
|
|
|
|
|
if ( exists $args{'pageIndex'}) { |
1295
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{pageIndex}\E/$args{'pageIndex'}/g; |
1296
|
|
|
|
|
|
|
}else{ |
1297
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]pageIndex.*?(?=&|\?|$)//g; |
1298
|
|
|
|
|
|
|
}# query params |
1299
|
0
|
0
|
|
|
|
|
if ( exists $args{'paperColor'}) { |
1300
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paperColor}\E/$args{'paperColor'}/g; |
1301
|
|
|
|
|
|
|
}else{ |
1302
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paperColor.*?(?=&|\?|$)//g; |
1303
|
|
|
|
|
|
|
}# query params |
1304
|
0
|
0
|
|
|
|
|
if ( exists $args{'pixelFormat'}) { |
1305
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{pixelFormat}\E/$args{'pixelFormat'}/g; |
1306
|
|
|
|
|
|
|
}else{ |
1307
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]pixelFormat.*?(?=&|\?|$)//g; |
1308
|
|
|
|
|
|
|
}# query params |
1309
|
0
|
0
|
|
|
|
|
if ( exists $args{'resolution'}) { |
1310
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{resolution}\E/$args{'resolution'}/g; |
1311
|
|
|
|
|
|
|
}else{ |
1312
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]resolution.*?(?=&|\?|$)//g; |
1313
|
|
|
|
|
|
|
}# query params |
1314
|
0
|
0
|
|
|
|
|
if ( exists $args{'scale'}) { |
1315
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{scale}\E/$args{'scale'}/g; |
1316
|
|
|
|
|
|
|
}else{ |
1317
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]scale.*?(?=&|\?|$)//g; |
1318
|
|
|
|
|
|
|
}# query params |
1319
|
0
|
0
|
|
|
|
|
if ( exists $args{'tiffCompression'}) { |
1320
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{tiffCompression}\E/$args{'tiffCompression'}/g; |
1321
|
|
|
|
|
|
|
}else{ |
1322
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]tiffCompression.*?(?=&|\?|$)//g; |
1323
|
|
|
|
|
|
|
}# query params |
1324
|
0
|
0
|
|
|
|
|
if ( exists $args{'dmlRenderingMode'}) { |
1325
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{dmlRenderingMode}\E/$args{'dmlRenderingMode'}/g; |
1326
|
|
|
|
|
|
|
}else{ |
1327
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]dmlRenderingMode.*?(?=&|\?|$)//g; |
1328
|
|
|
|
|
|
|
}# query params |
1329
|
0
|
0
|
|
|
|
|
if ( exists $args{'dmlEffectsRenderingMode'}) { |
1330
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{dmlEffectsRenderingMode}\E/$args{'dmlEffectsRenderingMode'}/g; |
1331
|
|
|
|
|
|
|
}else{ |
1332
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]dmlEffectsRenderingMode.*?(?=&|\?|$)//g; |
1333
|
|
|
|
|
|
|
}# query params |
1334
|
0
|
0
|
|
|
|
|
if ( exists $args{'tiffBinarizationMethod'}) { |
1335
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{tiffBinarizationMethod}\E/$args{'tiffBinarizationMethod'}/g; |
1336
|
|
|
|
|
|
|
}else{ |
1337
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]tiffBinarizationMethod.*?(?=&|\?|$)//g; |
1338
|
|
|
|
|
|
|
}# query params |
1339
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1340
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1341
|
|
|
|
|
|
|
}else{ |
1342
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1343
|
|
|
|
|
|
|
}# query params |
1344
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1345
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1346
|
|
|
|
|
|
|
}else{ |
1347
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1348
|
|
|
|
|
|
|
}# query params |
1349
|
0
|
0
|
|
|
|
|
if ( exists $args{'zipOutput'}) { |
1350
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{zipOutput}\E/$args{'zipOutput'}/g; |
1351
|
|
|
|
|
|
|
}else{ |
1352
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]zipOutput.*?(?=&|\?|$)//g; |
1353
|
|
|
|
|
|
|
} |
1354
|
|
|
|
|
|
|
|
1355
|
|
|
|
|
|
|
|
1356
|
0
|
|
|
|
|
|
my $_body_data; |
1357
|
|
|
|
|
|
|
|
1358
|
|
|
|
|
|
|
|
1359
|
|
|
|
|
|
|
# body params |
1360
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
1361
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
1362
|
|
|
|
|
|
|
} |
1363
|
|
|
|
|
|
|
|
1364
|
|
|
|
|
|
|
# authentication setting, if any |
1365
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1366
|
|
|
|
|
|
|
|
1367
|
|
|
|
|
|
|
# make the API Call |
1368
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1369
|
|
|
|
|
|
|
$query_params, $form_params, |
1370
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1371
|
0
|
0
|
|
|
|
|
if (!$response) { |
1372
|
0
|
|
|
|
|
|
return; |
1373
|
|
|
|
|
|
|
} |
1374
|
|
|
|
|
|
|
|
1375
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1376
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1377
|
|
|
|
|
|
|
} |
1378
|
|
|
|
|
|
|
|
1379
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaveResponse', $response->header('content-type')); |
1380
|
0
|
|
|
|
|
|
return $_response_object; |
1381
|
|
|
|
|
|
|
|
1382
|
|
|
|
|
|
|
} |
1383
|
|
|
|
|
|
|
# |
1384
|
|
|
|
|
|
|
# PostAppendDocument |
1385
|
|
|
|
|
|
|
# |
1386
|
|
|
|
|
|
|
# |
1387
|
|
|
|
|
|
|
# |
1388
|
|
|
|
|
|
|
# @param String $name (required) |
1389
|
|
|
|
|
|
|
# @param String $filename (optional) |
1390
|
|
|
|
|
|
|
# @param String $storage (optional) |
1391
|
|
|
|
|
|
|
# @param String $folder (optional) |
1392
|
|
|
|
|
|
|
# @param DocumentEntryList $body (required) |
1393
|
|
|
|
|
|
|
# @return DocumentResponse |
1394
|
|
|
|
|
|
|
# |
1395
|
|
|
|
|
|
|
sub PostAppendDocument { |
1396
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1397
|
|
|
|
|
|
|
|
1398
|
|
|
|
|
|
|
|
1399
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1400
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1401
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostAppendDocument"); |
1402
|
|
|
|
|
|
|
} |
1403
|
|
|
|
|
|
|
|
1404
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
1405
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
1406
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostAppendDocument"); |
1407
|
|
|
|
|
|
|
} |
1408
|
|
|
|
|
|
|
|
1409
|
|
|
|
|
|
|
|
1410
|
|
|
|
|
|
|
# parse inputs |
1411
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/appendDocument/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
1412
|
|
|
|
|
|
|
|
1413
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1414
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1415
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1416
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1417
|
|
|
|
|
|
|
|
1418
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
1419
|
0
|
|
|
|
|
|
my $query_params = {}; |
1420
|
0
|
|
|
|
|
|
my $header_params = {}; |
1421
|
0
|
|
|
|
|
|
my $form_params = {}; |
1422
|
|
|
|
|
|
|
|
1423
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1424
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
1425
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1426
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1427
|
|
|
|
|
|
|
} |
1428
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1429
|
|
|
|
|
|
|
|
1430
|
|
|
|
|
|
|
# query params |
1431
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1432
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1433
|
|
|
|
|
|
|
}else{ |
1434
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1435
|
|
|
|
|
|
|
}# query params |
1436
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
1437
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
1438
|
|
|
|
|
|
|
}else{ |
1439
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
1440
|
|
|
|
|
|
|
}# query params |
1441
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1442
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1443
|
|
|
|
|
|
|
}else{ |
1444
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1445
|
|
|
|
|
|
|
}# query params |
1446
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1447
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1448
|
|
|
|
|
|
|
}else{ |
1449
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1450
|
|
|
|
|
|
|
} |
1451
|
|
|
|
|
|
|
|
1452
|
|
|
|
|
|
|
|
1453
|
0
|
|
|
|
|
|
my $_body_data; |
1454
|
|
|
|
|
|
|
|
1455
|
|
|
|
|
|
|
|
1456
|
|
|
|
|
|
|
# body params |
1457
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
1458
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
1459
|
|
|
|
|
|
|
} |
1460
|
|
|
|
|
|
|
|
1461
|
|
|
|
|
|
|
# authentication setting, if any |
1462
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1463
|
|
|
|
|
|
|
|
1464
|
|
|
|
|
|
|
# make the API Call |
1465
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1466
|
|
|
|
|
|
|
$query_params, $form_params, |
1467
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1468
|
0
|
0
|
|
|
|
|
if (!$response) { |
1469
|
0
|
|
|
|
|
|
return; |
1470
|
|
|
|
|
|
|
} |
1471
|
|
|
|
|
|
|
|
1472
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1473
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1474
|
|
|
|
|
|
|
} |
1475
|
|
|
|
|
|
|
|
1476
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
1477
|
0
|
|
|
|
|
|
return $_response_object; |
1478
|
|
|
|
|
|
|
|
1479
|
|
|
|
|
|
|
} |
1480
|
|
|
|
|
|
|
# |
1481
|
|
|
|
|
|
|
# GetDocumentBookmarks |
1482
|
|
|
|
|
|
|
# |
1483
|
|
|
|
|
|
|
# |
1484
|
|
|
|
|
|
|
# |
1485
|
|
|
|
|
|
|
# @param String $name (required) |
1486
|
|
|
|
|
|
|
# @param String $storage (optional) |
1487
|
|
|
|
|
|
|
# @param String $folder (optional) |
1488
|
|
|
|
|
|
|
# @return BookmarksResponse |
1489
|
|
|
|
|
|
|
# |
1490
|
|
|
|
|
|
|
sub GetDocumentBookmarks { |
1491
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1492
|
|
|
|
|
|
|
|
1493
|
|
|
|
|
|
|
|
1494
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1495
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1496
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentBookmarks"); |
1497
|
|
|
|
|
|
|
} |
1498
|
|
|
|
|
|
|
|
1499
|
|
|
|
|
|
|
|
1500
|
|
|
|
|
|
|
# parse inputs |
1501
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/bookmarks/?appSid={appSid}&storage={storage}&folder={folder}'; |
1502
|
|
|
|
|
|
|
|
1503
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1504
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1505
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1506
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1507
|
|
|
|
|
|
|
|
1508
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
1509
|
0
|
|
|
|
|
|
my $query_params = {}; |
1510
|
0
|
|
|
|
|
|
my $header_params = {}; |
1511
|
0
|
|
|
|
|
|
my $form_params = {}; |
1512
|
|
|
|
|
|
|
|
1513
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1514
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1515
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1516
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1517
|
|
|
|
|
|
|
} |
1518
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1519
|
|
|
|
|
|
|
|
1520
|
|
|
|
|
|
|
# query params |
1521
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1522
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1523
|
|
|
|
|
|
|
}else{ |
1524
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1525
|
|
|
|
|
|
|
}# query params |
1526
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1527
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1528
|
|
|
|
|
|
|
}else{ |
1529
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1530
|
|
|
|
|
|
|
}# query params |
1531
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1532
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1533
|
|
|
|
|
|
|
}else{ |
1534
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1535
|
|
|
|
|
|
|
} |
1536
|
|
|
|
|
|
|
|
1537
|
|
|
|
|
|
|
|
1538
|
0
|
|
|
|
|
|
my $_body_data; |
1539
|
|
|
|
|
|
|
|
1540
|
|
|
|
|
|
|
|
1541
|
|
|
|
|
|
|
|
1542
|
|
|
|
|
|
|
|
1543
|
|
|
|
|
|
|
# authentication setting, if any |
1544
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1545
|
|
|
|
|
|
|
|
1546
|
|
|
|
|
|
|
# make the API Call |
1547
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1548
|
|
|
|
|
|
|
$query_params, $form_params, |
1549
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1550
|
0
|
0
|
|
|
|
|
if (!$response) { |
1551
|
0
|
|
|
|
|
|
return; |
1552
|
|
|
|
|
|
|
} |
1553
|
|
|
|
|
|
|
|
1554
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1555
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1556
|
|
|
|
|
|
|
} |
1557
|
|
|
|
|
|
|
|
1558
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BookmarksResponse', $response->header('content-type')); |
1559
|
0
|
|
|
|
|
|
return $_response_object; |
1560
|
|
|
|
|
|
|
|
1561
|
|
|
|
|
|
|
} |
1562
|
|
|
|
|
|
|
# |
1563
|
|
|
|
|
|
|
# PostUpdateDocumentBookmark |
1564
|
|
|
|
|
|
|
# |
1565
|
|
|
|
|
|
|
# |
1566
|
|
|
|
|
|
|
# |
1567
|
|
|
|
|
|
|
# @param String $name (required) |
1568
|
|
|
|
|
|
|
# @param String $bookmarkName (required) |
1569
|
|
|
|
|
|
|
# @param String $filename (optional) |
1570
|
|
|
|
|
|
|
# @param String $storage (optional) |
1571
|
|
|
|
|
|
|
# @param String $folder (optional) |
1572
|
|
|
|
|
|
|
# @param BookmarkData $body (required) |
1573
|
|
|
|
|
|
|
# @return BookmarkResponse |
1574
|
|
|
|
|
|
|
# |
1575
|
|
|
|
|
|
|
sub PostUpdateDocumentBookmark { |
1576
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1577
|
|
|
|
|
|
|
|
1578
|
|
|
|
|
|
|
|
1579
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1580
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1581
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostUpdateDocumentBookmark"); |
1582
|
|
|
|
|
|
|
} |
1583
|
|
|
|
|
|
|
|
1584
|
|
|
|
|
|
|
# verify the required parameter 'bookmarkName' is set |
1585
|
0
|
0
|
|
|
|
|
unless (exists $args{'bookmarkName'}) { |
1586
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'bookmarkName' when calling PostUpdateDocumentBookmark"); |
1587
|
|
|
|
|
|
|
} |
1588
|
|
|
|
|
|
|
|
1589
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
1590
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
1591
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostUpdateDocumentBookmark"); |
1592
|
|
|
|
|
|
|
} |
1593
|
|
|
|
|
|
|
|
1594
|
|
|
|
|
|
|
|
1595
|
|
|
|
|
|
|
# parse inputs |
1596
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/bookmarks/{bookmarkName}/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
1597
|
|
|
|
|
|
|
|
1598
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1599
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1600
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1601
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1602
|
|
|
|
|
|
|
|
1603
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
1604
|
0
|
|
|
|
|
|
my $query_params = {}; |
1605
|
0
|
|
|
|
|
|
my $header_params = {}; |
1606
|
0
|
|
|
|
|
|
my $form_params = {}; |
1607
|
|
|
|
|
|
|
|
1608
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1609
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1610
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1611
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1612
|
|
|
|
|
|
|
} |
1613
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1614
|
|
|
|
|
|
|
|
1615
|
|
|
|
|
|
|
# query params |
1616
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1617
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1618
|
|
|
|
|
|
|
}else{ |
1619
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1620
|
|
|
|
|
|
|
}# query params |
1621
|
0
|
0
|
|
|
|
|
if ( exists $args{'bookmarkName'}) { |
1622
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{bookmarkName}\E/$args{'bookmarkName'}/g; |
1623
|
|
|
|
|
|
|
}else{ |
1624
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]bookmarkName.*?(?=&|\?|$)//g; |
1625
|
|
|
|
|
|
|
}# query params |
1626
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
1627
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
1628
|
|
|
|
|
|
|
}else{ |
1629
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
1630
|
|
|
|
|
|
|
}# query params |
1631
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1632
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1633
|
|
|
|
|
|
|
}else{ |
1634
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1635
|
|
|
|
|
|
|
}# query params |
1636
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1637
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1638
|
|
|
|
|
|
|
}else{ |
1639
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1640
|
|
|
|
|
|
|
} |
1641
|
|
|
|
|
|
|
|
1642
|
|
|
|
|
|
|
|
1643
|
0
|
|
|
|
|
|
my $_body_data; |
1644
|
|
|
|
|
|
|
|
1645
|
|
|
|
|
|
|
|
1646
|
|
|
|
|
|
|
# body params |
1647
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
1648
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
1649
|
|
|
|
|
|
|
} |
1650
|
|
|
|
|
|
|
|
1651
|
|
|
|
|
|
|
# authentication setting, if any |
1652
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1653
|
|
|
|
|
|
|
|
1654
|
|
|
|
|
|
|
# make the API Call |
1655
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1656
|
|
|
|
|
|
|
$query_params, $form_params, |
1657
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1658
|
0
|
0
|
|
|
|
|
if (!$response) { |
1659
|
0
|
|
|
|
|
|
return; |
1660
|
|
|
|
|
|
|
} |
1661
|
|
|
|
|
|
|
|
1662
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1663
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1664
|
|
|
|
|
|
|
} |
1665
|
|
|
|
|
|
|
|
1666
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BookmarkResponse', $response->header('content-type')); |
1667
|
0
|
|
|
|
|
|
return $_response_object; |
1668
|
|
|
|
|
|
|
|
1669
|
|
|
|
|
|
|
} |
1670
|
|
|
|
|
|
|
# |
1671
|
|
|
|
|
|
|
# GetDocumentBookmarkByName |
1672
|
|
|
|
|
|
|
# |
1673
|
|
|
|
|
|
|
# |
1674
|
|
|
|
|
|
|
# |
1675
|
|
|
|
|
|
|
# @param String $name (required) |
1676
|
|
|
|
|
|
|
# @param String $bookmarkName (required) |
1677
|
|
|
|
|
|
|
# @param String $storage (optional) |
1678
|
|
|
|
|
|
|
# @param String $folder (optional) |
1679
|
|
|
|
|
|
|
# @return BookmarkResponse |
1680
|
|
|
|
|
|
|
# |
1681
|
|
|
|
|
|
|
sub GetDocumentBookmarkByName { |
1682
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1683
|
|
|
|
|
|
|
|
1684
|
|
|
|
|
|
|
|
1685
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1686
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1687
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentBookmarkByName"); |
1688
|
|
|
|
|
|
|
} |
1689
|
|
|
|
|
|
|
|
1690
|
|
|
|
|
|
|
# verify the required parameter 'bookmarkName' is set |
1691
|
0
|
0
|
|
|
|
|
unless (exists $args{'bookmarkName'}) { |
1692
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'bookmarkName' when calling GetDocumentBookmarkByName"); |
1693
|
|
|
|
|
|
|
} |
1694
|
|
|
|
|
|
|
|
1695
|
|
|
|
|
|
|
|
1696
|
|
|
|
|
|
|
# parse inputs |
1697
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/bookmarks/{bookmarkName}/?appSid={appSid}&storage={storage}&folder={folder}'; |
1698
|
|
|
|
|
|
|
|
1699
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1700
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1701
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1702
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1703
|
|
|
|
|
|
|
|
1704
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
1705
|
0
|
|
|
|
|
|
my $query_params = {}; |
1706
|
0
|
|
|
|
|
|
my $header_params = {}; |
1707
|
0
|
|
|
|
|
|
my $form_params = {}; |
1708
|
|
|
|
|
|
|
|
1709
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1710
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1711
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1712
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1713
|
|
|
|
|
|
|
} |
1714
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1715
|
|
|
|
|
|
|
|
1716
|
|
|
|
|
|
|
# query params |
1717
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1718
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1719
|
|
|
|
|
|
|
}else{ |
1720
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1721
|
|
|
|
|
|
|
}# query params |
1722
|
0
|
0
|
|
|
|
|
if ( exists $args{'bookmarkName'}) { |
1723
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{bookmarkName}\E/$args{'bookmarkName'}/g; |
1724
|
|
|
|
|
|
|
}else{ |
1725
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]bookmarkName.*?(?=&|\?|$)//g; |
1726
|
|
|
|
|
|
|
}# query params |
1727
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1728
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1729
|
|
|
|
|
|
|
}else{ |
1730
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1731
|
|
|
|
|
|
|
}# query params |
1732
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1733
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1734
|
|
|
|
|
|
|
}else{ |
1735
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1736
|
|
|
|
|
|
|
} |
1737
|
|
|
|
|
|
|
|
1738
|
|
|
|
|
|
|
|
1739
|
0
|
|
|
|
|
|
my $_body_data; |
1740
|
|
|
|
|
|
|
|
1741
|
|
|
|
|
|
|
|
1742
|
|
|
|
|
|
|
|
1743
|
|
|
|
|
|
|
|
1744
|
|
|
|
|
|
|
# authentication setting, if any |
1745
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1746
|
|
|
|
|
|
|
|
1747
|
|
|
|
|
|
|
# make the API Call |
1748
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1749
|
|
|
|
|
|
|
$query_params, $form_params, |
1750
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1751
|
0
|
0
|
|
|
|
|
if (!$response) { |
1752
|
0
|
|
|
|
|
|
return; |
1753
|
|
|
|
|
|
|
} |
1754
|
|
|
|
|
|
|
|
1755
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1756
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1757
|
|
|
|
|
|
|
} |
1758
|
|
|
|
|
|
|
|
1759
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BookmarkResponse', $response->header('content-type')); |
1760
|
0
|
|
|
|
|
|
return $_response_object; |
1761
|
|
|
|
|
|
|
|
1762
|
|
|
|
|
|
|
} |
1763
|
|
|
|
|
|
|
# |
1764
|
|
|
|
|
|
|
# PutComment |
1765
|
|
|
|
|
|
|
# |
1766
|
|
|
|
|
|
|
# |
1767
|
|
|
|
|
|
|
# |
1768
|
|
|
|
|
|
|
# @param String $name (required) |
1769
|
|
|
|
|
|
|
# @param String $fileName (optional) |
1770
|
|
|
|
|
|
|
# @param String $storage (optional) |
1771
|
|
|
|
|
|
|
# @param String $folder (optional) |
1772
|
|
|
|
|
|
|
# @param CommentDto $body (required) |
1773
|
|
|
|
|
|
|
# @return CommentResponse |
1774
|
|
|
|
|
|
|
# |
1775
|
|
|
|
|
|
|
sub PutComment { |
1776
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1777
|
|
|
|
|
|
|
|
1778
|
|
|
|
|
|
|
|
1779
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1780
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1781
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PutComment"); |
1782
|
|
|
|
|
|
|
} |
1783
|
|
|
|
|
|
|
|
1784
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
1785
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
1786
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PutComment"); |
1787
|
|
|
|
|
|
|
} |
1788
|
|
|
|
|
|
|
|
1789
|
|
|
|
|
|
|
|
1790
|
|
|
|
|
|
|
# parse inputs |
1791
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/comments/?appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; |
1792
|
|
|
|
|
|
|
|
1793
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1794
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1795
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1796
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1797
|
|
|
|
|
|
|
|
1798
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
1799
|
0
|
|
|
|
|
|
my $query_params = {}; |
1800
|
0
|
|
|
|
|
|
my $header_params = {}; |
1801
|
0
|
|
|
|
|
|
my $form_params = {}; |
1802
|
|
|
|
|
|
|
|
1803
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1804
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1805
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1806
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1807
|
|
|
|
|
|
|
} |
1808
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1809
|
|
|
|
|
|
|
|
1810
|
|
|
|
|
|
|
# query params |
1811
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1812
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1813
|
|
|
|
|
|
|
}else{ |
1814
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1815
|
|
|
|
|
|
|
}# query params |
1816
|
0
|
0
|
|
|
|
|
if ( exists $args{'fileName'}) { |
1817
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; |
1818
|
|
|
|
|
|
|
}else{ |
1819
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]fileName.*?(?=&|\?|$)//g; |
1820
|
|
|
|
|
|
|
}# query params |
1821
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1822
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1823
|
|
|
|
|
|
|
}else{ |
1824
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1825
|
|
|
|
|
|
|
}# query params |
1826
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1827
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1828
|
|
|
|
|
|
|
}else{ |
1829
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1830
|
|
|
|
|
|
|
} |
1831
|
|
|
|
|
|
|
|
1832
|
|
|
|
|
|
|
|
1833
|
0
|
|
|
|
|
|
my $_body_data; |
1834
|
|
|
|
|
|
|
|
1835
|
|
|
|
|
|
|
|
1836
|
|
|
|
|
|
|
# body params |
1837
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
1838
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
1839
|
|
|
|
|
|
|
} |
1840
|
|
|
|
|
|
|
|
1841
|
|
|
|
|
|
|
# authentication setting, if any |
1842
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1843
|
|
|
|
|
|
|
|
1844
|
|
|
|
|
|
|
# make the API Call |
1845
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1846
|
|
|
|
|
|
|
$query_params, $form_params, |
1847
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1848
|
0
|
0
|
|
|
|
|
if (!$response) { |
1849
|
0
|
|
|
|
|
|
return; |
1850
|
|
|
|
|
|
|
} |
1851
|
|
|
|
|
|
|
|
1852
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1853
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1854
|
|
|
|
|
|
|
} |
1855
|
|
|
|
|
|
|
|
1856
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CommentResponse', $response->header('content-type')); |
1857
|
0
|
|
|
|
|
|
return $_response_object; |
1858
|
|
|
|
|
|
|
|
1859
|
|
|
|
|
|
|
} |
1860
|
|
|
|
|
|
|
# |
1861
|
|
|
|
|
|
|
# GetComments |
1862
|
|
|
|
|
|
|
# |
1863
|
|
|
|
|
|
|
# |
1864
|
|
|
|
|
|
|
# |
1865
|
|
|
|
|
|
|
# @param String $name (required) |
1866
|
|
|
|
|
|
|
# @param String $storage (optional) |
1867
|
|
|
|
|
|
|
# @param String $folder (optional) |
1868
|
|
|
|
|
|
|
# @return CommentsResponse |
1869
|
|
|
|
|
|
|
# |
1870
|
|
|
|
|
|
|
sub GetComments { |
1871
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1872
|
|
|
|
|
|
|
|
1873
|
|
|
|
|
|
|
|
1874
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1875
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1876
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetComments"); |
1877
|
|
|
|
|
|
|
} |
1878
|
|
|
|
|
|
|
|
1879
|
|
|
|
|
|
|
|
1880
|
|
|
|
|
|
|
# parse inputs |
1881
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/comments/?appSid={appSid}&storage={storage}&folder={folder}'; |
1882
|
|
|
|
|
|
|
|
1883
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1884
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1885
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1886
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1887
|
|
|
|
|
|
|
|
1888
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
1889
|
0
|
|
|
|
|
|
my $query_params = {}; |
1890
|
0
|
|
|
|
|
|
my $header_params = {}; |
1891
|
0
|
|
|
|
|
|
my $form_params = {}; |
1892
|
|
|
|
|
|
|
|
1893
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1894
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1895
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1896
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1897
|
|
|
|
|
|
|
} |
1898
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1899
|
|
|
|
|
|
|
|
1900
|
|
|
|
|
|
|
# query params |
1901
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1902
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1903
|
|
|
|
|
|
|
}else{ |
1904
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
1905
|
|
|
|
|
|
|
}# query params |
1906
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
1907
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
1908
|
|
|
|
|
|
|
}else{ |
1909
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
1910
|
|
|
|
|
|
|
}# query params |
1911
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
1912
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
1913
|
|
|
|
|
|
|
}else{ |
1914
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
1915
|
|
|
|
|
|
|
} |
1916
|
|
|
|
|
|
|
|
1917
|
|
|
|
|
|
|
|
1918
|
0
|
|
|
|
|
|
my $_body_data; |
1919
|
|
|
|
|
|
|
|
1920
|
|
|
|
|
|
|
|
1921
|
|
|
|
|
|
|
|
1922
|
|
|
|
|
|
|
|
1923
|
|
|
|
|
|
|
# authentication setting, if any |
1924
|
0
|
|
|
|
|
|
my $auth_settings = []; |
1925
|
|
|
|
|
|
|
|
1926
|
|
|
|
|
|
|
# make the API Call |
1927
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
1928
|
|
|
|
|
|
|
$query_params, $form_params, |
1929
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
1930
|
0
|
0
|
|
|
|
|
if (!$response) { |
1931
|
0
|
|
|
|
|
|
return; |
1932
|
|
|
|
|
|
|
} |
1933
|
|
|
|
|
|
|
|
1934
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
1935
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
1936
|
|
|
|
|
|
|
} |
1937
|
|
|
|
|
|
|
|
1938
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CommentsResponse', $response->header('content-type')); |
1939
|
0
|
|
|
|
|
|
return $_response_object; |
1940
|
|
|
|
|
|
|
|
1941
|
|
|
|
|
|
|
} |
1942
|
|
|
|
|
|
|
# |
1943
|
|
|
|
|
|
|
# PostComment |
1944
|
|
|
|
|
|
|
# |
1945
|
|
|
|
|
|
|
# |
1946
|
|
|
|
|
|
|
# |
1947
|
|
|
|
|
|
|
# @param String $name (required) |
1948
|
|
|
|
|
|
|
# @param String $commentIndex (required) |
1949
|
|
|
|
|
|
|
# @param String $fileName (optional) |
1950
|
|
|
|
|
|
|
# @param String $storage (optional) |
1951
|
|
|
|
|
|
|
# @param String $folder (optional) |
1952
|
|
|
|
|
|
|
# @param CommentDto $body (required) |
1953
|
|
|
|
|
|
|
# @return CommentResponse |
1954
|
|
|
|
|
|
|
# |
1955
|
|
|
|
|
|
|
sub PostComment { |
1956
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
1957
|
|
|
|
|
|
|
|
1958
|
|
|
|
|
|
|
|
1959
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
1960
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
1961
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostComment"); |
1962
|
|
|
|
|
|
|
} |
1963
|
|
|
|
|
|
|
|
1964
|
|
|
|
|
|
|
# verify the required parameter 'commentIndex' is set |
1965
|
0
|
0
|
|
|
|
|
unless (exists $args{'commentIndex'}) { |
1966
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'commentIndex' when calling PostComment"); |
1967
|
|
|
|
|
|
|
} |
1968
|
|
|
|
|
|
|
|
1969
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
1970
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
1971
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostComment"); |
1972
|
|
|
|
|
|
|
} |
1973
|
|
|
|
|
|
|
|
1974
|
|
|
|
|
|
|
|
1975
|
|
|
|
|
|
|
# parse inputs |
1976
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/comments/{commentIndex}/?appSid={appSid}&fileName={fileName}&storage={storage}&folder={folder}'; |
1977
|
|
|
|
|
|
|
|
1978
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
1979
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
1980
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
1981
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
1982
|
|
|
|
|
|
|
|
1983
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
1984
|
0
|
|
|
|
|
|
my $query_params = {}; |
1985
|
0
|
|
|
|
|
|
my $header_params = {}; |
1986
|
0
|
|
|
|
|
|
my $form_params = {}; |
1987
|
|
|
|
|
|
|
|
1988
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
1989
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
1990
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
1991
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
1992
|
|
|
|
|
|
|
} |
1993
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
1994
|
|
|
|
|
|
|
|
1995
|
|
|
|
|
|
|
# query params |
1996
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
1997
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
1998
|
|
|
|
|
|
|
}else{ |
1999
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2000
|
|
|
|
|
|
|
}# query params |
2001
|
0
|
0
|
|
|
|
|
if ( exists $args{'commentIndex'}) { |
2002
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{commentIndex}\E/$args{'commentIndex'}/g; |
2003
|
|
|
|
|
|
|
}else{ |
2004
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]commentIndex.*?(?=&|\?|$)//g; |
2005
|
|
|
|
|
|
|
}# query params |
2006
|
0
|
0
|
|
|
|
|
if ( exists $args{'fileName'}) { |
2007
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; |
2008
|
|
|
|
|
|
|
}else{ |
2009
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]fileName.*?(?=&|\?|$)//g; |
2010
|
|
|
|
|
|
|
}# query params |
2011
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2012
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2013
|
|
|
|
|
|
|
}else{ |
2014
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2015
|
|
|
|
|
|
|
}# query params |
2016
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2017
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2018
|
|
|
|
|
|
|
}else{ |
2019
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2020
|
|
|
|
|
|
|
} |
2021
|
|
|
|
|
|
|
|
2022
|
|
|
|
|
|
|
|
2023
|
0
|
|
|
|
|
|
my $_body_data; |
2024
|
|
|
|
|
|
|
|
2025
|
|
|
|
|
|
|
|
2026
|
|
|
|
|
|
|
# body params |
2027
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
2028
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
2029
|
|
|
|
|
|
|
} |
2030
|
|
|
|
|
|
|
|
2031
|
|
|
|
|
|
|
# authentication setting, if any |
2032
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2033
|
|
|
|
|
|
|
|
2034
|
|
|
|
|
|
|
# make the API Call |
2035
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2036
|
|
|
|
|
|
|
$query_params, $form_params, |
2037
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2038
|
0
|
0
|
|
|
|
|
if (!$response) { |
2039
|
0
|
|
|
|
|
|
return; |
2040
|
|
|
|
|
|
|
} |
2041
|
|
|
|
|
|
|
|
2042
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2043
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2044
|
|
|
|
|
|
|
} |
2045
|
|
|
|
|
|
|
|
2046
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CommentResponse', $response->header('content-type')); |
2047
|
0
|
|
|
|
|
|
return $_response_object; |
2048
|
|
|
|
|
|
|
|
2049
|
|
|
|
|
|
|
} |
2050
|
|
|
|
|
|
|
# |
2051
|
|
|
|
|
|
|
# GetComment |
2052
|
|
|
|
|
|
|
# |
2053
|
|
|
|
|
|
|
# |
2054
|
|
|
|
|
|
|
# |
2055
|
|
|
|
|
|
|
# @param String $name (required) |
2056
|
|
|
|
|
|
|
# @param String $commentIndex (required) |
2057
|
|
|
|
|
|
|
# @param String $storage (optional) |
2058
|
|
|
|
|
|
|
# @param String $folder (optional) |
2059
|
|
|
|
|
|
|
# @return CommentResponse |
2060
|
|
|
|
|
|
|
# |
2061
|
|
|
|
|
|
|
sub GetComment { |
2062
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2063
|
|
|
|
|
|
|
|
2064
|
|
|
|
|
|
|
|
2065
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2066
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2067
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetComment"); |
2068
|
|
|
|
|
|
|
} |
2069
|
|
|
|
|
|
|
|
2070
|
|
|
|
|
|
|
# verify the required parameter 'commentIndex' is set |
2071
|
0
|
0
|
|
|
|
|
unless (exists $args{'commentIndex'}) { |
2072
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'commentIndex' when calling GetComment"); |
2073
|
|
|
|
|
|
|
} |
2074
|
|
|
|
|
|
|
|
2075
|
|
|
|
|
|
|
|
2076
|
|
|
|
|
|
|
# parse inputs |
2077
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/comments/{commentIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
2078
|
|
|
|
|
|
|
|
2079
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2080
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2081
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2082
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2083
|
|
|
|
|
|
|
|
2084
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2085
|
0
|
|
|
|
|
|
my $query_params = {}; |
2086
|
0
|
|
|
|
|
|
my $header_params = {}; |
2087
|
0
|
|
|
|
|
|
my $form_params = {}; |
2088
|
|
|
|
|
|
|
|
2089
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2090
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2091
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2092
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2093
|
|
|
|
|
|
|
} |
2094
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2095
|
|
|
|
|
|
|
|
2096
|
|
|
|
|
|
|
# query params |
2097
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2098
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2099
|
|
|
|
|
|
|
}else{ |
2100
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2101
|
|
|
|
|
|
|
}# query params |
2102
|
0
|
0
|
|
|
|
|
if ( exists $args{'commentIndex'}) { |
2103
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{commentIndex}\E/$args{'commentIndex'}/g; |
2104
|
|
|
|
|
|
|
}else{ |
2105
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]commentIndex.*?(?=&|\?|$)//g; |
2106
|
|
|
|
|
|
|
}# query params |
2107
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2108
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2109
|
|
|
|
|
|
|
}else{ |
2110
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2111
|
|
|
|
|
|
|
}# query params |
2112
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2113
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2114
|
|
|
|
|
|
|
}else{ |
2115
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2116
|
|
|
|
|
|
|
} |
2117
|
|
|
|
|
|
|
|
2118
|
|
|
|
|
|
|
|
2119
|
0
|
|
|
|
|
|
my $_body_data; |
2120
|
|
|
|
|
|
|
|
2121
|
|
|
|
|
|
|
|
2122
|
|
|
|
|
|
|
|
2123
|
|
|
|
|
|
|
|
2124
|
|
|
|
|
|
|
# authentication setting, if any |
2125
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2126
|
|
|
|
|
|
|
|
2127
|
|
|
|
|
|
|
# make the API Call |
2128
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2129
|
|
|
|
|
|
|
$query_params, $form_params, |
2130
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2131
|
0
|
0
|
|
|
|
|
if (!$response) { |
2132
|
0
|
|
|
|
|
|
return; |
2133
|
|
|
|
|
|
|
} |
2134
|
|
|
|
|
|
|
|
2135
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2136
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2137
|
|
|
|
|
|
|
} |
2138
|
|
|
|
|
|
|
|
2139
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'CommentResponse', $response->header('content-type')); |
2140
|
0
|
|
|
|
|
|
return $_response_object; |
2141
|
|
|
|
|
|
|
|
2142
|
|
|
|
|
|
|
} |
2143
|
|
|
|
|
|
|
# |
2144
|
|
|
|
|
|
|
# DeleteComment |
2145
|
|
|
|
|
|
|
# |
2146
|
|
|
|
|
|
|
# |
2147
|
|
|
|
|
|
|
# |
2148
|
|
|
|
|
|
|
# @param String $name (required) |
2149
|
|
|
|
|
|
|
# @param String $commentIndex (required) |
2150
|
|
|
|
|
|
|
# @param String $storage (optional) |
2151
|
|
|
|
|
|
|
# @param String $folder (optional) |
2152
|
|
|
|
|
|
|
# @param String $fileName (optional) |
2153
|
|
|
|
|
|
|
# @return SaaSposeResponse |
2154
|
|
|
|
|
|
|
# |
2155
|
|
|
|
|
|
|
sub DeleteComment { |
2156
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2157
|
|
|
|
|
|
|
|
2158
|
|
|
|
|
|
|
|
2159
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2160
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2161
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteComment"); |
2162
|
|
|
|
|
|
|
} |
2163
|
|
|
|
|
|
|
|
2164
|
|
|
|
|
|
|
# verify the required parameter 'commentIndex' is set |
2165
|
0
|
0
|
|
|
|
|
unless (exists $args{'commentIndex'}) { |
2166
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'commentIndex' when calling DeleteComment"); |
2167
|
|
|
|
|
|
|
} |
2168
|
|
|
|
|
|
|
|
2169
|
|
|
|
|
|
|
|
2170
|
|
|
|
|
|
|
# parse inputs |
2171
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/comments/{commentIndex}/?appSid={appSid}&storage={storage}&folder={folder}&fileName={fileName}'; |
2172
|
|
|
|
|
|
|
|
2173
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2174
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2175
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2176
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2177
|
|
|
|
|
|
|
|
2178
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
2179
|
0
|
|
|
|
|
|
my $query_params = {}; |
2180
|
0
|
|
|
|
|
|
my $header_params = {}; |
2181
|
0
|
|
|
|
|
|
my $form_params = {}; |
2182
|
|
|
|
|
|
|
|
2183
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2184
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2185
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2186
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2187
|
|
|
|
|
|
|
} |
2188
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2189
|
|
|
|
|
|
|
|
2190
|
|
|
|
|
|
|
# query params |
2191
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2192
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2193
|
|
|
|
|
|
|
}else{ |
2194
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2195
|
|
|
|
|
|
|
}# query params |
2196
|
0
|
0
|
|
|
|
|
if ( exists $args{'commentIndex'}) { |
2197
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{commentIndex}\E/$args{'commentIndex'}/g; |
2198
|
|
|
|
|
|
|
}else{ |
2199
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]commentIndex.*?(?=&|\?|$)//g; |
2200
|
|
|
|
|
|
|
}# query params |
2201
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2202
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2203
|
|
|
|
|
|
|
}else{ |
2204
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2205
|
|
|
|
|
|
|
}# query params |
2206
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2207
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2208
|
|
|
|
|
|
|
}else{ |
2209
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2210
|
|
|
|
|
|
|
}# query params |
2211
|
0
|
0
|
|
|
|
|
if ( exists $args{'fileName'}) { |
2212
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{fileName}\E/$args{'fileName'}/g; |
2213
|
|
|
|
|
|
|
}else{ |
2214
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]fileName.*?(?=&|\?|$)//g; |
2215
|
|
|
|
|
|
|
} |
2216
|
|
|
|
|
|
|
|
2217
|
|
|
|
|
|
|
|
2218
|
0
|
|
|
|
|
|
my $_body_data; |
2219
|
|
|
|
|
|
|
|
2220
|
|
|
|
|
|
|
|
2221
|
|
|
|
|
|
|
|
2222
|
|
|
|
|
|
|
|
2223
|
|
|
|
|
|
|
# authentication setting, if any |
2224
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2225
|
|
|
|
|
|
|
|
2226
|
|
|
|
|
|
|
# make the API Call |
2227
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2228
|
|
|
|
|
|
|
$query_params, $form_params, |
2229
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2230
|
0
|
0
|
|
|
|
|
if (!$response) { |
2231
|
0
|
|
|
|
|
|
return; |
2232
|
|
|
|
|
|
|
} |
2233
|
|
|
|
|
|
|
|
2234
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2235
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2236
|
|
|
|
|
|
|
} |
2237
|
|
|
|
|
|
|
|
2238
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
2239
|
0
|
|
|
|
|
|
return $_response_object; |
2240
|
|
|
|
|
|
|
|
2241
|
|
|
|
|
|
|
} |
2242
|
|
|
|
|
|
|
# |
2243
|
|
|
|
|
|
|
# GetDocumentProperties |
2244
|
|
|
|
|
|
|
# |
2245
|
|
|
|
|
|
|
# |
2246
|
|
|
|
|
|
|
# |
2247
|
|
|
|
|
|
|
# @param String $name (required) |
2248
|
|
|
|
|
|
|
# @param String $storage (optional) |
2249
|
|
|
|
|
|
|
# @param String $folder (optional) |
2250
|
|
|
|
|
|
|
# @return DocumentPropertiesResponse |
2251
|
|
|
|
|
|
|
# |
2252
|
|
|
|
|
|
|
sub GetDocumentProperties { |
2253
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2254
|
|
|
|
|
|
|
|
2255
|
|
|
|
|
|
|
|
2256
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2257
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2258
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentProperties"); |
2259
|
|
|
|
|
|
|
} |
2260
|
|
|
|
|
|
|
|
2261
|
|
|
|
|
|
|
|
2262
|
|
|
|
|
|
|
# parse inputs |
2263
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/documentProperties/?appSid={appSid}&storage={storage}&folder={folder}'; |
2264
|
|
|
|
|
|
|
|
2265
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2266
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2267
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2268
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2269
|
|
|
|
|
|
|
|
2270
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2271
|
0
|
|
|
|
|
|
my $query_params = {}; |
2272
|
0
|
|
|
|
|
|
my $header_params = {}; |
2273
|
0
|
|
|
|
|
|
my $form_params = {}; |
2274
|
|
|
|
|
|
|
|
2275
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2276
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2277
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2278
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2279
|
|
|
|
|
|
|
} |
2280
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2281
|
|
|
|
|
|
|
|
2282
|
|
|
|
|
|
|
# query params |
2283
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2284
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2285
|
|
|
|
|
|
|
}else{ |
2286
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2287
|
|
|
|
|
|
|
}# query params |
2288
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2289
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2290
|
|
|
|
|
|
|
}else{ |
2291
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2292
|
|
|
|
|
|
|
}# query params |
2293
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2294
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2295
|
|
|
|
|
|
|
}else{ |
2296
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2297
|
|
|
|
|
|
|
} |
2298
|
|
|
|
|
|
|
|
2299
|
|
|
|
|
|
|
|
2300
|
0
|
|
|
|
|
|
my $_body_data; |
2301
|
|
|
|
|
|
|
|
2302
|
|
|
|
|
|
|
|
2303
|
|
|
|
|
|
|
|
2304
|
|
|
|
|
|
|
|
2305
|
|
|
|
|
|
|
# authentication setting, if any |
2306
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2307
|
|
|
|
|
|
|
|
2308
|
|
|
|
|
|
|
# make the API Call |
2309
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2310
|
|
|
|
|
|
|
$query_params, $form_params, |
2311
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2312
|
0
|
0
|
|
|
|
|
if (!$response) { |
2313
|
0
|
|
|
|
|
|
return; |
2314
|
|
|
|
|
|
|
} |
2315
|
|
|
|
|
|
|
|
2316
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2317
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2318
|
|
|
|
|
|
|
} |
2319
|
|
|
|
|
|
|
|
2320
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertiesResponse', $response->header('content-type')); |
2321
|
0
|
|
|
|
|
|
return $_response_object; |
2322
|
|
|
|
|
|
|
|
2323
|
|
|
|
|
|
|
} |
2324
|
|
|
|
|
|
|
# |
2325
|
|
|
|
|
|
|
# PutUpdateDocumentProperty |
2326
|
|
|
|
|
|
|
# |
2327
|
|
|
|
|
|
|
# |
2328
|
|
|
|
|
|
|
# |
2329
|
|
|
|
|
|
|
# @param String $name (required) |
2330
|
|
|
|
|
|
|
# @param String $propertyName (required) |
2331
|
|
|
|
|
|
|
# @param String $filename (optional) |
2332
|
|
|
|
|
|
|
# @param String $storage (optional) |
2333
|
|
|
|
|
|
|
# @param String $folder (optional) |
2334
|
|
|
|
|
|
|
# @param DocumentProperty $body (required) |
2335
|
|
|
|
|
|
|
# @return DocumentPropertyResponse |
2336
|
|
|
|
|
|
|
# |
2337
|
|
|
|
|
|
|
sub PutUpdateDocumentProperty { |
2338
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2339
|
|
|
|
|
|
|
|
2340
|
|
|
|
|
|
|
|
2341
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2342
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2343
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PutUpdateDocumentProperty"); |
2344
|
|
|
|
|
|
|
} |
2345
|
|
|
|
|
|
|
|
2346
|
|
|
|
|
|
|
# verify the required parameter 'propertyName' is set |
2347
|
0
|
0
|
|
|
|
|
unless (exists $args{'propertyName'}) { |
2348
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'propertyName' when calling PutUpdateDocumentProperty"); |
2349
|
|
|
|
|
|
|
} |
2350
|
|
|
|
|
|
|
|
2351
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
2352
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
2353
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PutUpdateDocumentProperty"); |
2354
|
|
|
|
|
|
|
} |
2355
|
|
|
|
|
|
|
|
2356
|
|
|
|
|
|
|
|
2357
|
|
|
|
|
|
|
# parse inputs |
2358
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/documentProperties/{propertyName}/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
2359
|
|
|
|
|
|
|
|
2360
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2361
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2362
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2363
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2364
|
|
|
|
|
|
|
|
2365
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
2366
|
0
|
|
|
|
|
|
my $query_params = {}; |
2367
|
0
|
|
|
|
|
|
my $header_params = {}; |
2368
|
0
|
|
|
|
|
|
my $form_params = {}; |
2369
|
|
|
|
|
|
|
|
2370
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2371
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2372
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2373
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2374
|
|
|
|
|
|
|
} |
2375
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2376
|
|
|
|
|
|
|
|
2377
|
|
|
|
|
|
|
# query params |
2378
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2379
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2380
|
|
|
|
|
|
|
}else{ |
2381
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2382
|
|
|
|
|
|
|
}# query params |
2383
|
0
|
0
|
|
|
|
|
if ( exists $args{'propertyName'}) { |
2384
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; |
2385
|
|
|
|
|
|
|
}else{ |
2386
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]propertyName.*?(?=&|\?|$)//g; |
2387
|
|
|
|
|
|
|
}# query params |
2388
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
2389
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
2390
|
|
|
|
|
|
|
}else{ |
2391
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
2392
|
|
|
|
|
|
|
}# query params |
2393
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2394
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2395
|
|
|
|
|
|
|
}else{ |
2396
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2397
|
|
|
|
|
|
|
}# query params |
2398
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2399
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2400
|
|
|
|
|
|
|
}else{ |
2401
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2402
|
|
|
|
|
|
|
} |
2403
|
|
|
|
|
|
|
|
2404
|
|
|
|
|
|
|
|
2405
|
0
|
|
|
|
|
|
my $_body_data; |
2406
|
|
|
|
|
|
|
|
2407
|
|
|
|
|
|
|
|
2408
|
|
|
|
|
|
|
# body params |
2409
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
2410
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
2411
|
|
|
|
|
|
|
} |
2412
|
|
|
|
|
|
|
|
2413
|
|
|
|
|
|
|
# authentication setting, if any |
2414
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2415
|
|
|
|
|
|
|
|
2416
|
|
|
|
|
|
|
# make the API Call |
2417
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2418
|
|
|
|
|
|
|
$query_params, $form_params, |
2419
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2420
|
0
|
0
|
|
|
|
|
if (!$response) { |
2421
|
0
|
|
|
|
|
|
return; |
2422
|
|
|
|
|
|
|
} |
2423
|
|
|
|
|
|
|
|
2424
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2425
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2426
|
|
|
|
|
|
|
} |
2427
|
|
|
|
|
|
|
|
2428
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); |
2429
|
0
|
|
|
|
|
|
return $_response_object; |
2430
|
|
|
|
|
|
|
|
2431
|
|
|
|
|
|
|
} |
2432
|
|
|
|
|
|
|
# |
2433
|
|
|
|
|
|
|
# DeleteDocumentProperty |
2434
|
|
|
|
|
|
|
# |
2435
|
|
|
|
|
|
|
# |
2436
|
|
|
|
|
|
|
# |
2437
|
|
|
|
|
|
|
# @param String $name (required) |
2438
|
|
|
|
|
|
|
# @param String $propertyName (required) |
2439
|
|
|
|
|
|
|
# @param String $filename (optional) |
2440
|
|
|
|
|
|
|
# @param String $storage (optional) |
2441
|
|
|
|
|
|
|
# @param String $folder (optional) |
2442
|
|
|
|
|
|
|
# @return SaaSposeResponse |
2443
|
|
|
|
|
|
|
# |
2444
|
|
|
|
|
|
|
sub DeleteDocumentProperty { |
2445
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2446
|
|
|
|
|
|
|
|
2447
|
|
|
|
|
|
|
|
2448
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2449
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2450
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteDocumentProperty"); |
2451
|
|
|
|
|
|
|
} |
2452
|
|
|
|
|
|
|
|
2453
|
|
|
|
|
|
|
# verify the required parameter 'propertyName' is set |
2454
|
0
|
0
|
|
|
|
|
unless (exists $args{'propertyName'}) { |
2455
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'propertyName' when calling DeleteDocumentProperty"); |
2456
|
|
|
|
|
|
|
} |
2457
|
|
|
|
|
|
|
|
2458
|
|
|
|
|
|
|
|
2459
|
|
|
|
|
|
|
# parse inputs |
2460
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/documentProperties/{propertyName}/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
2461
|
|
|
|
|
|
|
|
2462
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2463
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2464
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2465
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2466
|
|
|
|
|
|
|
|
2467
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
2468
|
0
|
|
|
|
|
|
my $query_params = {}; |
2469
|
0
|
|
|
|
|
|
my $header_params = {}; |
2470
|
0
|
|
|
|
|
|
my $form_params = {}; |
2471
|
|
|
|
|
|
|
|
2472
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2473
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2474
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2475
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2476
|
|
|
|
|
|
|
} |
2477
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2478
|
|
|
|
|
|
|
|
2479
|
|
|
|
|
|
|
# query params |
2480
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2481
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2482
|
|
|
|
|
|
|
}else{ |
2483
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2484
|
|
|
|
|
|
|
}# query params |
2485
|
0
|
0
|
|
|
|
|
if ( exists $args{'propertyName'}) { |
2486
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; |
2487
|
|
|
|
|
|
|
}else{ |
2488
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]propertyName.*?(?=&|\?|$)//g; |
2489
|
|
|
|
|
|
|
}# query params |
2490
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
2491
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
2492
|
|
|
|
|
|
|
}else{ |
2493
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
2494
|
|
|
|
|
|
|
}# query params |
2495
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2496
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2497
|
|
|
|
|
|
|
}else{ |
2498
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2499
|
|
|
|
|
|
|
}# query params |
2500
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2501
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2502
|
|
|
|
|
|
|
}else{ |
2503
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2504
|
|
|
|
|
|
|
} |
2505
|
|
|
|
|
|
|
|
2506
|
|
|
|
|
|
|
|
2507
|
0
|
|
|
|
|
|
my $_body_data; |
2508
|
|
|
|
|
|
|
|
2509
|
|
|
|
|
|
|
|
2510
|
|
|
|
|
|
|
|
2511
|
|
|
|
|
|
|
|
2512
|
|
|
|
|
|
|
# authentication setting, if any |
2513
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2514
|
|
|
|
|
|
|
|
2515
|
|
|
|
|
|
|
# make the API Call |
2516
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2517
|
|
|
|
|
|
|
$query_params, $form_params, |
2518
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2519
|
0
|
0
|
|
|
|
|
if (!$response) { |
2520
|
0
|
|
|
|
|
|
return; |
2521
|
|
|
|
|
|
|
} |
2522
|
|
|
|
|
|
|
|
2523
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2524
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2525
|
|
|
|
|
|
|
} |
2526
|
|
|
|
|
|
|
|
2527
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
2528
|
0
|
|
|
|
|
|
return $_response_object; |
2529
|
|
|
|
|
|
|
|
2530
|
|
|
|
|
|
|
} |
2531
|
|
|
|
|
|
|
# |
2532
|
|
|
|
|
|
|
# GetDocumentProperty |
2533
|
|
|
|
|
|
|
# |
2534
|
|
|
|
|
|
|
# |
2535
|
|
|
|
|
|
|
# |
2536
|
|
|
|
|
|
|
# @param String $name (required) |
2537
|
|
|
|
|
|
|
# @param String $propertyName (required) |
2538
|
|
|
|
|
|
|
# @param String $storage (optional) |
2539
|
|
|
|
|
|
|
# @param String $folder (optional) |
2540
|
|
|
|
|
|
|
# @return DocumentPropertyResponse |
2541
|
|
|
|
|
|
|
# |
2542
|
|
|
|
|
|
|
sub GetDocumentProperty { |
2543
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2544
|
|
|
|
|
|
|
|
2545
|
|
|
|
|
|
|
|
2546
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2547
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2548
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentProperty"); |
2549
|
|
|
|
|
|
|
} |
2550
|
|
|
|
|
|
|
|
2551
|
|
|
|
|
|
|
# verify the required parameter 'propertyName' is set |
2552
|
0
|
0
|
|
|
|
|
unless (exists $args{'propertyName'}) { |
2553
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'propertyName' when calling GetDocumentProperty"); |
2554
|
|
|
|
|
|
|
} |
2555
|
|
|
|
|
|
|
|
2556
|
|
|
|
|
|
|
|
2557
|
|
|
|
|
|
|
# parse inputs |
2558
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/documentProperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}'; |
2559
|
|
|
|
|
|
|
|
2560
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2561
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2562
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2563
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2564
|
|
|
|
|
|
|
|
2565
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2566
|
0
|
|
|
|
|
|
my $query_params = {}; |
2567
|
0
|
|
|
|
|
|
my $header_params = {}; |
2568
|
0
|
|
|
|
|
|
my $form_params = {}; |
2569
|
|
|
|
|
|
|
|
2570
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2571
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2572
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2573
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2574
|
|
|
|
|
|
|
} |
2575
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2576
|
|
|
|
|
|
|
|
2577
|
|
|
|
|
|
|
# query params |
2578
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2579
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2580
|
|
|
|
|
|
|
}else{ |
2581
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2582
|
|
|
|
|
|
|
}# query params |
2583
|
0
|
0
|
|
|
|
|
if ( exists $args{'propertyName'}) { |
2584
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; |
2585
|
|
|
|
|
|
|
}else{ |
2586
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]propertyName.*?(?=&|\?|$)//g; |
2587
|
|
|
|
|
|
|
}# query params |
2588
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2589
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2590
|
|
|
|
|
|
|
}else{ |
2591
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2592
|
|
|
|
|
|
|
}# query params |
2593
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2594
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2595
|
|
|
|
|
|
|
}else{ |
2596
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2597
|
|
|
|
|
|
|
} |
2598
|
|
|
|
|
|
|
|
2599
|
|
|
|
|
|
|
|
2600
|
0
|
|
|
|
|
|
my $_body_data; |
2601
|
|
|
|
|
|
|
|
2602
|
|
|
|
|
|
|
|
2603
|
|
|
|
|
|
|
|
2604
|
|
|
|
|
|
|
|
2605
|
|
|
|
|
|
|
# authentication setting, if any |
2606
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2607
|
|
|
|
|
|
|
|
2608
|
|
|
|
|
|
|
# make the API Call |
2609
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2610
|
|
|
|
|
|
|
$query_params, $form_params, |
2611
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2612
|
0
|
0
|
|
|
|
|
if (!$response) { |
2613
|
0
|
|
|
|
|
|
return; |
2614
|
|
|
|
|
|
|
} |
2615
|
|
|
|
|
|
|
|
2616
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2617
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2618
|
|
|
|
|
|
|
} |
2619
|
|
|
|
|
|
|
|
2620
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); |
2621
|
0
|
|
|
|
|
|
return $_response_object; |
2622
|
|
|
|
|
|
|
|
2623
|
|
|
|
|
|
|
} |
2624
|
|
|
|
|
|
|
# |
2625
|
|
|
|
|
|
|
# GetDocumentDrawingObjects |
2626
|
|
|
|
|
|
|
# |
2627
|
|
|
|
|
|
|
# |
2628
|
|
|
|
|
|
|
# |
2629
|
|
|
|
|
|
|
# @param String $name (required) |
2630
|
|
|
|
|
|
|
# @param String $storage (optional) |
2631
|
|
|
|
|
|
|
# @param String $folder (optional) |
2632
|
|
|
|
|
|
|
# @return DrawingObjectsResponse |
2633
|
|
|
|
|
|
|
# |
2634
|
|
|
|
|
|
|
sub GetDocumentDrawingObjects { |
2635
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2636
|
|
|
|
|
|
|
|
2637
|
|
|
|
|
|
|
|
2638
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2639
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2640
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentDrawingObjects"); |
2641
|
|
|
|
|
|
|
} |
2642
|
|
|
|
|
|
|
|
2643
|
|
|
|
|
|
|
|
2644
|
|
|
|
|
|
|
# parse inputs |
2645
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/drawingObjects/?appSid={appSid}&storage={storage}&folder={folder}'; |
2646
|
|
|
|
|
|
|
|
2647
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2648
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2649
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2650
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2651
|
|
|
|
|
|
|
|
2652
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2653
|
0
|
|
|
|
|
|
my $query_params = {}; |
2654
|
0
|
|
|
|
|
|
my $header_params = {}; |
2655
|
0
|
|
|
|
|
|
my $form_params = {}; |
2656
|
|
|
|
|
|
|
|
2657
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2658
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
2659
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2660
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2661
|
|
|
|
|
|
|
} |
2662
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2663
|
|
|
|
|
|
|
|
2664
|
|
|
|
|
|
|
# query params |
2665
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2666
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2667
|
|
|
|
|
|
|
}else{ |
2668
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2669
|
|
|
|
|
|
|
}# query params |
2670
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2671
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2672
|
|
|
|
|
|
|
}else{ |
2673
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2674
|
|
|
|
|
|
|
}# query params |
2675
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2676
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2677
|
|
|
|
|
|
|
}else{ |
2678
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2679
|
|
|
|
|
|
|
} |
2680
|
|
|
|
|
|
|
|
2681
|
|
|
|
|
|
|
|
2682
|
0
|
|
|
|
|
|
my $_body_data; |
2683
|
|
|
|
|
|
|
|
2684
|
|
|
|
|
|
|
|
2685
|
|
|
|
|
|
|
|
2686
|
|
|
|
|
|
|
|
2687
|
|
|
|
|
|
|
# authentication setting, if any |
2688
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2689
|
|
|
|
|
|
|
|
2690
|
|
|
|
|
|
|
# make the API Call |
2691
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2692
|
|
|
|
|
|
|
$query_params, $form_params, |
2693
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2694
|
0
|
0
|
|
|
|
|
if (!$response) { |
2695
|
0
|
|
|
|
|
|
return; |
2696
|
|
|
|
|
|
|
} |
2697
|
|
|
|
|
|
|
|
2698
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2699
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2700
|
|
|
|
|
|
|
} |
2701
|
|
|
|
|
|
|
|
2702
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DrawingObjectsResponse', $response->header('content-type')); |
2703
|
0
|
|
|
|
|
|
return $_response_object; |
2704
|
|
|
|
|
|
|
|
2705
|
|
|
|
|
|
|
} |
2706
|
|
|
|
|
|
|
# |
2707
|
|
|
|
|
|
|
# GetDocumentDrawingObjectByIndex |
2708
|
|
|
|
|
|
|
# |
2709
|
|
|
|
|
|
|
# |
2710
|
|
|
|
|
|
|
# |
2711
|
|
|
|
|
|
|
# @param String $name (required) |
2712
|
|
|
|
|
|
|
# @param String $objectIndex (required) |
2713
|
|
|
|
|
|
|
# @param String $storage (optional) |
2714
|
|
|
|
|
|
|
# @param String $folder (optional) |
2715
|
|
|
|
|
|
|
# @return ResponseMessage |
2716
|
|
|
|
|
|
|
# |
2717
|
|
|
|
|
|
|
sub GetDocumentDrawingObjectByIndex { |
2718
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2719
|
|
|
|
|
|
|
|
2720
|
|
|
|
|
|
|
|
2721
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2722
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2723
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentDrawingObjectByIndex"); |
2724
|
|
|
|
|
|
|
} |
2725
|
|
|
|
|
|
|
|
2726
|
|
|
|
|
|
|
# verify the required parameter 'objectIndex' is set |
2727
|
0
|
0
|
|
|
|
|
unless (exists $args{'objectIndex'}) { |
2728
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'objectIndex' when calling GetDocumentDrawingObjectByIndex"); |
2729
|
|
|
|
|
|
|
} |
2730
|
|
|
|
|
|
|
|
2731
|
|
|
|
|
|
|
|
2732
|
|
|
|
|
|
|
# parse inputs |
2733
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/drawingObjects/{objectIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
2734
|
|
|
|
|
|
|
|
2735
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2736
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2737
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2738
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2739
|
|
|
|
|
|
|
|
2740
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2741
|
0
|
|
|
|
|
|
my $query_params = {}; |
2742
|
0
|
|
|
|
|
|
my $header_params = {}; |
2743
|
0
|
|
|
|
|
|
my $form_params = {}; |
2744
|
|
|
|
|
|
|
|
2745
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2746
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
2747
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2748
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2749
|
|
|
|
|
|
|
} |
2750
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2751
|
|
|
|
|
|
|
|
2752
|
|
|
|
|
|
|
# query params |
2753
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2754
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2755
|
|
|
|
|
|
|
}else{ |
2756
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2757
|
|
|
|
|
|
|
}# query params |
2758
|
0
|
0
|
|
|
|
|
if ( exists $args{'objectIndex'}) { |
2759
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{objectIndex}\E/$args{'objectIndex'}/g; |
2760
|
|
|
|
|
|
|
}else{ |
2761
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]objectIndex.*?(?=&|\?|$)//g; |
2762
|
|
|
|
|
|
|
}# query params |
2763
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2764
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2765
|
|
|
|
|
|
|
}else{ |
2766
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2767
|
|
|
|
|
|
|
}# query params |
2768
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2769
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2770
|
|
|
|
|
|
|
}else{ |
2771
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2772
|
|
|
|
|
|
|
} |
2773
|
|
|
|
|
|
|
|
2774
|
|
|
|
|
|
|
|
2775
|
0
|
|
|
|
|
|
my $_body_data; |
2776
|
|
|
|
|
|
|
|
2777
|
|
|
|
|
|
|
|
2778
|
|
|
|
|
|
|
|
2779
|
|
|
|
|
|
|
|
2780
|
|
|
|
|
|
|
# authentication setting, if any |
2781
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2782
|
|
|
|
|
|
|
|
2783
|
|
|
|
|
|
|
# make the API Call |
2784
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2785
|
|
|
|
|
|
|
$query_params, $form_params, |
2786
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2787
|
0
|
0
|
|
|
|
|
if (!$response) { |
2788
|
0
|
|
|
|
|
|
return; |
2789
|
|
|
|
|
|
|
} |
2790
|
|
|
|
|
|
|
|
2791
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2792
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2793
|
|
|
|
|
|
|
} |
2794
|
|
|
|
|
|
|
|
2795
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
2796
|
0
|
|
|
|
|
|
return $_response_object; |
2797
|
|
|
|
|
|
|
|
2798
|
|
|
|
|
|
|
} |
2799
|
|
|
|
|
|
|
# |
2800
|
|
|
|
|
|
|
# GetDocumentDrawingObjectByIndexWithFormat |
2801
|
|
|
|
|
|
|
# |
2802
|
|
|
|
|
|
|
# |
2803
|
|
|
|
|
|
|
# |
2804
|
|
|
|
|
|
|
# @param String $name (required) |
2805
|
|
|
|
|
|
|
# @param String $objectIndex (required) |
2806
|
|
|
|
|
|
|
# @param String $format (required) |
2807
|
|
|
|
|
|
|
# @param String $storage (optional) |
2808
|
|
|
|
|
|
|
# @param String $folder (optional) |
2809
|
|
|
|
|
|
|
# @return ResponseMessage |
2810
|
|
|
|
|
|
|
# |
2811
|
|
|
|
|
|
|
sub GetDocumentDrawingObjectByIndexWithFormat { |
2812
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2813
|
|
|
|
|
|
|
|
2814
|
|
|
|
|
|
|
|
2815
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2816
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2817
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentDrawingObjectByIndexWithFormat"); |
2818
|
|
|
|
|
|
|
} |
2819
|
|
|
|
|
|
|
|
2820
|
|
|
|
|
|
|
# verify the required parameter 'objectIndex' is set |
2821
|
0
|
0
|
|
|
|
|
unless (exists $args{'objectIndex'}) { |
2822
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'objectIndex' when calling GetDocumentDrawingObjectByIndexWithFormat"); |
2823
|
|
|
|
|
|
|
} |
2824
|
|
|
|
|
|
|
|
2825
|
|
|
|
|
|
|
# verify the required parameter 'format' is set |
2826
|
0
|
0
|
|
|
|
|
unless (exists $args{'format'}) { |
2827
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'format' when calling GetDocumentDrawingObjectByIndexWithFormat"); |
2828
|
|
|
|
|
|
|
} |
2829
|
|
|
|
|
|
|
|
2830
|
|
|
|
|
|
|
|
2831
|
|
|
|
|
|
|
# parse inputs |
2832
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/drawingObjects/{objectIndex}/?appSid={appSid}&toFormat={toFormat}&storage={storage}&folder={folder}'; |
2833
|
|
|
|
|
|
|
|
2834
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2835
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2836
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2837
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2838
|
|
|
|
|
|
|
|
2839
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2840
|
0
|
|
|
|
|
|
my $query_params = {}; |
2841
|
0
|
|
|
|
|
|
my $header_params = {}; |
2842
|
0
|
|
|
|
|
|
my $form_params = {}; |
2843
|
|
|
|
|
|
|
|
2844
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2845
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
2846
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2847
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2848
|
|
|
|
|
|
|
} |
2849
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2850
|
|
|
|
|
|
|
|
2851
|
|
|
|
|
|
|
# query params |
2852
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2853
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2854
|
|
|
|
|
|
|
}else{ |
2855
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2856
|
|
|
|
|
|
|
}# query params |
2857
|
0
|
0
|
|
|
|
|
if ( exists $args{'objectIndex'}) { |
2858
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{objectIndex}\E/$args{'objectIndex'}/g; |
2859
|
|
|
|
|
|
|
}else{ |
2860
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]objectIndex.*?(?=&|\?|$)//g; |
2861
|
|
|
|
|
|
|
}# query params |
2862
|
0
|
0
|
|
|
|
|
if ( exists $args{'format'}) { |
2863
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{format}\E/$args{'format'}/g; |
2864
|
|
|
|
|
|
|
}else{ |
2865
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; |
2866
|
|
|
|
|
|
|
}# query params |
2867
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2868
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2869
|
|
|
|
|
|
|
}else{ |
2870
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2871
|
|
|
|
|
|
|
}# query params |
2872
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2873
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2874
|
|
|
|
|
|
|
}else{ |
2875
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2876
|
|
|
|
|
|
|
} |
2877
|
|
|
|
|
|
|
|
2878
|
|
|
|
|
|
|
|
2879
|
0
|
|
|
|
|
|
my $_body_data; |
2880
|
|
|
|
|
|
|
|
2881
|
|
|
|
|
|
|
|
2882
|
|
|
|
|
|
|
|
2883
|
|
|
|
|
|
|
|
2884
|
|
|
|
|
|
|
# authentication setting, if any |
2885
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2886
|
|
|
|
|
|
|
|
2887
|
|
|
|
|
|
|
# make the API Call |
2888
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2889
|
|
|
|
|
|
|
$query_params, $form_params, |
2890
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2891
|
0
|
0
|
|
|
|
|
if (!$response) { |
2892
|
0
|
|
|
|
|
|
return; |
2893
|
|
|
|
|
|
|
} |
2894
|
|
|
|
|
|
|
|
2895
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2896
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2897
|
|
|
|
|
|
|
} |
2898
|
|
|
|
|
|
|
|
2899
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
2900
|
0
|
|
|
|
|
|
return $_response_object; |
2901
|
|
|
|
|
|
|
|
2902
|
|
|
|
|
|
|
} |
2903
|
|
|
|
|
|
|
# |
2904
|
|
|
|
|
|
|
# GetDocumentDrawingObjectImageData |
2905
|
|
|
|
|
|
|
# |
2906
|
|
|
|
|
|
|
# |
2907
|
|
|
|
|
|
|
# |
2908
|
|
|
|
|
|
|
# @param String $name (required) |
2909
|
|
|
|
|
|
|
# @param String $objectIndex (required) |
2910
|
|
|
|
|
|
|
# @param String $storage (optional) |
2911
|
|
|
|
|
|
|
# @param String $folder (optional) |
2912
|
|
|
|
|
|
|
# @return ResponseMessage |
2913
|
|
|
|
|
|
|
# |
2914
|
|
|
|
|
|
|
sub GetDocumentDrawingObjectImageData { |
2915
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
2916
|
|
|
|
|
|
|
|
2917
|
|
|
|
|
|
|
|
2918
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
2919
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
2920
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentDrawingObjectImageData"); |
2921
|
|
|
|
|
|
|
} |
2922
|
|
|
|
|
|
|
|
2923
|
|
|
|
|
|
|
# verify the required parameter 'objectIndex' is set |
2924
|
0
|
0
|
|
|
|
|
unless (exists $args{'objectIndex'}) { |
2925
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'objectIndex' when calling GetDocumentDrawingObjectImageData"); |
2926
|
|
|
|
|
|
|
} |
2927
|
|
|
|
|
|
|
|
2928
|
|
|
|
|
|
|
|
2929
|
|
|
|
|
|
|
# parse inputs |
2930
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/drawingObjects/{objectIndex}/imageData/?appSid={appSid}&storage={storage}&folder={folder}'; |
2931
|
|
|
|
|
|
|
|
2932
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
2933
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
2934
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
2935
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
2936
|
|
|
|
|
|
|
|
2937
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
2938
|
0
|
|
|
|
|
|
my $query_params = {}; |
2939
|
0
|
|
|
|
|
|
my $header_params = {}; |
2940
|
0
|
|
|
|
|
|
my $form_params = {}; |
2941
|
|
|
|
|
|
|
|
2942
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
2943
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
2944
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
2945
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
2946
|
|
|
|
|
|
|
} |
2947
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
2948
|
|
|
|
|
|
|
|
2949
|
|
|
|
|
|
|
# query params |
2950
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
2951
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
2952
|
|
|
|
|
|
|
}else{ |
2953
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
2954
|
|
|
|
|
|
|
}# query params |
2955
|
0
|
0
|
|
|
|
|
if ( exists $args{'objectIndex'}) { |
2956
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{objectIndex}\E/$args{'objectIndex'}/g; |
2957
|
|
|
|
|
|
|
}else{ |
2958
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]objectIndex.*?(?=&|\?|$)//g; |
2959
|
|
|
|
|
|
|
}# query params |
2960
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
2961
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
2962
|
|
|
|
|
|
|
}else{ |
2963
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
2964
|
|
|
|
|
|
|
}# query params |
2965
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
2966
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
2967
|
|
|
|
|
|
|
}else{ |
2968
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
2969
|
|
|
|
|
|
|
} |
2970
|
|
|
|
|
|
|
|
2971
|
|
|
|
|
|
|
|
2972
|
0
|
|
|
|
|
|
my $_body_data; |
2973
|
|
|
|
|
|
|
|
2974
|
|
|
|
|
|
|
|
2975
|
|
|
|
|
|
|
|
2976
|
|
|
|
|
|
|
|
2977
|
|
|
|
|
|
|
# authentication setting, if any |
2978
|
0
|
|
|
|
|
|
my $auth_settings = []; |
2979
|
|
|
|
|
|
|
|
2980
|
|
|
|
|
|
|
# make the API Call |
2981
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
2982
|
|
|
|
|
|
|
$query_params, $form_params, |
2983
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
2984
|
0
|
0
|
|
|
|
|
if (!$response) { |
2985
|
0
|
|
|
|
|
|
return; |
2986
|
|
|
|
|
|
|
} |
2987
|
|
|
|
|
|
|
|
2988
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
2989
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
2990
|
|
|
|
|
|
|
} |
2991
|
|
|
|
|
|
|
|
2992
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
2993
|
0
|
|
|
|
|
|
return $_response_object; |
2994
|
|
|
|
|
|
|
|
2995
|
|
|
|
|
|
|
} |
2996
|
|
|
|
|
|
|
# |
2997
|
|
|
|
|
|
|
# GetDocumentDrawingObjectOleData |
2998
|
|
|
|
|
|
|
# |
2999
|
|
|
|
|
|
|
# |
3000
|
|
|
|
|
|
|
# |
3001
|
|
|
|
|
|
|
# @param String $name (required) |
3002
|
|
|
|
|
|
|
# @param String $objectIndex (required) |
3003
|
|
|
|
|
|
|
# @param String $storage (optional) |
3004
|
|
|
|
|
|
|
# @param String $folder (optional) |
3005
|
|
|
|
|
|
|
# @return ResponseMessage |
3006
|
|
|
|
|
|
|
# |
3007
|
|
|
|
|
|
|
sub GetDocumentDrawingObjectOleData { |
3008
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3009
|
|
|
|
|
|
|
|
3010
|
|
|
|
|
|
|
|
3011
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3012
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3013
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentDrawingObjectOleData"); |
3014
|
|
|
|
|
|
|
} |
3015
|
|
|
|
|
|
|
|
3016
|
|
|
|
|
|
|
# verify the required parameter 'objectIndex' is set |
3017
|
0
|
0
|
|
|
|
|
unless (exists $args{'objectIndex'}) { |
3018
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'objectIndex' when calling GetDocumentDrawingObjectOleData"); |
3019
|
|
|
|
|
|
|
} |
3020
|
|
|
|
|
|
|
|
3021
|
|
|
|
|
|
|
|
3022
|
|
|
|
|
|
|
# parse inputs |
3023
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/drawingObjects/{objectIndex}/oleData/?appSid={appSid}&storage={storage}&folder={folder}'; |
3024
|
|
|
|
|
|
|
|
3025
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3026
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3027
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3028
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3029
|
|
|
|
|
|
|
|
3030
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
3031
|
0
|
|
|
|
|
|
my $query_params = {}; |
3032
|
0
|
|
|
|
|
|
my $header_params = {}; |
3033
|
0
|
|
|
|
|
|
my $form_params = {}; |
3034
|
|
|
|
|
|
|
|
3035
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3036
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); |
3037
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3038
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3039
|
|
|
|
|
|
|
} |
3040
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3041
|
|
|
|
|
|
|
|
3042
|
|
|
|
|
|
|
# query params |
3043
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3044
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3045
|
|
|
|
|
|
|
}else{ |
3046
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3047
|
|
|
|
|
|
|
}# query params |
3048
|
0
|
0
|
|
|
|
|
if ( exists $args{'objectIndex'}) { |
3049
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{objectIndex}\E/$args{'objectIndex'}/g; |
3050
|
|
|
|
|
|
|
}else{ |
3051
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]objectIndex.*?(?=&|\?|$)//g; |
3052
|
|
|
|
|
|
|
}# query params |
3053
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3054
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3055
|
|
|
|
|
|
|
}else{ |
3056
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3057
|
|
|
|
|
|
|
}# query params |
3058
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3059
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3060
|
|
|
|
|
|
|
}else{ |
3061
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3062
|
|
|
|
|
|
|
} |
3063
|
|
|
|
|
|
|
|
3064
|
|
|
|
|
|
|
|
3065
|
0
|
|
|
|
|
|
my $_body_data; |
3066
|
|
|
|
|
|
|
|
3067
|
|
|
|
|
|
|
|
3068
|
|
|
|
|
|
|
|
3069
|
|
|
|
|
|
|
|
3070
|
|
|
|
|
|
|
# authentication setting, if any |
3071
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3072
|
|
|
|
|
|
|
|
3073
|
|
|
|
|
|
|
# make the API Call |
3074
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3075
|
|
|
|
|
|
|
$query_params, $form_params, |
3076
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3077
|
0
|
0
|
|
|
|
|
if (!$response) { |
3078
|
0
|
|
|
|
|
|
return; |
3079
|
|
|
|
|
|
|
} |
3080
|
|
|
|
|
|
|
|
3081
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3082
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3083
|
|
|
|
|
|
|
} |
3084
|
|
|
|
|
|
|
|
3085
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); |
3086
|
0
|
|
|
|
|
|
return $_response_object; |
3087
|
|
|
|
|
|
|
|
3088
|
|
|
|
|
|
|
} |
3089
|
|
|
|
|
|
|
# |
3090
|
|
|
|
|
|
|
# PostDocumentExecuteMailMerge |
3091
|
|
|
|
|
|
|
# |
3092
|
|
|
|
|
|
|
# |
3093
|
|
|
|
|
|
|
# |
3094
|
|
|
|
|
|
|
# @param String $name (required) |
3095
|
|
|
|
|
|
|
# @param Boolean $withRegions (required) |
3096
|
|
|
|
|
|
|
# @param String $mailMergeDataFile (optional) |
3097
|
|
|
|
|
|
|
# @param String $cleanup (optional) |
3098
|
|
|
|
|
|
|
# @param String $filename (optional) |
3099
|
|
|
|
|
|
|
# @param String $storage (optional) |
3100
|
|
|
|
|
|
|
# @param String $folder (optional) |
3101
|
|
|
|
|
|
|
# @param Boolean $useWholeParagraphAsRegion (optional) |
3102
|
|
|
|
|
|
|
# @param File $file (required) |
3103
|
|
|
|
|
|
|
# @return DocumentResponse |
3104
|
|
|
|
|
|
|
# |
3105
|
|
|
|
|
|
|
sub PostDocumentExecuteMailMerge { |
3106
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3107
|
|
|
|
|
|
|
|
3108
|
|
|
|
|
|
|
|
3109
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3110
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3111
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostDocumentExecuteMailMerge"); |
3112
|
|
|
|
|
|
|
} |
3113
|
|
|
|
|
|
|
|
3114
|
|
|
|
|
|
|
# verify the required parameter 'withRegions' is set |
3115
|
0
|
0
|
|
|
|
|
unless (exists $args{'withRegions'}) { |
3116
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'withRegions' when calling PostDocumentExecuteMailMerge"); |
3117
|
|
|
|
|
|
|
} |
3118
|
|
|
|
|
|
|
|
3119
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
3120
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
3121
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PostDocumentExecuteMailMerge"); |
3122
|
|
|
|
|
|
|
} |
3123
|
|
|
|
|
|
|
|
3124
|
|
|
|
|
|
|
|
3125
|
|
|
|
|
|
|
# parse inputs |
3126
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/executeMailMerge/{withRegions}/?appSid={appSid}&mailMergeDataFile={mailMergeDataFile}&cleanup={cleanup}&filename={filename}&storage={storage}&folder={folder}&useWholeParagraphAsRegion={useWholeParagraphAsRegion}'; |
3127
|
|
|
|
|
|
|
|
3128
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3129
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3130
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3131
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3132
|
|
|
|
|
|
|
|
3133
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
3134
|
0
|
|
|
|
|
|
my $query_params = {}; |
3135
|
0
|
|
|
|
|
|
my $header_params = {}; |
3136
|
0
|
|
|
|
|
|
my $form_params = {}; |
3137
|
|
|
|
|
|
|
|
3138
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3139
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3140
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3141
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3142
|
|
|
|
|
|
|
} |
3143
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
3144
|
|
|
|
|
|
|
|
3145
|
|
|
|
|
|
|
# query params |
3146
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3147
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3148
|
|
|
|
|
|
|
}else{ |
3149
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3150
|
|
|
|
|
|
|
}# query params |
3151
|
0
|
0
|
|
|
|
|
if ( exists $args{'withRegions'}) { |
3152
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{withRegions}\E/$args{'withRegions'}/g; |
3153
|
|
|
|
|
|
|
}else{ |
3154
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]withRegions.*?(?=&|\?|$)//g; |
3155
|
|
|
|
|
|
|
}# query params |
3156
|
0
|
0
|
|
|
|
|
if ( exists $args{'mailMergeDataFile'}) { |
3157
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{mailMergeDataFile}\E/$args{'mailMergeDataFile'}/g; |
3158
|
|
|
|
|
|
|
}else{ |
3159
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]mailMergeDataFile.*?(?=&|\?|$)//g; |
3160
|
|
|
|
|
|
|
}# query params |
3161
|
0
|
0
|
|
|
|
|
if ( exists $args{'cleanup'}) { |
3162
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{cleanup}\E/$args{'cleanup'}/g; |
3163
|
|
|
|
|
|
|
}else{ |
3164
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]cleanup.*?(?=&|\?|$)//g; |
3165
|
|
|
|
|
|
|
}# query params |
3166
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
3167
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
3168
|
|
|
|
|
|
|
}else{ |
3169
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
3170
|
|
|
|
|
|
|
}# query params |
3171
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3172
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3173
|
|
|
|
|
|
|
}else{ |
3174
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3175
|
|
|
|
|
|
|
}# query params |
3176
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3177
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3178
|
|
|
|
|
|
|
}else{ |
3179
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3180
|
|
|
|
|
|
|
}# query params |
3181
|
0
|
0
|
|
|
|
|
if ( exists $args{'useWholeParagraphAsRegion'}) { |
3182
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useWholeParagraphAsRegion}\E/$args{'useWholeParagraphAsRegion'}/g; |
3183
|
|
|
|
|
|
|
}else{ |
3184
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useWholeParagraphAsRegion.*?(?=&|\?|$)//g; |
3185
|
|
|
|
|
|
|
} |
3186
|
|
|
|
|
|
|
|
3187
|
|
|
|
|
|
|
|
3188
|
0
|
|
|
|
|
|
my $_body_data; |
3189
|
|
|
|
|
|
|
# form params |
3190
|
0
|
0
|
|
|
|
|
if ( exists $args{'file'} ) { |
3191
|
|
|
|
|
|
|
|
3192
|
0
|
|
|
|
|
|
$_body_data = read_file( $args{'file'} , binmode => ':raw' ); |
3193
|
|
|
|
|
|
|
|
3194
|
|
|
|
|
|
|
|
3195
|
|
|
|
|
|
|
} |
3196
|
|
|
|
|
|
|
|
3197
|
|
|
|
|
|
|
|
3198
|
|
|
|
|
|
|
|
3199
|
|
|
|
|
|
|
# authentication setting, if any |
3200
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3201
|
|
|
|
|
|
|
|
3202
|
|
|
|
|
|
|
# make the API Call |
3203
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3204
|
|
|
|
|
|
|
$query_params, $form_params, |
3205
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3206
|
0
|
0
|
|
|
|
|
if (!$response) { |
3207
|
0
|
|
|
|
|
|
return; |
3208
|
|
|
|
|
|
|
} |
3209
|
|
|
|
|
|
|
|
3210
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3211
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3212
|
|
|
|
|
|
|
} |
3213
|
|
|
|
|
|
|
|
3214
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
3215
|
0
|
|
|
|
|
|
return $_response_object; |
3216
|
|
|
|
|
|
|
|
3217
|
|
|
|
|
|
|
} |
3218
|
|
|
|
|
|
|
# |
3219
|
|
|
|
|
|
|
# PostExecuteTemplate |
3220
|
|
|
|
|
|
|
# |
3221
|
|
|
|
|
|
|
# |
3222
|
|
|
|
|
|
|
# |
3223
|
|
|
|
|
|
|
# @param String $name (required) |
3224
|
|
|
|
|
|
|
# @param String $cleanup (optional) |
3225
|
|
|
|
|
|
|
# @param String $filename (optional) |
3226
|
|
|
|
|
|
|
# @param String $storage (optional) |
3227
|
|
|
|
|
|
|
# @param String $folder (optional) |
3228
|
|
|
|
|
|
|
# @param Boolean $useWholeParagraphAsRegion (optional) |
3229
|
|
|
|
|
|
|
# @param Boolean $withRegions (optional) |
3230
|
|
|
|
|
|
|
# @param File $file (required) |
3231
|
|
|
|
|
|
|
# @return DocumentResponse |
3232
|
|
|
|
|
|
|
# |
3233
|
|
|
|
|
|
|
sub PostExecuteTemplate { |
3234
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3235
|
|
|
|
|
|
|
|
3236
|
|
|
|
|
|
|
|
3237
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3238
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3239
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostExecuteTemplate"); |
3240
|
|
|
|
|
|
|
} |
3241
|
|
|
|
|
|
|
|
3242
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
3243
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
3244
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PostExecuteTemplate"); |
3245
|
|
|
|
|
|
|
} |
3246
|
|
|
|
|
|
|
|
3247
|
|
|
|
|
|
|
|
3248
|
|
|
|
|
|
|
# parse inputs |
3249
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/executeTemplate/?appSid={appSid}&cleanup={cleanup}&filename={filename}&storage={storage}&folder={folder}&useWholeParagraphAsRegion={useWholeParagraphAsRegion}&withRegions={withRegions}'; |
3250
|
|
|
|
|
|
|
|
3251
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3252
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3253
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3254
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3255
|
|
|
|
|
|
|
|
3256
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
3257
|
0
|
|
|
|
|
|
my $query_params = {}; |
3258
|
0
|
|
|
|
|
|
my $header_params = {}; |
3259
|
0
|
|
|
|
|
|
my $form_params = {}; |
3260
|
|
|
|
|
|
|
|
3261
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3262
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3263
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3264
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3265
|
|
|
|
|
|
|
} |
3266
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
3267
|
|
|
|
|
|
|
|
3268
|
|
|
|
|
|
|
# query params |
3269
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3270
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3271
|
|
|
|
|
|
|
}else{ |
3272
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3273
|
|
|
|
|
|
|
}# query params |
3274
|
0
|
0
|
|
|
|
|
if ( exists $args{'cleanup'}) { |
3275
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{cleanup}\E/$args{'cleanup'}/g; |
3276
|
|
|
|
|
|
|
}else{ |
3277
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]cleanup.*?(?=&|\?|$)//g; |
3278
|
|
|
|
|
|
|
}# query params |
3279
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
3280
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
3281
|
|
|
|
|
|
|
}else{ |
3282
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
3283
|
|
|
|
|
|
|
}# query params |
3284
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3285
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3286
|
|
|
|
|
|
|
}else{ |
3287
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3288
|
|
|
|
|
|
|
}# query params |
3289
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3290
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3291
|
|
|
|
|
|
|
}else{ |
3292
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3293
|
|
|
|
|
|
|
}# query params |
3294
|
0
|
0
|
|
|
|
|
if ( exists $args{'useWholeParagraphAsRegion'}) { |
3295
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useWholeParagraphAsRegion}\E/$args{'useWholeParagraphAsRegion'}/g; |
3296
|
|
|
|
|
|
|
}else{ |
3297
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useWholeParagraphAsRegion.*?(?=&|\?|$)//g; |
3298
|
|
|
|
|
|
|
}# query params |
3299
|
0
|
0
|
|
|
|
|
if ( exists $args{'withRegions'}) { |
3300
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{withRegions}\E/$args{'withRegions'}/g; |
3301
|
|
|
|
|
|
|
}else{ |
3302
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]withRegions.*?(?=&|\?|$)//g; |
3303
|
|
|
|
|
|
|
} |
3304
|
|
|
|
|
|
|
|
3305
|
|
|
|
|
|
|
|
3306
|
0
|
|
|
|
|
|
my $_body_data; |
3307
|
|
|
|
|
|
|
# form params |
3308
|
0
|
0
|
|
|
|
|
if ( exists $args{'file'} ) { |
3309
|
|
|
|
|
|
|
|
3310
|
0
|
|
|
|
|
|
$_body_data = read_file( $args{'file'} , binmode => ':raw' ); |
3311
|
|
|
|
|
|
|
|
3312
|
|
|
|
|
|
|
|
3313
|
|
|
|
|
|
|
} |
3314
|
|
|
|
|
|
|
|
3315
|
|
|
|
|
|
|
|
3316
|
|
|
|
|
|
|
|
3317
|
|
|
|
|
|
|
# authentication setting, if any |
3318
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3319
|
|
|
|
|
|
|
|
3320
|
|
|
|
|
|
|
# make the API Call |
3321
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3322
|
|
|
|
|
|
|
$query_params, $form_params, |
3323
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3324
|
0
|
0
|
|
|
|
|
if (!$response) { |
3325
|
0
|
|
|
|
|
|
return; |
3326
|
|
|
|
|
|
|
} |
3327
|
|
|
|
|
|
|
|
3328
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3329
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3330
|
|
|
|
|
|
|
} |
3331
|
|
|
|
|
|
|
|
3332
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
3333
|
0
|
|
|
|
|
|
return $_response_object; |
3334
|
|
|
|
|
|
|
|
3335
|
|
|
|
|
|
|
} |
3336
|
|
|
|
|
|
|
# |
3337
|
|
|
|
|
|
|
# DeleteDocumentFields |
3338
|
|
|
|
|
|
|
# |
3339
|
|
|
|
|
|
|
# |
3340
|
|
|
|
|
|
|
# |
3341
|
|
|
|
|
|
|
# @param String $name (required) |
3342
|
|
|
|
|
|
|
# @param String $storage (optional) |
3343
|
|
|
|
|
|
|
# @param String $folder (optional) |
3344
|
|
|
|
|
|
|
# @return SaaSposeResponse |
3345
|
|
|
|
|
|
|
# |
3346
|
|
|
|
|
|
|
sub DeleteDocumentFields { |
3347
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3348
|
|
|
|
|
|
|
|
3349
|
|
|
|
|
|
|
|
3350
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3351
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3352
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteDocumentFields"); |
3353
|
|
|
|
|
|
|
} |
3354
|
|
|
|
|
|
|
|
3355
|
|
|
|
|
|
|
|
3356
|
|
|
|
|
|
|
# parse inputs |
3357
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; |
3358
|
|
|
|
|
|
|
|
3359
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3360
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3361
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3362
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3363
|
|
|
|
|
|
|
|
3364
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
3365
|
0
|
|
|
|
|
|
my $query_params = {}; |
3366
|
0
|
|
|
|
|
|
my $header_params = {}; |
3367
|
0
|
|
|
|
|
|
my $form_params = {}; |
3368
|
|
|
|
|
|
|
|
3369
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3370
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3371
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3372
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3373
|
|
|
|
|
|
|
} |
3374
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3375
|
|
|
|
|
|
|
|
3376
|
|
|
|
|
|
|
# query params |
3377
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3378
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3379
|
|
|
|
|
|
|
}else{ |
3380
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3381
|
|
|
|
|
|
|
}# query params |
3382
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3383
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3384
|
|
|
|
|
|
|
}else{ |
3385
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3386
|
|
|
|
|
|
|
}# query params |
3387
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3388
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3389
|
|
|
|
|
|
|
}else{ |
3390
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3391
|
|
|
|
|
|
|
} |
3392
|
|
|
|
|
|
|
|
3393
|
|
|
|
|
|
|
|
3394
|
0
|
|
|
|
|
|
my $_body_data; |
3395
|
|
|
|
|
|
|
|
3396
|
|
|
|
|
|
|
|
3397
|
|
|
|
|
|
|
|
3398
|
|
|
|
|
|
|
|
3399
|
|
|
|
|
|
|
# authentication setting, if any |
3400
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3401
|
|
|
|
|
|
|
|
3402
|
|
|
|
|
|
|
# make the API Call |
3403
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3404
|
|
|
|
|
|
|
$query_params, $form_params, |
3405
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3406
|
0
|
0
|
|
|
|
|
if (!$response) { |
3407
|
0
|
|
|
|
|
|
return; |
3408
|
|
|
|
|
|
|
} |
3409
|
|
|
|
|
|
|
|
3410
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3411
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3412
|
|
|
|
|
|
|
} |
3413
|
|
|
|
|
|
|
|
3414
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
3415
|
0
|
|
|
|
|
|
return $_response_object; |
3416
|
|
|
|
|
|
|
|
3417
|
|
|
|
|
|
|
} |
3418
|
|
|
|
|
|
|
# |
3419
|
|
|
|
|
|
|
# DeleteHeadersFooters |
3420
|
|
|
|
|
|
|
# |
3421
|
|
|
|
|
|
|
# |
3422
|
|
|
|
|
|
|
# |
3423
|
|
|
|
|
|
|
# @param String $name (required) |
3424
|
|
|
|
|
|
|
# @param String $headersFootersTypes (optional) |
3425
|
|
|
|
|
|
|
# @param String $filename (optional) |
3426
|
|
|
|
|
|
|
# @param String $storage (optional) |
3427
|
|
|
|
|
|
|
# @param String $folder (optional) |
3428
|
|
|
|
|
|
|
# @return SaaSposeResponse |
3429
|
|
|
|
|
|
|
# |
3430
|
|
|
|
|
|
|
sub DeleteHeadersFooters { |
3431
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3432
|
|
|
|
|
|
|
|
3433
|
|
|
|
|
|
|
|
3434
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3435
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3436
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteHeadersFooters"); |
3437
|
|
|
|
|
|
|
} |
3438
|
|
|
|
|
|
|
|
3439
|
|
|
|
|
|
|
|
3440
|
|
|
|
|
|
|
# parse inputs |
3441
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/headersfooters/?appSid={appSid}&headersFootersTypes={headersFootersTypes}&filename={filename}&storage={storage}&folder={folder}'; |
3442
|
|
|
|
|
|
|
|
3443
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3444
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3445
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3446
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3447
|
|
|
|
|
|
|
|
3448
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
3449
|
0
|
|
|
|
|
|
my $query_params = {}; |
3450
|
0
|
|
|
|
|
|
my $header_params = {}; |
3451
|
0
|
|
|
|
|
|
my $form_params = {}; |
3452
|
|
|
|
|
|
|
|
3453
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3454
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3455
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3456
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3457
|
|
|
|
|
|
|
} |
3458
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3459
|
|
|
|
|
|
|
|
3460
|
|
|
|
|
|
|
# query params |
3461
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3462
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3463
|
|
|
|
|
|
|
}else{ |
3464
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3465
|
|
|
|
|
|
|
}# query params |
3466
|
0
|
0
|
|
|
|
|
if ( exists $args{'headersFootersTypes'}) { |
3467
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{headersFootersTypes}\E/$args{'headersFootersTypes'}/g; |
3468
|
|
|
|
|
|
|
}else{ |
3469
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]headersFootersTypes.*?(?=&|\?|$)//g; |
3470
|
|
|
|
|
|
|
}# query params |
3471
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
3472
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
3473
|
|
|
|
|
|
|
}else{ |
3474
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
3475
|
|
|
|
|
|
|
}# query params |
3476
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3477
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3478
|
|
|
|
|
|
|
}else{ |
3479
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3480
|
|
|
|
|
|
|
}# query params |
3481
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3482
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3483
|
|
|
|
|
|
|
}else{ |
3484
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3485
|
|
|
|
|
|
|
} |
3486
|
|
|
|
|
|
|
|
3487
|
|
|
|
|
|
|
|
3488
|
0
|
|
|
|
|
|
my $_body_data; |
3489
|
|
|
|
|
|
|
|
3490
|
|
|
|
|
|
|
|
3491
|
|
|
|
|
|
|
|
3492
|
|
|
|
|
|
|
|
3493
|
|
|
|
|
|
|
# authentication setting, if any |
3494
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3495
|
|
|
|
|
|
|
|
3496
|
|
|
|
|
|
|
# make the API Call |
3497
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3498
|
|
|
|
|
|
|
$query_params, $form_params, |
3499
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3500
|
0
|
0
|
|
|
|
|
if (!$response) { |
3501
|
0
|
|
|
|
|
|
return; |
3502
|
|
|
|
|
|
|
} |
3503
|
|
|
|
|
|
|
|
3504
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3505
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3506
|
|
|
|
|
|
|
} |
3507
|
|
|
|
|
|
|
|
3508
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
3509
|
0
|
|
|
|
|
|
return $_response_object; |
3510
|
|
|
|
|
|
|
|
3511
|
|
|
|
|
|
|
} |
3512
|
|
|
|
|
|
|
# |
3513
|
|
|
|
|
|
|
# GetDocumentHyperlinks |
3514
|
|
|
|
|
|
|
# |
3515
|
|
|
|
|
|
|
# |
3516
|
|
|
|
|
|
|
# |
3517
|
|
|
|
|
|
|
# @param String $name (required) |
3518
|
|
|
|
|
|
|
# @param String $storage (optional) |
3519
|
|
|
|
|
|
|
# @param String $folder (optional) |
3520
|
|
|
|
|
|
|
# @return HyperlinksResponse |
3521
|
|
|
|
|
|
|
# |
3522
|
|
|
|
|
|
|
sub GetDocumentHyperlinks { |
3523
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3524
|
|
|
|
|
|
|
|
3525
|
|
|
|
|
|
|
|
3526
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3527
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3528
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentHyperlinks"); |
3529
|
|
|
|
|
|
|
} |
3530
|
|
|
|
|
|
|
|
3531
|
|
|
|
|
|
|
|
3532
|
|
|
|
|
|
|
# parse inputs |
3533
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/hyperlinks/?appSid={appSid}&storage={storage}&folder={folder}'; |
3534
|
|
|
|
|
|
|
|
3535
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3536
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3537
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3538
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3539
|
|
|
|
|
|
|
|
3540
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
3541
|
0
|
|
|
|
|
|
my $query_params = {}; |
3542
|
0
|
|
|
|
|
|
my $header_params = {}; |
3543
|
0
|
|
|
|
|
|
my $form_params = {}; |
3544
|
|
|
|
|
|
|
|
3545
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3546
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3547
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3548
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3549
|
|
|
|
|
|
|
} |
3550
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3551
|
|
|
|
|
|
|
|
3552
|
|
|
|
|
|
|
# query params |
3553
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3554
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3555
|
|
|
|
|
|
|
}else{ |
3556
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3557
|
|
|
|
|
|
|
}# query params |
3558
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3559
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3560
|
|
|
|
|
|
|
}else{ |
3561
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3562
|
|
|
|
|
|
|
}# query params |
3563
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3564
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3565
|
|
|
|
|
|
|
}else{ |
3566
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3567
|
|
|
|
|
|
|
} |
3568
|
|
|
|
|
|
|
|
3569
|
|
|
|
|
|
|
|
3570
|
0
|
|
|
|
|
|
my $_body_data; |
3571
|
|
|
|
|
|
|
|
3572
|
|
|
|
|
|
|
|
3573
|
|
|
|
|
|
|
|
3574
|
|
|
|
|
|
|
|
3575
|
|
|
|
|
|
|
# authentication setting, if any |
3576
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3577
|
|
|
|
|
|
|
|
3578
|
|
|
|
|
|
|
# make the API Call |
3579
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3580
|
|
|
|
|
|
|
$query_params, $form_params, |
3581
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3582
|
0
|
0
|
|
|
|
|
if (!$response) { |
3583
|
0
|
|
|
|
|
|
return; |
3584
|
|
|
|
|
|
|
} |
3585
|
|
|
|
|
|
|
|
3586
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3587
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3588
|
|
|
|
|
|
|
} |
3589
|
|
|
|
|
|
|
|
3590
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'HyperlinksResponse', $response->header('content-type')); |
3591
|
0
|
|
|
|
|
|
return $_response_object; |
3592
|
|
|
|
|
|
|
|
3593
|
|
|
|
|
|
|
} |
3594
|
|
|
|
|
|
|
# |
3595
|
|
|
|
|
|
|
# GetDocumentHyperlinkByIndex |
3596
|
|
|
|
|
|
|
# |
3597
|
|
|
|
|
|
|
# |
3598
|
|
|
|
|
|
|
# |
3599
|
|
|
|
|
|
|
# @param String $name (required) |
3600
|
|
|
|
|
|
|
# @param String $hyperlinkIndex (required) |
3601
|
|
|
|
|
|
|
# @param String $storage (optional) |
3602
|
|
|
|
|
|
|
# @param String $folder (optional) |
3603
|
|
|
|
|
|
|
# @return HyperlinkResponse |
3604
|
|
|
|
|
|
|
# |
3605
|
|
|
|
|
|
|
sub GetDocumentHyperlinkByIndex { |
3606
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3607
|
|
|
|
|
|
|
|
3608
|
|
|
|
|
|
|
|
3609
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3610
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3611
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentHyperlinkByIndex"); |
3612
|
|
|
|
|
|
|
} |
3613
|
|
|
|
|
|
|
|
3614
|
|
|
|
|
|
|
# verify the required parameter 'hyperlinkIndex' is set |
3615
|
0
|
0
|
|
|
|
|
unless (exists $args{'hyperlinkIndex'}) { |
3616
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'hyperlinkIndex' when calling GetDocumentHyperlinkByIndex"); |
3617
|
|
|
|
|
|
|
} |
3618
|
|
|
|
|
|
|
|
3619
|
|
|
|
|
|
|
|
3620
|
|
|
|
|
|
|
# parse inputs |
3621
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/hyperlinks/{hyperlinkIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
3622
|
|
|
|
|
|
|
|
3623
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3624
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3625
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3626
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3627
|
|
|
|
|
|
|
|
3628
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
3629
|
0
|
|
|
|
|
|
my $query_params = {}; |
3630
|
0
|
|
|
|
|
|
my $header_params = {}; |
3631
|
0
|
|
|
|
|
|
my $form_params = {}; |
3632
|
|
|
|
|
|
|
|
3633
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3634
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3635
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3636
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3637
|
|
|
|
|
|
|
} |
3638
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3639
|
|
|
|
|
|
|
|
3640
|
|
|
|
|
|
|
# query params |
3641
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3642
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3643
|
|
|
|
|
|
|
}else{ |
3644
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3645
|
|
|
|
|
|
|
}# query params |
3646
|
0
|
0
|
|
|
|
|
if ( exists $args{'hyperlinkIndex'}) { |
3647
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{hyperlinkIndex}\E/$args{'hyperlinkIndex'}/g; |
3648
|
|
|
|
|
|
|
}else{ |
3649
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]hyperlinkIndex.*?(?=&|\?|$)//g; |
3650
|
|
|
|
|
|
|
}# query params |
3651
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3652
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3653
|
|
|
|
|
|
|
}else{ |
3654
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3655
|
|
|
|
|
|
|
}# query params |
3656
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3657
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3658
|
|
|
|
|
|
|
}else{ |
3659
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3660
|
|
|
|
|
|
|
} |
3661
|
|
|
|
|
|
|
|
3662
|
|
|
|
|
|
|
|
3663
|
0
|
|
|
|
|
|
my $_body_data; |
3664
|
|
|
|
|
|
|
|
3665
|
|
|
|
|
|
|
|
3666
|
|
|
|
|
|
|
|
3667
|
|
|
|
|
|
|
|
3668
|
|
|
|
|
|
|
# authentication setting, if any |
3669
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3670
|
|
|
|
|
|
|
|
3671
|
|
|
|
|
|
|
# make the API Call |
3672
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3673
|
|
|
|
|
|
|
$query_params, $form_params, |
3674
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3675
|
0
|
0
|
|
|
|
|
if (!$response) { |
3676
|
0
|
|
|
|
|
|
return; |
3677
|
|
|
|
|
|
|
} |
3678
|
|
|
|
|
|
|
|
3679
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3680
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3681
|
|
|
|
|
|
|
} |
3682
|
|
|
|
|
|
|
|
3683
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'HyperlinkResponse', $response->header('content-type')); |
3684
|
0
|
|
|
|
|
|
return $_response_object; |
3685
|
|
|
|
|
|
|
|
3686
|
|
|
|
|
|
|
} |
3687
|
|
|
|
|
|
|
# |
3688
|
|
|
|
|
|
|
# PostInsertPageNumbers |
3689
|
|
|
|
|
|
|
# |
3690
|
|
|
|
|
|
|
# |
3691
|
|
|
|
|
|
|
# |
3692
|
|
|
|
|
|
|
# @param String $name (required) |
3693
|
|
|
|
|
|
|
# @param String $filename (optional) |
3694
|
|
|
|
|
|
|
# @param String $storage (optional) |
3695
|
|
|
|
|
|
|
# @param String $folder (optional) |
3696
|
|
|
|
|
|
|
# @param PageNumber $body (required) |
3697
|
|
|
|
|
|
|
# @return DocumentResponse |
3698
|
|
|
|
|
|
|
# |
3699
|
|
|
|
|
|
|
sub PostInsertPageNumbers { |
3700
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3701
|
|
|
|
|
|
|
|
3702
|
|
|
|
|
|
|
|
3703
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3704
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3705
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostInsertPageNumbers"); |
3706
|
|
|
|
|
|
|
} |
3707
|
|
|
|
|
|
|
|
3708
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
3709
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
3710
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostInsertPageNumbers"); |
3711
|
|
|
|
|
|
|
} |
3712
|
|
|
|
|
|
|
|
3713
|
|
|
|
|
|
|
|
3714
|
|
|
|
|
|
|
# parse inputs |
3715
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/insertPageNumbers/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
3716
|
|
|
|
|
|
|
|
3717
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3718
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3719
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3720
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3721
|
|
|
|
|
|
|
|
3722
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
3723
|
0
|
|
|
|
|
|
my $query_params = {}; |
3724
|
0
|
|
|
|
|
|
my $header_params = {}; |
3725
|
0
|
|
|
|
|
|
my $form_params = {}; |
3726
|
|
|
|
|
|
|
|
3727
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3728
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3729
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3730
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3731
|
|
|
|
|
|
|
} |
3732
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3733
|
|
|
|
|
|
|
|
3734
|
|
|
|
|
|
|
# query params |
3735
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3736
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3737
|
|
|
|
|
|
|
}else{ |
3738
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3739
|
|
|
|
|
|
|
}# query params |
3740
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
3741
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
3742
|
|
|
|
|
|
|
}else{ |
3743
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
3744
|
|
|
|
|
|
|
}# query params |
3745
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3746
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3747
|
|
|
|
|
|
|
}else{ |
3748
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3749
|
|
|
|
|
|
|
}# query params |
3750
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3751
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3752
|
|
|
|
|
|
|
}else{ |
3753
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3754
|
|
|
|
|
|
|
} |
3755
|
|
|
|
|
|
|
|
3756
|
|
|
|
|
|
|
|
3757
|
0
|
|
|
|
|
|
my $_body_data; |
3758
|
|
|
|
|
|
|
|
3759
|
|
|
|
|
|
|
|
3760
|
|
|
|
|
|
|
# body params |
3761
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
3762
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
3763
|
|
|
|
|
|
|
} |
3764
|
|
|
|
|
|
|
|
3765
|
|
|
|
|
|
|
# authentication setting, if any |
3766
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3767
|
|
|
|
|
|
|
|
3768
|
|
|
|
|
|
|
# make the API Call |
3769
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3770
|
|
|
|
|
|
|
$query_params, $form_params, |
3771
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3772
|
0
|
0
|
|
|
|
|
if (!$response) { |
3773
|
0
|
|
|
|
|
|
return; |
3774
|
|
|
|
|
|
|
} |
3775
|
|
|
|
|
|
|
|
3776
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3777
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3778
|
|
|
|
|
|
|
} |
3779
|
|
|
|
|
|
|
|
3780
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
3781
|
0
|
|
|
|
|
|
return $_response_object; |
3782
|
|
|
|
|
|
|
|
3783
|
|
|
|
|
|
|
} |
3784
|
|
|
|
|
|
|
# |
3785
|
|
|
|
|
|
|
# PostInsertWatermarkImage |
3786
|
|
|
|
|
|
|
# |
3787
|
|
|
|
|
|
|
# |
3788
|
|
|
|
|
|
|
# |
3789
|
|
|
|
|
|
|
# @param String $name (required) |
3790
|
|
|
|
|
|
|
# @param String $filename (optional) |
3791
|
|
|
|
|
|
|
# @param String $rotationAngle (optional) |
3792
|
|
|
|
|
|
|
# @param String $image (optional) |
3793
|
|
|
|
|
|
|
# @param String $storage (optional) |
3794
|
|
|
|
|
|
|
# @param String $folder (optional) |
3795
|
|
|
|
|
|
|
# @param File $file (required) |
3796
|
|
|
|
|
|
|
# @return DocumentResponse |
3797
|
|
|
|
|
|
|
# |
3798
|
|
|
|
|
|
|
sub PostInsertWatermarkImage { |
3799
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3800
|
|
|
|
|
|
|
|
3801
|
|
|
|
|
|
|
|
3802
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3803
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3804
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostInsertWatermarkImage"); |
3805
|
|
|
|
|
|
|
} |
3806
|
|
|
|
|
|
|
|
3807
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
3808
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
3809
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PostInsertWatermarkImage"); |
3810
|
|
|
|
|
|
|
} |
3811
|
|
|
|
|
|
|
|
3812
|
|
|
|
|
|
|
|
3813
|
|
|
|
|
|
|
# parse inputs |
3814
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/insertWatermarkImage/?appSid={appSid}&filename={filename}&rotationAngle={rotationAngle}&image={image}&storage={storage}&folder={folder}'; |
3815
|
|
|
|
|
|
|
|
3816
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3817
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3818
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3819
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3820
|
|
|
|
|
|
|
|
3821
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
3822
|
0
|
|
|
|
|
|
my $query_params = {}; |
3823
|
0
|
|
|
|
|
|
my $header_params = {}; |
3824
|
0
|
|
|
|
|
|
my $form_params = {}; |
3825
|
|
|
|
|
|
|
|
3826
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3827
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3828
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3829
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3830
|
|
|
|
|
|
|
} |
3831
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
3832
|
|
|
|
|
|
|
|
3833
|
|
|
|
|
|
|
# query params |
3834
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3835
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3836
|
|
|
|
|
|
|
}else{ |
3837
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3838
|
|
|
|
|
|
|
}# query params |
3839
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
3840
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
3841
|
|
|
|
|
|
|
}else{ |
3842
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
3843
|
|
|
|
|
|
|
}# query params |
3844
|
0
|
0
|
|
|
|
|
if ( exists $args{'rotationAngle'}) { |
3845
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{rotationAngle}\E/$args{'rotationAngle'}/g; |
3846
|
|
|
|
|
|
|
}else{ |
3847
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]rotationAngle.*?(?=&|\?|$)//g; |
3848
|
|
|
|
|
|
|
}# query params |
3849
|
0
|
0
|
|
|
|
|
if ( exists $args{'image'}) { |
3850
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{image}\E/$args{'image'}/g; |
3851
|
|
|
|
|
|
|
}else{ |
3852
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]image.*?(?=&|\?|$)//g; |
3853
|
|
|
|
|
|
|
}# query params |
3854
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3855
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3856
|
|
|
|
|
|
|
}else{ |
3857
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3858
|
|
|
|
|
|
|
}# query params |
3859
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3860
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3861
|
|
|
|
|
|
|
}else{ |
3862
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3863
|
|
|
|
|
|
|
} |
3864
|
|
|
|
|
|
|
|
3865
|
|
|
|
|
|
|
|
3866
|
0
|
|
|
|
|
|
my $_body_data; |
3867
|
|
|
|
|
|
|
# form params |
3868
|
0
|
0
|
|
|
|
|
if ( exists $args{'file'} ) { |
3869
|
|
|
|
|
|
|
|
3870
|
0
|
|
|
|
|
|
$_body_data = read_file( $args{'file'} , binmode => ':raw' ); |
3871
|
|
|
|
|
|
|
|
3872
|
|
|
|
|
|
|
|
3873
|
|
|
|
|
|
|
} |
3874
|
|
|
|
|
|
|
|
3875
|
|
|
|
|
|
|
|
3876
|
|
|
|
|
|
|
|
3877
|
|
|
|
|
|
|
# authentication setting, if any |
3878
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3879
|
|
|
|
|
|
|
|
3880
|
|
|
|
|
|
|
# make the API Call |
3881
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3882
|
|
|
|
|
|
|
$query_params, $form_params, |
3883
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3884
|
0
|
0
|
|
|
|
|
if (!$response) { |
3885
|
0
|
|
|
|
|
|
return; |
3886
|
|
|
|
|
|
|
} |
3887
|
|
|
|
|
|
|
|
3888
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3889
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3890
|
|
|
|
|
|
|
} |
3891
|
|
|
|
|
|
|
|
3892
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
3893
|
0
|
|
|
|
|
|
return $_response_object; |
3894
|
|
|
|
|
|
|
|
3895
|
|
|
|
|
|
|
} |
3896
|
|
|
|
|
|
|
# |
3897
|
|
|
|
|
|
|
# PostInsertWatermarkText |
3898
|
|
|
|
|
|
|
# |
3899
|
|
|
|
|
|
|
# |
3900
|
|
|
|
|
|
|
# |
3901
|
|
|
|
|
|
|
# @param String $name (required) |
3902
|
|
|
|
|
|
|
# @param String $text (optional) |
3903
|
|
|
|
|
|
|
# @param String $rotationAngle (optional) |
3904
|
|
|
|
|
|
|
# @param String $filename (optional) |
3905
|
|
|
|
|
|
|
# @param String $storage (optional) |
3906
|
|
|
|
|
|
|
# @param String $folder (optional) |
3907
|
|
|
|
|
|
|
# @param WatermarkText $body (required) |
3908
|
|
|
|
|
|
|
# @return DocumentResponse |
3909
|
|
|
|
|
|
|
# |
3910
|
|
|
|
|
|
|
sub PostInsertWatermarkText { |
3911
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
3912
|
|
|
|
|
|
|
|
3913
|
|
|
|
|
|
|
|
3914
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
3915
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
3916
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostInsertWatermarkText"); |
3917
|
|
|
|
|
|
|
} |
3918
|
|
|
|
|
|
|
|
3919
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
3920
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
3921
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostInsertWatermarkText"); |
3922
|
|
|
|
|
|
|
} |
3923
|
|
|
|
|
|
|
|
3924
|
|
|
|
|
|
|
|
3925
|
|
|
|
|
|
|
# parse inputs |
3926
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/insertWatermarkText/?appSid={appSid}&text={text}&rotationAngle={rotationAngle}&filename={filename}&storage={storage}&folder={folder}'; |
3927
|
|
|
|
|
|
|
|
3928
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
3929
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
3930
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
3931
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
3932
|
|
|
|
|
|
|
|
3933
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
3934
|
0
|
|
|
|
|
|
my $query_params = {}; |
3935
|
0
|
|
|
|
|
|
my $header_params = {}; |
3936
|
0
|
|
|
|
|
|
my $form_params = {}; |
3937
|
|
|
|
|
|
|
|
3938
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
3939
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
3940
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
3941
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
3942
|
|
|
|
|
|
|
} |
3943
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
3944
|
|
|
|
|
|
|
|
3945
|
|
|
|
|
|
|
# query params |
3946
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
3947
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
3948
|
|
|
|
|
|
|
}else{ |
3949
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
3950
|
|
|
|
|
|
|
}# query params |
3951
|
0
|
0
|
|
|
|
|
if ( exists $args{'text'}) { |
3952
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{text}\E/$args{'text'}/g; |
3953
|
|
|
|
|
|
|
}else{ |
3954
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]text.*?(?=&|\?|$)//g; |
3955
|
|
|
|
|
|
|
}# query params |
3956
|
0
|
0
|
|
|
|
|
if ( exists $args{'rotationAngle'}) { |
3957
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{rotationAngle}\E/$args{'rotationAngle'}/g; |
3958
|
|
|
|
|
|
|
}else{ |
3959
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]rotationAngle.*?(?=&|\?|$)//g; |
3960
|
|
|
|
|
|
|
}# query params |
3961
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
3962
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
3963
|
|
|
|
|
|
|
}else{ |
3964
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
3965
|
|
|
|
|
|
|
}# query params |
3966
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
3967
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
3968
|
|
|
|
|
|
|
}else{ |
3969
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
3970
|
|
|
|
|
|
|
}# query params |
3971
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
3972
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
3973
|
|
|
|
|
|
|
}else{ |
3974
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
3975
|
|
|
|
|
|
|
} |
3976
|
|
|
|
|
|
|
|
3977
|
|
|
|
|
|
|
|
3978
|
0
|
|
|
|
|
|
my $_body_data; |
3979
|
|
|
|
|
|
|
|
3980
|
|
|
|
|
|
|
|
3981
|
|
|
|
|
|
|
# body params |
3982
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
3983
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
3984
|
|
|
|
|
|
|
} |
3985
|
|
|
|
|
|
|
|
3986
|
|
|
|
|
|
|
# authentication setting, if any |
3987
|
0
|
|
|
|
|
|
my $auth_settings = []; |
3988
|
|
|
|
|
|
|
|
3989
|
|
|
|
|
|
|
# make the API Call |
3990
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
3991
|
|
|
|
|
|
|
$query_params, $form_params, |
3992
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
3993
|
0
|
0
|
|
|
|
|
if (!$response) { |
3994
|
0
|
|
|
|
|
|
return; |
3995
|
|
|
|
|
|
|
} |
3996
|
|
|
|
|
|
|
|
3997
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
3998
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
3999
|
|
|
|
|
|
|
} |
4000
|
|
|
|
|
|
|
|
4001
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
4002
|
0
|
|
|
|
|
|
return $_response_object; |
4003
|
|
|
|
|
|
|
|
4004
|
|
|
|
|
|
|
} |
4005
|
|
|
|
|
|
|
# |
4006
|
|
|
|
|
|
|
# DeleteDocumentMacros |
4007
|
|
|
|
|
|
|
# |
4008
|
|
|
|
|
|
|
# |
4009
|
|
|
|
|
|
|
# |
4010
|
|
|
|
|
|
|
# @param String $name (required) |
4011
|
|
|
|
|
|
|
# @param String $storage (optional) |
4012
|
|
|
|
|
|
|
# @param String $folder (optional) |
4013
|
|
|
|
|
|
|
# @return SaaSposeResponse |
4014
|
|
|
|
|
|
|
# |
4015
|
|
|
|
|
|
|
sub DeleteDocumentMacros { |
4016
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4017
|
|
|
|
|
|
|
|
4018
|
|
|
|
|
|
|
|
4019
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4020
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4021
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteDocumentMacros"); |
4022
|
|
|
|
|
|
|
} |
4023
|
|
|
|
|
|
|
|
4024
|
|
|
|
|
|
|
|
4025
|
|
|
|
|
|
|
# parse inputs |
4026
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/macros/?appSid={appSid}&storage={storage}&folder={folder}'; |
4027
|
|
|
|
|
|
|
|
4028
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4029
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4030
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4031
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4032
|
|
|
|
|
|
|
|
4033
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
4034
|
0
|
|
|
|
|
|
my $query_params = {}; |
4035
|
0
|
|
|
|
|
|
my $header_params = {}; |
4036
|
0
|
|
|
|
|
|
my $form_params = {}; |
4037
|
|
|
|
|
|
|
|
4038
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4039
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4040
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4041
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4042
|
|
|
|
|
|
|
} |
4043
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4044
|
|
|
|
|
|
|
|
4045
|
|
|
|
|
|
|
# query params |
4046
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4047
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4048
|
|
|
|
|
|
|
}else{ |
4049
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4050
|
|
|
|
|
|
|
}# query params |
4051
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4052
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4053
|
|
|
|
|
|
|
}else{ |
4054
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4055
|
|
|
|
|
|
|
}# query params |
4056
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4057
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4058
|
|
|
|
|
|
|
}else{ |
4059
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4060
|
|
|
|
|
|
|
} |
4061
|
|
|
|
|
|
|
|
4062
|
|
|
|
|
|
|
|
4063
|
0
|
|
|
|
|
|
my $_body_data; |
4064
|
|
|
|
|
|
|
|
4065
|
|
|
|
|
|
|
|
4066
|
|
|
|
|
|
|
|
4067
|
|
|
|
|
|
|
|
4068
|
|
|
|
|
|
|
# authentication setting, if any |
4069
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4070
|
|
|
|
|
|
|
|
4071
|
|
|
|
|
|
|
# make the API Call |
4072
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4073
|
|
|
|
|
|
|
$query_params, $form_params, |
4074
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4075
|
0
|
0
|
|
|
|
|
if (!$response) { |
4076
|
0
|
|
|
|
|
|
return; |
4077
|
|
|
|
|
|
|
} |
4078
|
|
|
|
|
|
|
|
4079
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4080
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4081
|
|
|
|
|
|
|
} |
4082
|
|
|
|
|
|
|
|
4083
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
4084
|
0
|
|
|
|
|
|
return $_response_object; |
4085
|
|
|
|
|
|
|
|
4086
|
|
|
|
|
|
|
} |
4087
|
|
|
|
|
|
|
# |
4088
|
|
|
|
|
|
|
# GetDocumentFieldNames |
4089
|
|
|
|
|
|
|
# |
4090
|
|
|
|
|
|
|
# |
4091
|
|
|
|
|
|
|
# |
4092
|
|
|
|
|
|
|
# @param String $name (required) |
4093
|
|
|
|
|
|
|
# @param Boolean $useNonMergeFields (optional) |
4094
|
|
|
|
|
|
|
# @param String $storage (optional) |
4095
|
|
|
|
|
|
|
# @param String $folder (optional) |
4096
|
|
|
|
|
|
|
# @return FieldNamesResponse |
4097
|
|
|
|
|
|
|
# |
4098
|
|
|
|
|
|
|
sub GetDocumentFieldNames { |
4099
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4100
|
|
|
|
|
|
|
|
4101
|
|
|
|
|
|
|
|
4102
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4103
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4104
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentFieldNames"); |
4105
|
|
|
|
|
|
|
} |
4106
|
|
|
|
|
|
|
|
4107
|
|
|
|
|
|
|
|
4108
|
|
|
|
|
|
|
# parse inputs |
4109
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/mailMergeFieldNames/?appSid={appSid}&useNonMergeFields={useNonMergeFields}&storage={storage}&folder={folder}'; |
4110
|
|
|
|
|
|
|
|
4111
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4112
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4113
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4114
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4115
|
|
|
|
|
|
|
|
4116
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
4117
|
0
|
|
|
|
|
|
my $query_params = {}; |
4118
|
0
|
|
|
|
|
|
my $header_params = {}; |
4119
|
0
|
|
|
|
|
|
my $form_params = {}; |
4120
|
|
|
|
|
|
|
|
4121
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4122
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4123
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4124
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4125
|
|
|
|
|
|
|
} |
4126
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4127
|
|
|
|
|
|
|
|
4128
|
|
|
|
|
|
|
# query params |
4129
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4130
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4131
|
|
|
|
|
|
|
}else{ |
4132
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4133
|
|
|
|
|
|
|
}# query params |
4134
|
0
|
0
|
|
|
|
|
if ( exists $args{'useNonMergeFields'}) { |
4135
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{useNonMergeFields}\E/$args{'useNonMergeFields'}/g; |
4136
|
|
|
|
|
|
|
}else{ |
4137
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]useNonMergeFields.*?(?=&|\?|$)//g; |
4138
|
|
|
|
|
|
|
}# query params |
4139
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4140
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4141
|
|
|
|
|
|
|
}else{ |
4142
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4143
|
|
|
|
|
|
|
}# query params |
4144
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4145
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4146
|
|
|
|
|
|
|
}else{ |
4147
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4148
|
|
|
|
|
|
|
} |
4149
|
|
|
|
|
|
|
|
4150
|
|
|
|
|
|
|
|
4151
|
0
|
|
|
|
|
|
my $_body_data; |
4152
|
|
|
|
|
|
|
|
4153
|
|
|
|
|
|
|
|
4154
|
|
|
|
|
|
|
|
4155
|
|
|
|
|
|
|
|
4156
|
|
|
|
|
|
|
# authentication setting, if any |
4157
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4158
|
|
|
|
|
|
|
|
4159
|
|
|
|
|
|
|
# make the API Call |
4160
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4161
|
|
|
|
|
|
|
$query_params, $form_params, |
4162
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4163
|
0
|
0
|
|
|
|
|
if (!$response) { |
4164
|
0
|
|
|
|
|
|
return; |
4165
|
|
|
|
|
|
|
} |
4166
|
|
|
|
|
|
|
|
4167
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4168
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4169
|
|
|
|
|
|
|
} |
4170
|
|
|
|
|
|
|
|
4171
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldNamesResponse', $response->header('content-type')); |
4172
|
0
|
|
|
|
|
|
return $_response_object; |
4173
|
|
|
|
|
|
|
|
4174
|
|
|
|
|
|
|
} |
4175
|
|
|
|
|
|
|
# |
4176
|
|
|
|
|
|
|
# GetDocumentParagraphs |
4177
|
|
|
|
|
|
|
# |
4178
|
|
|
|
|
|
|
# |
4179
|
|
|
|
|
|
|
# |
4180
|
|
|
|
|
|
|
# @param String $name (required) |
4181
|
|
|
|
|
|
|
# @param String $storage (optional) |
4182
|
|
|
|
|
|
|
# @param String $folder (optional) |
4183
|
|
|
|
|
|
|
# @return ParagraphLinkCollectionResponse |
4184
|
|
|
|
|
|
|
# |
4185
|
|
|
|
|
|
|
sub GetDocumentParagraphs { |
4186
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4187
|
|
|
|
|
|
|
|
4188
|
|
|
|
|
|
|
|
4189
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4190
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4191
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentParagraphs"); |
4192
|
|
|
|
|
|
|
} |
4193
|
|
|
|
|
|
|
|
4194
|
|
|
|
|
|
|
|
4195
|
|
|
|
|
|
|
# parse inputs |
4196
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/paragraphs/?appSid={appSid}&storage={storage}&folder={folder}'; |
4197
|
|
|
|
|
|
|
|
4198
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4199
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4200
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4201
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4202
|
|
|
|
|
|
|
|
4203
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
4204
|
0
|
|
|
|
|
|
my $query_params = {}; |
4205
|
0
|
|
|
|
|
|
my $header_params = {}; |
4206
|
0
|
|
|
|
|
|
my $form_params = {}; |
4207
|
|
|
|
|
|
|
|
4208
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4209
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4210
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4211
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4212
|
|
|
|
|
|
|
} |
4213
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4214
|
|
|
|
|
|
|
|
4215
|
|
|
|
|
|
|
# query params |
4216
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4217
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4218
|
|
|
|
|
|
|
}else{ |
4219
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4220
|
|
|
|
|
|
|
}# query params |
4221
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4222
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4223
|
|
|
|
|
|
|
}else{ |
4224
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4225
|
|
|
|
|
|
|
}# query params |
4226
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4227
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4228
|
|
|
|
|
|
|
}else{ |
4229
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4230
|
|
|
|
|
|
|
} |
4231
|
|
|
|
|
|
|
|
4232
|
|
|
|
|
|
|
|
4233
|
0
|
|
|
|
|
|
my $_body_data; |
4234
|
|
|
|
|
|
|
|
4235
|
|
|
|
|
|
|
|
4236
|
|
|
|
|
|
|
|
4237
|
|
|
|
|
|
|
|
4238
|
|
|
|
|
|
|
# authentication setting, if any |
4239
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4240
|
|
|
|
|
|
|
|
4241
|
|
|
|
|
|
|
# make the API Call |
4242
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4243
|
|
|
|
|
|
|
$query_params, $form_params, |
4244
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4245
|
0
|
0
|
|
|
|
|
if (!$response) { |
4246
|
0
|
|
|
|
|
|
return; |
4247
|
|
|
|
|
|
|
} |
4248
|
|
|
|
|
|
|
|
4249
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4250
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4251
|
|
|
|
|
|
|
} |
4252
|
|
|
|
|
|
|
|
4253
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ParagraphLinkCollectionResponse', $response->header('content-type')); |
4254
|
0
|
|
|
|
|
|
return $_response_object; |
4255
|
|
|
|
|
|
|
|
4256
|
|
|
|
|
|
|
} |
4257
|
|
|
|
|
|
|
# |
4258
|
|
|
|
|
|
|
# GetDocumentParagraph |
4259
|
|
|
|
|
|
|
# |
4260
|
|
|
|
|
|
|
# |
4261
|
|
|
|
|
|
|
# |
4262
|
|
|
|
|
|
|
# @param String $name (required) |
4263
|
|
|
|
|
|
|
# @param String $index (required) |
4264
|
|
|
|
|
|
|
# @param String $storage (optional) |
4265
|
|
|
|
|
|
|
# @param String $folder (optional) |
4266
|
|
|
|
|
|
|
# @return ParagraphResponse |
4267
|
|
|
|
|
|
|
# |
4268
|
|
|
|
|
|
|
sub GetDocumentParagraph { |
4269
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4270
|
|
|
|
|
|
|
|
4271
|
|
|
|
|
|
|
|
4272
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4273
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4274
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentParagraph"); |
4275
|
|
|
|
|
|
|
} |
4276
|
|
|
|
|
|
|
|
4277
|
|
|
|
|
|
|
# verify the required parameter 'index' is set |
4278
|
0
|
0
|
|
|
|
|
unless (exists $args{'index'}) { |
4279
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'index' when calling GetDocumentParagraph"); |
4280
|
|
|
|
|
|
|
} |
4281
|
|
|
|
|
|
|
|
4282
|
|
|
|
|
|
|
|
4283
|
|
|
|
|
|
|
# parse inputs |
4284
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/paragraphs/{index}/?appSid={appSid}&storage={storage}&folder={folder}'; |
4285
|
|
|
|
|
|
|
|
4286
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4287
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4288
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4289
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4290
|
|
|
|
|
|
|
|
4291
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
4292
|
0
|
|
|
|
|
|
my $query_params = {}; |
4293
|
0
|
|
|
|
|
|
my $header_params = {}; |
4294
|
0
|
|
|
|
|
|
my $form_params = {}; |
4295
|
|
|
|
|
|
|
|
4296
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4297
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4298
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4299
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4300
|
|
|
|
|
|
|
} |
4301
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4302
|
|
|
|
|
|
|
|
4303
|
|
|
|
|
|
|
# query params |
4304
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4305
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4306
|
|
|
|
|
|
|
}else{ |
4307
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4308
|
|
|
|
|
|
|
}# query params |
4309
|
0
|
0
|
|
|
|
|
if ( exists $args{'index'}) { |
4310
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{index}\E/$args{'index'}/g; |
4311
|
|
|
|
|
|
|
}else{ |
4312
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]index.*?(?=&|\?|$)//g; |
4313
|
|
|
|
|
|
|
}# query params |
4314
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4315
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4316
|
|
|
|
|
|
|
}else{ |
4317
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4318
|
|
|
|
|
|
|
}# query params |
4319
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4320
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4321
|
|
|
|
|
|
|
}else{ |
4322
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4323
|
|
|
|
|
|
|
} |
4324
|
|
|
|
|
|
|
|
4325
|
|
|
|
|
|
|
|
4326
|
0
|
|
|
|
|
|
my $_body_data; |
4327
|
|
|
|
|
|
|
|
4328
|
|
|
|
|
|
|
|
4329
|
|
|
|
|
|
|
|
4330
|
|
|
|
|
|
|
|
4331
|
|
|
|
|
|
|
# authentication setting, if any |
4332
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4333
|
|
|
|
|
|
|
|
4334
|
|
|
|
|
|
|
# make the API Call |
4335
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4336
|
|
|
|
|
|
|
$query_params, $form_params, |
4337
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4338
|
0
|
0
|
|
|
|
|
if (!$response) { |
4339
|
0
|
|
|
|
|
|
return; |
4340
|
|
|
|
|
|
|
} |
4341
|
|
|
|
|
|
|
|
4342
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4343
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4344
|
|
|
|
|
|
|
} |
4345
|
|
|
|
|
|
|
|
4346
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ParagraphResponse', $response->header('content-type')); |
4347
|
0
|
|
|
|
|
|
return $_response_object; |
4348
|
|
|
|
|
|
|
|
4349
|
|
|
|
|
|
|
} |
4350
|
|
|
|
|
|
|
# |
4351
|
|
|
|
|
|
|
# DeleteParagraphFields |
4352
|
|
|
|
|
|
|
# |
4353
|
|
|
|
|
|
|
# |
4354
|
|
|
|
|
|
|
# |
4355
|
|
|
|
|
|
|
# @param String $name (required) |
4356
|
|
|
|
|
|
|
# @param String $index (required) |
4357
|
|
|
|
|
|
|
# @param String $storage (optional) |
4358
|
|
|
|
|
|
|
# @param String $folder (optional) |
4359
|
|
|
|
|
|
|
# @return SaaSposeResponse |
4360
|
|
|
|
|
|
|
# |
4361
|
|
|
|
|
|
|
sub DeleteParagraphFields { |
4362
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4363
|
|
|
|
|
|
|
|
4364
|
|
|
|
|
|
|
|
4365
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4366
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4367
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteParagraphFields"); |
4368
|
|
|
|
|
|
|
} |
4369
|
|
|
|
|
|
|
|
4370
|
|
|
|
|
|
|
# verify the required parameter 'index' is set |
4371
|
0
|
0
|
|
|
|
|
unless (exists $args{'index'}) { |
4372
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'index' when calling DeleteParagraphFields"); |
4373
|
|
|
|
|
|
|
} |
4374
|
|
|
|
|
|
|
|
4375
|
|
|
|
|
|
|
|
4376
|
|
|
|
|
|
|
# parse inputs |
4377
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/paragraphs/{index}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; |
4378
|
|
|
|
|
|
|
|
4379
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4380
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4381
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4382
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4383
|
|
|
|
|
|
|
|
4384
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
4385
|
0
|
|
|
|
|
|
my $query_params = {}; |
4386
|
0
|
|
|
|
|
|
my $header_params = {}; |
4387
|
0
|
|
|
|
|
|
my $form_params = {}; |
4388
|
|
|
|
|
|
|
|
4389
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4390
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4391
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4392
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4393
|
|
|
|
|
|
|
} |
4394
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4395
|
|
|
|
|
|
|
|
4396
|
|
|
|
|
|
|
# query params |
4397
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4398
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4399
|
|
|
|
|
|
|
}else{ |
4400
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4401
|
|
|
|
|
|
|
}# query params |
4402
|
0
|
0
|
|
|
|
|
if ( exists $args{'index'}) { |
4403
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{index}\E/$args{'index'}/g; |
4404
|
|
|
|
|
|
|
}else{ |
4405
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]index.*?(?=&|\?|$)//g; |
4406
|
|
|
|
|
|
|
}# query params |
4407
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4408
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4409
|
|
|
|
|
|
|
}else{ |
4410
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4411
|
|
|
|
|
|
|
}# query params |
4412
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4413
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4414
|
|
|
|
|
|
|
}else{ |
4415
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4416
|
|
|
|
|
|
|
} |
4417
|
|
|
|
|
|
|
|
4418
|
|
|
|
|
|
|
|
4419
|
0
|
|
|
|
|
|
my $_body_data; |
4420
|
|
|
|
|
|
|
|
4421
|
|
|
|
|
|
|
|
4422
|
|
|
|
|
|
|
|
4423
|
|
|
|
|
|
|
|
4424
|
|
|
|
|
|
|
# authentication setting, if any |
4425
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4426
|
|
|
|
|
|
|
|
4427
|
|
|
|
|
|
|
# make the API Call |
4428
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4429
|
|
|
|
|
|
|
$query_params, $form_params, |
4430
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4431
|
0
|
0
|
|
|
|
|
if (!$response) { |
4432
|
0
|
|
|
|
|
|
return; |
4433
|
|
|
|
|
|
|
} |
4434
|
|
|
|
|
|
|
|
4435
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4436
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4437
|
|
|
|
|
|
|
} |
4438
|
|
|
|
|
|
|
|
4439
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
4440
|
0
|
|
|
|
|
|
return $_response_object; |
4441
|
|
|
|
|
|
|
|
4442
|
|
|
|
|
|
|
} |
4443
|
|
|
|
|
|
|
# |
4444
|
|
|
|
|
|
|
# GetDocumentParagraphRun |
4445
|
|
|
|
|
|
|
# |
4446
|
|
|
|
|
|
|
# |
4447
|
|
|
|
|
|
|
# |
4448
|
|
|
|
|
|
|
# @param String $name (required) |
4449
|
|
|
|
|
|
|
# @param String $index (required) |
4450
|
|
|
|
|
|
|
# @param String $runIndex (required) |
4451
|
|
|
|
|
|
|
# @param String $storage (optional) |
4452
|
|
|
|
|
|
|
# @param String $folder (optional) |
4453
|
|
|
|
|
|
|
# @return RunResponse |
4454
|
|
|
|
|
|
|
# |
4455
|
|
|
|
|
|
|
sub GetDocumentParagraphRun { |
4456
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4457
|
|
|
|
|
|
|
|
4458
|
|
|
|
|
|
|
|
4459
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4460
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4461
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentParagraphRun"); |
4462
|
|
|
|
|
|
|
} |
4463
|
|
|
|
|
|
|
|
4464
|
|
|
|
|
|
|
# verify the required parameter 'index' is set |
4465
|
0
|
0
|
|
|
|
|
unless (exists $args{'index'}) { |
4466
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'index' when calling GetDocumentParagraphRun"); |
4467
|
|
|
|
|
|
|
} |
4468
|
|
|
|
|
|
|
|
4469
|
|
|
|
|
|
|
# verify the required parameter 'runIndex' is set |
4470
|
0
|
0
|
|
|
|
|
unless (exists $args{'runIndex'}) { |
4471
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'runIndex' when calling GetDocumentParagraphRun"); |
4472
|
|
|
|
|
|
|
} |
4473
|
|
|
|
|
|
|
|
4474
|
|
|
|
|
|
|
|
4475
|
|
|
|
|
|
|
# parse inputs |
4476
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/paragraphs/{index}/runs/{runIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
4477
|
|
|
|
|
|
|
|
4478
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4479
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4480
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4481
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4482
|
|
|
|
|
|
|
|
4483
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
4484
|
0
|
|
|
|
|
|
my $query_params = {}; |
4485
|
0
|
|
|
|
|
|
my $header_params = {}; |
4486
|
0
|
|
|
|
|
|
my $form_params = {}; |
4487
|
|
|
|
|
|
|
|
4488
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4489
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4490
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4491
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4492
|
|
|
|
|
|
|
} |
4493
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4494
|
|
|
|
|
|
|
|
4495
|
|
|
|
|
|
|
# query params |
4496
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4497
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4498
|
|
|
|
|
|
|
}else{ |
4499
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4500
|
|
|
|
|
|
|
}# query params |
4501
|
0
|
0
|
|
|
|
|
if ( exists $args{'index'}) { |
4502
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{index}\E/$args{'index'}/g; |
4503
|
|
|
|
|
|
|
}else{ |
4504
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]index.*?(?=&|\?|$)//g; |
4505
|
|
|
|
|
|
|
}# query params |
4506
|
0
|
0
|
|
|
|
|
if ( exists $args{'runIndex'}) { |
4507
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{runIndex}\E/$args{'runIndex'}/g; |
4508
|
|
|
|
|
|
|
}else{ |
4509
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]runIndex.*?(?=&|\?|$)//g; |
4510
|
|
|
|
|
|
|
}# query params |
4511
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4512
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4513
|
|
|
|
|
|
|
}else{ |
4514
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4515
|
|
|
|
|
|
|
}# query params |
4516
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4517
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4518
|
|
|
|
|
|
|
}else{ |
4519
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4520
|
|
|
|
|
|
|
} |
4521
|
|
|
|
|
|
|
|
4522
|
|
|
|
|
|
|
|
4523
|
0
|
|
|
|
|
|
my $_body_data; |
4524
|
|
|
|
|
|
|
|
4525
|
|
|
|
|
|
|
|
4526
|
|
|
|
|
|
|
|
4527
|
|
|
|
|
|
|
|
4528
|
|
|
|
|
|
|
# authentication setting, if any |
4529
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4530
|
|
|
|
|
|
|
|
4531
|
|
|
|
|
|
|
# make the API Call |
4532
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4533
|
|
|
|
|
|
|
$query_params, $form_params, |
4534
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4535
|
0
|
0
|
|
|
|
|
if (!$response) { |
4536
|
0
|
|
|
|
|
|
return; |
4537
|
|
|
|
|
|
|
} |
4538
|
|
|
|
|
|
|
|
4539
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4540
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4541
|
|
|
|
|
|
|
} |
4542
|
|
|
|
|
|
|
|
4543
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'RunResponse', $response->header('content-type')); |
4544
|
0
|
|
|
|
|
|
return $_response_object; |
4545
|
|
|
|
|
|
|
|
4546
|
|
|
|
|
|
|
} |
4547
|
|
|
|
|
|
|
# |
4548
|
|
|
|
|
|
|
# GetDocumentParagraphRunFont |
4549
|
|
|
|
|
|
|
# |
4550
|
|
|
|
|
|
|
# |
4551
|
|
|
|
|
|
|
# |
4552
|
|
|
|
|
|
|
# @param String $name (required) |
4553
|
|
|
|
|
|
|
# @param String $index (required) |
4554
|
|
|
|
|
|
|
# @param String $runIndex (required) |
4555
|
|
|
|
|
|
|
# @param String $storage (optional) |
4556
|
|
|
|
|
|
|
# @param String $folder (optional) |
4557
|
|
|
|
|
|
|
# @return FontResponse |
4558
|
|
|
|
|
|
|
# |
4559
|
|
|
|
|
|
|
sub GetDocumentParagraphRunFont { |
4560
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4561
|
|
|
|
|
|
|
|
4562
|
|
|
|
|
|
|
|
4563
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4564
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4565
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentParagraphRunFont"); |
4566
|
|
|
|
|
|
|
} |
4567
|
|
|
|
|
|
|
|
4568
|
|
|
|
|
|
|
# verify the required parameter 'index' is set |
4569
|
0
|
0
|
|
|
|
|
unless (exists $args{'index'}) { |
4570
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'index' when calling GetDocumentParagraphRunFont"); |
4571
|
|
|
|
|
|
|
} |
4572
|
|
|
|
|
|
|
|
4573
|
|
|
|
|
|
|
# verify the required parameter 'runIndex' is set |
4574
|
0
|
0
|
|
|
|
|
unless (exists $args{'runIndex'}) { |
4575
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'runIndex' when calling GetDocumentParagraphRunFont"); |
4576
|
|
|
|
|
|
|
} |
4577
|
|
|
|
|
|
|
|
4578
|
|
|
|
|
|
|
|
4579
|
|
|
|
|
|
|
# parse inputs |
4580
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/paragraphs/{index}/runs/{runIndex}/font/?appSid={appSid}&storage={storage}&folder={folder}'; |
4581
|
|
|
|
|
|
|
|
4582
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4583
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4584
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4585
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4586
|
|
|
|
|
|
|
|
4587
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
4588
|
0
|
|
|
|
|
|
my $query_params = {}; |
4589
|
0
|
|
|
|
|
|
my $header_params = {}; |
4590
|
0
|
|
|
|
|
|
my $form_params = {}; |
4591
|
|
|
|
|
|
|
|
4592
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4593
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4594
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4595
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4596
|
|
|
|
|
|
|
} |
4597
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4598
|
|
|
|
|
|
|
|
4599
|
|
|
|
|
|
|
# query params |
4600
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4601
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4602
|
|
|
|
|
|
|
}else{ |
4603
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4604
|
|
|
|
|
|
|
}# query params |
4605
|
0
|
0
|
|
|
|
|
if ( exists $args{'index'}) { |
4606
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{index}\E/$args{'index'}/g; |
4607
|
|
|
|
|
|
|
}else{ |
4608
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]index.*?(?=&|\?|$)//g; |
4609
|
|
|
|
|
|
|
}# query params |
4610
|
0
|
0
|
|
|
|
|
if ( exists $args{'runIndex'}) { |
4611
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{runIndex}\E/$args{'runIndex'}/g; |
4612
|
|
|
|
|
|
|
}else{ |
4613
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]runIndex.*?(?=&|\?|$)//g; |
4614
|
|
|
|
|
|
|
}# query params |
4615
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4616
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4617
|
|
|
|
|
|
|
}else{ |
4618
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4619
|
|
|
|
|
|
|
}# query params |
4620
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4621
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4622
|
|
|
|
|
|
|
}else{ |
4623
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4624
|
|
|
|
|
|
|
} |
4625
|
|
|
|
|
|
|
|
4626
|
|
|
|
|
|
|
|
4627
|
0
|
|
|
|
|
|
my $_body_data; |
4628
|
|
|
|
|
|
|
|
4629
|
|
|
|
|
|
|
|
4630
|
|
|
|
|
|
|
|
4631
|
|
|
|
|
|
|
|
4632
|
|
|
|
|
|
|
# authentication setting, if any |
4633
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4634
|
|
|
|
|
|
|
|
4635
|
|
|
|
|
|
|
# make the API Call |
4636
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4637
|
|
|
|
|
|
|
$query_params, $form_params, |
4638
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4639
|
0
|
0
|
|
|
|
|
if (!$response) { |
4640
|
0
|
|
|
|
|
|
return; |
4641
|
|
|
|
|
|
|
} |
4642
|
|
|
|
|
|
|
|
4643
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4644
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4645
|
|
|
|
|
|
|
} |
4646
|
|
|
|
|
|
|
|
4647
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FontResponse', $response->header('content-type')); |
4648
|
0
|
|
|
|
|
|
return $_response_object; |
4649
|
|
|
|
|
|
|
|
4650
|
|
|
|
|
|
|
} |
4651
|
|
|
|
|
|
|
# |
4652
|
|
|
|
|
|
|
# PostDocumentParagraphRunFont |
4653
|
|
|
|
|
|
|
# |
4654
|
|
|
|
|
|
|
# |
4655
|
|
|
|
|
|
|
# |
4656
|
|
|
|
|
|
|
# @param String $name (required) |
4657
|
|
|
|
|
|
|
# @param String $index (required) |
4658
|
|
|
|
|
|
|
# @param String $runIndex (required) |
4659
|
|
|
|
|
|
|
# @param String $storage (optional) |
4660
|
|
|
|
|
|
|
# @param String $folder (optional) |
4661
|
|
|
|
|
|
|
# @param String $filename (optional) |
4662
|
|
|
|
|
|
|
# @param Font $body (required) |
4663
|
|
|
|
|
|
|
# @return FontResponse |
4664
|
|
|
|
|
|
|
# |
4665
|
|
|
|
|
|
|
sub PostDocumentParagraphRunFont { |
4666
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4667
|
|
|
|
|
|
|
|
4668
|
|
|
|
|
|
|
|
4669
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4670
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4671
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostDocumentParagraphRunFont"); |
4672
|
|
|
|
|
|
|
} |
4673
|
|
|
|
|
|
|
|
4674
|
|
|
|
|
|
|
# verify the required parameter 'index' is set |
4675
|
0
|
0
|
|
|
|
|
unless (exists $args{'index'}) { |
4676
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'index' when calling PostDocumentParagraphRunFont"); |
4677
|
|
|
|
|
|
|
} |
4678
|
|
|
|
|
|
|
|
4679
|
|
|
|
|
|
|
# verify the required parameter 'runIndex' is set |
4680
|
0
|
0
|
|
|
|
|
unless (exists $args{'runIndex'}) { |
4681
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'runIndex' when calling PostDocumentParagraphRunFont"); |
4682
|
|
|
|
|
|
|
} |
4683
|
|
|
|
|
|
|
|
4684
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
4685
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
4686
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostDocumentParagraphRunFont"); |
4687
|
|
|
|
|
|
|
} |
4688
|
|
|
|
|
|
|
|
4689
|
|
|
|
|
|
|
|
4690
|
|
|
|
|
|
|
# parse inputs |
4691
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/paragraphs/{index}/runs/{runIndex}/font/?appSid={appSid}&storage={storage}&folder={folder}&filename={filename}'; |
4692
|
|
|
|
|
|
|
|
4693
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4694
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4695
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4696
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4697
|
|
|
|
|
|
|
|
4698
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
4699
|
0
|
|
|
|
|
|
my $query_params = {}; |
4700
|
0
|
|
|
|
|
|
my $header_params = {}; |
4701
|
0
|
|
|
|
|
|
my $form_params = {}; |
4702
|
|
|
|
|
|
|
|
4703
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4704
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4705
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4706
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4707
|
|
|
|
|
|
|
} |
4708
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4709
|
|
|
|
|
|
|
|
4710
|
|
|
|
|
|
|
# query params |
4711
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4712
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4713
|
|
|
|
|
|
|
}else{ |
4714
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4715
|
|
|
|
|
|
|
}# query params |
4716
|
0
|
0
|
|
|
|
|
if ( exists $args{'index'}) { |
4717
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{index}\E/$args{'index'}/g; |
4718
|
|
|
|
|
|
|
}else{ |
4719
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]index.*?(?=&|\?|$)//g; |
4720
|
|
|
|
|
|
|
}# query params |
4721
|
0
|
0
|
|
|
|
|
if ( exists $args{'runIndex'}) { |
4722
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{runIndex}\E/$args{'runIndex'}/g; |
4723
|
|
|
|
|
|
|
}else{ |
4724
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]runIndex.*?(?=&|\?|$)//g; |
4725
|
|
|
|
|
|
|
}# query params |
4726
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4727
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4728
|
|
|
|
|
|
|
}else{ |
4729
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4730
|
|
|
|
|
|
|
}# query params |
4731
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4732
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4733
|
|
|
|
|
|
|
}else{ |
4734
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4735
|
|
|
|
|
|
|
}# query params |
4736
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
4737
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
4738
|
|
|
|
|
|
|
}else{ |
4739
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
4740
|
|
|
|
|
|
|
} |
4741
|
|
|
|
|
|
|
|
4742
|
|
|
|
|
|
|
|
4743
|
0
|
|
|
|
|
|
my $_body_data; |
4744
|
|
|
|
|
|
|
|
4745
|
|
|
|
|
|
|
|
4746
|
|
|
|
|
|
|
# body params |
4747
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
4748
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
4749
|
|
|
|
|
|
|
} |
4750
|
|
|
|
|
|
|
|
4751
|
|
|
|
|
|
|
# authentication setting, if any |
4752
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4753
|
|
|
|
|
|
|
|
4754
|
|
|
|
|
|
|
# make the API Call |
4755
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4756
|
|
|
|
|
|
|
$query_params, $form_params, |
4757
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4758
|
0
|
0
|
|
|
|
|
if (!$response) { |
4759
|
0
|
|
|
|
|
|
return; |
4760
|
|
|
|
|
|
|
} |
4761
|
|
|
|
|
|
|
|
4762
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4763
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4764
|
|
|
|
|
|
|
} |
4765
|
|
|
|
|
|
|
|
4766
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FontResponse', $response->header('content-type')); |
4767
|
0
|
|
|
|
|
|
return $_response_object; |
4768
|
|
|
|
|
|
|
|
4769
|
|
|
|
|
|
|
} |
4770
|
|
|
|
|
|
|
# |
4771
|
|
|
|
|
|
|
# PutProtectDocument |
4772
|
|
|
|
|
|
|
# |
4773
|
|
|
|
|
|
|
# |
4774
|
|
|
|
|
|
|
# |
4775
|
|
|
|
|
|
|
# @param String $name (required) |
4776
|
|
|
|
|
|
|
# @param String $filename (optional) |
4777
|
|
|
|
|
|
|
# @param String $storage (optional) |
4778
|
|
|
|
|
|
|
# @param String $folder (optional) |
4779
|
|
|
|
|
|
|
# @param ProtectionRequest $body (required) |
4780
|
|
|
|
|
|
|
# @return ProtectionDataResponse |
4781
|
|
|
|
|
|
|
# |
4782
|
|
|
|
|
|
|
sub PutProtectDocument { |
4783
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4784
|
|
|
|
|
|
|
|
4785
|
|
|
|
|
|
|
|
4786
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4787
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4788
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PutProtectDocument"); |
4789
|
|
|
|
|
|
|
} |
4790
|
|
|
|
|
|
|
|
4791
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
4792
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
4793
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PutProtectDocument"); |
4794
|
|
|
|
|
|
|
} |
4795
|
|
|
|
|
|
|
|
4796
|
|
|
|
|
|
|
|
4797
|
|
|
|
|
|
|
# parse inputs |
4798
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/protection/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
4799
|
|
|
|
|
|
|
|
4800
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4801
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4802
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4803
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4804
|
|
|
|
|
|
|
|
4805
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
4806
|
0
|
|
|
|
|
|
my $query_params = {}; |
4807
|
0
|
|
|
|
|
|
my $header_params = {}; |
4808
|
0
|
|
|
|
|
|
my $form_params = {}; |
4809
|
|
|
|
|
|
|
|
4810
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4811
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4812
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4813
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4814
|
|
|
|
|
|
|
} |
4815
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4816
|
|
|
|
|
|
|
|
4817
|
|
|
|
|
|
|
# query params |
4818
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4819
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4820
|
|
|
|
|
|
|
}else{ |
4821
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4822
|
|
|
|
|
|
|
}# query params |
4823
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
4824
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
4825
|
|
|
|
|
|
|
}else{ |
4826
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
4827
|
|
|
|
|
|
|
}# query params |
4828
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4829
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4830
|
|
|
|
|
|
|
}else{ |
4831
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4832
|
|
|
|
|
|
|
}# query params |
4833
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4834
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4835
|
|
|
|
|
|
|
}else{ |
4836
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4837
|
|
|
|
|
|
|
} |
4838
|
|
|
|
|
|
|
|
4839
|
|
|
|
|
|
|
|
4840
|
0
|
|
|
|
|
|
my $_body_data; |
4841
|
|
|
|
|
|
|
|
4842
|
|
|
|
|
|
|
|
4843
|
|
|
|
|
|
|
# body params |
4844
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
4845
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
4846
|
|
|
|
|
|
|
} |
4847
|
|
|
|
|
|
|
|
4848
|
|
|
|
|
|
|
# authentication setting, if any |
4849
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4850
|
|
|
|
|
|
|
|
4851
|
|
|
|
|
|
|
# make the API Call |
4852
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4853
|
|
|
|
|
|
|
$query_params, $form_params, |
4854
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4855
|
0
|
0
|
|
|
|
|
if (!$response) { |
4856
|
0
|
|
|
|
|
|
return; |
4857
|
|
|
|
|
|
|
} |
4858
|
|
|
|
|
|
|
|
4859
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4860
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4861
|
|
|
|
|
|
|
} |
4862
|
|
|
|
|
|
|
|
4863
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ProtectionDataResponse', $response->header('content-type')); |
4864
|
0
|
|
|
|
|
|
return $_response_object; |
4865
|
|
|
|
|
|
|
|
4866
|
|
|
|
|
|
|
} |
4867
|
|
|
|
|
|
|
# |
4868
|
|
|
|
|
|
|
# PostChangeDocumentProtection |
4869
|
|
|
|
|
|
|
# |
4870
|
|
|
|
|
|
|
# |
4871
|
|
|
|
|
|
|
# |
4872
|
|
|
|
|
|
|
# @param String $name (required) |
4873
|
|
|
|
|
|
|
# @param String $filename (optional) |
4874
|
|
|
|
|
|
|
# @param String $storage (optional) |
4875
|
|
|
|
|
|
|
# @param String $folder (optional) |
4876
|
|
|
|
|
|
|
# @param ProtectionRequest $body (required) |
4877
|
|
|
|
|
|
|
# @return ProtectionDataResponse |
4878
|
|
|
|
|
|
|
# |
4879
|
|
|
|
|
|
|
sub PostChangeDocumentProtection { |
4880
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4881
|
|
|
|
|
|
|
|
4882
|
|
|
|
|
|
|
|
4883
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4884
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4885
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostChangeDocumentProtection"); |
4886
|
|
|
|
|
|
|
} |
4887
|
|
|
|
|
|
|
|
4888
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
4889
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
4890
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostChangeDocumentProtection"); |
4891
|
|
|
|
|
|
|
} |
4892
|
|
|
|
|
|
|
|
4893
|
|
|
|
|
|
|
|
4894
|
|
|
|
|
|
|
# parse inputs |
4895
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/protection/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
4896
|
|
|
|
|
|
|
|
4897
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4898
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4899
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4900
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4901
|
|
|
|
|
|
|
|
4902
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
4903
|
0
|
|
|
|
|
|
my $query_params = {}; |
4904
|
0
|
|
|
|
|
|
my $header_params = {}; |
4905
|
0
|
|
|
|
|
|
my $form_params = {}; |
4906
|
|
|
|
|
|
|
|
4907
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
4908
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
4909
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
4910
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
4911
|
|
|
|
|
|
|
} |
4912
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
4913
|
|
|
|
|
|
|
|
4914
|
|
|
|
|
|
|
# query params |
4915
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
4916
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
4917
|
|
|
|
|
|
|
}else{ |
4918
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
4919
|
|
|
|
|
|
|
}# query params |
4920
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
4921
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
4922
|
|
|
|
|
|
|
}else{ |
4923
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
4924
|
|
|
|
|
|
|
}# query params |
4925
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
4926
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
4927
|
|
|
|
|
|
|
}else{ |
4928
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
4929
|
|
|
|
|
|
|
}# query params |
4930
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
4931
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
4932
|
|
|
|
|
|
|
}else{ |
4933
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
4934
|
|
|
|
|
|
|
} |
4935
|
|
|
|
|
|
|
|
4936
|
|
|
|
|
|
|
|
4937
|
0
|
|
|
|
|
|
my $_body_data; |
4938
|
|
|
|
|
|
|
|
4939
|
|
|
|
|
|
|
|
4940
|
|
|
|
|
|
|
# body params |
4941
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
4942
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
4943
|
|
|
|
|
|
|
} |
4944
|
|
|
|
|
|
|
|
4945
|
|
|
|
|
|
|
# authentication setting, if any |
4946
|
0
|
|
|
|
|
|
my $auth_settings = []; |
4947
|
|
|
|
|
|
|
|
4948
|
|
|
|
|
|
|
# make the API Call |
4949
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
4950
|
|
|
|
|
|
|
$query_params, $form_params, |
4951
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
4952
|
0
|
0
|
|
|
|
|
if (!$response) { |
4953
|
0
|
|
|
|
|
|
return; |
4954
|
|
|
|
|
|
|
} |
4955
|
|
|
|
|
|
|
|
4956
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
4957
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
4958
|
|
|
|
|
|
|
} |
4959
|
|
|
|
|
|
|
|
4960
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ProtectionDataResponse', $response->header('content-type')); |
4961
|
0
|
|
|
|
|
|
return $_response_object; |
4962
|
|
|
|
|
|
|
|
4963
|
|
|
|
|
|
|
} |
4964
|
|
|
|
|
|
|
# |
4965
|
|
|
|
|
|
|
# DeleteUnprotectDocument |
4966
|
|
|
|
|
|
|
# |
4967
|
|
|
|
|
|
|
# |
4968
|
|
|
|
|
|
|
# |
4969
|
|
|
|
|
|
|
# @param String $name (required) |
4970
|
|
|
|
|
|
|
# @param String $filename (optional) |
4971
|
|
|
|
|
|
|
# @param String $storage (optional) |
4972
|
|
|
|
|
|
|
# @param String $folder (optional) |
4973
|
|
|
|
|
|
|
# @param ProtectionRequest $body (required) |
4974
|
|
|
|
|
|
|
# @return ProtectionDataResponse |
4975
|
|
|
|
|
|
|
# |
4976
|
|
|
|
|
|
|
sub DeleteUnprotectDocument { |
4977
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
4978
|
|
|
|
|
|
|
|
4979
|
|
|
|
|
|
|
|
4980
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
4981
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
4982
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteUnprotectDocument"); |
4983
|
|
|
|
|
|
|
} |
4984
|
|
|
|
|
|
|
|
4985
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
4986
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
4987
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling DeleteUnprotectDocument"); |
4988
|
|
|
|
|
|
|
} |
4989
|
|
|
|
|
|
|
|
4990
|
|
|
|
|
|
|
|
4991
|
|
|
|
|
|
|
# parse inputs |
4992
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/protection/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
4993
|
|
|
|
|
|
|
|
4994
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
4995
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
4996
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
4997
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
4998
|
|
|
|
|
|
|
|
4999
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
5000
|
0
|
|
|
|
|
|
my $query_params = {}; |
5001
|
0
|
|
|
|
|
|
my $header_params = {}; |
5002
|
0
|
|
|
|
|
|
my $form_params = {}; |
5003
|
|
|
|
|
|
|
|
5004
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5005
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5006
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5007
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5008
|
|
|
|
|
|
|
} |
5009
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5010
|
|
|
|
|
|
|
|
5011
|
|
|
|
|
|
|
# query params |
5012
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5013
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5014
|
|
|
|
|
|
|
}else{ |
5015
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5016
|
|
|
|
|
|
|
}# query params |
5017
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
5018
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
5019
|
|
|
|
|
|
|
}else{ |
5020
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
5021
|
|
|
|
|
|
|
}# query params |
5022
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5023
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5024
|
|
|
|
|
|
|
}else{ |
5025
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5026
|
|
|
|
|
|
|
}# query params |
5027
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5028
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5029
|
|
|
|
|
|
|
}else{ |
5030
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5031
|
|
|
|
|
|
|
} |
5032
|
|
|
|
|
|
|
|
5033
|
|
|
|
|
|
|
|
5034
|
0
|
|
|
|
|
|
my $_body_data; |
5035
|
|
|
|
|
|
|
|
5036
|
|
|
|
|
|
|
|
5037
|
|
|
|
|
|
|
# body params |
5038
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
5039
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
5040
|
|
|
|
|
|
|
} |
5041
|
|
|
|
|
|
|
|
5042
|
|
|
|
|
|
|
# authentication setting, if any |
5043
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5044
|
|
|
|
|
|
|
|
5045
|
|
|
|
|
|
|
# make the API Call |
5046
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5047
|
|
|
|
|
|
|
$query_params, $form_params, |
5048
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5049
|
0
|
0
|
|
|
|
|
if (!$response) { |
5050
|
0
|
|
|
|
|
|
return; |
5051
|
|
|
|
|
|
|
} |
5052
|
|
|
|
|
|
|
|
5053
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5054
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5055
|
|
|
|
|
|
|
} |
5056
|
|
|
|
|
|
|
|
5057
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ProtectionDataResponse', $response->header('content-type')); |
5058
|
0
|
|
|
|
|
|
return $_response_object; |
5059
|
|
|
|
|
|
|
|
5060
|
|
|
|
|
|
|
} |
5061
|
|
|
|
|
|
|
# |
5062
|
|
|
|
|
|
|
# GetDocumentProtection |
5063
|
|
|
|
|
|
|
# |
5064
|
|
|
|
|
|
|
# |
5065
|
|
|
|
|
|
|
# |
5066
|
|
|
|
|
|
|
# @param String $name (required) |
5067
|
|
|
|
|
|
|
# @param String $storage (optional) |
5068
|
|
|
|
|
|
|
# @param String $folder (optional) |
5069
|
|
|
|
|
|
|
# @return ProtectionDataResponse |
5070
|
|
|
|
|
|
|
# |
5071
|
|
|
|
|
|
|
sub GetDocumentProtection { |
5072
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5073
|
|
|
|
|
|
|
|
5074
|
|
|
|
|
|
|
|
5075
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5076
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5077
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentProtection"); |
5078
|
|
|
|
|
|
|
} |
5079
|
|
|
|
|
|
|
|
5080
|
|
|
|
|
|
|
|
5081
|
|
|
|
|
|
|
# parse inputs |
5082
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/protection/?appSid={appSid}&storage={storage}&folder={folder}'; |
5083
|
|
|
|
|
|
|
|
5084
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5085
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5086
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5087
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5088
|
|
|
|
|
|
|
|
5089
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
5090
|
0
|
|
|
|
|
|
my $query_params = {}; |
5091
|
0
|
|
|
|
|
|
my $header_params = {}; |
5092
|
0
|
|
|
|
|
|
my $form_params = {}; |
5093
|
|
|
|
|
|
|
|
5094
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5095
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5096
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5097
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5098
|
|
|
|
|
|
|
} |
5099
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5100
|
|
|
|
|
|
|
|
5101
|
|
|
|
|
|
|
# query params |
5102
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5103
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5104
|
|
|
|
|
|
|
}else{ |
5105
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5106
|
|
|
|
|
|
|
}# query params |
5107
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5108
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5109
|
|
|
|
|
|
|
}else{ |
5110
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5111
|
|
|
|
|
|
|
}# query params |
5112
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5113
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5114
|
|
|
|
|
|
|
}else{ |
5115
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5116
|
|
|
|
|
|
|
} |
5117
|
|
|
|
|
|
|
|
5118
|
|
|
|
|
|
|
|
5119
|
0
|
|
|
|
|
|
my $_body_data; |
5120
|
|
|
|
|
|
|
|
5121
|
|
|
|
|
|
|
|
5122
|
|
|
|
|
|
|
|
5123
|
|
|
|
|
|
|
|
5124
|
|
|
|
|
|
|
# authentication setting, if any |
5125
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5126
|
|
|
|
|
|
|
|
5127
|
|
|
|
|
|
|
# make the API Call |
5128
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5129
|
|
|
|
|
|
|
$query_params, $form_params, |
5130
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5131
|
0
|
0
|
|
|
|
|
if (!$response) { |
5132
|
0
|
|
|
|
|
|
return; |
5133
|
|
|
|
|
|
|
} |
5134
|
|
|
|
|
|
|
|
5135
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5136
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5137
|
|
|
|
|
|
|
} |
5138
|
|
|
|
|
|
|
|
5139
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ProtectionDataResponse', $response->header('content-type')); |
5140
|
0
|
|
|
|
|
|
return $_response_object; |
5141
|
|
|
|
|
|
|
|
5142
|
|
|
|
|
|
|
} |
5143
|
|
|
|
|
|
|
# |
5144
|
|
|
|
|
|
|
# PostReplaceText |
5145
|
|
|
|
|
|
|
# |
5146
|
|
|
|
|
|
|
# |
5147
|
|
|
|
|
|
|
# |
5148
|
|
|
|
|
|
|
# @param String $name (required) |
5149
|
|
|
|
|
|
|
# @param String $filename (optional) |
5150
|
|
|
|
|
|
|
# @param String $storage (optional) |
5151
|
|
|
|
|
|
|
# @param String $folder (optional) |
5152
|
|
|
|
|
|
|
# @param ReplaceTextRequest $body (required) |
5153
|
|
|
|
|
|
|
# @return ReplaceTextResponse |
5154
|
|
|
|
|
|
|
# |
5155
|
|
|
|
|
|
|
sub PostReplaceText { |
5156
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5157
|
|
|
|
|
|
|
|
5158
|
|
|
|
|
|
|
|
5159
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5160
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5161
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostReplaceText"); |
5162
|
|
|
|
|
|
|
} |
5163
|
|
|
|
|
|
|
|
5164
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
5165
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
5166
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostReplaceText"); |
5167
|
|
|
|
|
|
|
} |
5168
|
|
|
|
|
|
|
|
5169
|
|
|
|
|
|
|
|
5170
|
|
|
|
|
|
|
# parse inputs |
5171
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/replaceText/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
5172
|
|
|
|
|
|
|
|
5173
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5174
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5175
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5176
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5177
|
|
|
|
|
|
|
|
5178
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
5179
|
0
|
|
|
|
|
|
my $query_params = {}; |
5180
|
0
|
|
|
|
|
|
my $header_params = {}; |
5181
|
0
|
|
|
|
|
|
my $form_params = {}; |
5182
|
|
|
|
|
|
|
|
5183
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5184
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5185
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5186
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5187
|
|
|
|
|
|
|
} |
5188
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5189
|
|
|
|
|
|
|
|
5190
|
|
|
|
|
|
|
# query params |
5191
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5192
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5193
|
|
|
|
|
|
|
}else{ |
5194
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5195
|
|
|
|
|
|
|
}# query params |
5196
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
5197
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
5198
|
|
|
|
|
|
|
}else{ |
5199
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
5200
|
|
|
|
|
|
|
}# query params |
5201
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5202
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5203
|
|
|
|
|
|
|
}else{ |
5204
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5205
|
|
|
|
|
|
|
}# query params |
5206
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5207
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5208
|
|
|
|
|
|
|
}else{ |
5209
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5210
|
|
|
|
|
|
|
} |
5211
|
|
|
|
|
|
|
|
5212
|
|
|
|
|
|
|
|
5213
|
0
|
|
|
|
|
|
my $_body_data; |
5214
|
|
|
|
|
|
|
|
5215
|
|
|
|
|
|
|
|
5216
|
|
|
|
|
|
|
# body params |
5217
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
5218
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
5219
|
|
|
|
|
|
|
} |
5220
|
|
|
|
|
|
|
|
5221
|
|
|
|
|
|
|
# authentication setting, if any |
5222
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5223
|
|
|
|
|
|
|
|
5224
|
|
|
|
|
|
|
# make the API Call |
5225
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5226
|
|
|
|
|
|
|
$query_params, $form_params, |
5227
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5228
|
0
|
0
|
|
|
|
|
if (!$response) { |
5229
|
0
|
|
|
|
|
|
return; |
5230
|
|
|
|
|
|
|
} |
5231
|
|
|
|
|
|
|
|
5232
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5233
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5234
|
|
|
|
|
|
|
} |
5235
|
|
|
|
|
|
|
|
5236
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ReplaceTextResponse', $response->header('content-type')); |
5237
|
0
|
|
|
|
|
|
return $_response_object; |
5238
|
|
|
|
|
|
|
|
5239
|
|
|
|
|
|
|
} |
5240
|
|
|
|
|
|
|
# |
5241
|
|
|
|
|
|
|
# AcceptAllRevisions |
5242
|
|
|
|
|
|
|
# |
5243
|
|
|
|
|
|
|
# |
5244
|
|
|
|
|
|
|
# |
5245
|
|
|
|
|
|
|
# @param String $name (required) |
5246
|
|
|
|
|
|
|
# @param String $filename (optional) |
5247
|
|
|
|
|
|
|
# @param String $storage (optional) |
5248
|
|
|
|
|
|
|
# @param String $folder (optional) |
5249
|
|
|
|
|
|
|
# @return RevisionsModificationResponse |
5250
|
|
|
|
|
|
|
# |
5251
|
|
|
|
|
|
|
sub AcceptAllRevisions { |
5252
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5253
|
|
|
|
|
|
|
|
5254
|
|
|
|
|
|
|
|
5255
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5256
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5257
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling AcceptAllRevisions"); |
5258
|
|
|
|
|
|
|
} |
5259
|
|
|
|
|
|
|
|
5260
|
|
|
|
|
|
|
|
5261
|
|
|
|
|
|
|
# parse inputs |
5262
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/revisions/acceptAll/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
5263
|
|
|
|
|
|
|
|
5264
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5265
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5266
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5267
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5268
|
|
|
|
|
|
|
|
5269
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
5270
|
0
|
|
|
|
|
|
my $query_params = {}; |
5271
|
0
|
|
|
|
|
|
my $header_params = {}; |
5272
|
0
|
|
|
|
|
|
my $form_params = {}; |
5273
|
|
|
|
|
|
|
|
5274
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5275
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5276
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5277
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5278
|
|
|
|
|
|
|
} |
5279
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5280
|
|
|
|
|
|
|
|
5281
|
|
|
|
|
|
|
# query params |
5282
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5283
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5284
|
|
|
|
|
|
|
}else{ |
5285
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5286
|
|
|
|
|
|
|
}# query params |
5287
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
5288
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
5289
|
|
|
|
|
|
|
}else{ |
5290
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
5291
|
|
|
|
|
|
|
}# query params |
5292
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5293
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5294
|
|
|
|
|
|
|
}else{ |
5295
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5296
|
|
|
|
|
|
|
}# query params |
5297
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5298
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5299
|
|
|
|
|
|
|
}else{ |
5300
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5301
|
|
|
|
|
|
|
} |
5302
|
|
|
|
|
|
|
|
5303
|
|
|
|
|
|
|
|
5304
|
0
|
|
|
|
|
|
my $_body_data; |
5305
|
|
|
|
|
|
|
|
5306
|
|
|
|
|
|
|
|
5307
|
|
|
|
|
|
|
|
5308
|
|
|
|
|
|
|
|
5309
|
|
|
|
|
|
|
# authentication setting, if any |
5310
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5311
|
|
|
|
|
|
|
|
5312
|
|
|
|
|
|
|
# make the API Call |
5313
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5314
|
|
|
|
|
|
|
$query_params, $form_params, |
5315
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5316
|
0
|
0
|
|
|
|
|
if (!$response) { |
5317
|
0
|
|
|
|
|
|
return; |
5318
|
|
|
|
|
|
|
} |
5319
|
|
|
|
|
|
|
|
5320
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5321
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5322
|
|
|
|
|
|
|
} |
5323
|
|
|
|
|
|
|
|
5324
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'RevisionsModificationResponse', $response->header('content-type')); |
5325
|
0
|
|
|
|
|
|
return $_response_object; |
5326
|
|
|
|
|
|
|
|
5327
|
|
|
|
|
|
|
} |
5328
|
|
|
|
|
|
|
# |
5329
|
|
|
|
|
|
|
# RejectAllRevisions |
5330
|
|
|
|
|
|
|
# |
5331
|
|
|
|
|
|
|
# |
5332
|
|
|
|
|
|
|
# |
5333
|
|
|
|
|
|
|
# @param String $name (required) |
5334
|
|
|
|
|
|
|
# @param String $filename (optional) |
5335
|
|
|
|
|
|
|
# @param String $storage (optional) |
5336
|
|
|
|
|
|
|
# @param String $folder (optional) |
5337
|
|
|
|
|
|
|
# @return RevisionsModificationResponse |
5338
|
|
|
|
|
|
|
# |
5339
|
|
|
|
|
|
|
sub RejectAllRevisions { |
5340
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5341
|
|
|
|
|
|
|
|
5342
|
|
|
|
|
|
|
|
5343
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5344
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5345
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling RejectAllRevisions"); |
5346
|
|
|
|
|
|
|
} |
5347
|
|
|
|
|
|
|
|
5348
|
|
|
|
|
|
|
|
5349
|
|
|
|
|
|
|
# parse inputs |
5350
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/revisions/rejectAll/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
5351
|
|
|
|
|
|
|
|
5352
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5353
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5354
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5355
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5356
|
|
|
|
|
|
|
|
5357
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
5358
|
0
|
|
|
|
|
|
my $query_params = {}; |
5359
|
0
|
|
|
|
|
|
my $header_params = {}; |
5360
|
0
|
|
|
|
|
|
my $form_params = {}; |
5361
|
|
|
|
|
|
|
|
5362
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5363
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5364
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5365
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5366
|
|
|
|
|
|
|
} |
5367
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5368
|
|
|
|
|
|
|
|
5369
|
|
|
|
|
|
|
# query params |
5370
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5371
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5372
|
|
|
|
|
|
|
}else{ |
5373
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5374
|
|
|
|
|
|
|
}# query params |
5375
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
5376
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
5377
|
|
|
|
|
|
|
}else{ |
5378
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
5379
|
|
|
|
|
|
|
}# query params |
5380
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5381
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5382
|
|
|
|
|
|
|
}else{ |
5383
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5384
|
|
|
|
|
|
|
}# query params |
5385
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5386
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5387
|
|
|
|
|
|
|
}else{ |
5388
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5389
|
|
|
|
|
|
|
} |
5390
|
|
|
|
|
|
|
|
5391
|
|
|
|
|
|
|
|
5392
|
0
|
|
|
|
|
|
my $_body_data; |
5393
|
|
|
|
|
|
|
|
5394
|
|
|
|
|
|
|
|
5395
|
|
|
|
|
|
|
|
5396
|
|
|
|
|
|
|
|
5397
|
|
|
|
|
|
|
# authentication setting, if any |
5398
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5399
|
|
|
|
|
|
|
|
5400
|
|
|
|
|
|
|
# make the API Call |
5401
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5402
|
|
|
|
|
|
|
$query_params, $form_params, |
5403
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5404
|
0
|
0
|
|
|
|
|
if (!$response) { |
5405
|
0
|
|
|
|
|
|
return; |
5406
|
|
|
|
|
|
|
} |
5407
|
|
|
|
|
|
|
|
5408
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5409
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5410
|
|
|
|
|
|
|
} |
5411
|
|
|
|
|
|
|
|
5412
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'RevisionsModificationResponse', $response->header('content-type')); |
5413
|
0
|
|
|
|
|
|
return $_response_object; |
5414
|
|
|
|
|
|
|
|
5415
|
|
|
|
|
|
|
} |
5416
|
|
|
|
|
|
|
# |
5417
|
|
|
|
|
|
|
# Search |
5418
|
|
|
|
|
|
|
# |
5419
|
|
|
|
|
|
|
# |
5420
|
|
|
|
|
|
|
# |
5421
|
|
|
|
|
|
|
# @param String $name (required) |
5422
|
|
|
|
|
|
|
# @param String $pattern (required) |
5423
|
|
|
|
|
|
|
# @param String $storage (optional) |
5424
|
|
|
|
|
|
|
# @param String $folder (optional) |
5425
|
|
|
|
|
|
|
# @return SearchResponse |
5426
|
|
|
|
|
|
|
# |
5427
|
|
|
|
|
|
|
sub Search { |
5428
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5429
|
|
|
|
|
|
|
|
5430
|
|
|
|
|
|
|
|
5431
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5432
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5433
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling Search"); |
5434
|
|
|
|
|
|
|
} |
5435
|
|
|
|
|
|
|
|
5436
|
|
|
|
|
|
|
# verify the required parameter 'pattern' is set |
5437
|
0
|
0
|
|
|
|
|
unless (exists $args{'pattern'}) { |
5438
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'pattern' when calling Search"); |
5439
|
|
|
|
|
|
|
} |
5440
|
|
|
|
|
|
|
|
5441
|
|
|
|
|
|
|
|
5442
|
|
|
|
|
|
|
# parse inputs |
5443
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/search/?appSid={appSid}&pattern={pattern}&storage={storage}&folder={folder}'; |
5444
|
|
|
|
|
|
|
|
5445
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5446
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5447
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5448
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5449
|
|
|
|
|
|
|
|
5450
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
5451
|
0
|
|
|
|
|
|
my $query_params = {}; |
5452
|
0
|
|
|
|
|
|
my $header_params = {}; |
5453
|
0
|
|
|
|
|
|
my $form_params = {}; |
5454
|
|
|
|
|
|
|
|
5455
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5456
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5457
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5458
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5459
|
|
|
|
|
|
|
} |
5460
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5461
|
|
|
|
|
|
|
|
5462
|
|
|
|
|
|
|
# query params |
5463
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5464
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5465
|
|
|
|
|
|
|
}else{ |
5466
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5467
|
|
|
|
|
|
|
}# query params |
5468
|
0
|
0
|
|
|
|
|
if ( exists $args{'pattern'}) { |
5469
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{pattern}\E/$args{'pattern'}/g; |
5470
|
|
|
|
|
|
|
}else{ |
5471
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]pattern.*?(?=&|\?|$)//g; |
5472
|
|
|
|
|
|
|
}# query params |
5473
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5474
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5475
|
|
|
|
|
|
|
}else{ |
5476
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5477
|
|
|
|
|
|
|
}# query params |
5478
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5479
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5480
|
|
|
|
|
|
|
}else{ |
5481
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5482
|
|
|
|
|
|
|
} |
5483
|
|
|
|
|
|
|
|
5484
|
|
|
|
|
|
|
|
5485
|
0
|
|
|
|
|
|
my $_body_data; |
5486
|
|
|
|
|
|
|
|
5487
|
|
|
|
|
|
|
|
5488
|
|
|
|
|
|
|
|
5489
|
|
|
|
|
|
|
|
5490
|
|
|
|
|
|
|
# authentication setting, if any |
5491
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5492
|
|
|
|
|
|
|
|
5493
|
|
|
|
|
|
|
# make the API Call |
5494
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5495
|
|
|
|
|
|
|
$query_params, $form_params, |
5496
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5497
|
0
|
0
|
|
|
|
|
if (!$response) { |
5498
|
0
|
|
|
|
|
|
return; |
5499
|
|
|
|
|
|
|
} |
5500
|
|
|
|
|
|
|
|
5501
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5502
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5503
|
|
|
|
|
|
|
} |
5504
|
|
|
|
|
|
|
|
5505
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SearchResponse', $response->header('content-type')); |
5506
|
0
|
|
|
|
|
|
return $_response_object; |
5507
|
|
|
|
|
|
|
|
5508
|
|
|
|
|
|
|
} |
5509
|
|
|
|
|
|
|
# |
5510
|
|
|
|
|
|
|
# GetSections |
5511
|
|
|
|
|
|
|
# |
5512
|
|
|
|
|
|
|
# |
5513
|
|
|
|
|
|
|
# |
5514
|
|
|
|
|
|
|
# @param String $name (required) |
5515
|
|
|
|
|
|
|
# @param String $storage (optional) |
5516
|
|
|
|
|
|
|
# @param String $folder (optional) |
5517
|
|
|
|
|
|
|
# @return SectionLinkCollectionResponse |
5518
|
|
|
|
|
|
|
# |
5519
|
|
|
|
|
|
|
sub GetSections { |
5520
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5521
|
|
|
|
|
|
|
|
5522
|
|
|
|
|
|
|
|
5523
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5524
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5525
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetSections"); |
5526
|
|
|
|
|
|
|
} |
5527
|
|
|
|
|
|
|
|
5528
|
|
|
|
|
|
|
|
5529
|
|
|
|
|
|
|
# parse inputs |
5530
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/?appSid={appSid}&storage={storage}&folder={folder}'; |
5531
|
|
|
|
|
|
|
|
5532
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5533
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5534
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5535
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5536
|
|
|
|
|
|
|
|
5537
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
5538
|
0
|
|
|
|
|
|
my $query_params = {}; |
5539
|
0
|
|
|
|
|
|
my $header_params = {}; |
5540
|
0
|
|
|
|
|
|
my $form_params = {}; |
5541
|
|
|
|
|
|
|
|
5542
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5543
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5544
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5545
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5546
|
|
|
|
|
|
|
} |
5547
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5548
|
|
|
|
|
|
|
|
5549
|
|
|
|
|
|
|
# query params |
5550
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5551
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5552
|
|
|
|
|
|
|
}else{ |
5553
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5554
|
|
|
|
|
|
|
}# query params |
5555
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5556
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5557
|
|
|
|
|
|
|
}else{ |
5558
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5559
|
|
|
|
|
|
|
}# query params |
5560
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5561
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5562
|
|
|
|
|
|
|
}else{ |
5563
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5564
|
|
|
|
|
|
|
} |
5565
|
|
|
|
|
|
|
|
5566
|
|
|
|
|
|
|
|
5567
|
0
|
|
|
|
|
|
my $_body_data; |
5568
|
|
|
|
|
|
|
|
5569
|
|
|
|
|
|
|
|
5570
|
|
|
|
|
|
|
|
5571
|
|
|
|
|
|
|
|
5572
|
|
|
|
|
|
|
# authentication setting, if any |
5573
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5574
|
|
|
|
|
|
|
|
5575
|
|
|
|
|
|
|
# make the API Call |
5576
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5577
|
|
|
|
|
|
|
$query_params, $form_params, |
5578
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5579
|
0
|
0
|
|
|
|
|
if (!$response) { |
5580
|
0
|
|
|
|
|
|
return; |
5581
|
|
|
|
|
|
|
} |
5582
|
|
|
|
|
|
|
|
5583
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5584
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5585
|
|
|
|
|
|
|
} |
5586
|
|
|
|
|
|
|
|
5587
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SectionLinkCollectionResponse', $response->header('content-type')); |
5588
|
0
|
|
|
|
|
|
return $_response_object; |
5589
|
|
|
|
|
|
|
|
5590
|
|
|
|
|
|
|
} |
5591
|
|
|
|
|
|
|
# |
5592
|
|
|
|
|
|
|
# GetSection |
5593
|
|
|
|
|
|
|
# |
5594
|
|
|
|
|
|
|
# |
5595
|
|
|
|
|
|
|
# |
5596
|
|
|
|
|
|
|
# @param String $name (required) |
5597
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
5598
|
|
|
|
|
|
|
# @param String $storage (optional) |
5599
|
|
|
|
|
|
|
# @param String $folder (optional) |
5600
|
|
|
|
|
|
|
# @return SectionResponse |
5601
|
|
|
|
|
|
|
# |
5602
|
|
|
|
|
|
|
sub GetSection { |
5603
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5604
|
|
|
|
|
|
|
|
5605
|
|
|
|
|
|
|
|
5606
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5607
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5608
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetSection"); |
5609
|
|
|
|
|
|
|
} |
5610
|
|
|
|
|
|
|
|
5611
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
5612
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
5613
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling GetSection"); |
5614
|
|
|
|
|
|
|
} |
5615
|
|
|
|
|
|
|
|
5616
|
|
|
|
|
|
|
|
5617
|
|
|
|
|
|
|
# parse inputs |
5618
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
5619
|
|
|
|
|
|
|
|
5620
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5621
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5622
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5623
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5624
|
|
|
|
|
|
|
|
5625
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
5626
|
0
|
|
|
|
|
|
my $query_params = {}; |
5627
|
0
|
|
|
|
|
|
my $header_params = {}; |
5628
|
0
|
|
|
|
|
|
my $form_params = {}; |
5629
|
|
|
|
|
|
|
|
5630
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5631
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5632
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5633
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5634
|
|
|
|
|
|
|
} |
5635
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5636
|
|
|
|
|
|
|
|
5637
|
|
|
|
|
|
|
# query params |
5638
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5639
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5640
|
|
|
|
|
|
|
}else{ |
5641
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5642
|
|
|
|
|
|
|
}# query params |
5643
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
5644
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
5645
|
|
|
|
|
|
|
}else{ |
5646
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
5647
|
|
|
|
|
|
|
}# query params |
5648
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5649
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5650
|
|
|
|
|
|
|
}else{ |
5651
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5652
|
|
|
|
|
|
|
}# query params |
5653
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5654
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5655
|
|
|
|
|
|
|
}else{ |
5656
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5657
|
|
|
|
|
|
|
} |
5658
|
|
|
|
|
|
|
|
5659
|
|
|
|
|
|
|
|
5660
|
0
|
|
|
|
|
|
my $_body_data; |
5661
|
|
|
|
|
|
|
|
5662
|
|
|
|
|
|
|
|
5663
|
|
|
|
|
|
|
|
5664
|
|
|
|
|
|
|
|
5665
|
|
|
|
|
|
|
# authentication setting, if any |
5666
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5667
|
|
|
|
|
|
|
|
5668
|
|
|
|
|
|
|
# make the API Call |
5669
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5670
|
|
|
|
|
|
|
$query_params, $form_params, |
5671
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5672
|
0
|
0
|
|
|
|
|
if (!$response) { |
5673
|
0
|
|
|
|
|
|
return; |
5674
|
|
|
|
|
|
|
} |
5675
|
|
|
|
|
|
|
|
5676
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5677
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5678
|
|
|
|
|
|
|
} |
5679
|
|
|
|
|
|
|
|
5680
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SectionResponse', $response->header('content-type')); |
5681
|
0
|
|
|
|
|
|
return $_response_object; |
5682
|
|
|
|
|
|
|
|
5683
|
|
|
|
|
|
|
} |
5684
|
|
|
|
|
|
|
# |
5685
|
|
|
|
|
|
|
# DeleteSectionFields |
5686
|
|
|
|
|
|
|
# |
5687
|
|
|
|
|
|
|
# |
5688
|
|
|
|
|
|
|
# |
5689
|
|
|
|
|
|
|
# @param String $name (required) |
5690
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
5691
|
|
|
|
|
|
|
# @param String $storage (optional) |
5692
|
|
|
|
|
|
|
# @param String $folder (optional) |
5693
|
|
|
|
|
|
|
# @return SaaSposeResponse |
5694
|
|
|
|
|
|
|
# |
5695
|
|
|
|
|
|
|
sub DeleteSectionFields { |
5696
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5697
|
|
|
|
|
|
|
|
5698
|
|
|
|
|
|
|
|
5699
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5700
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5701
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteSectionFields"); |
5702
|
|
|
|
|
|
|
} |
5703
|
|
|
|
|
|
|
|
5704
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
5705
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
5706
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling DeleteSectionFields"); |
5707
|
|
|
|
|
|
|
} |
5708
|
|
|
|
|
|
|
|
5709
|
|
|
|
|
|
|
|
5710
|
|
|
|
|
|
|
# parse inputs |
5711
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; |
5712
|
|
|
|
|
|
|
|
5713
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5714
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5715
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5716
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5717
|
|
|
|
|
|
|
|
5718
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
5719
|
0
|
|
|
|
|
|
my $query_params = {}; |
5720
|
0
|
|
|
|
|
|
my $header_params = {}; |
5721
|
0
|
|
|
|
|
|
my $form_params = {}; |
5722
|
|
|
|
|
|
|
|
5723
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5724
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5725
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5726
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5727
|
|
|
|
|
|
|
} |
5728
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5729
|
|
|
|
|
|
|
|
5730
|
|
|
|
|
|
|
# query params |
5731
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5732
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5733
|
|
|
|
|
|
|
}else{ |
5734
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5735
|
|
|
|
|
|
|
}# query params |
5736
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
5737
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
5738
|
|
|
|
|
|
|
}else{ |
5739
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
5740
|
|
|
|
|
|
|
}# query params |
5741
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5742
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5743
|
|
|
|
|
|
|
}else{ |
5744
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5745
|
|
|
|
|
|
|
}# query params |
5746
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5747
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5748
|
|
|
|
|
|
|
}else{ |
5749
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5750
|
|
|
|
|
|
|
} |
5751
|
|
|
|
|
|
|
|
5752
|
|
|
|
|
|
|
|
5753
|
0
|
|
|
|
|
|
my $_body_data; |
5754
|
|
|
|
|
|
|
|
5755
|
|
|
|
|
|
|
|
5756
|
|
|
|
|
|
|
|
5757
|
|
|
|
|
|
|
|
5758
|
|
|
|
|
|
|
# authentication setting, if any |
5759
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5760
|
|
|
|
|
|
|
|
5761
|
|
|
|
|
|
|
# make the API Call |
5762
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5763
|
|
|
|
|
|
|
$query_params, $form_params, |
5764
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5765
|
0
|
0
|
|
|
|
|
if (!$response) { |
5766
|
0
|
|
|
|
|
|
return; |
5767
|
|
|
|
|
|
|
} |
5768
|
|
|
|
|
|
|
|
5769
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5770
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5771
|
|
|
|
|
|
|
} |
5772
|
|
|
|
|
|
|
|
5773
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
5774
|
0
|
|
|
|
|
|
return $_response_object; |
5775
|
|
|
|
|
|
|
|
5776
|
|
|
|
|
|
|
} |
5777
|
|
|
|
|
|
|
# |
5778
|
|
|
|
|
|
|
# GetSectionPageSetup |
5779
|
|
|
|
|
|
|
# |
5780
|
|
|
|
|
|
|
# |
5781
|
|
|
|
|
|
|
# |
5782
|
|
|
|
|
|
|
# @param String $name (required) |
5783
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
5784
|
|
|
|
|
|
|
# @param String $storage (optional) |
5785
|
|
|
|
|
|
|
# @param String $folder (optional) |
5786
|
|
|
|
|
|
|
# @return SectionPageSetupResponse |
5787
|
|
|
|
|
|
|
# |
5788
|
|
|
|
|
|
|
sub GetSectionPageSetup { |
5789
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5790
|
|
|
|
|
|
|
|
5791
|
|
|
|
|
|
|
|
5792
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5793
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5794
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetSectionPageSetup"); |
5795
|
|
|
|
|
|
|
} |
5796
|
|
|
|
|
|
|
|
5797
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
5798
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
5799
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling GetSectionPageSetup"); |
5800
|
|
|
|
|
|
|
} |
5801
|
|
|
|
|
|
|
|
5802
|
|
|
|
|
|
|
|
5803
|
|
|
|
|
|
|
# parse inputs |
5804
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/pageSetup/?appSid={appSid}&storage={storage}&folder={folder}'; |
5805
|
|
|
|
|
|
|
|
5806
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5807
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5808
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5809
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5810
|
|
|
|
|
|
|
|
5811
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
5812
|
0
|
|
|
|
|
|
my $query_params = {}; |
5813
|
0
|
|
|
|
|
|
my $header_params = {}; |
5814
|
0
|
|
|
|
|
|
my $form_params = {}; |
5815
|
|
|
|
|
|
|
|
5816
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5817
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5818
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5819
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5820
|
|
|
|
|
|
|
} |
5821
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5822
|
|
|
|
|
|
|
|
5823
|
|
|
|
|
|
|
# query params |
5824
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5825
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5826
|
|
|
|
|
|
|
}else{ |
5827
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5828
|
|
|
|
|
|
|
}# query params |
5829
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
5830
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
5831
|
|
|
|
|
|
|
}else{ |
5832
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
5833
|
|
|
|
|
|
|
}# query params |
5834
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5835
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5836
|
|
|
|
|
|
|
}else{ |
5837
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5838
|
|
|
|
|
|
|
}# query params |
5839
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5840
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5841
|
|
|
|
|
|
|
}else{ |
5842
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5843
|
|
|
|
|
|
|
} |
5844
|
|
|
|
|
|
|
|
5845
|
|
|
|
|
|
|
|
5846
|
0
|
|
|
|
|
|
my $_body_data; |
5847
|
|
|
|
|
|
|
|
5848
|
|
|
|
|
|
|
|
5849
|
|
|
|
|
|
|
|
5850
|
|
|
|
|
|
|
|
5851
|
|
|
|
|
|
|
# authentication setting, if any |
5852
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5853
|
|
|
|
|
|
|
|
5854
|
|
|
|
|
|
|
# make the API Call |
5855
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5856
|
|
|
|
|
|
|
$query_params, $form_params, |
5857
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5858
|
0
|
0
|
|
|
|
|
if (!$response) { |
5859
|
0
|
|
|
|
|
|
return; |
5860
|
|
|
|
|
|
|
} |
5861
|
|
|
|
|
|
|
|
5862
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5863
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5864
|
|
|
|
|
|
|
} |
5865
|
|
|
|
|
|
|
|
5866
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SectionPageSetupResponse', $response->header('content-type')); |
5867
|
0
|
|
|
|
|
|
return $_response_object; |
5868
|
|
|
|
|
|
|
|
5869
|
|
|
|
|
|
|
} |
5870
|
|
|
|
|
|
|
# |
5871
|
|
|
|
|
|
|
# UpdateSectionPageSetup |
5872
|
|
|
|
|
|
|
# |
5873
|
|
|
|
|
|
|
# |
5874
|
|
|
|
|
|
|
# |
5875
|
|
|
|
|
|
|
# @param String $name (required) |
5876
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
5877
|
|
|
|
|
|
|
# @param String $storage (optional) |
5878
|
|
|
|
|
|
|
# @param String $folder (optional) |
5879
|
|
|
|
|
|
|
# @param String $filename (optional) |
5880
|
|
|
|
|
|
|
# @param PageSetup $body (required) |
5881
|
|
|
|
|
|
|
# @return SectionPageSetupResponse |
5882
|
|
|
|
|
|
|
# |
5883
|
|
|
|
|
|
|
sub UpdateSectionPageSetup { |
5884
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5885
|
|
|
|
|
|
|
|
5886
|
|
|
|
|
|
|
|
5887
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5888
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5889
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling UpdateSectionPageSetup"); |
5890
|
|
|
|
|
|
|
} |
5891
|
|
|
|
|
|
|
|
5892
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
5893
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
5894
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling UpdateSectionPageSetup"); |
5895
|
|
|
|
|
|
|
} |
5896
|
|
|
|
|
|
|
|
5897
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
5898
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
5899
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling UpdateSectionPageSetup"); |
5900
|
|
|
|
|
|
|
} |
5901
|
|
|
|
|
|
|
|
5902
|
|
|
|
|
|
|
|
5903
|
|
|
|
|
|
|
# parse inputs |
5904
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/pageSetup/?appSid={appSid}&storage={storage}&folder={folder}&filename={filename}'; |
5905
|
|
|
|
|
|
|
|
5906
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
5907
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
5908
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
5909
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
5910
|
|
|
|
|
|
|
|
5911
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
5912
|
0
|
|
|
|
|
|
my $query_params = {}; |
5913
|
0
|
|
|
|
|
|
my $header_params = {}; |
5914
|
0
|
|
|
|
|
|
my $form_params = {}; |
5915
|
|
|
|
|
|
|
|
5916
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
5917
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
5918
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
5919
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
5920
|
|
|
|
|
|
|
} |
5921
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
5922
|
|
|
|
|
|
|
|
5923
|
|
|
|
|
|
|
# query params |
5924
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
5925
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
5926
|
|
|
|
|
|
|
}else{ |
5927
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
5928
|
|
|
|
|
|
|
}# query params |
5929
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
5930
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
5931
|
|
|
|
|
|
|
}else{ |
5932
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
5933
|
|
|
|
|
|
|
}# query params |
5934
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
5935
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
5936
|
|
|
|
|
|
|
}else{ |
5937
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
5938
|
|
|
|
|
|
|
}# query params |
5939
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
5940
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
5941
|
|
|
|
|
|
|
}else{ |
5942
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
5943
|
|
|
|
|
|
|
}# query params |
5944
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
5945
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
5946
|
|
|
|
|
|
|
}else{ |
5947
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
5948
|
|
|
|
|
|
|
} |
5949
|
|
|
|
|
|
|
|
5950
|
|
|
|
|
|
|
|
5951
|
0
|
|
|
|
|
|
my $_body_data; |
5952
|
|
|
|
|
|
|
|
5953
|
|
|
|
|
|
|
|
5954
|
|
|
|
|
|
|
# body params |
5955
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
5956
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
5957
|
|
|
|
|
|
|
} |
5958
|
|
|
|
|
|
|
|
5959
|
|
|
|
|
|
|
# authentication setting, if any |
5960
|
0
|
|
|
|
|
|
my $auth_settings = []; |
5961
|
|
|
|
|
|
|
|
5962
|
|
|
|
|
|
|
# make the API Call |
5963
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
5964
|
|
|
|
|
|
|
$query_params, $form_params, |
5965
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
5966
|
0
|
0
|
|
|
|
|
if (!$response) { |
5967
|
0
|
|
|
|
|
|
return; |
5968
|
|
|
|
|
|
|
} |
5969
|
|
|
|
|
|
|
|
5970
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
5971
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
5972
|
|
|
|
|
|
|
} |
5973
|
|
|
|
|
|
|
|
5974
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SectionPageSetupResponse', $response->header('content-type')); |
5975
|
0
|
|
|
|
|
|
return $_response_object; |
5976
|
|
|
|
|
|
|
|
5977
|
|
|
|
|
|
|
} |
5978
|
|
|
|
|
|
|
# |
5979
|
|
|
|
|
|
|
# PutField |
5980
|
|
|
|
|
|
|
# |
5981
|
|
|
|
|
|
|
# |
5982
|
|
|
|
|
|
|
# |
5983
|
|
|
|
|
|
|
# @param String $name (required) |
5984
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
5985
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
5986
|
|
|
|
|
|
|
# @param String $insertBeforeNode (optional) |
5987
|
|
|
|
|
|
|
# @param String $destFileName (optional) |
5988
|
|
|
|
|
|
|
# @param String $storage (optional) |
5989
|
|
|
|
|
|
|
# @param String $folder (optional) |
5990
|
|
|
|
|
|
|
# @param FieldDto $body (required) |
5991
|
|
|
|
|
|
|
# @return FieldResponse |
5992
|
|
|
|
|
|
|
# |
5993
|
|
|
|
|
|
|
sub PutField { |
5994
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
5995
|
|
|
|
|
|
|
|
5996
|
|
|
|
|
|
|
|
5997
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
5998
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
5999
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PutField"); |
6000
|
|
|
|
|
|
|
} |
6001
|
|
|
|
|
|
|
|
6002
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6003
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6004
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling PutField"); |
6005
|
|
|
|
|
|
|
} |
6006
|
|
|
|
|
|
|
|
6007
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6008
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6009
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling PutField"); |
6010
|
|
|
|
|
|
|
} |
6011
|
|
|
|
|
|
|
|
6012
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
6013
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
6014
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PutField"); |
6015
|
|
|
|
|
|
|
} |
6016
|
|
|
|
|
|
|
|
6017
|
|
|
|
|
|
|
|
6018
|
|
|
|
|
|
|
# parse inputs |
6019
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/fields/?appSid={appSid}&insertBeforeNode={insertBeforeNode}&destFileName={destFileName}&storage={storage}&folder={folder}'; |
6020
|
|
|
|
|
|
|
|
6021
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6022
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6023
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6024
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6025
|
|
|
|
|
|
|
|
6026
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
6027
|
0
|
|
|
|
|
|
my $query_params = {}; |
6028
|
0
|
|
|
|
|
|
my $header_params = {}; |
6029
|
0
|
|
|
|
|
|
my $form_params = {}; |
6030
|
|
|
|
|
|
|
|
6031
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6032
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6033
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6034
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6035
|
|
|
|
|
|
|
} |
6036
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6037
|
|
|
|
|
|
|
|
6038
|
|
|
|
|
|
|
# query params |
6039
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6040
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6041
|
|
|
|
|
|
|
}else{ |
6042
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6043
|
|
|
|
|
|
|
}# query params |
6044
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6045
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6046
|
|
|
|
|
|
|
}else{ |
6047
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6048
|
|
|
|
|
|
|
}# query params |
6049
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6050
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6051
|
|
|
|
|
|
|
}else{ |
6052
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6053
|
|
|
|
|
|
|
}# query params |
6054
|
0
|
0
|
|
|
|
|
if ( exists $args{'insertBeforeNode'}) { |
6055
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{insertBeforeNode}\E/$args{'insertBeforeNode'}/g; |
6056
|
|
|
|
|
|
|
}else{ |
6057
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]insertBeforeNode.*?(?=&|\?|$)//g; |
6058
|
|
|
|
|
|
|
}# query params |
6059
|
0
|
0
|
|
|
|
|
if ( exists $args{'destFileName'}) { |
6060
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{destFileName}\E/$args{'destFileName'}/g; |
6061
|
|
|
|
|
|
|
}else{ |
6062
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]destFileName.*?(?=&|\?|$)//g; |
6063
|
|
|
|
|
|
|
}# query params |
6064
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6065
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6066
|
|
|
|
|
|
|
}else{ |
6067
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6068
|
|
|
|
|
|
|
}# query params |
6069
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6070
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6071
|
|
|
|
|
|
|
}else{ |
6072
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6073
|
|
|
|
|
|
|
} |
6074
|
|
|
|
|
|
|
|
6075
|
|
|
|
|
|
|
|
6076
|
0
|
|
|
|
|
|
my $_body_data; |
6077
|
|
|
|
|
|
|
|
6078
|
|
|
|
|
|
|
|
6079
|
|
|
|
|
|
|
# body params |
6080
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
6081
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
6082
|
|
|
|
|
|
|
} |
6083
|
|
|
|
|
|
|
|
6084
|
|
|
|
|
|
|
# authentication setting, if any |
6085
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6086
|
|
|
|
|
|
|
|
6087
|
|
|
|
|
|
|
# make the API Call |
6088
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6089
|
|
|
|
|
|
|
$query_params, $form_params, |
6090
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6091
|
0
|
0
|
|
|
|
|
if (!$response) { |
6092
|
0
|
|
|
|
|
|
return; |
6093
|
|
|
|
|
|
|
} |
6094
|
|
|
|
|
|
|
|
6095
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6096
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6097
|
|
|
|
|
|
|
} |
6098
|
|
|
|
|
|
|
|
6099
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldResponse', $response->header('content-type')); |
6100
|
0
|
|
|
|
|
|
return $_response_object; |
6101
|
|
|
|
|
|
|
|
6102
|
|
|
|
|
|
|
} |
6103
|
|
|
|
|
|
|
# |
6104
|
|
|
|
|
|
|
# DeleteSectionParagraphFields |
6105
|
|
|
|
|
|
|
# |
6106
|
|
|
|
|
|
|
# |
6107
|
|
|
|
|
|
|
# |
6108
|
|
|
|
|
|
|
# @param String $name (required) |
6109
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6110
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6111
|
|
|
|
|
|
|
# @param String $storage (optional) |
6112
|
|
|
|
|
|
|
# @param String $folder (optional) |
6113
|
|
|
|
|
|
|
# @return SaaSposeResponse |
6114
|
|
|
|
|
|
|
# |
6115
|
|
|
|
|
|
|
sub DeleteSectionParagraphFields { |
6116
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6117
|
|
|
|
|
|
|
|
6118
|
|
|
|
|
|
|
|
6119
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6120
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6121
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteSectionParagraphFields"); |
6122
|
|
|
|
|
|
|
} |
6123
|
|
|
|
|
|
|
|
6124
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6125
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6126
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling DeleteSectionParagraphFields"); |
6127
|
|
|
|
|
|
|
} |
6128
|
|
|
|
|
|
|
|
6129
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6130
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6131
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling DeleteSectionParagraphFields"); |
6132
|
|
|
|
|
|
|
} |
6133
|
|
|
|
|
|
|
|
6134
|
|
|
|
|
|
|
|
6135
|
|
|
|
|
|
|
# parse inputs |
6136
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; |
6137
|
|
|
|
|
|
|
|
6138
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6139
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6140
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6141
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6142
|
|
|
|
|
|
|
|
6143
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
6144
|
0
|
|
|
|
|
|
my $query_params = {}; |
6145
|
0
|
|
|
|
|
|
my $header_params = {}; |
6146
|
0
|
|
|
|
|
|
my $form_params = {}; |
6147
|
|
|
|
|
|
|
|
6148
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6149
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6150
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6151
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6152
|
|
|
|
|
|
|
} |
6153
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6154
|
|
|
|
|
|
|
|
6155
|
|
|
|
|
|
|
# query params |
6156
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6157
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6158
|
|
|
|
|
|
|
}else{ |
6159
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6160
|
|
|
|
|
|
|
}# query params |
6161
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6162
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6163
|
|
|
|
|
|
|
}else{ |
6164
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6165
|
|
|
|
|
|
|
}# query params |
6166
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6167
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6168
|
|
|
|
|
|
|
}else{ |
6169
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6170
|
|
|
|
|
|
|
}# query params |
6171
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6172
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6173
|
|
|
|
|
|
|
}else{ |
6174
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6175
|
|
|
|
|
|
|
}# query params |
6176
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6177
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6178
|
|
|
|
|
|
|
}else{ |
6179
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6180
|
|
|
|
|
|
|
} |
6181
|
|
|
|
|
|
|
|
6182
|
|
|
|
|
|
|
|
6183
|
0
|
|
|
|
|
|
my $_body_data; |
6184
|
|
|
|
|
|
|
|
6185
|
|
|
|
|
|
|
|
6186
|
|
|
|
|
|
|
|
6187
|
|
|
|
|
|
|
|
6188
|
|
|
|
|
|
|
# authentication setting, if any |
6189
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6190
|
|
|
|
|
|
|
|
6191
|
|
|
|
|
|
|
# make the API Call |
6192
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6193
|
|
|
|
|
|
|
$query_params, $form_params, |
6194
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6195
|
0
|
0
|
|
|
|
|
if (!$response) { |
6196
|
0
|
|
|
|
|
|
return; |
6197
|
|
|
|
|
|
|
} |
6198
|
|
|
|
|
|
|
|
6199
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6200
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6201
|
|
|
|
|
|
|
} |
6202
|
|
|
|
|
|
|
|
6203
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
6204
|
0
|
|
|
|
|
|
return $_response_object; |
6205
|
|
|
|
|
|
|
|
6206
|
|
|
|
|
|
|
} |
6207
|
|
|
|
|
|
|
# |
6208
|
|
|
|
|
|
|
# PostField |
6209
|
|
|
|
|
|
|
# |
6210
|
|
|
|
|
|
|
# |
6211
|
|
|
|
|
|
|
# |
6212
|
|
|
|
|
|
|
# @param String $name (required) |
6213
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6214
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6215
|
|
|
|
|
|
|
# @param String $fieldIndex (required) |
6216
|
|
|
|
|
|
|
# @param String $destFileName (optional) |
6217
|
|
|
|
|
|
|
# @param String $storage (optional) |
6218
|
|
|
|
|
|
|
# @param String $folder (optional) |
6219
|
|
|
|
|
|
|
# @param FieldDto $body (required) |
6220
|
|
|
|
|
|
|
# @return FieldResponse |
6221
|
|
|
|
|
|
|
# |
6222
|
|
|
|
|
|
|
sub PostField { |
6223
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6224
|
|
|
|
|
|
|
|
6225
|
|
|
|
|
|
|
|
6226
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6227
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6228
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostField"); |
6229
|
|
|
|
|
|
|
} |
6230
|
|
|
|
|
|
|
|
6231
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6232
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6233
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling PostField"); |
6234
|
|
|
|
|
|
|
} |
6235
|
|
|
|
|
|
|
|
6236
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6237
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6238
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling PostField"); |
6239
|
|
|
|
|
|
|
} |
6240
|
|
|
|
|
|
|
|
6241
|
|
|
|
|
|
|
# verify the required parameter 'fieldIndex' is set |
6242
|
0
|
0
|
|
|
|
|
unless (exists $args{'fieldIndex'}) { |
6243
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'fieldIndex' when calling PostField"); |
6244
|
|
|
|
|
|
|
} |
6245
|
|
|
|
|
|
|
|
6246
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
6247
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
6248
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostField"); |
6249
|
|
|
|
|
|
|
} |
6250
|
|
|
|
|
|
|
|
6251
|
|
|
|
|
|
|
|
6252
|
|
|
|
|
|
|
# parse inputs |
6253
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/fields/{fieldIndex}/?appSid={appSid}&destFileName={destFileName}&storage={storage}&folder={folder}'; |
6254
|
|
|
|
|
|
|
|
6255
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6256
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6257
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6258
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6259
|
|
|
|
|
|
|
|
6260
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
6261
|
0
|
|
|
|
|
|
my $query_params = {}; |
6262
|
0
|
|
|
|
|
|
my $header_params = {}; |
6263
|
0
|
|
|
|
|
|
my $form_params = {}; |
6264
|
|
|
|
|
|
|
|
6265
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6266
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6267
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6268
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6269
|
|
|
|
|
|
|
} |
6270
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6271
|
|
|
|
|
|
|
|
6272
|
|
|
|
|
|
|
# query params |
6273
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6274
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6275
|
|
|
|
|
|
|
}else{ |
6276
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6277
|
|
|
|
|
|
|
}# query params |
6278
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6279
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6280
|
|
|
|
|
|
|
}else{ |
6281
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6282
|
|
|
|
|
|
|
}# query params |
6283
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6284
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6285
|
|
|
|
|
|
|
}else{ |
6286
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6287
|
|
|
|
|
|
|
}# query params |
6288
|
0
|
0
|
|
|
|
|
if ( exists $args{'fieldIndex'}) { |
6289
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{fieldIndex}\E/$args{'fieldIndex'}/g; |
6290
|
|
|
|
|
|
|
}else{ |
6291
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]fieldIndex.*?(?=&|\?|$)//g; |
6292
|
|
|
|
|
|
|
}# query params |
6293
|
0
|
0
|
|
|
|
|
if ( exists $args{'destFileName'}) { |
6294
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{destFileName}\E/$args{'destFileName'}/g; |
6295
|
|
|
|
|
|
|
}else{ |
6296
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]destFileName.*?(?=&|\?|$)//g; |
6297
|
|
|
|
|
|
|
}# query params |
6298
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6299
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6300
|
|
|
|
|
|
|
}else{ |
6301
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6302
|
|
|
|
|
|
|
}# query params |
6303
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6304
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6305
|
|
|
|
|
|
|
}else{ |
6306
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6307
|
|
|
|
|
|
|
} |
6308
|
|
|
|
|
|
|
|
6309
|
|
|
|
|
|
|
|
6310
|
0
|
|
|
|
|
|
my $_body_data; |
6311
|
|
|
|
|
|
|
|
6312
|
|
|
|
|
|
|
|
6313
|
|
|
|
|
|
|
# body params |
6314
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
6315
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
6316
|
|
|
|
|
|
|
} |
6317
|
|
|
|
|
|
|
|
6318
|
|
|
|
|
|
|
# authentication setting, if any |
6319
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6320
|
|
|
|
|
|
|
|
6321
|
|
|
|
|
|
|
# make the API Call |
6322
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6323
|
|
|
|
|
|
|
$query_params, $form_params, |
6324
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6325
|
0
|
0
|
|
|
|
|
if (!$response) { |
6326
|
0
|
|
|
|
|
|
return; |
6327
|
|
|
|
|
|
|
} |
6328
|
|
|
|
|
|
|
|
6329
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6330
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6331
|
|
|
|
|
|
|
} |
6332
|
|
|
|
|
|
|
|
6333
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldResponse', $response->header('content-type')); |
6334
|
0
|
|
|
|
|
|
return $_response_object; |
6335
|
|
|
|
|
|
|
|
6336
|
|
|
|
|
|
|
} |
6337
|
|
|
|
|
|
|
# |
6338
|
|
|
|
|
|
|
# GetField |
6339
|
|
|
|
|
|
|
# |
6340
|
|
|
|
|
|
|
# |
6341
|
|
|
|
|
|
|
# |
6342
|
|
|
|
|
|
|
# @param String $name (required) |
6343
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6344
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6345
|
|
|
|
|
|
|
# @param String $fieldIndex (required) |
6346
|
|
|
|
|
|
|
# @param String $storage (optional) |
6347
|
|
|
|
|
|
|
# @param String $folder (optional) |
6348
|
|
|
|
|
|
|
# @return FieldResponse |
6349
|
|
|
|
|
|
|
# |
6350
|
|
|
|
|
|
|
sub GetField { |
6351
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6352
|
|
|
|
|
|
|
|
6353
|
|
|
|
|
|
|
|
6354
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6355
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6356
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetField"); |
6357
|
|
|
|
|
|
|
} |
6358
|
|
|
|
|
|
|
|
6359
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6360
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6361
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling GetField"); |
6362
|
|
|
|
|
|
|
} |
6363
|
|
|
|
|
|
|
|
6364
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6365
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6366
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling GetField"); |
6367
|
|
|
|
|
|
|
} |
6368
|
|
|
|
|
|
|
|
6369
|
|
|
|
|
|
|
# verify the required parameter 'fieldIndex' is set |
6370
|
0
|
0
|
|
|
|
|
unless (exists $args{'fieldIndex'}) { |
6371
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'fieldIndex' when calling GetField"); |
6372
|
|
|
|
|
|
|
} |
6373
|
|
|
|
|
|
|
|
6374
|
|
|
|
|
|
|
|
6375
|
|
|
|
|
|
|
# parse inputs |
6376
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/fields/{fieldIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
6377
|
|
|
|
|
|
|
|
6378
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6379
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6380
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6381
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6382
|
|
|
|
|
|
|
|
6383
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
6384
|
0
|
|
|
|
|
|
my $query_params = {}; |
6385
|
0
|
|
|
|
|
|
my $header_params = {}; |
6386
|
0
|
|
|
|
|
|
my $form_params = {}; |
6387
|
|
|
|
|
|
|
|
6388
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6389
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6390
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6391
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6392
|
|
|
|
|
|
|
} |
6393
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6394
|
|
|
|
|
|
|
|
6395
|
|
|
|
|
|
|
# query params |
6396
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6397
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6398
|
|
|
|
|
|
|
}else{ |
6399
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6400
|
|
|
|
|
|
|
}# query params |
6401
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6402
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6403
|
|
|
|
|
|
|
}else{ |
6404
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6405
|
|
|
|
|
|
|
}# query params |
6406
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6407
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6408
|
|
|
|
|
|
|
}else{ |
6409
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6410
|
|
|
|
|
|
|
}# query params |
6411
|
0
|
0
|
|
|
|
|
if ( exists $args{'fieldIndex'}) { |
6412
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{fieldIndex}\E/$args{'fieldIndex'}/g; |
6413
|
|
|
|
|
|
|
}else{ |
6414
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]fieldIndex.*?(?=&|\?|$)//g; |
6415
|
|
|
|
|
|
|
}# query params |
6416
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6417
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6418
|
|
|
|
|
|
|
}else{ |
6419
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6420
|
|
|
|
|
|
|
}# query params |
6421
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6422
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6423
|
|
|
|
|
|
|
}else{ |
6424
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6425
|
|
|
|
|
|
|
} |
6426
|
|
|
|
|
|
|
|
6427
|
|
|
|
|
|
|
|
6428
|
0
|
|
|
|
|
|
my $_body_data; |
6429
|
|
|
|
|
|
|
|
6430
|
|
|
|
|
|
|
|
6431
|
|
|
|
|
|
|
|
6432
|
|
|
|
|
|
|
|
6433
|
|
|
|
|
|
|
# authentication setting, if any |
6434
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6435
|
|
|
|
|
|
|
|
6436
|
|
|
|
|
|
|
# make the API Call |
6437
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6438
|
|
|
|
|
|
|
$query_params, $form_params, |
6439
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6440
|
0
|
0
|
|
|
|
|
if (!$response) { |
6441
|
0
|
|
|
|
|
|
return; |
6442
|
|
|
|
|
|
|
} |
6443
|
|
|
|
|
|
|
|
6444
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6445
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6446
|
|
|
|
|
|
|
} |
6447
|
|
|
|
|
|
|
|
6448
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldResponse', $response->header('content-type')); |
6449
|
0
|
|
|
|
|
|
return $_response_object; |
6450
|
|
|
|
|
|
|
|
6451
|
|
|
|
|
|
|
} |
6452
|
|
|
|
|
|
|
# |
6453
|
|
|
|
|
|
|
# PutFormField |
6454
|
|
|
|
|
|
|
# |
6455
|
|
|
|
|
|
|
# |
6456
|
|
|
|
|
|
|
# |
6457
|
|
|
|
|
|
|
# @param String $name (required) |
6458
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6459
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6460
|
|
|
|
|
|
|
# @param String $insertBeforeNode (optional) |
6461
|
|
|
|
|
|
|
# @param String $destFileName (optional) |
6462
|
|
|
|
|
|
|
# @param String $storage (optional) |
6463
|
|
|
|
|
|
|
# @param String $folder (optional) |
6464
|
|
|
|
|
|
|
# @param FormField $body (required) |
6465
|
|
|
|
|
|
|
# @return FormFieldResponse |
6466
|
|
|
|
|
|
|
# |
6467
|
|
|
|
|
|
|
sub PutFormField { |
6468
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6469
|
|
|
|
|
|
|
|
6470
|
|
|
|
|
|
|
|
6471
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6472
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6473
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PutFormField"); |
6474
|
|
|
|
|
|
|
} |
6475
|
|
|
|
|
|
|
|
6476
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6477
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6478
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling PutFormField"); |
6479
|
|
|
|
|
|
|
} |
6480
|
|
|
|
|
|
|
|
6481
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6482
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6483
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling PutFormField"); |
6484
|
|
|
|
|
|
|
} |
6485
|
|
|
|
|
|
|
|
6486
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
6487
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
6488
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PutFormField"); |
6489
|
|
|
|
|
|
|
} |
6490
|
|
|
|
|
|
|
|
6491
|
|
|
|
|
|
|
|
6492
|
|
|
|
|
|
|
# parse inputs |
6493
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/formfields/?appSid={appSid}&insertBeforeNode={insertBeforeNode}&destFileName={destFileName}&storage={storage}&folder={folder}'; |
6494
|
|
|
|
|
|
|
|
6495
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6496
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6497
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6498
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6499
|
|
|
|
|
|
|
|
6500
|
0
|
|
|
|
|
|
my $_method = 'PUT'; |
6501
|
0
|
|
|
|
|
|
my $query_params = {}; |
6502
|
0
|
|
|
|
|
|
my $header_params = {}; |
6503
|
0
|
|
|
|
|
|
my $form_params = {}; |
6504
|
|
|
|
|
|
|
|
6505
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6506
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/json'); |
6507
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6508
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6509
|
|
|
|
|
|
|
} |
6510
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/xml'); |
6511
|
|
|
|
|
|
|
|
6512
|
|
|
|
|
|
|
# query params |
6513
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6514
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6515
|
|
|
|
|
|
|
}else{ |
6516
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6517
|
|
|
|
|
|
|
}# query params |
6518
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6519
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6520
|
|
|
|
|
|
|
}else{ |
6521
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6522
|
|
|
|
|
|
|
}# query params |
6523
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6524
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6525
|
|
|
|
|
|
|
}else{ |
6526
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6527
|
|
|
|
|
|
|
}# query params |
6528
|
0
|
0
|
|
|
|
|
if ( exists $args{'insertBeforeNode'}) { |
6529
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{insertBeforeNode}\E/$args{'insertBeforeNode'}/g; |
6530
|
|
|
|
|
|
|
}else{ |
6531
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]insertBeforeNode.*?(?=&|\?|$)//g; |
6532
|
|
|
|
|
|
|
}# query params |
6533
|
0
|
0
|
|
|
|
|
if ( exists $args{'destFileName'}) { |
6534
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{destFileName}\E/$args{'destFileName'}/g; |
6535
|
|
|
|
|
|
|
}else{ |
6536
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]destFileName.*?(?=&|\?|$)//g; |
6537
|
|
|
|
|
|
|
}# query params |
6538
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6539
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6540
|
|
|
|
|
|
|
}else{ |
6541
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6542
|
|
|
|
|
|
|
}# query params |
6543
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6544
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6545
|
|
|
|
|
|
|
}else{ |
6546
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6547
|
|
|
|
|
|
|
} |
6548
|
|
|
|
|
|
|
|
6549
|
|
|
|
|
|
|
|
6550
|
0
|
|
|
|
|
|
my $_body_data; |
6551
|
|
|
|
|
|
|
|
6552
|
|
|
|
|
|
|
|
6553
|
|
|
|
|
|
|
# body params |
6554
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
6555
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
6556
|
|
|
|
|
|
|
} |
6557
|
|
|
|
|
|
|
|
6558
|
|
|
|
|
|
|
# authentication setting, if any |
6559
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6560
|
|
|
|
|
|
|
|
6561
|
|
|
|
|
|
|
# make the API Call |
6562
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6563
|
|
|
|
|
|
|
$query_params, $form_params, |
6564
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6565
|
0
|
0
|
|
|
|
|
if (!$response) { |
6566
|
0
|
|
|
|
|
|
return; |
6567
|
|
|
|
|
|
|
} |
6568
|
|
|
|
|
|
|
|
6569
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6570
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6571
|
|
|
|
|
|
|
} |
6572
|
|
|
|
|
|
|
|
6573
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FormFieldResponse', $response->header('content-type')); |
6574
|
0
|
|
|
|
|
|
return $_response_object; |
6575
|
|
|
|
|
|
|
|
6576
|
|
|
|
|
|
|
} |
6577
|
|
|
|
|
|
|
# |
6578
|
|
|
|
|
|
|
# PostFormField |
6579
|
|
|
|
|
|
|
# |
6580
|
|
|
|
|
|
|
# |
6581
|
|
|
|
|
|
|
# |
6582
|
|
|
|
|
|
|
# @param String $name (required) |
6583
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6584
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6585
|
|
|
|
|
|
|
# @param String $formfieldIndex (required) |
6586
|
|
|
|
|
|
|
# @param String $destFileName (optional) |
6587
|
|
|
|
|
|
|
# @param String $storage (optional) |
6588
|
|
|
|
|
|
|
# @param String $folder (optional) |
6589
|
|
|
|
|
|
|
# @param FormField $body (required) |
6590
|
|
|
|
|
|
|
# @return FormFieldResponse |
6591
|
|
|
|
|
|
|
# |
6592
|
|
|
|
|
|
|
sub PostFormField { |
6593
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6594
|
|
|
|
|
|
|
|
6595
|
|
|
|
|
|
|
|
6596
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6597
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6598
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostFormField"); |
6599
|
|
|
|
|
|
|
} |
6600
|
|
|
|
|
|
|
|
6601
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6602
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6603
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling PostFormField"); |
6604
|
|
|
|
|
|
|
} |
6605
|
|
|
|
|
|
|
|
6606
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6607
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6608
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling PostFormField"); |
6609
|
|
|
|
|
|
|
} |
6610
|
|
|
|
|
|
|
|
6611
|
|
|
|
|
|
|
# verify the required parameter 'formfieldIndex' is set |
6612
|
0
|
0
|
|
|
|
|
unless (exists $args{'formfieldIndex'}) { |
6613
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'formfieldIndex' when calling PostFormField"); |
6614
|
|
|
|
|
|
|
} |
6615
|
|
|
|
|
|
|
|
6616
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
6617
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
6618
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostFormField"); |
6619
|
|
|
|
|
|
|
} |
6620
|
|
|
|
|
|
|
|
6621
|
|
|
|
|
|
|
|
6622
|
|
|
|
|
|
|
# parse inputs |
6623
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/formfields/{formfieldIndex}/?appSid={appSid}&destFileName={destFileName}&storage={storage}&folder={folder}'; |
6624
|
|
|
|
|
|
|
|
6625
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6626
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6627
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6628
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6629
|
|
|
|
|
|
|
|
6630
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
6631
|
0
|
|
|
|
|
|
my $query_params = {}; |
6632
|
0
|
|
|
|
|
|
my $header_params = {}; |
6633
|
0
|
|
|
|
|
|
my $form_params = {}; |
6634
|
|
|
|
|
|
|
|
6635
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6636
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6637
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6638
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6639
|
|
|
|
|
|
|
} |
6640
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/xml'); |
6641
|
|
|
|
|
|
|
|
6642
|
|
|
|
|
|
|
# query params |
6643
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6644
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6645
|
|
|
|
|
|
|
}else{ |
6646
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6647
|
|
|
|
|
|
|
}# query params |
6648
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6649
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6650
|
|
|
|
|
|
|
}else{ |
6651
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6652
|
|
|
|
|
|
|
}# query params |
6653
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6654
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6655
|
|
|
|
|
|
|
}else{ |
6656
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6657
|
|
|
|
|
|
|
}# query params |
6658
|
0
|
0
|
|
|
|
|
if ( exists $args{'formfieldIndex'}) { |
6659
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{formfieldIndex}\E/$args{'formfieldIndex'}/g; |
6660
|
|
|
|
|
|
|
}else{ |
6661
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]formfieldIndex.*?(?=&|\?|$)//g; |
6662
|
|
|
|
|
|
|
}# query params |
6663
|
0
|
0
|
|
|
|
|
if ( exists $args{'destFileName'}) { |
6664
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{destFileName}\E/$args{'destFileName'}/g; |
6665
|
|
|
|
|
|
|
}else{ |
6666
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]destFileName.*?(?=&|\?|$)//g; |
6667
|
|
|
|
|
|
|
}# query params |
6668
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6669
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6670
|
|
|
|
|
|
|
}else{ |
6671
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6672
|
|
|
|
|
|
|
}# query params |
6673
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6674
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6675
|
|
|
|
|
|
|
}else{ |
6676
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6677
|
|
|
|
|
|
|
} |
6678
|
|
|
|
|
|
|
|
6679
|
|
|
|
|
|
|
|
6680
|
0
|
|
|
|
|
|
my $_body_data; |
6681
|
|
|
|
|
|
|
|
6682
|
|
|
|
|
|
|
|
6683
|
|
|
|
|
|
|
# body params |
6684
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
6685
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
6686
|
|
|
|
|
|
|
} |
6687
|
|
|
|
|
|
|
|
6688
|
|
|
|
|
|
|
# authentication setting, if any |
6689
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6690
|
|
|
|
|
|
|
|
6691
|
|
|
|
|
|
|
# make the API Call |
6692
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6693
|
|
|
|
|
|
|
$query_params, $form_params, |
6694
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6695
|
0
|
0
|
|
|
|
|
if (!$response) { |
6696
|
0
|
|
|
|
|
|
return; |
6697
|
|
|
|
|
|
|
} |
6698
|
|
|
|
|
|
|
|
6699
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6700
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6701
|
|
|
|
|
|
|
} |
6702
|
|
|
|
|
|
|
|
6703
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FormFieldResponse', $response->header('content-type')); |
6704
|
0
|
|
|
|
|
|
return $_response_object; |
6705
|
|
|
|
|
|
|
|
6706
|
|
|
|
|
|
|
} |
6707
|
|
|
|
|
|
|
# |
6708
|
|
|
|
|
|
|
# DeleteFormField |
6709
|
|
|
|
|
|
|
# |
6710
|
|
|
|
|
|
|
# |
6711
|
|
|
|
|
|
|
# |
6712
|
|
|
|
|
|
|
# @param String $name (required) |
6713
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6714
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6715
|
|
|
|
|
|
|
# @param String $formfieldIndex (required) |
6716
|
|
|
|
|
|
|
# @param String $destFileName (optional) |
6717
|
|
|
|
|
|
|
# @param String $storage (optional) |
6718
|
|
|
|
|
|
|
# @param String $folder (optional) |
6719
|
|
|
|
|
|
|
# @return SaaSposeResponse |
6720
|
|
|
|
|
|
|
# |
6721
|
|
|
|
|
|
|
sub DeleteFormField { |
6722
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6723
|
|
|
|
|
|
|
|
6724
|
|
|
|
|
|
|
|
6725
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6726
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6727
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteFormField"); |
6728
|
|
|
|
|
|
|
} |
6729
|
|
|
|
|
|
|
|
6730
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6731
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6732
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling DeleteFormField"); |
6733
|
|
|
|
|
|
|
} |
6734
|
|
|
|
|
|
|
|
6735
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6736
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6737
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling DeleteFormField"); |
6738
|
|
|
|
|
|
|
} |
6739
|
|
|
|
|
|
|
|
6740
|
|
|
|
|
|
|
# verify the required parameter 'formfieldIndex' is set |
6741
|
0
|
0
|
|
|
|
|
unless (exists $args{'formfieldIndex'}) { |
6742
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'formfieldIndex' when calling DeleteFormField"); |
6743
|
|
|
|
|
|
|
} |
6744
|
|
|
|
|
|
|
|
6745
|
|
|
|
|
|
|
|
6746
|
|
|
|
|
|
|
# parse inputs |
6747
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/formfields/{formfieldIndex}/?appSid={appSid}&destFileName={destFileName}&storage={storage}&folder={folder}'; |
6748
|
|
|
|
|
|
|
|
6749
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6750
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6751
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6752
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6753
|
|
|
|
|
|
|
|
6754
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
6755
|
0
|
|
|
|
|
|
my $query_params = {}; |
6756
|
0
|
|
|
|
|
|
my $header_params = {}; |
6757
|
0
|
|
|
|
|
|
my $form_params = {}; |
6758
|
|
|
|
|
|
|
|
6759
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6760
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6761
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6762
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6763
|
|
|
|
|
|
|
} |
6764
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6765
|
|
|
|
|
|
|
|
6766
|
|
|
|
|
|
|
# query params |
6767
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6768
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6769
|
|
|
|
|
|
|
}else{ |
6770
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6771
|
|
|
|
|
|
|
}# query params |
6772
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6773
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6774
|
|
|
|
|
|
|
}else{ |
6775
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6776
|
|
|
|
|
|
|
}# query params |
6777
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6778
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6779
|
|
|
|
|
|
|
}else{ |
6780
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6781
|
|
|
|
|
|
|
}# query params |
6782
|
0
|
0
|
|
|
|
|
if ( exists $args{'formfieldIndex'}) { |
6783
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{formfieldIndex}\E/$args{'formfieldIndex'}/g; |
6784
|
|
|
|
|
|
|
}else{ |
6785
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]formfieldIndex.*?(?=&|\?|$)//g; |
6786
|
|
|
|
|
|
|
}# query params |
6787
|
0
|
0
|
|
|
|
|
if ( exists $args{'destFileName'}) { |
6788
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{destFileName}\E/$args{'destFileName'}/g; |
6789
|
|
|
|
|
|
|
}else{ |
6790
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]destFileName.*?(?=&|\?|$)//g; |
6791
|
|
|
|
|
|
|
}# query params |
6792
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6793
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6794
|
|
|
|
|
|
|
}else{ |
6795
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6796
|
|
|
|
|
|
|
}# query params |
6797
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6798
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6799
|
|
|
|
|
|
|
}else{ |
6800
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6801
|
|
|
|
|
|
|
} |
6802
|
|
|
|
|
|
|
|
6803
|
|
|
|
|
|
|
|
6804
|
0
|
|
|
|
|
|
my $_body_data; |
6805
|
|
|
|
|
|
|
|
6806
|
|
|
|
|
|
|
|
6807
|
|
|
|
|
|
|
|
6808
|
|
|
|
|
|
|
|
6809
|
|
|
|
|
|
|
# authentication setting, if any |
6810
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6811
|
|
|
|
|
|
|
|
6812
|
|
|
|
|
|
|
# make the API Call |
6813
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6814
|
|
|
|
|
|
|
$query_params, $form_params, |
6815
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6816
|
0
|
0
|
|
|
|
|
if (!$response) { |
6817
|
0
|
|
|
|
|
|
return; |
6818
|
|
|
|
|
|
|
} |
6819
|
|
|
|
|
|
|
|
6820
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6821
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6822
|
|
|
|
|
|
|
} |
6823
|
|
|
|
|
|
|
|
6824
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); |
6825
|
0
|
|
|
|
|
|
return $_response_object; |
6826
|
|
|
|
|
|
|
|
6827
|
|
|
|
|
|
|
} |
6828
|
|
|
|
|
|
|
# |
6829
|
|
|
|
|
|
|
# GetFormField |
6830
|
|
|
|
|
|
|
# |
6831
|
|
|
|
|
|
|
# |
6832
|
|
|
|
|
|
|
# |
6833
|
|
|
|
|
|
|
# @param String $name (required) |
6834
|
|
|
|
|
|
|
# @param String $sectionIndex (required) |
6835
|
|
|
|
|
|
|
# @param String $paragraphIndex (required) |
6836
|
|
|
|
|
|
|
# @param String $formfieldIndex (required) |
6837
|
|
|
|
|
|
|
# @param String $storage (optional) |
6838
|
|
|
|
|
|
|
# @param String $folder (optional) |
6839
|
|
|
|
|
|
|
# @return FormFieldResponse |
6840
|
|
|
|
|
|
|
# |
6841
|
|
|
|
|
|
|
sub GetFormField { |
6842
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6843
|
|
|
|
|
|
|
|
6844
|
|
|
|
|
|
|
|
6845
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6846
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6847
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetFormField"); |
6848
|
|
|
|
|
|
|
} |
6849
|
|
|
|
|
|
|
|
6850
|
|
|
|
|
|
|
# verify the required parameter 'sectionIndex' is set |
6851
|
0
|
0
|
|
|
|
|
unless (exists $args{'sectionIndex'}) { |
6852
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'sectionIndex' when calling GetFormField"); |
6853
|
|
|
|
|
|
|
} |
6854
|
|
|
|
|
|
|
|
6855
|
|
|
|
|
|
|
# verify the required parameter 'paragraphIndex' is set |
6856
|
0
|
0
|
|
|
|
|
unless (exists $args{'paragraphIndex'}) { |
6857
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'paragraphIndex' when calling GetFormField"); |
6858
|
|
|
|
|
|
|
} |
6859
|
|
|
|
|
|
|
|
6860
|
|
|
|
|
|
|
# verify the required parameter 'formfieldIndex' is set |
6861
|
0
|
0
|
|
|
|
|
unless (exists $args{'formfieldIndex'}) { |
6862
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'formfieldIndex' when calling GetFormField"); |
6863
|
|
|
|
|
|
|
} |
6864
|
|
|
|
|
|
|
|
6865
|
|
|
|
|
|
|
|
6866
|
|
|
|
|
|
|
# parse inputs |
6867
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/sections/{sectionIndex}/paragraphs/{paragraphIndex}/formfields/{formfieldIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; |
6868
|
|
|
|
|
|
|
|
6869
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6870
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6871
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6872
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6873
|
|
|
|
|
|
|
|
6874
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
6875
|
0
|
|
|
|
|
|
my $query_params = {}; |
6876
|
0
|
|
|
|
|
|
my $header_params = {}; |
6877
|
0
|
|
|
|
|
|
my $form_params = {}; |
6878
|
|
|
|
|
|
|
|
6879
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6880
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6881
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6882
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6883
|
|
|
|
|
|
|
} |
6884
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6885
|
|
|
|
|
|
|
|
6886
|
|
|
|
|
|
|
# query params |
6887
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6888
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6889
|
|
|
|
|
|
|
}else{ |
6890
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6891
|
|
|
|
|
|
|
}# query params |
6892
|
0
|
0
|
|
|
|
|
if ( exists $args{'sectionIndex'}) { |
6893
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{sectionIndex}\E/$args{'sectionIndex'}/g; |
6894
|
|
|
|
|
|
|
}else{ |
6895
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]sectionIndex.*?(?=&|\?|$)//g; |
6896
|
|
|
|
|
|
|
}# query params |
6897
|
0
|
0
|
|
|
|
|
if ( exists $args{'paragraphIndex'}) { |
6898
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{paragraphIndex}\E/$args{'paragraphIndex'}/g; |
6899
|
|
|
|
|
|
|
}else{ |
6900
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]paragraphIndex.*?(?=&|\?|$)//g; |
6901
|
|
|
|
|
|
|
}# query params |
6902
|
0
|
0
|
|
|
|
|
if ( exists $args{'formfieldIndex'}) { |
6903
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{formfieldIndex}\E/$args{'formfieldIndex'}/g; |
6904
|
|
|
|
|
|
|
}else{ |
6905
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]formfieldIndex.*?(?=&|\?|$)//g; |
6906
|
|
|
|
|
|
|
}# query params |
6907
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
6908
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
6909
|
|
|
|
|
|
|
}else{ |
6910
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
6911
|
|
|
|
|
|
|
}# query params |
6912
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
6913
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
6914
|
|
|
|
|
|
|
}else{ |
6915
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
6916
|
|
|
|
|
|
|
} |
6917
|
|
|
|
|
|
|
|
6918
|
|
|
|
|
|
|
|
6919
|
0
|
|
|
|
|
|
my $_body_data; |
6920
|
|
|
|
|
|
|
|
6921
|
|
|
|
|
|
|
|
6922
|
|
|
|
|
|
|
|
6923
|
|
|
|
|
|
|
|
6924
|
|
|
|
|
|
|
# authentication setting, if any |
6925
|
0
|
|
|
|
|
|
my $auth_settings = []; |
6926
|
|
|
|
|
|
|
|
6927
|
|
|
|
|
|
|
# make the API Call |
6928
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
6929
|
|
|
|
|
|
|
$query_params, $form_params, |
6930
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
6931
|
0
|
0
|
|
|
|
|
if (!$response) { |
6932
|
0
|
|
|
|
|
|
return; |
6933
|
|
|
|
|
|
|
} |
6934
|
|
|
|
|
|
|
|
6935
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
6936
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
6937
|
|
|
|
|
|
|
} |
6938
|
|
|
|
|
|
|
|
6939
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FormFieldResponse', $response->header('content-type')); |
6940
|
0
|
|
|
|
|
|
return $_response_object; |
6941
|
|
|
|
|
|
|
|
6942
|
|
|
|
|
|
|
} |
6943
|
|
|
|
|
|
|
# |
6944
|
|
|
|
|
|
|
# PostSplitDocument |
6945
|
|
|
|
|
|
|
# |
6946
|
|
|
|
|
|
|
# |
6947
|
|
|
|
|
|
|
# |
6948
|
|
|
|
|
|
|
# @param String $name (required) |
6949
|
|
|
|
|
|
|
# @param String $format (optional) |
6950
|
|
|
|
|
|
|
# @param String $from (optional) |
6951
|
|
|
|
|
|
|
# @param String $to (optional) |
6952
|
|
|
|
|
|
|
# @param Boolean $zipOutput (optional) |
6953
|
|
|
|
|
|
|
# @param String $storage (optional) |
6954
|
|
|
|
|
|
|
# @param String $folder (optional) |
6955
|
|
|
|
|
|
|
# @return SplitDocumentResponse |
6956
|
|
|
|
|
|
|
# |
6957
|
|
|
|
|
|
|
sub PostSplitDocument { |
6958
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
6959
|
|
|
|
|
|
|
|
6960
|
|
|
|
|
|
|
|
6961
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
6962
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
6963
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostSplitDocument"); |
6964
|
|
|
|
|
|
|
} |
6965
|
|
|
|
|
|
|
|
6966
|
|
|
|
|
|
|
|
6967
|
|
|
|
|
|
|
# parse inputs |
6968
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/split/?appSid={appSid}&toFormat={toFormat}&from={from}&to={to}&zipOutput={zipOutput}&storage={storage}&folder={folder}'; |
6969
|
|
|
|
|
|
|
|
6970
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
6971
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
6972
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
6973
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
6974
|
|
|
|
|
|
|
|
6975
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
6976
|
0
|
|
|
|
|
|
my $query_params = {}; |
6977
|
0
|
|
|
|
|
|
my $header_params = {}; |
6978
|
0
|
|
|
|
|
|
my $form_params = {}; |
6979
|
|
|
|
|
|
|
|
6980
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
6981
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
6982
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
6983
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
6984
|
|
|
|
|
|
|
} |
6985
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
6986
|
|
|
|
|
|
|
|
6987
|
|
|
|
|
|
|
# query params |
6988
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
6989
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
6990
|
|
|
|
|
|
|
}else{ |
6991
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
6992
|
|
|
|
|
|
|
}# query params |
6993
|
0
|
0
|
|
|
|
|
if ( exists $args{'format'}) { |
6994
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{format}\E/$args{'format'}/g; |
6995
|
|
|
|
|
|
|
}else{ |
6996
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; |
6997
|
|
|
|
|
|
|
}# query params |
6998
|
0
|
0
|
|
|
|
|
if ( exists $args{'from'}) { |
6999
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{from}\E/$args{'from'}/g; |
7000
|
|
|
|
|
|
|
}else{ |
7001
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]from.*?(?=&|\?|$)//g; |
7002
|
|
|
|
|
|
|
}# query params |
7003
|
0
|
0
|
|
|
|
|
if ( exists $args{'to'}) { |
7004
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{to}\E/$args{'to'}/g; |
7005
|
|
|
|
|
|
|
}else{ |
7006
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]to.*?(?=&|\?|$)//g; |
7007
|
|
|
|
|
|
|
}# query params |
7008
|
0
|
0
|
|
|
|
|
if ( exists $args{'zipOutput'}) { |
7009
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{zipOutput}\E/$args{'zipOutput'}/g; |
7010
|
|
|
|
|
|
|
}else{ |
7011
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]zipOutput.*?(?=&|\?|$)//g; |
7012
|
|
|
|
|
|
|
}# query params |
7013
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7014
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7015
|
|
|
|
|
|
|
}else{ |
7016
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7017
|
|
|
|
|
|
|
}# query params |
7018
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7019
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7020
|
|
|
|
|
|
|
}else{ |
7021
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7022
|
|
|
|
|
|
|
} |
7023
|
|
|
|
|
|
|
|
7024
|
|
|
|
|
|
|
|
7025
|
0
|
|
|
|
|
|
my $_body_data; |
7026
|
|
|
|
|
|
|
|
7027
|
|
|
|
|
|
|
|
7028
|
|
|
|
|
|
|
|
7029
|
|
|
|
|
|
|
|
7030
|
|
|
|
|
|
|
# authentication setting, if any |
7031
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7032
|
|
|
|
|
|
|
|
7033
|
|
|
|
|
|
|
# make the API Call |
7034
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7035
|
|
|
|
|
|
|
$query_params, $form_params, |
7036
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7037
|
0
|
0
|
|
|
|
|
if (!$response) { |
7038
|
0
|
|
|
|
|
|
return; |
7039
|
|
|
|
|
|
|
} |
7040
|
|
|
|
|
|
|
|
7041
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7042
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7043
|
|
|
|
|
|
|
} |
7044
|
|
|
|
|
|
|
|
7045
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SplitDocumentResponse', $response->header('content-type')); |
7046
|
0
|
|
|
|
|
|
return $_response_object; |
7047
|
|
|
|
|
|
|
|
7048
|
|
|
|
|
|
|
} |
7049
|
|
|
|
|
|
|
# |
7050
|
|
|
|
|
|
|
# GetDocumentStatistics |
7051
|
|
|
|
|
|
|
# |
7052
|
|
|
|
|
|
|
# |
7053
|
|
|
|
|
|
|
# |
7054
|
|
|
|
|
|
|
# @param String $name (required) |
7055
|
|
|
|
|
|
|
# @param Boolean $includeComments (optional) |
7056
|
|
|
|
|
|
|
# @param Boolean $includeFootnotes (optional) |
7057
|
|
|
|
|
|
|
# @param Boolean $includeTextInShapes (optional) |
7058
|
|
|
|
|
|
|
# @param String $storage (optional) |
7059
|
|
|
|
|
|
|
# @param String $folder (optional) |
7060
|
|
|
|
|
|
|
# @return StatDataResponse |
7061
|
|
|
|
|
|
|
# |
7062
|
|
|
|
|
|
|
sub GetDocumentStatistics { |
7063
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
7064
|
|
|
|
|
|
|
|
7065
|
|
|
|
|
|
|
|
7066
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
7067
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
7068
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentStatistics"); |
7069
|
|
|
|
|
|
|
} |
7070
|
|
|
|
|
|
|
|
7071
|
|
|
|
|
|
|
|
7072
|
|
|
|
|
|
|
# parse inputs |
7073
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/statistics/?appSid={appSid}&includeComments={includeComments}&includeFootnotes={includeFootnotes}&includeTextInShapes={includeTextInShapes}&storage={storage}&folder={folder}'; |
7074
|
|
|
|
|
|
|
|
7075
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
7076
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
7077
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
7078
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
7079
|
|
|
|
|
|
|
|
7080
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
7081
|
0
|
|
|
|
|
|
my $query_params = {}; |
7082
|
0
|
|
|
|
|
|
my $header_params = {}; |
7083
|
0
|
|
|
|
|
|
my $form_params = {}; |
7084
|
|
|
|
|
|
|
|
7085
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
7086
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
7087
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
7088
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
7089
|
|
|
|
|
|
|
} |
7090
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
7091
|
|
|
|
|
|
|
|
7092
|
|
|
|
|
|
|
# query params |
7093
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
7094
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
7095
|
|
|
|
|
|
|
}else{ |
7096
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
7097
|
|
|
|
|
|
|
}# query params |
7098
|
0
|
0
|
|
|
|
|
if ( exists $args{'includeComments'}) { |
7099
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{includeComments}\E/$args{'includeComments'}/g; |
7100
|
|
|
|
|
|
|
}else{ |
7101
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]includeComments.*?(?=&|\?|$)//g; |
7102
|
|
|
|
|
|
|
}# query params |
7103
|
0
|
0
|
|
|
|
|
if ( exists $args{'includeFootnotes'}) { |
7104
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{includeFootnotes}\E/$args{'includeFootnotes'}/g; |
7105
|
|
|
|
|
|
|
}else{ |
7106
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]includeFootnotes.*?(?=&|\?|$)//g; |
7107
|
|
|
|
|
|
|
}# query params |
7108
|
0
|
0
|
|
|
|
|
if ( exists $args{'includeTextInShapes'}) { |
7109
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{includeTextInShapes}\E/$args{'includeTextInShapes'}/g; |
7110
|
|
|
|
|
|
|
}else{ |
7111
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]includeTextInShapes.*?(?=&|\?|$)//g; |
7112
|
|
|
|
|
|
|
}# query params |
7113
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7114
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7115
|
|
|
|
|
|
|
}else{ |
7116
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7117
|
|
|
|
|
|
|
}# query params |
7118
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7119
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7120
|
|
|
|
|
|
|
}else{ |
7121
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7122
|
|
|
|
|
|
|
} |
7123
|
|
|
|
|
|
|
|
7124
|
|
|
|
|
|
|
|
7125
|
0
|
|
|
|
|
|
my $_body_data; |
7126
|
|
|
|
|
|
|
|
7127
|
|
|
|
|
|
|
|
7128
|
|
|
|
|
|
|
|
7129
|
|
|
|
|
|
|
|
7130
|
|
|
|
|
|
|
# authentication setting, if any |
7131
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7132
|
|
|
|
|
|
|
|
7133
|
|
|
|
|
|
|
# make the API Call |
7134
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7135
|
|
|
|
|
|
|
$query_params, $form_params, |
7136
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7137
|
0
|
0
|
|
|
|
|
if (!$response) { |
7138
|
0
|
|
|
|
|
|
return; |
7139
|
|
|
|
|
|
|
} |
7140
|
|
|
|
|
|
|
|
7141
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7142
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7143
|
|
|
|
|
|
|
} |
7144
|
|
|
|
|
|
|
|
7145
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'StatDataResponse', $response->header('content-type')); |
7146
|
0
|
|
|
|
|
|
return $_response_object; |
7147
|
|
|
|
|
|
|
|
7148
|
|
|
|
|
|
|
} |
7149
|
|
|
|
|
|
|
# |
7150
|
|
|
|
|
|
|
# GetDocumentTextItems |
7151
|
|
|
|
|
|
|
# |
7152
|
|
|
|
|
|
|
# |
7153
|
|
|
|
|
|
|
# |
7154
|
|
|
|
|
|
|
# @param String $name (required) |
7155
|
|
|
|
|
|
|
# @param String $storage (optional) |
7156
|
|
|
|
|
|
|
# @param String $folder (optional) |
7157
|
|
|
|
|
|
|
# @return TextItemsResponse |
7158
|
|
|
|
|
|
|
# |
7159
|
|
|
|
|
|
|
sub GetDocumentTextItems { |
7160
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
7161
|
|
|
|
|
|
|
|
7162
|
|
|
|
|
|
|
|
7163
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
7164
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
7165
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling GetDocumentTextItems"); |
7166
|
|
|
|
|
|
|
} |
7167
|
|
|
|
|
|
|
|
7168
|
|
|
|
|
|
|
|
7169
|
|
|
|
|
|
|
# parse inputs |
7170
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/textItems/?appSid={appSid}&storage={storage}&folder={folder}'; |
7171
|
|
|
|
|
|
|
|
7172
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
7173
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
7174
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
7175
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
7176
|
|
|
|
|
|
|
|
7177
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
7178
|
0
|
|
|
|
|
|
my $query_params = {}; |
7179
|
0
|
|
|
|
|
|
my $header_params = {}; |
7180
|
0
|
|
|
|
|
|
my $form_params = {}; |
7181
|
|
|
|
|
|
|
|
7182
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
7183
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
7184
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
7185
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
7186
|
|
|
|
|
|
|
} |
7187
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
7188
|
|
|
|
|
|
|
|
7189
|
|
|
|
|
|
|
# query params |
7190
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
7191
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
7192
|
|
|
|
|
|
|
}else{ |
7193
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
7194
|
|
|
|
|
|
|
}# query params |
7195
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7196
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7197
|
|
|
|
|
|
|
}else{ |
7198
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7199
|
|
|
|
|
|
|
}# query params |
7200
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7201
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7202
|
|
|
|
|
|
|
}else{ |
7203
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7204
|
|
|
|
|
|
|
} |
7205
|
|
|
|
|
|
|
|
7206
|
|
|
|
|
|
|
|
7207
|
0
|
|
|
|
|
|
my $_body_data; |
7208
|
|
|
|
|
|
|
|
7209
|
|
|
|
|
|
|
|
7210
|
|
|
|
|
|
|
|
7211
|
|
|
|
|
|
|
|
7212
|
|
|
|
|
|
|
# authentication setting, if any |
7213
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7214
|
|
|
|
|
|
|
|
7215
|
|
|
|
|
|
|
# make the API Call |
7216
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7217
|
|
|
|
|
|
|
$query_params, $form_params, |
7218
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7219
|
0
|
0
|
|
|
|
|
if (!$response) { |
7220
|
0
|
|
|
|
|
|
return; |
7221
|
|
|
|
|
|
|
} |
7222
|
|
|
|
|
|
|
|
7223
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7224
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7225
|
|
|
|
|
|
|
} |
7226
|
|
|
|
|
|
|
|
7227
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemsResponse', $response->header('content-type')); |
7228
|
0
|
|
|
|
|
|
return $_response_object; |
7229
|
|
|
|
|
|
|
|
7230
|
|
|
|
|
|
|
} |
7231
|
|
|
|
|
|
|
# |
7232
|
|
|
|
|
|
|
# PostUpdateDocumentFields |
7233
|
|
|
|
|
|
|
# |
7234
|
|
|
|
|
|
|
# |
7235
|
|
|
|
|
|
|
# |
7236
|
|
|
|
|
|
|
# @param String $name (required) |
7237
|
|
|
|
|
|
|
# @param String $filename (optional) |
7238
|
|
|
|
|
|
|
# @param String $storage (optional) |
7239
|
|
|
|
|
|
|
# @param String $folder (optional) |
7240
|
|
|
|
|
|
|
# @return DocumentResponse |
7241
|
|
|
|
|
|
|
# |
7242
|
|
|
|
|
|
|
sub PostUpdateDocumentFields { |
7243
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
7244
|
|
|
|
|
|
|
|
7245
|
|
|
|
|
|
|
|
7246
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
7247
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
7248
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostUpdateDocumentFields"); |
7249
|
|
|
|
|
|
|
} |
7250
|
|
|
|
|
|
|
|
7251
|
|
|
|
|
|
|
|
7252
|
|
|
|
|
|
|
# parse inputs |
7253
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/updateFields/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
7254
|
|
|
|
|
|
|
|
7255
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
7256
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
7257
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
7258
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
7259
|
|
|
|
|
|
|
|
7260
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
7261
|
0
|
|
|
|
|
|
my $query_params = {}; |
7262
|
0
|
|
|
|
|
|
my $header_params = {}; |
7263
|
0
|
|
|
|
|
|
my $form_params = {}; |
7264
|
|
|
|
|
|
|
|
7265
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
7266
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
7267
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
7268
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
7269
|
|
|
|
|
|
|
} |
7270
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
7271
|
|
|
|
|
|
|
|
7272
|
|
|
|
|
|
|
# query params |
7273
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
7274
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
7275
|
|
|
|
|
|
|
}else{ |
7276
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
7277
|
|
|
|
|
|
|
}# query params |
7278
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
7279
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
7280
|
|
|
|
|
|
|
}else{ |
7281
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
7282
|
|
|
|
|
|
|
}# query params |
7283
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7284
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7285
|
|
|
|
|
|
|
}else{ |
7286
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7287
|
|
|
|
|
|
|
}# query params |
7288
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7289
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7290
|
|
|
|
|
|
|
}else{ |
7291
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7292
|
|
|
|
|
|
|
} |
7293
|
|
|
|
|
|
|
|
7294
|
|
|
|
|
|
|
|
7295
|
0
|
|
|
|
|
|
my $_body_data; |
7296
|
|
|
|
|
|
|
|
7297
|
|
|
|
|
|
|
|
7298
|
|
|
|
|
|
|
|
7299
|
|
|
|
|
|
|
|
7300
|
|
|
|
|
|
|
# authentication setting, if any |
7301
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7302
|
|
|
|
|
|
|
|
7303
|
|
|
|
|
|
|
# make the API Call |
7304
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7305
|
|
|
|
|
|
|
$query_params, $form_params, |
7306
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7307
|
0
|
0
|
|
|
|
|
if (!$response) { |
7308
|
0
|
|
|
|
|
|
return; |
7309
|
|
|
|
|
|
|
} |
7310
|
|
|
|
|
|
|
|
7311
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7312
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7313
|
|
|
|
|
|
|
} |
7314
|
|
|
|
|
|
|
|
7315
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
7316
|
0
|
|
|
|
|
|
return $_response_object; |
7317
|
|
|
|
|
|
|
|
7318
|
|
|
|
|
|
|
} |
7319
|
|
|
|
|
|
|
# |
7320
|
|
|
|
|
|
|
# DeleteDocumentWatermark |
7321
|
|
|
|
|
|
|
# |
7322
|
|
|
|
|
|
|
# |
7323
|
|
|
|
|
|
|
# |
7324
|
|
|
|
|
|
|
# @param String $name (required) |
7325
|
|
|
|
|
|
|
# @param String $filename (optional) |
7326
|
|
|
|
|
|
|
# @param String $storage (optional) |
7327
|
|
|
|
|
|
|
# @param String $folder (optional) |
7328
|
|
|
|
|
|
|
# @return DocumentResponse |
7329
|
|
|
|
|
|
|
# |
7330
|
|
|
|
|
|
|
sub DeleteDocumentWatermark { |
7331
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
7332
|
|
|
|
|
|
|
|
7333
|
|
|
|
|
|
|
|
7334
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
7335
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
7336
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling DeleteDocumentWatermark"); |
7337
|
|
|
|
|
|
|
} |
7338
|
|
|
|
|
|
|
|
7339
|
|
|
|
|
|
|
|
7340
|
|
|
|
|
|
|
# parse inputs |
7341
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/watermark/?appSid={appSid}&filename={filename}&storage={storage}&folder={folder}'; |
7342
|
|
|
|
|
|
|
|
7343
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
7344
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
7345
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
7346
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
7347
|
|
|
|
|
|
|
|
7348
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
7349
|
0
|
|
|
|
|
|
my $query_params = {}; |
7350
|
0
|
|
|
|
|
|
my $header_params = {}; |
7351
|
0
|
|
|
|
|
|
my $form_params = {}; |
7352
|
|
|
|
|
|
|
|
7353
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
7354
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
7355
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
7356
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
7357
|
|
|
|
|
|
|
} |
7358
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
7359
|
|
|
|
|
|
|
|
7360
|
|
|
|
|
|
|
# query params |
7361
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
7362
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
7363
|
|
|
|
|
|
|
}else{ |
7364
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
7365
|
|
|
|
|
|
|
}# query params |
7366
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
7367
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
7368
|
|
|
|
|
|
|
}else{ |
7369
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
7370
|
|
|
|
|
|
|
}# query params |
7371
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7372
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7373
|
|
|
|
|
|
|
}else{ |
7374
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7375
|
|
|
|
|
|
|
}# query params |
7376
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7377
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7378
|
|
|
|
|
|
|
}else{ |
7379
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7380
|
|
|
|
|
|
|
} |
7381
|
|
|
|
|
|
|
|
7382
|
|
|
|
|
|
|
|
7383
|
0
|
|
|
|
|
|
my $_body_data; |
7384
|
|
|
|
|
|
|
|
7385
|
|
|
|
|
|
|
|
7386
|
|
|
|
|
|
|
|
7387
|
|
|
|
|
|
|
|
7388
|
|
|
|
|
|
|
# authentication setting, if any |
7389
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7390
|
|
|
|
|
|
|
|
7391
|
|
|
|
|
|
|
# make the API Call |
7392
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7393
|
|
|
|
|
|
|
$query_params, $form_params, |
7394
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7395
|
0
|
0
|
|
|
|
|
if (!$response) { |
7396
|
0
|
|
|
|
|
|
return; |
7397
|
|
|
|
|
|
|
} |
7398
|
|
|
|
|
|
|
|
7399
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7400
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7401
|
|
|
|
|
|
|
} |
7402
|
|
|
|
|
|
|
|
7403
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
7404
|
0
|
|
|
|
|
|
return $_response_object; |
7405
|
|
|
|
|
|
|
|
7406
|
|
|
|
|
|
|
} |
7407
|
|
|
|
|
|
|
# |
7408
|
|
|
|
|
|
|
# PostInsertDocumentWatermarkImage |
7409
|
|
|
|
|
|
|
# |
7410
|
|
|
|
|
|
|
# |
7411
|
|
|
|
|
|
|
# |
7412
|
|
|
|
|
|
|
# @param String $name (required) |
7413
|
|
|
|
|
|
|
# @param String $filename (optional) |
7414
|
|
|
|
|
|
|
# @param String $rotationAngle (optional) |
7415
|
|
|
|
|
|
|
# @param String $image (optional) |
7416
|
|
|
|
|
|
|
# @param String $storage (optional) |
7417
|
|
|
|
|
|
|
# @param String $folder (optional) |
7418
|
|
|
|
|
|
|
# @param File $file (required) |
7419
|
|
|
|
|
|
|
# @return DocumentResponse |
7420
|
|
|
|
|
|
|
# |
7421
|
|
|
|
|
|
|
sub PostInsertDocumentWatermarkImage { |
7422
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
7423
|
|
|
|
|
|
|
|
7424
|
|
|
|
|
|
|
|
7425
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
7426
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
7427
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostInsertDocumentWatermarkImage"); |
7428
|
|
|
|
|
|
|
} |
7429
|
|
|
|
|
|
|
|
7430
|
|
|
|
|
|
|
# verify the required parameter 'file' is set |
7431
|
0
|
0
|
|
|
|
|
unless (exists $args{'file'}) { |
7432
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'file' when calling PostInsertDocumentWatermarkImage"); |
7433
|
|
|
|
|
|
|
} |
7434
|
|
|
|
|
|
|
|
7435
|
|
|
|
|
|
|
|
7436
|
|
|
|
|
|
|
# parse inputs |
7437
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/watermark/insertImage/?appSid={appSid}&filename={filename}&rotationAngle={rotationAngle}&image={image}&storage={storage}&folder={folder}'; |
7438
|
|
|
|
|
|
|
|
7439
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
7440
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
7441
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
7442
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
7443
|
|
|
|
|
|
|
|
7444
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
7445
|
0
|
|
|
|
|
|
my $query_params = {}; |
7446
|
0
|
|
|
|
|
|
my $header_params = {}; |
7447
|
0
|
|
|
|
|
|
my $form_params = {}; |
7448
|
|
|
|
|
|
|
|
7449
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
7450
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
7451
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
7452
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
7453
|
|
|
|
|
|
|
} |
7454
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); |
7455
|
|
|
|
|
|
|
|
7456
|
|
|
|
|
|
|
# query params |
7457
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
7458
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
7459
|
|
|
|
|
|
|
}else{ |
7460
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
7461
|
|
|
|
|
|
|
}# query params |
7462
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
7463
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
7464
|
|
|
|
|
|
|
}else{ |
7465
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
7466
|
|
|
|
|
|
|
}# query params |
7467
|
0
|
0
|
|
|
|
|
if ( exists $args{'rotationAngle'}) { |
7468
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{rotationAngle}\E/$args{'rotationAngle'}/g; |
7469
|
|
|
|
|
|
|
}else{ |
7470
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]rotationAngle.*?(?=&|\?|$)//g; |
7471
|
|
|
|
|
|
|
}# query params |
7472
|
0
|
0
|
|
|
|
|
if ( exists $args{'image'}) { |
7473
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{image}\E/$args{'image'}/g; |
7474
|
|
|
|
|
|
|
}else{ |
7475
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]image.*?(?=&|\?|$)//g; |
7476
|
|
|
|
|
|
|
}# query params |
7477
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7478
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7479
|
|
|
|
|
|
|
}else{ |
7480
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7481
|
|
|
|
|
|
|
}# query params |
7482
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7483
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7484
|
|
|
|
|
|
|
}else{ |
7485
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7486
|
|
|
|
|
|
|
} |
7487
|
|
|
|
|
|
|
|
7488
|
|
|
|
|
|
|
|
7489
|
0
|
|
|
|
|
|
my $_body_data; |
7490
|
|
|
|
|
|
|
# form params |
7491
|
0
|
0
|
|
|
|
|
if ( exists $args{'file'} ) { |
7492
|
|
|
|
|
|
|
|
7493
|
0
|
|
|
|
|
|
$_body_data = read_file( $args{'file'} , binmode => ':raw' ); |
7494
|
|
|
|
|
|
|
|
7495
|
|
|
|
|
|
|
|
7496
|
|
|
|
|
|
|
} |
7497
|
|
|
|
|
|
|
|
7498
|
|
|
|
|
|
|
|
7499
|
|
|
|
|
|
|
|
7500
|
|
|
|
|
|
|
# authentication setting, if any |
7501
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7502
|
|
|
|
|
|
|
|
7503
|
|
|
|
|
|
|
# make the API Call |
7504
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7505
|
|
|
|
|
|
|
$query_params, $form_params, |
7506
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7507
|
0
|
0
|
|
|
|
|
if (!$response) { |
7508
|
0
|
|
|
|
|
|
return; |
7509
|
|
|
|
|
|
|
} |
7510
|
|
|
|
|
|
|
|
7511
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7512
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7513
|
|
|
|
|
|
|
} |
7514
|
|
|
|
|
|
|
|
7515
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
7516
|
0
|
|
|
|
|
|
return $_response_object; |
7517
|
|
|
|
|
|
|
|
7518
|
|
|
|
|
|
|
} |
7519
|
|
|
|
|
|
|
# |
7520
|
|
|
|
|
|
|
# PostInsertDocumentWatermarkText |
7521
|
|
|
|
|
|
|
# |
7522
|
|
|
|
|
|
|
# |
7523
|
|
|
|
|
|
|
# |
7524
|
|
|
|
|
|
|
# @param String $name (required) |
7525
|
|
|
|
|
|
|
# @param String $filename (optional) |
7526
|
|
|
|
|
|
|
# @param String $text (optional) |
7527
|
|
|
|
|
|
|
# @param String $rotationAngle (optional) |
7528
|
|
|
|
|
|
|
# @param String $storage (optional) |
7529
|
|
|
|
|
|
|
# @param String $folder (optional) |
7530
|
|
|
|
|
|
|
# @param WatermarkText $body (required) |
7531
|
|
|
|
|
|
|
# @return DocumentResponse |
7532
|
|
|
|
|
|
|
# |
7533
|
|
|
|
|
|
|
sub PostInsertDocumentWatermarkText { |
7534
|
0
|
|
|
0
|
0
|
|
my ($self, %args) = @_; |
7535
|
|
|
|
|
|
|
|
7536
|
|
|
|
|
|
|
|
7537
|
|
|
|
|
|
|
# verify the required parameter 'name' is set |
7538
|
0
|
0
|
|
|
|
|
unless (exists $args{'name'}) { |
7539
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'name' when calling PostInsertDocumentWatermarkText"); |
7540
|
|
|
|
|
|
|
} |
7541
|
|
|
|
|
|
|
|
7542
|
|
|
|
|
|
|
# verify the required parameter 'body' is set |
7543
|
0
|
0
|
|
|
|
|
unless (exists $args{'body'}) { |
7544
|
0
|
|
|
|
|
|
croak("Missing the required parameter 'body' when calling PostInsertDocumentWatermarkText"); |
7545
|
|
|
|
|
|
|
} |
7546
|
|
|
|
|
|
|
|
7547
|
|
|
|
|
|
|
|
7548
|
|
|
|
|
|
|
# parse inputs |
7549
|
0
|
|
|
|
|
|
my $_resource_path = '/words/{name}/watermark/insertText/?appSid={appSid}&filename={filename}&text={text}&rotationAngle={rotationAngle}&storage={storage}&folder={folder}'; |
7550
|
|
|
|
|
|
|
|
7551
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q&\E/&/g; |
7552
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q\/?\E/?/g; |
7553
|
0
|
|
|
|
|
|
$_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; |
7554
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{path}\E/{Path}/g; |
7555
|
|
|
|
|
|
|
|
7556
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
7557
|
0
|
|
|
|
|
|
my $query_params = {}; |
7558
|
0
|
|
|
|
|
|
my $header_params = {}; |
7559
|
0
|
|
|
|
|
|
my $form_params = {}; |
7560
|
|
|
|
|
|
|
|
7561
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
7562
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); |
7563
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
7564
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
7565
|
|
|
|
|
|
|
} |
7566
|
0
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); |
7567
|
|
|
|
|
|
|
|
7568
|
|
|
|
|
|
|
# query params |
7569
|
0
|
0
|
|
|
|
|
if ( exists $args{'name'}) { |
7570
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{name}\E/$args{'name'}/g; |
7571
|
|
|
|
|
|
|
}else{ |
7572
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; |
7573
|
|
|
|
|
|
|
}# query params |
7574
|
0
|
0
|
|
|
|
|
if ( exists $args{'filename'}) { |
7575
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{filename}\E/$args{'filename'}/g; |
7576
|
|
|
|
|
|
|
}else{ |
7577
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]filename.*?(?=&|\?|$)//g; |
7578
|
|
|
|
|
|
|
}# query params |
7579
|
0
|
0
|
|
|
|
|
if ( exists $args{'text'}) { |
7580
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{text}\E/$args{'text'}/g; |
7581
|
|
|
|
|
|
|
}else{ |
7582
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]text.*?(?=&|\?|$)//g; |
7583
|
|
|
|
|
|
|
}# query params |
7584
|
0
|
0
|
|
|
|
|
if ( exists $args{'rotationAngle'}) { |
7585
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{rotationAngle}\E/$args{'rotationAngle'}/g; |
7586
|
|
|
|
|
|
|
}else{ |
7587
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]rotationAngle.*?(?=&|\?|$)//g; |
7588
|
|
|
|
|
|
|
}# query params |
7589
|
0
|
0
|
|
|
|
|
if ( exists $args{'storage'}) { |
7590
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; |
7591
|
|
|
|
|
|
|
}else{ |
7592
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; |
7593
|
|
|
|
|
|
|
}# query params |
7594
|
0
|
0
|
|
|
|
|
if ( exists $args{'folder'}) { |
7595
|
0
|
|
|
|
|
|
$_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; |
7596
|
|
|
|
|
|
|
}else{ |
7597
|
0
|
|
|
|
|
|
$_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; |
7598
|
|
|
|
|
|
|
} |
7599
|
|
|
|
|
|
|
|
7600
|
|
|
|
|
|
|
|
7601
|
0
|
|
|
|
|
|
my $_body_data; |
7602
|
|
|
|
|
|
|
|
7603
|
|
|
|
|
|
|
|
7604
|
|
|
|
|
|
|
# body params |
7605
|
0
|
0
|
|
|
|
|
if ( exists $args{'body'}) { |
7606
|
0
|
|
|
|
|
|
$_body_data = $args{'body'}; |
7607
|
|
|
|
|
|
|
} |
7608
|
|
|
|
|
|
|
|
7609
|
|
|
|
|
|
|
# authentication setting, if any |
7610
|
0
|
|
|
|
|
|
my $auth_settings = []; |
7611
|
|
|
|
|
|
|
|
7612
|
|
|
|
|
|
|
# make the API Call |
7613
|
0
|
|
|
|
|
|
my $response = $self->{api_client}->call_api($_resource_path, $_method, |
7614
|
|
|
|
|
|
|
$query_params, $form_params, |
7615
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings); |
7616
|
0
|
0
|
|
|
|
|
if (!$response) { |
7617
|
0
|
|
|
|
|
|
return; |
7618
|
|
|
|
|
|
|
} |
7619
|
|
|
|
|
|
|
|
7620
|
0
|
0
|
|
|
|
|
if($AsposeWordsCloud::Configuration::debug){ |
7621
|
0
|
|
|
|
|
|
print "\nResponse Content: ".$response->content; |
7622
|
|
|
|
|
|
|
} |
7623
|
|
|
|
|
|
|
|
7624
|
0
|
|
|
|
|
|
my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); |
7625
|
0
|
|
|
|
|
|
return $_response_object; |
7626
|
|
|
|
|
|
|
|
7627
|
|
|
|
|
|
|
} |
7628
|
|
|
|
|
|
|
|
7629
|
|
|
|
|
|
|
|
7630
|
|
|
|
|
|
|
1; |