weralibrary.blogg.se

Dropbox api v2 javascript
Dropbox api v2 javascript




dropbox api v2 javascript dropbox api v2 javascript

If false (default), a user who has already approved the application may be automatically redirected to the URI specified by Your app should still verify the type of Dropbox account after authorization since the user could modify or remove the require_role parameter.įorce_reapprove - Boolean? - Whether or not to force the user to approve the app again if they've already done so. Require_role - String? - If this parameter is specified, the user will be asked to authorize with a particular type of Dropbox account, either work for a team account or personal for a personal account. See Sections 4.4.1.8 and 4.4.2.5 of the OAuth 2.0 threat model spec. This parameter should be used to protect against cross-site request forgery (CSRF). State - String? - Up to 500 bytes of arbitrary data that will be passed back to your redirect URI.

dropbox api v2 javascript

If the redirect URI is omitted, the code will be presented directly to the user and they will be invited to enter the information in your app. A redirect URI is required for the token flow, but optional for the code flow. All redirect URIs must be HTTPS except for localhost URIs. This must be the exact URI registered in the App Console even 'localhost' must be listed if it is used for testing. Redirect_uri String? Where to redirect the user after authorization has completed. Response_type - String - The grant type requested, either token or code.Ĭlient_id - String - The app's key, found in the App Console. To initialize the library you must provide a object containing the following parameters. This means that you should initialize the library with the new keyword. You may need to provide a Promise Polyfill.ĭropbox-v2-js is built over a constructor pattern. Keep in mind that the versions above are not hard requirements. This library is tested against the following JavaScript platforms. This is a JavaScript library for the new Dropbox API, written in JavaScript with some ECMAscript 6 features, suitable for use in both modern browsers and in server-side code running under node.js.ĭropbox-v2-js relies on co for using generators and SuperAgent, a simple HTTP library that works both on browsers and on node.js.ĭropbox-v2-js uses Browserify to build the browser library. JavaScript Library for the Dropbox API v2






Dropbox api v2 javascript