Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
harmandeveloperprogram committed Feb 27, 2016
1 parent 6316ccc commit 860e9a5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 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.
2 changes: 1 addition & 1 deletion docs/_build/html/_sources/iOS/hkwhub-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ In case of HKIoTCloud more, the client should get an access token from the HKIoT
With **password** grant mode, you can get an access token and a refresh token as shown below:


- curl -X GET -H "Authorization: Basic bjdIaGlUbktZakpkNHptTTpBTlJmQjl6OTR4dGN4RkdYcmQ1WEhYRWlLZzQzVVk=" -d "grant_type=password&username=yyy&password=xxx" http://hkiotcloud.herokuapp.com/oauth/token
- curl -X POST -H "Authorization: Basic bjdIaGlUbktZakpkNHptTTpBTlJmQjl6OTR4dGN4RkdYcmQ1WEhYRWlLZzQzVVk=" -d "grant_type=password&username=yyy&password=xxx" http://hkiotcloud.herokuapp.com/oauth/token

Result:

Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/iOS/hkwhub-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ <h4>Get an Access Token and Refresh Token (HKIoTCloud mode only)<a class="header
<p>In case of HKIoTCloud more, the client should get an access token from the HKIoTCloud to be able to call the REST APIs. HKIoTCloud supports two authorization modes: <strong>password</strong> and <strong>authorization code</strong>. For mode detailed information, please refer to the section of <a class="reference external" href="http://harmandeveloperdocs.readthedocs.org/en/latest/iOS/hkwhub-spec.html#id2">OAuth2 Authorization API Specification</a>.</p>
<p>With <strong>password</strong> grant mode, you can get an access token and a refresh token as shown below:</p>
<ul class="simple">
<li>curl -X GET -H &#8220;Authorization: Basic bjdIaGlUbktZakpkNHptTTpBTlJmQjl6OTR4dGN4RkdYcmQ1WEhYRWlLZzQzVVk=&#8221; -d &#8220;grant_type=password&amp;username=yyy&amp;password=xxx&#8221; <a class="reference external" href="http://hkiotcloud.herokuapp.com/oauth/token">http://hkiotcloud.herokuapp.com/oauth/token</a></li>
<li>curl -X POST -H &#8220;Authorization: Basic bjdIaGlUbktZakpkNHptTTpBTlJmQjl6OTR4dGN4RkdYcmQ1WEhYRWlLZzQzVVk=&#8221; -d &#8220;grant_type=password&amp;username=yyy&amp;password=xxx&#8221; <a class="reference external" href="http://hkiotcloud.herokuapp.com/oauth/token">http://hkiotcloud.herokuapp.com/oauth/token</a></li>
</ul>
<p>Result:</p>
<div class="code highlight-python"><div class="highlight"><pre><span class="p">{</span><span class="s">&quot;token_type&quot;</span><span class="p">:</span><span class="s">&quot;bearer&quot;</span><span class="p">,</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/iOS/hkwhub-spec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ In case of HKIoTCloud more, the client should get an access token from the HKIoT
With **password** grant mode, you can get an access token and a refresh token as shown below:


- curl -X GET -H "Authorization: Basic bjdIaGlUbktZakpkNHptTTpBTlJmQjl6OTR4dGN4RkdYcmQ1WEhYRWlLZzQzVVk=" -d "grant_type=password&username=yyy&password=xxx" http://hkiotcloud.herokuapp.com/oauth/token
- curl -X POST -H "Authorization: Basic bjdIaGlUbktZakpkNHptTTpBTlJmQjl6OTR4dGN4RkdYcmQ1WEhYRWlLZzQzVVk=" -d "grant_type=password&username=yyy&password=xxx" http://hkiotcloud.herokuapp.com/oauth/token

Result:

Expand Down

0 comments on commit 860e9a5

Please sign in to comment.