File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11require 'groupdocs_viewer_cloud'
22require './Common.rb'
33
4- # Get your app_sid and app_key at https://dashboard.groupdocs.cloud (free registration is required).
5- $app_sid = "XXXX-XXXX-XXXX-XXXX"
6- $app_key = "XXXXXXXXXXXXXXXX"
4+ # Get your client id and client secret at https://dashboard.groupdocs.cloud (free registration is required).
5+ $client_id = "XXXX-XXXX-XXXX-XXXX"
6+ $client_secret = "XXXXXXXXXXXXXXXX"
77
8- $config = GroupDocsViewerCloud ::Configuration . new ( $app_sid , $app_key )
8+ $config = GroupDocsViewerCloud ::Configuration . new ( $client_id , $client_secret )
99$config. api_base_url = "https://api.groupdocs.cloud"
1010
1111class RunExamples
Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ This repository contains [Examples](Examples) projects for [GroupDocs.Viewer Clo
1212## Prerequisites
1313
1414+ Ruby with Gem installed
15- + Get your AppSID and AppKey at [ https://dashboard.groupdocs.cloud ] ( https://dashboard.groupdocs.cloud ) (free registration is required).
15+ + Get your client id and client secret at [ https://dashboard.groupdocs.cloud ] ( https://dashboard.groupdocs.cloud ) (free registration is required).
1616
1717## How to Run the Examples?
1818
1919The package contains Ruby examples. Follow the given steps to proceed run:
2020
2121* Extract the downloaded project
22- * Edit RunExamples.rb and put appSid and appKey , obtained from [ https://dashboard.groupdocs.cloud ] ( https://dashboard.groupdocs.cloud ) there
22+ * Edit RunExamples.rb and put client id and client secret , obtained from [ https://dashboard.groupdocs.cloud ] ( https://dashboard.groupdocs.cloud ) there
2323* Go to "Examples" directory of the project
2424* Execute "gem install groupdocs_viewer_cloud" command
2525* Run examples using "ruby RunExamples.rb" command
You can’t perform that action at this time.
0 commit comments