Nápověda

skautské on-line projekty

Uživatelské nástroje

Nástroje pro tento web


dobryweb:en-skaut-google-drive-gallery:en-get-google-application

Toto je starší verze dokumentu!


Creating a Google app

Documentation for version: 2.3.4

1. Login to https://console.developers.google.com/ with a Google account which has access to the images you want to display on your webpage.

2. In the top bar, press „Select a project“.

3. You will see a modal window. In the top right, press the „NEW PROJECT“ button.

4. You will see a „New Project“ page. Enter the name of your app (can be something like „Web gallery“) and press „Create“. Later on, you will use this name to identify your Google app.

5. In the top bar, press „Select a project“ and select your newly created project.

6. In the left menu, press „Library“ which will show you all the APIs that can be enabled.

7. Find the Google Drive API tile and press it.

8. In the API settings, click „ENABLE“ and wait for the page to reaload and the API to enable.

9. In the left menu, press „Credentials

10. Open the second tab, „OAuth consent screen“. You need to fill in at least „Product name shown to user“ and „Authorised domains“. You can find this value on your webpage in the administration in the „Google Drive gallery → Basic options“ tab. The other fields are voluntary. Click „Save“.

11. After saving, you will be sent to the first tab, „Credentials“. Press the blue button „Create credentials“ in the middle of the page and choose „OAuth client ID“.

12: In the second step, you need to fill in several fields.

  • Application type: Web application
  • Authorized JavaScript origins: You can find this value on your webpage in the administration in the „Google Drive gallery → Basic options“ tab .
  • Authorized redirect URIs: You can find this value on your webpage in the administration in the „Google Drive gallery → Basic options“ tab.

Press „Create“.

13. You will see a modal window with the text Here is your client ID and Here is your client secret. Copy these values into the respective fields in the administration of your webpage in the „Google Drive gallery → Basic options“ tab (add /wp-admin/admin.php?page=sgdg_basic to your webpage url).

14. Press „Save changes“ and then „Grant permission“. You will be redirected to a Google login page. Login with the account used to create the Google app and grant the required permissions. You will then be redirected back to your webpage.

If everything goes well, all the fields in Step 1 will be greyed out.

dobryweb/en-skaut-google-drive-gallery/en-get-google-application.1539248520.txt.gz · Poslední úprava: 11.10.2018 09:02 autor: Marek Dědič - Mlha

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki