For example, // in C#: (url) // in Java: Desktop.getDesktop().browse(new URI(url)) // in VBScript: Set wsh=WScript.CreateObject("WScript.Shell") // wsh.Run url // in Xojo: ShowURL(url) (see ) // in Dataflex: Runprogram Background "c:\Program Files\Internet Explorer\iexplore.exe" sUrl // The Microsoft account owner would interactively accept or deny the authorization request. At this point, your application should load the URL in a browser. This returns a URL that should be loaded in a browser. AddAuthQueryParam( "token_access_type", "offline") Add token_access_type=offline to also get a refresh token in the response IMPORTANT: One of the OAuth2 redirect URIs for your Dropbox app must be // exactly this string: oauth2. The port should match the Authorized Redirect URL in your Dropbox app, // which would look like " oauth2. Chilkat.OAuth2 oauth2 = new Chilkat.OAuth2() Note: This example requires Chilkat v9.5.0.66 or greater to work properly. See Global Unlock Sample for sample code. This example requires the Chilkat API to have been previously unlocked. This example runs the OAuth 2.0 authorization flow that lets the user sign in to Dropbox and authorize your app. (C#) Dropbox: OAuth2 Authorization to Obtain an Access TokenÄemonstrates how to get a Dropbox OAuth2 access token from a desktop application or script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |