嘿,我刚接触Vb我想为基于Dropbox的应用程序做一个auth,但是当我从dropbox尝试源代码时,它显示错误。谢谢
以下是代码:
Public Shared Function GetAuthorizeUri (
oauthResponseType As OAuthResponseType,
clientId As String,
Optional redirectUri As Uri = Nothing,
Optional state As String = Nothing,
Optional forceReapprove As Boolean = false,
Optional disableSignup As Boolean = false) As Uri
评论代码:
Imports Dropbox Imports Dropbox.Api
Public Class Form1
Public Shared Function GetAuthorizeUri(oauthResponseType As OAuthResponseType, clientId As String, Optional redirectUri As String = Nothing, Optional state As String = Nothing, Optional, forceReapprove As Boolean = False, Optional disableSignup As Boolean = False ) As Uri
Return
End Function
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class
这个新代码我希望你们能给我一个明确的视图来做这件事,我想生成访问令牌依赖谁登录dropbox,但dropbox博客的教程让我感到困惑。
`
Imports Dropbox
Imports Dropbox.Api
Imports System.Threading
Imports System.Text
Public Class Form1
Public Shared Function GetAuthorizeUri(
clientId As String,
Optional disableSignup As Boolean = False
) As Uri
End Function
Public Shared Function ParseTokenFragment(
redirectedUri As Uri
) As OAuth2Response
End Function
Public Shared Function ProcessCodeFlowAsync(
code As String,
appKey As String,
appSecret As String,
Optional redirectUri As String = Nothing,
Optional client As MdiClient = Nothing
) As Task(Of OAuth2Response)
End Function
End Class
`