<?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: Hi How i use Disable_token_access in vb ? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193626#M8712</link>
    <description>&lt;P&gt;When using OAuth 2 to make an API call like this, as it appears you are, you should supply the token as a "Bearer" token in the "Authorization" header. The header shouldn't go on the URL itself though, as you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, using OAuth 2 with API v1 to revoke the access token, it would look like this, using curl:&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/1/disable_access_token \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, using OAuth 2 with API v2 to revoke the access token, it would look like this, using curl:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/auth/token/revoke \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE"&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;API v2 is recommended&amp;nbsp;over API v1 as API v1 is &lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_self"&gt;deprecated&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 18:55:25 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-11-08T18:55:25Z</dc:date>
    <item>
      <title>Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193574#M8700</link>
      <description>&lt;P&gt;i alreadt read how python use it but it confuse me how to put the header , any one know how i should put it ?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.dropboxapi.com/1/disable_access_token/?"header"&lt;BR /&gt;or&lt;/PRE&gt;&lt;PRE&gt;https://api.dropboxapi.com/1/disable_access_token?"header"&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;and this is the header right ?&lt;BR /&gt;("Authorization") = "Bearer " + storedaccestoken&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:28:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193574#M8700</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2019-05-29T09:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193575#M8701</link>
      <description>Moved to the API forum.</description>
      <pubDate>Tue, 08 Nov 2016 14:02:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193575#M8701</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2016-11-08T14:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193576#M8702</link>
      <description>&lt;P&gt;hey does anyone know the answer here ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 14:07:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193576#M8702</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-08T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193626#M8712</link>
      <description>&lt;P&gt;When using OAuth 2 to make an API call like this, as it appears you are, you should supply the token as a "Bearer" token in the "Authorization" header. The header shouldn't go on the URL itself though, as you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, using OAuth 2 with API v1 to revoke the access token, it would look like this, using curl:&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/1/disable_access_token \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or, using OAuth 2 with API v2 to revoke the access token, it would look like this, using curl:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/auth/token/revoke \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE"&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;API v2 is recommended&amp;nbsp;over API v1 as API v1 is &lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_self"&gt;deprecated&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 18:55:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193626#M8712</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-08T18:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193666#M8717</link>
      <description>&lt;P&gt;Hi, this my code. But, it's not working. Can you help me?&lt;/P&gt;&lt;PRE&gt;storedaccesstoken = My.Computer.FileSystem.ReadAllText(FILE_NAME)
        Dim client = New WebClient()
        client.Headers("Authorization") = "Bearer " + storedaccesstoken
        Dim disableac = client.Dispose("https://api.dropboxapi.com/2/auth/token/revoke")&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Nov 2016 07:49:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193666#M8717</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-09T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193700#M8718</link>
      <description>In what way is it not working? What response are you getting?</description>
      <pubDate>Wed, 09 Nov 2016 17:46:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193700#M8718</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-09T17:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193762#M8719</link>
      <description>Well, i change the code, and found same method as curl -X POST, now the problem is im still using API v1 token flow, when i try to disable the token, it's work but now the problem is how to unlink my app so we can get a new access token</description>
      <pubDate>Thu, 10 Nov 2016 02:30:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193762#M8719</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-10T02:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193832#M8724</link>
      <description>I'm afraid I still don't follow. Can you share what you have so far that's giving you trouble?&lt;BR /&gt;&lt;BR /&gt;For reference, API v1 supports both OAuth 1 and OAuth 2. API v2 supports only OAuth 2. You can use the same OAuth 2 access tokens across both API v1 and API v2.</description>
      <pubDate>Thu, 10 Nov 2016 17:36:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/193832#M8724</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-11-10T17:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hi How i use Disable_token_access in vb ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/194149#M8753</link>
      <description>&lt;P&gt;hey i already solved it, i use some method in other web to call the URL and post the access token. but thanks for the lead greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is my solution, looking for similiar method likes curl - X post in vb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub LogoutToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles LogoutToolStripMenuItem.Click

        Dim wHeader As WebHeaderCollection = New WebHeaderCollection()
        Dim wProxy As IWebProxy = WebRequest.GetSystemWebProxy()
        wProxy.Credentials = System.Net.CredentialCache.DefaultCredentials

        wHeader.Clear()
        wHeader.Add("Authorization: Bearer " + storedaccesstoken)
        Dim sUrl As String = "https://api.dropboxapi.com/2/auth/token/revoke"

        Dim wRequest As HttpWebRequest = DirectCast(System.Net.HttpWebRequest.Create(sUrl), HttpWebRequest)

        wRequest.Headers = wHeader
        wRequest.Method = "POST"
        wRequest.Proxy = wProxy


        Dim wResponse As HttpWebResponse = DirectCast(wRequest.GetResponse(), HttpWebResponse)

        Dim sResponse As String = ""

        Using srRead As New StreamReader(wResponse.GetResponseStream())
            sResponse = srRead.ReadToEnd()
        End Using
        If System.IO.File.Exists(FILE_NAME) = True Then
            System.IO.File.Delete(FILE_NAME)
        End If
        Dim login As New Login
        login.Show()
        Me.Close()
    End Sub

End Class&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Nov 2016 04:18:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Hi-How-i-use-Disable-token-access-in-vb/m-p/194149#M8753</guid>
      <dc:creator>VAR_46</dc:creator>
      <dc:date>2016-11-13T04:18:12Z</dc:date>
    </item>
  </channel>
</rss>

