-
Notifications
You must be signed in to change notification settings - Fork 3
Google Drive
Download the [Google PHP SDK] (https://code.google.com/p/google-api-php-client/) library into sites/all/libraries directory:
curl "http://google-api-php-client.googlecode.com/files/google-api-php-client-0.6.2.tar.gz" -O
tar -xvf google-api-php-client-0.6.2.tar.gz
This provider module must use a google application to access the Google Drive service. Google will then check which individual users have granted the google application access to their Google Drive. The application must first be created at google. After creation, submit the app identification and secret key below so that drupal can authenticate itself as operating on behalf of this new application. Then you will be able to connect (authorize) an individual Google Drive account to this application.
- Create an API project in the Google APIs Console.
- Select the Services tab in your API project, and enable the Drive API and Drive SDK.
- Select the API Access tab in your API project, and click Create an OAuth 2.0 client ID.
- In the Branding Information section, provide a name for your application (e.g. "Drupal Convert File Google Drive Provider"), and click Next. Providing a product logo is optional.
- In the Client ID Settings section, do the following:
- Select Web application for the Application type.
- Click the more options link next to the heading, Your site or hostname
- Enter the drupal recommended value in the Authorized Redirect URIs field. This must be a valid top level domain. Leave the javascript field empty.
- Click Create Client ID.
- In the API Access page, locate the section Client ID for Web applications and note the Client ID and Client secret values.
Navigate to the Google Drive provider settings page on drupal at /admin/config/convertfile/settings/provider/googledrive
- Enter the Client ID and Client Secret in their respective fields.
- Click Update.
- Click Connect Google Drive button.
- If a Select an account page appears then select which account to grant access to, or sign in to a google account with an email address.
- Click Allow access button.
The Google Drive settings page should now display a green Connected text.