Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
spediciniPTC committed Nov 10, 2023
1 parent ea00614 commit 8d4863b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api-intro/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ For this endpoint, we only need to get the document ID from the document URL.&lt
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>python3 -m pip install requests
</span></span><span style="display:flex;"><span>python3 -m pip install jsons
</span></span></code></pre></div><ol start="3">
<li>Run your code:</br><code>python hello.py</code></li>
<li>Run your code:</br><code>python3 hello.py</code></li>
<li>Confirm that your console displays:</br><code>"Onshape API Guide"</code></li>
</ol>
<h2 id="other-language-examples">Other Language Examples</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/api-intro/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</span></span><span style=display:flex><span><span style=color:#0aa>print</span>(json.dumps(response.json()[<span style=color:#a50>&#34;name&#34;</span>], indent=<span style=color:#099>4</span>))
</span></span></code></pre></div><h2 id=run-your-code>Run Your Code</h2><ol><li>Open your terminal and navigate into the folder where you saved your <code>hello.py</code> file: <code>cd ~/&lt;your-file-path></code></li><li>Install the necessary modules:</li></ol><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-bash data-lang=bash><span style=display:flex><span>python3 -m pip install requests
</span></span><span style=display:flex><span>python3 -m pip install jsons
</span></span></code></pre></div><ol start=3><li>Run your code:</br><code>python hello.py</code></li><li>Confirm that your console displays:</br><code>"Onshape API Guide"</code></li></ol><h2 id=other-language-examples>Other Language Examples</h2><h3 id=javascript>JavaScript</h3><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-js data-lang=js><span style=display:flex><span><span style=color:#00a>import</span> fetch from <span style=color:#a50>&#39;node-fetch&#39;</span>;
</span></span></code></pre></div><ol start=3><li>Run your code:</br><code>python3 hello.py</code></li><li>Confirm that your console displays:</br><code>"Onshape API Guide"</code></li></ol><h2 id=other-language-examples>Other Language Examples</h2><h3 id=javascript>JavaScript</h3><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-js data-lang=js><span style=display:flex><span><span style=color:#00a>import</span> fetch from <span style=color:#a50>&#39;node-fetch&#39;</span>;
</span></span><span style=display:flex><span>
</span></span><span style=display:flex><span><span style=color:#aaa;font-style:italic>// Define an async function for the API request
</span></span></span><span style=display:flex><span><span style=color:#aaa;font-style:italic></span><span style=color:#00a>async</span> <span style=color:#00a>function</span> getDocument(url=<span style=color:#a50>&#39;&#39;</span>) {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ For this endpoint, we only need to get the document ID from the document URL.&lt
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>python3 -m pip install requests
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>python3 -m pip install jsons
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="3">
&lt;li>Run your code:&lt;/br>&lt;code>python hello.py&lt;/code>&lt;/li>
&lt;li>Run your code:&lt;/br>&lt;code>python3 hello.py&lt;/code>&lt;/li>
&lt;li>Confirm that your console displays:&lt;/br>&lt;code>&amp;quot;Onshape API Guide&amp;quot;&lt;/code>&lt;/li>
&lt;/ol>
&lt;h2 id="other-language-examples">Other Language Examples&lt;/h2>
Expand Down

0 comments on commit 8d4863b

Please sign in to comment.