Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
harmandeveloperprogram committed Feb 5, 2016
1 parent edec747 commit 959503b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/iOS/hkwhub-spec.doctree
Binary file not shown.
10 changes: 5 additions & 5 deletions docs/_build/html/_sources/iOS/hkwhub-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2138,13 +2138,13 @@ To obtain an access token (and a refresh token) with password grant, you should
.. code::

POST /oauth/token HTTP/1.1
Host: server.example.com
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
Host: hkiotcloud.herokuapp.com
Authorization: Basic RkZjUE9iS2h4OThvNXhtMzpjcENZQ1BrUjA4NXFSR3hFempDMUlGeEoxQWRhZFQ=
Content-Type: application/x-www-form-urlencoded

grant_type=password&username=johndoe&password=A3ddj3w

Here, ``czZCaGRSa3F0MzpnWDFmQmF0M2JW`` is the result of Base64 encoding of clientId:clientSecret.
Here, ``RkZjUE9iS2h4OThvNXhtMzpjcENZQ1BrUjA4NXFSR3hFempDMUlGeEoxQWRhZFQ=`` is the result of Base64 encoding of clientId:clientSecret.

**Sample Response:**

Expand All @@ -2156,10 +2156,10 @@ Here, ``czZCaGRSa3F0MzpnWDFmQmF0M2JW`` is the result of Base64 encoding of clien
Pragma: no-cache

{
"access_token":"2YotnFZFEjr1zCsicMWpAA",
"access_token":"62b8c11cfa0840b506230cb8af747230052775e1",
"token_type":"bearer",
"expires_in":3600,
"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA"
"refresh_token":"7a7687b6b32247573b366d5bf2eeb707ba0a1b4d"
}


Expand Down
10 changes: 5 additions & 5 deletions docs/_build/html/iOS/hkwhub-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -2675,25 +2675,25 @@ <h3>Using the Password Grant Type<a class="headerlink" href="#using-the-password
<p>To obtain an access token (and a refresh token) with password grant, you should <strong>POST</strong> to <code class="docutils literal"><span class="pre">/oauth/token</span></code>. You should include your client ID and client secret in the <code class="docutils literal"><span class="pre">Authorization</span></code> header by combining them with a colon &#8221;:&#8221; and then encoding in Base64. That is, <code class="docutils literal"><span class="pre">Base64(client_id:client_secret)</span></code>. And also, you should include <code class="docutils literal"><span class="pre">grant_type:</span> <span class="pre">password</span></code>, username and passworkd in the request body.</p>
<p><strong>Sample Request:</strong></p>
<div class="code highlight-python"><div class="highlight"><pre>POST /oauth/token HTTP/1.1
Host: server.example.com
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
Host: hkiotcloud.herokuapp.com
Authorization: Basic RkZjUE9iS2h4OThvNXhtMzpjcENZQ1BrUjA4NXFSR3hFempDMUlGeEoxQWRhZFQ=
Content-Type: application/x-www-form-urlencoded

grant_type=password&amp;username=johndoe&amp;password=A3ddj3w
</pre></div>
</div>
<p>Here, <code class="docutils literal"><span class="pre">czZCaGRSa3F0MzpnWDFmQmF0M2JW</span></code> is the result of Base64 encoding of clientId:clientSecret.</p>
<p>Here, <code class="docutils literal"><span class="pre">RkZjUE9iS2h4OThvNXhtMzpjcENZQ1BrUjA4NXFSR3hFempDMUlGeEoxQWRhZFQ=</span></code> is the result of Base64 encoding of clientId:clientSecret.</p>
<p><strong>Sample Response:</strong></p>
<div class="code highlight-python"><div class="highlight"><pre>HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Cache-Control: no-store
Pragma: no-cache

{
&quot;access_token&quot;:&quot;2YotnFZFEjr1zCsicMWpAA&quot;,
&quot;access_token&quot;:&quot;62b8c11cfa0840b506230cb8af747230052775e1&quot;,
&quot;token_type&quot;:&quot;bearer&quot;,
&quot;expires_in&quot;:3600,
&quot;refresh_token&quot;:&quot;tGzv3JOkF0XG5Qx2TlKWIA&quot;
&quot;refresh_token&quot;:&quot;7a7687b6b32247573b366d5bf2eeb707ba0a1b4d&quot;
}
</pre></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/iOS/hkwhub-spec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2138,13 +2138,13 @@ To obtain an access token (and a refresh token) with password grant, you should
.. code::
POST /oauth/token HTTP/1.1
Host: server.example.com
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
Host: hkiotcloud.herokuapp.com
Authorization: Basic RkZjUE9iS2h4OThvNXhtMzpjcENZQ1BrUjA4NXFSR3hFempDMUlGeEoxQWRhZFQ=
Content-Type: application/x-www-form-urlencoded
grant_type=password&username=johndoe&password=A3ddj3w
Here, ``czZCaGRSa3F0MzpnWDFmQmF0M2JW`` is the result of Base64 encoding of clientId:clientSecret.
Here, ``RkZjUE9iS2h4OThvNXhtMzpjcENZQ1BrUjA4NXFSR3hFempDMUlGeEoxQWRhZFQ=`` is the result of Base64 encoding of clientId:clientSecret.

**Sample Response:**

Expand All @@ -2156,10 +2156,10 @@ Here, ``czZCaGRSa3F0MzpnWDFmQmF0M2JW`` is the result of Base64 encoding of clien
Pragma: no-cache
{
"access_token":"2YotnFZFEjr1zCsicMWpAA",
"access_token":"62b8c11cfa0840b506230cb8af747230052775e1",
"token_type":"bearer",
"expires_in":3600,
"refresh_token":"tGzv3JOkF0XG5Qx2TlKWIA"
"refresh_token":"7a7687b6b32247573b366d5bf2eeb707ba0a1b4d"
}
Expand Down

0 comments on commit 959503b

Please sign in to comment.