examples/api-samples/public/docs/sample29.html in groupdocs-1.5.7 vs examples/api-samples/public/docs/sample29.html in groupdocs-1.5.8
- old
+ new
@@ -61,11 +61,11 @@
<p>set variables</p>
</div>
<div class="content"><div class='highlight'><pre> set <span class="symbol">:client_id</span>, params[<span class="symbol">:clientId</span>]
- set <span class="symbol">:base_path</span>, params[<span class="symbol">:basePath</span>]
+ set <span class="symbol">:base_path</span>, params[<span class="symbol">:serverType</span>]
set <span class="symbol">:url</span>, params[<span class="symbol">:url</span>]
url = settings.url
base_path = settings.base_path
client_id = settings.client_id
@@ -100,13 +100,13 @@
</div>
<div class="content"><div class='highlight'><pre> <span class="keyword">if</span> (!url.empty?)
- <span class="keyword">if</span> (base_path == <span class="string">"https://api.groupdocs.com/v2.0"</span>)
- iframe = <span class="string">"https://apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> + '&user_id=<span class="subst">#{client_id}</span>"</span>
- <span class="keyword">elsif</span> (base_path == <span class="string">"https://dev-api.groupdocs.com/v2.0"</span>)</pre></div></div>
+ <span class="keyword">if</span> (base_path == <span class="string">"https://api.groupdocs.com/v2.0"</span>)
+ iframe = <span class="string">"https://apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> &user_id=<span class="subst">#{client_id}</span>"</span>
+ <span class="keyword">elsif</span> (base_path == <span class="string">"https://dev-api.groupdocs.com/v2.0"</span>)</pre></div></div>
</li>
<li id="section-6">
@@ -117,12 +117,12 @@
</div>
<p>iframe to dev server</p>
</div>
- <div class="content"><div class='highlight'><pre> iframe = <span class="string">"https://dev-apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> + '&user_id=<span class="subst">#{client_id}</span>"</span>
- <span class="keyword">elsif</span> (base_path == <span class="string">"https://stage-api.groupdocs.com/v2.0"</span>)</pre></div></div>
+ <div class="content"><div class='highlight'><pre> iframe = <span class="string">"https://dev-apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> &user_id=<span class="subst">#{client_id}</span>"</span>
+ <span class="keyword">elsif</span> (base_path == <span class="string">"https://stage-api.groupdocs.com/v2.0"</span>)</pre></div></div>
</li>
<li id="section-7">
@@ -133,13 +133,13 @@
</div>
<p>iframe to test server</p>
</div>
- <div class="content"><div class='highlight'><pre> iframe = <span class="string">"https://stage-apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> + '&user_id=<span class="subst">#{client_id}</span>"</span>
- <span class="keyword">elsif</span> (base_path == <span class="string">"http://realtime-api.groupdocs.com"</span>)
- iframe = <span class="string">"http://realtime-apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> + '&user_id=<span class="subst">#{client_id}</span>"</span>
- <span class="keyword">end</span>
+ <div class="content"><div class='highlight'><pre> iframe = <span class="string">"https://stage-apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> &user_id=<span class="subst">#{client_id}</span>"</span>
+ <span class="keyword">elsif</span> (base_path == <span class="string">"http://realtime-api.groupdocs.com"</span>)
+ iframe = <span class="string">"http://realtime-apps.groupdocs.com/document-viewer/embed?url=<span class="subst">#{url}</span> &user_id=<span class="subst">#{client_id}</span>"</span>
+ <span class="keyword">end</span>
<span class="keyword">end</span>
<span class="keyword">rescue</span> <span class="constant">Exception</span> => e