Skip to content

Commit 294d33e

Browse files
GroupDocs.Viewer Cloud API v2
1 parent ac67588 commit 294d33e

File tree

470 files changed

+3470
-128604
lines changed

Some content is hidden

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

470 files changed

+3470
-128604
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ out/
1515
*.lic
1616
*.user
1717
Out/
18-
Out*/
18+
#Out*/
1919
Data/*Out*
2020
TestResults/
2121
*.ide

Examples/CommonUtils.php

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
class CommonUtils {
88

99
// TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required)
10-
static $AppSid = 'XXXXX-XXXXX-XXXXX';
11-
static $AppKey = 'XXXXXXXX';
10+
static $AppSid = 'XXXXX-XXXXXX-XXXXX';
11+
static $AppKey = 'XXXXXXX';
1212
static $ApiBaseUrl = 'https://api.groupdocs.cloud';
13+
static $MyStorage = 'XXXXXX';
1314

1415
// Getting the Viewer API Instance
1516
public static function GetViewerApiInstance() {
@@ -25,17 +26,42 @@ public static function GetViewerApiInstance() {
2526
return new GroupDocs\Viewer\ViewerApi($configuration);
2627
}
2728

28-
// Getting the Viewer API Instance
29+
// Getting the Viewer StorageAPI API Instance
2930
public static function GetStorageApiInstance() {
3031
// intializing the configuration
31-
$configuration = new GroupDocs\Storage\Configuration();
32+
$configuration = new GroupDocs\Viewer\Configuration();
3233

3334
// Seting the configurations
3435
$configuration->setAppSid(CommonUtils::$AppSid);
3536
$configuration->setAppKey(CommonUtils::$AppKey);
3637

37-
// Retrun the new ViewerAPI instance
38-
return new GroupDocs\Storage\Api\StorageApi($configuration);
38+
// Retrun the new StorageApi instance
39+
return new GroupDocs\Viewer\StorageApi($configuration);
3940
}
4041

42+
// Getting the Viewer FolderAPI API Instance
43+
public static function GetFolderApiInstance() {
44+
// intializing the configuration
45+
$configuration = new GroupDocs\Viewer\Configuration();
46+
47+
// Seting the configurations
48+
$configuration->setAppSid(CommonUtils::$AppSid);
49+
$configuration->setAppKey(CommonUtils::$AppKey);
50+
51+
// Retrun the new FolderApi instance
52+
return new GroupDocs\Viewer\FolderApi($configuration);
53+
}
54+
55+
// Getting the Viewer FileAPI API Instance
56+
public static function GetFileApiInstance() {
57+
// intializing the configuration
58+
$configuration = new GroupDocs\Viewer\Configuration();
59+
60+
// Seting the configurations
61+
$configuration->setAppSid(CommonUtils::$AppSid);
62+
$configuration->setAppKey(CommonUtils::$AppKey);
63+
64+
// Retrun the new FileApi instance
65+
return new GroupDocs\Viewer\FileApi($configuration);
66+
}
4167
}

Examples/Document_Information/Create_CAD_Layers_Cache_HTML.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

Examples/Document_Information/Create_CAD_Layers_Cache_Image.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

Examples/Document_Information/Get_CAD_DocumentInfo_Html.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

Examples/Document_Information/Get_CAD_DocumentInfo_Image.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

Examples/Document_Information/Get_Document_Info_HTML.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

Examples/Document_Information/Get_Document_Info_Image.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

Examples/Document_Information/Get_Document_Info_URL_HTML.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

Examples/Document_Information/Get_Document_Info_URL_Image.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)