Younetco modules use several Google APIs for different Google services. Below is the tutorial to retrieve these APIs for module's settings.

I. Google Calendar API

1. Go to Google Console Page & Login to your Google account.

2. Click on Create Project from Dashboard OR Select a project menu, and click on the + symbol on the popup window. create-app

3. Enter project name, select your preference of email notification and lastly choose Yes to agree on Terms of Service >> Create

4. In project Dashboard, click on Enable APIs and Services on top of the page.

5. Search in page for "Google Calendar API" or type it in search box, and choose it. calendar

6. Select Enable button to activate this service.

7. Click on Credentials from left menu >> Select Create credentials and choose API key from the drop down list. 3

8. A popup with API key created shows up. You have the API key you want. Note it down.

9. Continue from the Credentials page >> Click on Create credentials and select OAuth client ID from drop down list.

10. You might be asked to Configure consent screen (if not, go to step 11). Click on that button >> Enter the product name you want to Product name shown to users >> Save

11. Choose Web application for Application type.

12. Enter the name you want, and: For Authorized JavaScript Origins, fill in your website address (ex: http://www.yoursite.com) For Authorized Redirect URIs, fill in the callback function of your website (It should be at: http://www.yoursite.com/PF.Base/module/fevent/static/gcalendar.php) Hit Create.

13. A popup with OAuth client info shows up. You have Client ID & Client Secret you want. Note them down.

 

II. Services with Google Maps API (Google Places, Geocoding, Geolocation, JavaScript)

1. In project Dashboard, click on Enable APIs and Services on top of the page.

2. Search in page for "Google Places API Web Service" or type it in search box, and choose it.

3. Select a project (If you haven't create any project, please read I.1 to I.3 of this article) >> Enable API

4. Go back from step 2 and continue to find then enable these below services:

- Google Places API Web Service

- Google Maps Geocoding API

- Google Maps Geolocation API

- Google Maps JavaScript API

- Google Static Maps API  

III. Youtube Data API v3

1. In project Dashboard, click on Enable APIs and Services on top of the page.

2. Search in page for "Youtube Data API v3" or type it in search box, and choose it. youtube 1

3. Select Enable on the next page.

4. Cover steps I.7 to I.13 of this article to generate API key and two OAuth information.

Note: At step I.12, change Authorized Redirect URIs information depends on the module you are working (ex: with Ultimate Video the correct link should be: http://www.yoursite.com/ultimatevideo/oauth2/)

February 9, 2018