Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Dropbox repository.

Dropbox repository: Difference between revisions

From MoodleDocs
(intro, small rewording, video)
(see also tracker issue link)
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Repositories}}
{{Repositories}}
The Dropbox repository enables users to copy files from Dropbox into Moodle.  
The Dropbox repository enables users to copy or create a shortcut or alias to files from ''their own'' Dropbox. See [[Working with files]] for more details.


==Enabling the Dropbox repository==
==Enabling the Dropbox repository==


The Dropbox repository may be enabled by a site administrator in ''Settings > Site administration > Modules > Repositories > Manage repositories''.
The Dropbox repository may be enabled by a site administrator from the Manage repositories link in Site administration.


===Sign up app keys at dropbox===
===Dropbox configuration===
*Once enabled the administrator will need to add a Dropbox API Key and Secret.  To get one, click on the "Dropbox developers" link on the Dropbox repository settings page, opening it in a new tab for convenience:
 
[[File:dropboxrepo01.png|thumb|700px|center]]
 
*On the next screen, sign in or create an account on Dropbox. If you don't immediately see a blue button 'Create app' then click the Developers link at the bottom of the screen. On the next screen, click to create a new app.
 
* Choose '''Dropbox API', 'Full dropbox''' and name your app according to the branding rules:
 
[[File:dropboxrepo02.png|thumb|center|700px]]
 
* Click the blue 'Create app' button
 
* On the next screen you will see an App key and an App secret. Copy these and go back to your Moodle site Dropbox repository settings page.
 
* Paste these into the appropriate fields (1 below) and then copy the Redirect URL (2 below):
 
[[File:dropboxrepo4.png|thumb|center|700px]]
 
* Return to the Dropbox site. Paste in the Redirect URl and click Add:


# Go to https://www.dropbox.com/developers/apps
[[File:dropboxrepo05.png|center]]
# Create an app, you must change app status to Production. This feature is only availble for new API developers, but not for Moodle repository users. See MDL-26949
# Copy the app keys (scroll if necessary)


NOTE: The only way to get App stats for Production approved is to use an acceptable App name. The App name should be something like "Moodle With Dropbox" - with dropbox is the key part of the name (can't just use dropbox). Otherwise, you'll receive an email that says "Your app name does not follow Dropbox branding guidelines (found here: https://www.dropbox.com/developers/branding ). Please choose a new name and submit a request to change your app name to api-program@dropbox.com."
*If you wish, you can click the Branding tab and add extra information for your users, including a custom logo they will see when they connect to Dropbox on your site:


===Dropbox configuration===
[[File:dropboxrepo06.png|center]]
Once enabled by the administrator, a Dropbox API Key and Secret will need to be added to the Dropbox settings in order for it to work.  This will be ''the'' Dropbox available to all users throughout the site (and each will need the correct Dropbox login credentials to access it from their courses).  To gather the Dropbox API Key and Secret click the "Dropbox Developers" link on the Dropbox repository settings page.  On the next page you'll be prompted to login with your Dropbox username and password and to create a Dropbox app. 
 
==Using the Dropbox repository==


Once the App has been created at Dropbox.com you'll have the API Secret and Key available at the bottom of the App page.  Entering those on the Dropbox settings page (and clicking Save) back in Moodle will finish the configuration.  Dropbox is now available to the entire site.
To select a file via Dropbox, editing teachers will click on the Dropbox link in the file picker and log on to access the files in their account. They will see a message requesting access:
[[File:dropboxlogin.png|center]]


To access it editing teachers need only "Add..." a new file while editing or creating a resource to see Dropbox as a new option.
When they are done, they can log out.


Import files from Dropbox into Moodle 2.0 video:
==Repository capabilities==


<mediaplayer>http://www.youtube.com/watch?v=V221JLCywWs</mediaplayer>
There is just one capability, [[Capabilities/repository/dropbox:view|View a Dropbox folder]], which is allowed for the default authenticated user role.  


==See also==
==See also==


* MDL-26949 - Dropbox repository - only app creator can use the dropbox but no other user in dropbox development mode
* [http://www.somerandomthoughts.com/blog/2012/10/23/using-dropbox-repository-with-moodle/ Using Dropbox Repository with Moodle] blog post by Gavin Henrick
* MDL-52051 - Dropbox API v2 migration


[[de:Dropbox]]
[[de:Dropbox Repository]]
[[ja:Dropbox]]
[[ja:Dropbox]]

Latest revision as of 14:28, 2 June 2017

The Dropbox repository enables users to copy or create a shortcut or alias to files from their own Dropbox. See Working with files for more details.

Enabling the Dropbox repository

The Dropbox repository may be enabled by a site administrator from the Manage repositories link in Site administration.

Dropbox configuration

  • Once enabled the administrator will need to add a Dropbox API Key and Secret. To get one, click on the "Dropbox developers" link on the Dropbox repository settings page, opening it in a new tab for convenience:
dropboxrepo01.png
  • On the next screen, sign in or create an account on Dropbox. If you don't immediately see a blue button 'Create app' then click the Developers link at the bottom of the screen. On the next screen, click to create a new app.
  • Choose Dropbox API', 'Full dropbox and name your app according to the branding rules:
dropboxrepo02.png
  • Click the blue 'Create app' button
  • On the next screen you will see an App key and an App secret. Copy these and go back to your Moodle site Dropbox repository settings page.
  • Paste these into the appropriate fields (1 below) and then copy the Redirect URL (2 below):
dropboxrepo4.png
  • Return to the Dropbox site. Paste in the Redirect URl and click Add:
dropboxrepo05.png
  • If you wish, you can click the Branding tab and add extra information for your users, including a custom logo they will see when they connect to Dropbox on your site:
dropboxrepo06.png

Using the Dropbox repository

To select a file via Dropbox, editing teachers will click on the Dropbox link in the file picker and log on to access the files in their account. They will see a message requesting access:

dropboxlogin.png

When they are done, they can log out.

Repository capabilities

There is just one capability, View a Dropbox folder, which is allowed for the default authenticated user role.

See also