Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/esimkowitz/slide-summarizer
Experiment with the new Google Slides API.
https://github.com/esimkowitz/slide-summarizer
google google-drive heroku php slide slides summarizer
Last synced: 4 days ago
JSON representation
Experiment with the new Google Slides API.
- Host: GitHub
- URL: https://github.com/esimkowitz/slide-summarizer
- Owner: esimkowitz
- License: mit
- Created: 2017-02-17T01:33:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T20:21:12.000Z (5 months ago)
- Last Synced: 2024-06-29T21:03:17.133Z (5 months ago)
- Topics: google, google-drive, heroku, php, slide, slides, summarizer
- Language: JavaScript
- Homepage: https://slide-summarizer.herokuapp.com/
- Size: 627 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slide Summarizer
_Experiment with the new Google Slides API. It will scan your presentation and create a bookmark to slides where the title has changed._
## Setup
### Installing Composer
The first step to setting up this project is to install the Composer package manager for PHP. This can be done using the following script:
```
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
```
### Get Credentials for OAuth 2.0 Login
Use the following [tutorial](https://developers.google.com/api-client-library/php/auth/web-app#creatingcred) to enable OAuth 2.0 for web applications.The necessary code framework to use the OAuth client is already included in the program, all that you need to add is the `client_secret.json` file obtained by following the instructions in the "Creating web application credentials" section.
After downloading the `client_secret.json` file from the Credentials wizard, move the file into the project or properly adjust the file path to it in the `oauth2callback.php` and `slide_reader.php` files. From here, move the project into Apache or Nginx's document root.
### Install the Google Client Library
Run the following command to install the library using composer:
```
php composer.phar require google/apiclient-services:dev-master
php composer.phar require google/apiclient:^2.0
```## Usage
To utilize the summarizer, turn on your web server and navigate to the webpage in your browser of choice. The URL should be formatted as follows:
```
http://localhost/Slide-Summarizer/slide_reader.php?presentationId=
```Where `` is the id of whichever Google Slides presentation you would like to summarize.
The program will dynamically produce a list of all the unique slide titles in the presentation. Clicking on any of these titles will change the iframe's position to the corresponding slide.