Skip to content

Commit 2753e13

Browse files
Merge pull request #3 from rizwanniazigroupdocs/master
Updated With Release 19.5
2 parents a889164 + e3dd870 commit 2753e13

25 files changed

Lines changed: 31 additions & 26 deletions

src/Common_Utilities/Utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ class Common_Utilities:
1010
myStorage = None
1111

1212
@classmethod
13-
def Get_ViewerApi_Instance(self):
13+
def Get_ViewApi_Instance(self):
1414
# Create instance of the API
15-
return groupdocs_viewer_cloud.ViewerApi.from_keys(Common_Utilities.app_sid, Common_Utilities.app_key)
15+
return groupdocs_viewer_cloud.ViewApi.from_keys(Common_Utilities.app_sid, Common_Utilities.app_key)
16+
17+
@classmethod
18+
def Get_InfoApi_Instance(self):
19+
# Create instance of the API
20+
return groupdocs_viewer_cloud.InfoApi.from_keys(Common_Utilities.app_sid, Common_Utilities.app_key)
1621

1722
@classmethod
1823
def Get_StorageApi_Instance(self):

src/Supported_File_Formats/Viewer_Python_Get_All_Supported_Formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Viewer_Python_Get_All_Supported_Formats:
77
@classmethod
88
def Run(self):
99
# Create instance of the API
10-
api = Common_Utilities.Get_ViewerApi_Instance()
10+
api = Common_Utilities.Get_InfoApi_Instance()
1111

1212
try:
1313
# Retrieve supported file-formats

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_CAD_Options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_CAD_Options:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_HTML_View_Format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_HTML_View_Format:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_Image_View_Format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_Image_View_Format:
88
@classmethod
99
def Run(self, viewFormat):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_Image_View_Options_Options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_Image_View_Options_Options:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_Minimal_ViewOptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_Minimal_ViewOptions:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_Project_Options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_Project_Options:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_Render_Hidden_Pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_Render_Hidden_Pages:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

src/Working_With_Document_Information/Viewer_Python_Get_Info_With_SpreadsheetOptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Viewer_Python_Get_Info_With_SpreadsheetOptions:
88
@classmethod
99
def Run(self):
1010
# Create instance of the API
11-
api = Common_Utilities.Get_ViewerApi_Instance()
11+
api = Common_Utilities.Get_InfoApi_Instance()
1212

1313
try:
1414
viewOptions = groupdocs_viewer_cloud.ViewOptions()

0 commit comments

Comments
 (0)