

Note that var accessToken is really a object. Store this token for "remember me" function _client.GetAccessTokenAsync((accessToken) =>

Var accessToken = _client.GetAccessToken() //Store this token for "remember me" function It's a token that proves they've authenticated with drop box. the user token enables a "remember me" feature without having the user reauthenticating and especially from your app storing their account/pass which you should never do. Now that the user has logged on, you can get a user access token via synchronous or asynchronous methods. that's covered in step 2 of that link by getting the url. Once you have a client object, you need to pop a browser and have the user login to drop box with their user account. _client = new DropNetClient("API KEY", "API SECRET") įor example: // replace with given app key and secret from site

This link lays out the sequence pretty clearly: They will give you the key and secret after registering your app.Ĭoncerning the specific C# DropNetClient, you're supposed to replace "APP_KEY" and "APP_SECRET" with your appKey and appSecret strings from that site. Give it a name and description, select access folder or full contents and click OK. You'll have to create or login with your drop box account. You're essentially registering your app with drop box in order to integrate with their service.Ĭlick the " my apps" link in that page. The Python SDK doesn't implement the 'token' flow unfortunately, but I'll pass this along as a feature request. When you create your app on the dropbox web site, they give you an APP_KEY (identifies your app) and an APP_SECRET (like a password). The DropboxOAuth2FlowNoRedirect class in the Dropbox Python SDK uses the 'code' flow, so it requires the app key and secret.
