You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
VAR_46
9 years agoHelpful | Level 6
Hi How i use Disable_token_access in vb ?
i alreadt read how python use it but it confuse me how to put the header , any one know how i should put it ? https://api.dropboxapi.com/1/disable_access_token/?"header" or https://api.dropboxapi...
- 9 years ago
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.
and this is my solution, looking for similiar method likes curl - X post in vb
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
Greg-DB
Dropbox Staff
I'm afraid I still don't follow. Can you share what you have so far that's giving you trouble?
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.
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.
VAR_46
9 years agoHelpful | Level 6
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.
and this is my solution, looking for similiar method likes curl - X post in vb
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
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 2 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!