<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Revoke access token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207166#M10117</link>
    <description>&lt;P&gt;You don't need to use&amp;nbsp;DbxRawClientV2. You can use tokenRevoke on&amp;nbsp;DbxClientV2 like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);

// note: be sure to add error handling
client.auth().tokenRevoke();&lt;/PRE&gt;
&lt;P&gt;And if you're using the SDK, you don't need to construct the authorization URL yourself. There's an Android example here that shows how to process the flow in the SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, you start the flow using&amp;nbsp;&lt;SPAN&gt;startOAuth2Authentication:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L33" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L33&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And finish it in onResume:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L16" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L16&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 18:44:45 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-02-16T18:44:45Z</dc:date>
    <item>
      <title>Revoke access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207070#M10094</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to revoke the token when we trying to logoff the dropbox from my android app.&lt;/P&gt;
&lt;P&gt;it always showing some error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.dropboxapi.com/2/auth/token/revoke" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.dropboxapi.com/2/auth/token/revoke&lt;/A&gt;&lt;BR /&gt;and set the header as "Authorization: Bearer &amp;lt;access token&amp;gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it would be fine, if you provide the correct url and how to use it android.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anil.S&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207070#M10094</guid>
      <dc:creator>Anil</dc:creator>
      <dc:date>2019-05-29T09:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Revoke access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207143#M10103</link>
      <description>&lt;P&gt;What error are you getting?&lt;BR /&gt;&lt;BR /&gt;There's an example of calling that endpoint via curl here in the documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By the way, if you're building an Android app, we recommend using the official Java SDK:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/java" target="_blank"&gt;https://www.dropbox.com/developers/documentation/java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the Java SDK, you would use the tokenRevoke method to revoke a token:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/auth/DbxUserAuthRequests.html#tokenRevoke--" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/auth/DbxUserAuthRequests.html#tokenRevoke--&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:58:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207143#M10103</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-16T17:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Revoke access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207157#M10112</link>
      <description>&lt;P&gt;Thanks Greg.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used 'DbxClientV2' for getting files and folder list.&lt;BR /&gt;Never used the 'DbxRawClientV2' in my application and it seems DbxUserAuthRequests expecting 'DbxRawClientV2' &amp;nbsp;object as parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For authentication, i used android native webview control and used the following url.&lt;BR /&gt;For eg: &lt;A href="https://www.dropbox.com/oauth2/authorize/?client_id=&amp;lt;clientID&amp;gt;&amp;amp;response_type=code&amp;amp;redirect_uri=&amp;lt;redirectURL" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize/?client_id=&amp;lt;clientID&amp;gt;&amp;amp;response_type=code&amp;amp;redirect_uri=&amp;lt;redirectURL&lt;/A&gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;And it gives the Accestoken and then set it to the 'DbxClientV2' for listing files.&lt;/P&gt;
&lt;P&gt;How can i use the 'DbxUserAuthRequests', please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anil.S&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:23:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207157#M10112</guid>
      <dc:creator>Anil</dc:creator>
      <dc:date>2017-02-16T18:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Revoke access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207166#M10117</link>
      <description>&lt;P&gt;You don't need to use&amp;nbsp;DbxRawClientV2. You can use tokenRevoke on&amp;nbsp;DbxClientV2 like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);

// note: be sure to add error handling
client.auth().tokenRevoke();&lt;/PRE&gt;
&lt;P&gt;And if you're using the SDK, you don't need to construct the authorization URL yourself. There's an Android example here that shows how to process the flow in the SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, you start the flow using&amp;nbsp;&lt;SPAN&gt;startOAuth2Authentication:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L33" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L33&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And finish it in onResume:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L16" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L16&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:44:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207166#M10117</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-16T18:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Revoke access token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207215#M10127</link>
      <description>&lt;P&gt;Thanks Greg for your great help.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You don't need to use&amp;nbsp;DbxRawClientV2. You can use tokenRevoke on&amp;nbsp;DbxClientV2 like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);

// note: be sure to add error handling
client.auth().tokenRevoke();&lt;/PRE&gt;
&lt;P&gt;And if you're using the SDK, you don't need to construct the authorization URL yourself. There's an Android example here that shows how to process the flow in the SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, you start the flow using&amp;nbsp;&lt;SPAN&gt;startOAuth2Authentication:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L33" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/UserActivity.java#L33&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And finish it in onResume:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L16" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L16&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 01:14:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Revoke-access-token/m-p/207215#M10127</guid>
      <dc:creator>Anil</dc:creator>
      <dc:date>2017-02-17T01:14:40Z</dc:date>
    </item>
  </channel>
</rss>

