File tree Expand file tree Collapse file tree 8 files changed +76
-13
lines changed
Expand file tree Collapse file tree 8 files changed +76
-13
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,6 @@ public static function GetViewerApiInstance() {
1616 // intializing the configuration
1717 $ configuration = new GroupDocs \Viewer \Configuration ();
1818
19- CommonUtils::$ AppSid = 'd215ce72-1609-4282-8d55-5810942236fb ' ;
20- CommonUtils::$ AppKey = '715d18b0afef2f303882c769921fe05a ' ;
21- CommonUtils::$ ApiBaseUrl = 'https://api.groupdocs.cloud ' ;
22-
2319 // Seting the configurations
2420 $ configuration ->setAppSid (CommonUtils::$ AppSid );
2521 $ configuration ->setAppKey (CommonUtils::$ AppKey );
@@ -29,4 +25,17 @@ public static function GetViewerApiInstance() {
2925 return new GroupDocs \Viewer \ViewerApi ($ configuration );
3026 }
3127
28+ // Getting the Viewer API Instance
29+ public static function GetStorageApiInstance () {
30+ // intializing the configuration
31+ $ configuration = new GroupDocs \Storage \Configuration ();
32+
33+ // Seting the configurations
34+ $ configuration ->setAppSid (CommonUtils::$ AppSid );
35+ $ configuration ->setAppKey (CommonUtils::$ AppKey );
36+
37+ // Retrun the new ViewerAPI instance
38+ return new GroupDocs \Storage \Api \StorageApi ($ configuration );
39+ }
40+
3241}
Original file line number Diff line number Diff line change 11{
22 "name" : " groupdocs/group-docs-viewer-s-d-k-examples" ,
3- "description" : " Description of project GroupDocs.Viewer.SDK.Examples ." ,
3+ "description" : " Description of project group-docs-viewer-s-d-k-examples ." ,
44 "authors" : [
55 {
66 "name" : " GroupDocs" ,
77 "email" : " your@email.here"
88 }
99 ],
1010 "require" : {
11- "groupdocscloud/groupdocs-viewer-cloud" : " *"
11+ "groupdocscloud/groupdocs-viewer-cloud" : " *" ,
12+ "groupdocscloud/storage-sdk-php" : " *"
1213 }
1314}
Original file line number Diff line number Diff line change 88 <h1 >
99 GroupDocs.Viewer Cloud SDK - Php Examples</h1 >
1010 <p >
11- Click on the link to execute the examples for respective outputs.</p >
11+ Please first < a href = " Uploat_Test_Files.php " target = " _blank " >click here</ a > to upload the test files to your default storage< br /> Click on the link to execute the examples for respective outputs.</p >
1212 <ul >
1313 <li >
1414 <h3 >
Original file line number Diff line number Diff line change 11copy.src.files =false
22copy.src.on.open =false
3- copy.src.target =C:\\xampp\\htdocs\\PhpProject1
3+ copy.src.target =
4+ debug.url =DEFAULT_URL
45index.file =index.php
56run.as =LOCAL
6- url =http://localhost:8000/GroupDocs.Viewer.SDK.Examples/
7+ url =http://localhost:8000/GroupDocs.Viewer.SDK.Examples/Examples
Original file line number Diff line number Diff line change 33 <editor-bookmarks xmlns =" http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId =" 0" />
44 <open-files xmlns =" http://www.netbeans.org/ns/projectui-open-files/2" >
55 <group >
6- <file >file:/C:/xampp/htdocs/GroupDocs.Viewer.SDK.Examples/index.php</file >
7- <file >file:/C:/xampp/htdocs/GroupDocs.Viewer.SDK.Examples/Working_With_Attachments/Attachments/Get_Attachment_From_Email_HTML.php</file >
6+ <file >file:/C:/xampp/htdocs/GroupDocs.Viewer.SDK.Examples/Examples/index.php</file >
87 </group >
98 </open-files >
109</project-private >
Original file line number Diff line number Diff line change 1+ browser.reload.on.save =true
12include.path =${php.global.include.path}
23php.version =PHP_70
34source.encoding =UTF-8
Original file line number Diff line number Diff line change 33 <type >org.netbeans.modules.php.project</type >
44 <configuration >
55 <data xmlns =" http://www.netbeans.org/ns/php-project/1" >
6- <name >GroupDocs.Viewer.SDK.Examples </name >
6+ <name >group-docs-viewer-s-d-k-examples </name >
77 </data >
88 </configuration >
99</project >
You can’t perform that action at this time.
0 commit comments