Skip to content

Commit 03e61a1

Browse files
committed
Updated sources
1 parent 6a70d76 commit 03e61a1

71 files changed

Lines changed: 7080 additions & 325 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "This repository contains GroupDocs.Viewer Cloud SDK for PHP source code.",
33
"name": "groupdocscloud/groupdocs-viewer-cloud",
4-
"version": "19.5",
4+
"version": "20.3",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [

src/GroupDocs/Viewer/ApiException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* --------------------------------------------------------------------------------------------------------------------
44
* <copyright company="Aspose Pty Ltd" file="ApiException.php">
5-
* Copyright (c) 2003-2019 Aspose Pty Ltd
5+
* Copyright (c) 2003-2020 Aspose Pty Ltd
66
* </copyright>
77
* <summary>
88
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs/Viewer/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* --------------------------------------------------------------------------------------------------------------------
44
* <copyright company="Aspose Pty Ltd" file="Configuration.php">
5-
* Copyright (c) 2003-2019 Aspose Pty Ltd
5+
* Copyright (c) 2003-2020 Aspose Pty Ltd
66
* </copyright>
77
* <summary>
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -95,7 +95,7 @@ class Configuration
9595
* Version of client SDK
9696
*
9797
*/
98-
protected $clientVersion = '19.5';
98+
protected $clientVersion = '20.3';
9999

100100
/*
101101
* Constructor
@@ -290,7 +290,7 @@ public function getClientName()
290290
}
291291

292292
/*
293-
* Gets client version, default value is '19.5'
293+
* Gets client version, default value is '20.3'
294294
*
295295
*/
296296
public function getClientVersion()
@@ -308,7 +308,7 @@ public static function toDebugReport()
308308
$report = 'PHP SDK (GroupDocs\Viewer) Debug Report:' . PHP_EOL;
309309
$report .= ' OS: ' . php_uname() . PHP_EOL;
310310
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
311-
$report .= ' SDK Package Version: 19.5' . PHP_EOL;
311+
$report .= ' SDK Package Version: 20.3' . PHP_EOL;
312312
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
313313

314314
return $report;

src/GroupDocs/Viewer/FileApi.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* --------------------------------------------------------------------------------------------------------------------
44
* <copyright company="Aspose Pty Ltd" file="FileApi.php">
5-
* Copyright (c) 2003-2019 Aspose Pty Ltd
5+
* Copyright (c) 2003-2020 Aspose Pty Ltd
66
* </copyright>
77
* <summary>
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -129,8 +129,8 @@ public function copyFileWithHttpInfo(Requests\copyFileRequest $request)
129129
$error = json_decode($content);
130130

131131
$errorCode = $e->getCode();
132-
$errorMessage = $error->Error != null && $error->Error->Message != null
133-
? $error->Error->Message
132+
$errorMessage = $error->error != null && $error->error->message != null
133+
? $error->error->message
134134
: $e->getMessage();
135135

136136
throw new ApiException($errorMessage, $errorCode);
@@ -400,8 +400,8 @@ public function deleteFileWithHttpInfo(Requests\deleteFileRequest $request)
400400
$error = json_decode($content);
401401

402402
$errorCode = $e->getCode();
403-
$errorMessage = $error->Error != null && $error->Error->Message != null
404-
? $error->Error->Message
403+
$errorMessage = $error->error != null && $error->error->message != null
404+
? $error->error->message
405405
: $e->getMessage();
406406

407407
throw new ApiException($errorMessage, $errorCode);
@@ -648,8 +648,8 @@ public function downloadFileWithHttpInfo(Requests\downloadFileRequest $request)
648648
$error = json_decode($content);
649649

650650
$errorCode = $e->getCode();
651-
$errorMessage = $error->Error != null && $error->Error->Message != null
652-
? $error->Error->Message
651+
$errorMessage = $error->error != null && $error->error->message != null
652+
? $error->error->message
653653
: $e->getMessage();
654654

655655
throw new ApiException($errorMessage, $errorCode);
@@ -935,8 +935,8 @@ public function moveFileWithHttpInfo(Requests\moveFileRequest $request)
935935
$error = json_decode($content);
936936

937937
$errorCode = $e->getCode();
938-
$errorMessage = $error->Error != null && $error->Error->Message != null
939-
? $error->Error->Message
938+
$errorMessage = $error->error != null && $error->error->message != null
939+
? $error->error->message
940940
: $e->getMessage();
941941

942942
throw new ApiException($errorMessage, $errorCode);
@@ -1207,8 +1207,8 @@ public function uploadFileWithHttpInfo(Requests\uploadFileRequest $request)
12071207
$error = json_decode($content);
12081208

12091209
$errorCode = $e->getCode();
1210-
$errorMessage = $error->Error != null && $error->Error->Message != null
1211-
? $error->Error->Message
1210+
$errorMessage = $error->error != null && $error->error->message != null
1211+
? $error->error->message
12121212
: $e->getMessage();
12131213

12141214
throw new ApiException($errorMessage, $errorCode);
@@ -1443,13 +1443,13 @@ protected function uploadFileRequest(Requests\uploadFileRequest $request)
14431443
);
14441444

14451445
$req = new Request(
1446-
'POST',
1446+
'PUT',
14471447
$resourcePath,
14481448
$headers,
14491449
$httpBody
14501450
);
14511451
if ($this->config->getDebug()) {
1452-
$this->_writeRequestLog('POST', $resourcePath, $headers, $httpBody);
1452+
$this->_writeRequestLog('PUT', $resourcePath, $headers, $httpBody);
14531453
}
14541454

14551455
return $req;
@@ -1557,7 +1557,7 @@ private function _requestToken()
15571557
/*
15581558
* --------------------------------------------------------------------------------------------------------------------
15591559
* <copyright company="Aspose Pty Ltd" file="copyFileRequest.php">
1560-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1560+
* Copyright (c) 2003-2020 Aspose Pty Ltd
15611561
* </copyright>
15621562
* <summary>
15631563
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1634,7 +1634,7 @@ public function __construct($srcPath, $destPath, $srcStorageName = null, $destSt
16341634
/*
16351635
* --------------------------------------------------------------------------------------------------------------------
16361636
* <copyright company="Aspose Pty Ltd" file="deleteFileRequest.php">
1637-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1637+
* Copyright (c) 2003-2020 Aspose Pty Ltd
16381638
* </copyright>
16391639
* <summary>
16401640
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1697,7 +1697,7 @@ public function __construct($path, $storageName = null, $versionId = null)
16971697
/*
16981698
* --------------------------------------------------------------------------------------------------------------------
16991699
* <copyright company="Aspose Pty Ltd" file="downloadFileRequest.php">
1700-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1700+
* Copyright (c) 2003-2020 Aspose Pty Ltd
17011701
* </copyright>
17021702
* <summary>
17031703
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1760,7 +1760,7 @@ public function __construct($path, $storageName = null, $versionId = null)
17601760
/*
17611761
* --------------------------------------------------------------------------------------------------------------------
17621762
* <copyright company="Aspose Pty Ltd" file="moveFileRequest.php">
1763-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1763+
* Copyright (c) 2003-2020 Aspose Pty Ltd
17641764
* </copyright>
17651765
* <summary>
17661766
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1837,7 +1837,7 @@ public function __construct($srcPath, $destPath, $srcStorageName = null, $destSt
18371837
/*
18381838
* --------------------------------------------------------------------------------------------------------------------
18391839
* <copyright company="Aspose Pty Ltd" file="uploadFileRequest.php">
1840-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1840+
* Copyright (c) 2003-2020 Aspose Pty Ltd
18411841
* </copyright>
18421842
* <summary>
18431843
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs/Viewer/FolderApi.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* --------------------------------------------------------------------------------------------------------------------
44
* <copyright company="Aspose Pty Ltd" file="FolderApi.php">
5-
* Copyright (c) 2003-2019 Aspose Pty Ltd
5+
* Copyright (c) 2003-2020 Aspose Pty Ltd
66
* </copyright>
77
* <summary>
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -129,8 +129,8 @@ public function copyFolderWithHttpInfo(Requests\copyFolderRequest $request)
129129
$error = json_decode($content);
130130

131131
$errorCode = $e->getCode();
132-
$errorMessage = $error->Error != null && $error->Error->Message != null
133-
? $error->Error->Message
132+
$errorMessage = $error->error != null && $error->error->message != null
133+
? $error->error->message
134134
: $e->getMessage();
135135

136136
throw new ApiException($errorMessage, $errorCode);
@@ -390,8 +390,8 @@ public function createFolderWithHttpInfo(Requests\createFolderRequest $request)
390390
$error = json_decode($content);
391391

392392
$errorCode = $e->getCode();
393-
$errorMessage = $error->Error != null && $error->Error->Message != null
394-
? $error->Error->Message
393+
$errorMessage = $error->error != null && $error->error->message != null
394+
? $error->error->message
395395
: $e->getMessage();
396396

397397
throw new ApiException($errorMessage, $errorCode);
@@ -573,13 +573,13 @@ protected function createFolderRequest(Requests\createFolderRequest $request)
573573
);
574574

575575
$req = new Request(
576-
'POST',
576+
'PUT',
577577
$resourcePath,
578578
$headers,
579579
$httpBody
580580
);
581581
if ($this->config->getDebug()) {
582-
$this->_writeRequestLog('POST', $resourcePath, $headers, $httpBody);
582+
$this->_writeRequestLog('PUT', $resourcePath, $headers, $httpBody);
583583
}
584584

585585
return $req;
@@ -627,8 +627,8 @@ public function deleteFolderWithHttpInfo(Requests\deleteFolderRequest $request)
627627
$error = json_decode($content);
628628

629629
$errorCode = $e->getCode();
630-
$errorMessage = $error->Error != null && $error->Error->Message != null
631-
? $error->Error->Message
630+
$errorMessage = $error->error != null && $error->error->message != null
631+
? $error->error->message
632632
: $e->getMessage();
633633

634634
throw new ApiException($errorMessage, $errorCode);
@@ -875,8 +875,8 @@ public function getFilesListWithHttpInfo(Requests\getFilesListRequest $request)
875875
$error = json_decode($content);
876876

877877
$errorCode = $e->getCode();
878-
$errorMessage = $error->Error != null && $error->Error->Message != null
879-
? $error->Error->Message
878+
$errorMessage = $error->error != null && $error->error->message != null
879+
? $error->error->message
880880
: $e->getMessage();
881881

882882
throw new ApiException($errorMessage, $errorCode);
@@ -1152,8 +1152,8 @@ public function moveFolderWithHttpInfo(Requests\moveFolderRequest $request)
11521152
$error = json_decode($content);
11531153

11541154
$errorCode = $e->getCode();
1155-
$errorMessage = $error->Error != null && $error->Error->Message != null
1156-
? $error->Error->Message
1155+
$errorMessage = $error->error != null && $error->error->message != null
1156+
? $error->error->message
11571157
: $e->getMessage();
11581158

11591159
throw new ApiException($errorMessage, $errorCode);
@@ -1473,7 +1473,7 @@ private function _requestToken()
14731473
/*
14741474
* --------------------------------------------------------------------------------------------------------------------
14751475
* <copyright company="Aspose Pty Ltd" file="copyFolderRequest.php">
1476-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1476+
* Copyright (c) 2003-2020 Aspose Pty Ltd
14771477
* </copyright>
14781478
* <summary>
14791479
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1543,7 +1543,7 @@ public function __construct($srcPath, $destPath, $srcStorageName = null, $destSt
15431543
/*
15441544
* --------------------------------------------------------------------------------------------------------------------
15451545
* <copyright company="Aspose Pty Ltd" file="createFolderRequest.php">
1546-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1546+
* Copyright (c) 2003-2020 Aspose Pty Ltd
15471547
* </copyright>
15481548
* <summary>
15491549
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1599,7 +1599,7 @@ public function __construct($path, $storageName = null)
15991599
/*
16001600
* --------------------------------------------------------------------------------------------------------------------
16011601
* <copyright company="Aspose Pty Ltd" file="deleteFolderRequest.php">
1602-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1602+
* Copyright (c) 2003-2020 Aspose Pty Ltd
16031603
* </copyright>
16041604
* <summary>
16051605
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1662,7 +1662,7 @@ public function __construct($path, $storageName = null, $recursive = null)
16621662
/*
16631663
* --------------------------------------------------------------------------------------------------------------------
16641664
* <copyright company="Aspose Pty Ltd" file="getFilesListRequest.php">
1665-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1665+
* Copyright (c) 2003-2020 Aspose Pty Ltd
16661666
* </copyright>
16671667
* <summary>
16681668
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1718,7 +1718,7 @@ public function __construct($path, $storageName = null)
17181718
/*
17191719
* --------------------------------------------------------------------------------------------------------------------
17201720
* <copyright company="Aspose Pty Ltd" file="moveFolderRequest.php">
1721-
* Copyright (c) 2003-2019 Aspose Pty Ltd
1721+
* Copyright (c) 2003-2020 Aspose Pty Ltd
17221722
* </copyright>
17231723
* <summary>
17241724
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs/Viewer/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* --------------------------------------------------------------------------------------------------------------------
44
* <copyright company="Aspose Pty Ltd" file="HeaderSelector.php">
5-
* Copyright (c) 2003-2019 Aspose Pty Ltd
5+
* Copyright (c) 2003-2020 Aspose Pty Ltd
66
* </copyright>
77
* <summary>
88
* Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs/Viewer/InfoApi.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* --------------------------------------------------------------------------------------------------------------------
44
* <copyright company="Aspose Pty Ltd" file="InfoApi.php">
5-
* Copyright (c) 2003-2019 Aspose Pty Ltd
5+
* Copyright (c) 2003-2020 Aspose Pty Ltd
66
* </copyright>
77
* <summary>
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -130,8 +130,8 @@ public function getInfoWithHttpInfo(Requests\getInfoRequest $request)
130130
$error = json_decode($content);
131131

132132
$errorCode = $e->getCode();
133-
$errorMessage = $error->Error != null && $error->Error->Message != null
134-
? $error->Error->Message
133+
$errorMessage = $error->error != null && $error->error->message != null
134+
? $error->error->message
135135
: $e->getMessage();
136136

137137
throw new ApiException($errorMessage, $errorCode);
@@ -396,8 +396,8 @@ public function getSupportedFileFormatsWithHttpInfo()
396396
$error = json_decode($content);
397397

398398
$errorCode = $e->getCode();
399-
$errorMessage = $error->Error != null && $error->Error->Message != null
400-
? $error->Error->Message
399+
$errorMessage = $error->error != null && $error->error->message != null
400+
? $error->error->message
401401
: $e->getMessage();
402402

403403
throw new ApiException($errorMessage, $errorCode);
@@ -712,7 +712,7 @@ private function _requestToken()
712712
/*
713713
* --------------------------------------------------------------------------------------------------------------------
714714
* <copyright company="Aspose Pty Ltd" file="getInfoRequest.php">
715-
* Copyright (c) 2003-2019 Aspose Pty Ltd
715+
* Copyright (c) 2003-2020 Aspose Pty Ltd
716716
* </copyright>
717717
* <summary>
718718
* Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)