Skip to content

Commit

Permalink
fix authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanPopenko committed May 10, 2016
1 parent be1e147 commit 8d77197
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/api/authorization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,13 @@ When your token is expired you can refresh (update) it without repeating authori
with parameters

refresh_token (='{yourRefreshToken}') - is the refresh token from the step 2
grant_type = (= 'refresh_token')
grant_type (= 'refresh_token')

Code example **Java** using org.apache.http package

.. code-block:: properties
String tokenURI = "http://ivis.dev.imcode.com/oauth/token";
String refreshToken = "{yourRefreshToken}";
List<NameValuePair> pairsPost = new LinkedList<NameValuePair>();
Expand All @@ -159,6 +160,7 @@ Code example **JS** using JQuery

.. code-block:: properties
var tokenURI = "http://ivis.dev.imcode.com/oauth/token";
var refreshToken = "{yourRefreshToken}";
$.post({
Expand Down

0 comments on commit 8d77197

Please sign in to comment.