See the official Dropbox documentation at https://www.dropbox.com/developers/documentation/http/documentation
The message type for an app that uses Dropbox.program
Request parameters for Dropbox OAuth 2.0 authorization requests.
See https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
Note: redirect_uri is not present here because it is provided directly to
Dropbox.authorize or Dropbox.authorizationUrl.
Return value of the authorize endpoint, which is the data Dropbox returns via
the redirect URL.
You can get the AuthorizeResult by using Dropbox.program,
or by using parseAuthorizeResult if you need to manually parse the redirect URL.
See https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
Note: uid is not provided because it is deprecated.
See https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
Return value of the authorize endpoint when authentication fails. See AuthorizeResult.
See https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
A user authentication token that can be used to authenticate API calls
See https://www.dropbox.com/developers/reference/auth-types#user
Encode a UserAuth to JSON.
You should consider the resulting value to be opaque
and only read it using decodeUserAuth.
WARNING: To protect your users' security, you must not transmit the resulting value off the user's device. This function exists to allow persisting the auth token to localStorage or other storage that is local to the user's device and private to your application. You should not send this value to your own server (if you think you need that, you should use a different OAuth flow involving your Dropox app's app secret instead of using implicit grant).
Decode a UserAuth encoded with encodeUserAuth.
NOTE: See the security warning in encodeUserAuth.
If you have an auth token as a String and need to convert it to a UserAuth,
see authorizationFromAccessToken.
The Dropbox OAuth 2.0 authorization URL.
Typically you will just want to use authorize instead,
which will initiate the authorization.
See https://www.dropbox.com/developers/reference/oauth-guide
Generate a redirect URI from a Navigation.Location.
Typically you will want to use Dropbox.authorize, which will do this automatically.
You may want to use this if you need to manually manage the OAuth flow.
Create a UserAuth from a Dropbox access token.
You can use this during development, using the "generated access token" from the settings page of your Dropbox app.
You should not use this in a production app.
Instead, you should use the normal authorization flow and use program or parseAuthorizeResult.
Read an AuthorizeResult from the page location.
Typically you will want to use Dropbox.program instead, which will do this automatically.
You may want to use this if you need to manually manage the OAuth flow.
Disables the access token used to authenticate the call.
See https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke
Download a file from a user's Dropbox.
See https://www.dropbox.com/developers/documentation/http/documentation#files-download
Request parameteres for download
Note: there is no rev field because it is deprecated.
See https://www.dropbox.com/developers/documentation/http/documentation#files-download
Return value for download
WARNING: elm-dropbox may give the incorrect values for size,
since Elm currently does not provide a way to parse and represent 64-bit integers.
Create a new file with the contents provided in the request.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Request parameters for upload
Your intent when writing a file to some path. See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Return value for upload
WARNING: elm-dropbox may give the incorrect values for size,
since Elm currently does not provide a way to parse and represent 64-bit integers.
Additional information if the file is a photo or video.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Metadata for a photo or video.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Metadata for a photo.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Metadata for a video.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
WARNING: elm-dropbox may give the incorrect values for duration,
since Elm currently does not provide a way to parse and represent 64-bit integers.
Dimensions for a photo or video.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
WARNING: elm-dropbox may give the incorrect values, since Elm currently does not provide a way to parse and represent 64-bit integers.
The GPS coordinate of the photo/video.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Sharing info for a file which is contained by a shared folder.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Collection of custom properties in filled property templates.
See https://www.dropbox.com/developers/documentation/http/documentation#files-upload
This provides the simplest way to integrate Dropbox authentication. Using
Dropbox.programwill handle parsing the authentication response from the authentication redirect so that you don't have to do it manually.