Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67733

Upgrade Google APIs client library to latest version

    XMLWordPrintable

Details

    • MOODLE_38_STABLE
    • MDL-67733-master
    • Hide

      Prerequisites:

      Set-up instructions:

      1. Go to /admin/settings.php?section=optionalsubsystems;
      2. Check "Enable portfolios" (enableportfolios) and save;
      3. Go to /admin/portfolio.php;
      4. Enable "Google Drive";
      5. Set up the credentials for Google Drive and save;
      6. Go to /admin/blocks.php;
      7. Enable "YouTube";
      8. Go to /admin/repository.php;
      9. Enable "YouTube videos";
      10. After the page reloads, click in "Settings" in the side of "YouTube", to edit the settings;
      11. Put your API Key and save;

      Testing YouTube Tags Block:

      1. Go to /user/editadvanced.php to edit your profile;
      2. On "Interests" section, add something like "dogs" and "beer";
      3. Update your profile;
      4. Go to /tag/index.php?tag=dogs;
      5. Turn editing on;
      6. Click "Add a block" and select "YouTube";
      7. Ensure that the new block has appear and is showing puppies videos.

      Testing YouTube repository:

      1. Go to your test course page;
      2. Turn editing on;
      3. Click to add a new Label resource;
      4. Make sure you see the Atto text editor, if not, enable it;
      5. Click on "Insert or edit an audio/video file", eg. the cam/file icon;
      6. In the popup, make sure you are in "Link" tab;
      7. Click in "Browse repositories...";
      8. In the new popup, ensure "YouTube" appears as an option of repository and click on it;
      9. On the "Search videos" input, search for something like "cars";
      10. Ensure it shows the filtered videos;
      11. Select one video of the list;
      12. Click on "Insert media";
      13. When the popup closes, on the form click on "Save and return to course";
      14. Ensure the video appears, or the link for it if you have convert URL to videos disabled.

      Testing Google Drive Portfolio:

      1. Go to your test course page;
      2. Turn editing on;
      3. Click to add a new Forum resource;
      4. Create the test forum with name and description;
      5. Create a post on that forum with name and description;
      6. Open the created post and click on "Export to portfolio";
      7. (Optional) Select "Google Drive" as destination;
      8. Click in "Continue";
      9. Open your Google Drive (https://drive.google.com/drive/my-drive);
      10. Ensure the exported file is there (named like "post.html");
      Show
      Prerequisites: A HTTPS site OR fake a real domain name using a hosts file; A Moodle Admin account; A Moodle test course; A Google Drive account; A Google Console account ( https://console.developers.google.com/ ) with a project; YouTube Data API enabled ( https://console.developers.google.com/apis/library/youtube.googleapis.com); A OAuth2 Client ID ( https://console.developers.google.com/apis/credentials); A API Key for YouTube ( https://console.developers.google.com/apis/credentials); Set-up the Google OAuth2 in Moodle by following the steps described in  https://docs.moodle.org/38/en/OAuth_2_Google_service ; Set-up instructions: Go to /admin/settings.php?section=optionalsubsystems; Check "Enable portfolios" (enableportfolios) and save; Go to /admin/portfolio.php; Enable "Google Drive"; Set up the credentials for Google Drive and save; Go to /admin/blocks.php; Enable "YouTube"; Go to /admin/repository.php; Enable "YouTube videos"; After the page reloads, click in "Settings" in the side of "YouTube", to edit the settings; Put your API Key and save; Testing YouTube Tags Block: Go to /user/editadvanced.php to edit your profile; On "Interests" section, add something like "dogs" and "beer"; Update your profile; Go to /tag/index.php?tag=dogs; Turn editing on; Click "Add a block" and select "YouTube"; Ensure that the new block has appear and is showing puppies videos. Testing YouTube repository: Go to your test course page; Turn editing on; Click to add a new Label resource; Make sure you see the Atto text editor, if not, enable it; Click on "Insert or edit an audio/video file", eg. the cam/file icon; In the popup, make sure you are in "Link" tab; Click in "Browse repositories..."; In the new popup, ensure "YouTube" appears as an option of repository and click on it; On the "Search videos" input, search for something like "cars"; Ensure it shows the filtered videos; Select one video of the list; Click on "Insert media"; When the popup closes, on the form click on "Save and return to course"; Ensure the video appears, or the link for it if you have convert URL to videos disabled. Testing Google Drive Portfolio: Go to your test course page; Turn editing on; Click to add a new Forum resource; Create the test forum with name and description; Create a post on that forum with name and description; Open the created post and click on "Export to portfolio"; (Optional) Select "Google Drive" as destination; Click in "Continue"; Open your Google Drive ( https://drive.google.com/drive/my-drive); Ensure the exported file is there (named like "post.html");
    • 20

    Description

      Google APIs Client Library (/lib/google/) 1.1.7 --> 2.13.2: https://github.com/googleapis/google-api-php-client/releases 
       

      MDL-60192 was created to upgrade this library for Moodle 3.4. It was marked as won't do because of technical complications. We should try to fix those complications.
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sarjona Sara Arjona (@sarjona)
              Ilya Tregubov Ilya Tregubov
              Votes:
              5 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 8 minutes
                  8m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.