Skip to content

Commit 5814e56

Browse files
author
Foxlet
committed
First Complete GDC UserDocs Revision
1 parent 785d5b1 commit 5814e56

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

docs/user/googledevconsole_api.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,42 @@ In this guide, we will cover the setup of the GDC API for use within CloudBot. T
1010
You can create a GDC account at https://console.developers.google.com/. You need to create a Google account or use an existing one.
1111

1212
## 2 - Create a new project
13-
Select "Create New Project" if you haven't already done so:
13+
Select ***Create New Project*** if you haven't already done so:
1414

1515
![GDC Create a New Project](img/gdev_1.png?raw=true "Create a New Project")
1616

17-
Give your bot a name (and optionally change the name of the project ID), agree to the terms of service, then press "Create".
17+
Give your bot a name (and optionally change the name of the project ID), agree to the Terms of Service, then select ***Create***.
1818

1919
![GDC Name Your Bot](img/gdev_2.png?raw=true "Name Your Bot")
2020

2121
## 3 - Enable APIs
2222

23-
Once you have created the project, select it in the main panel (if it already hasnt been), then on the sidebar go to **APIs and Auth -> APIs**. Scroll through the list to set on for the following services:
23+
Once you have created the project, select it in the main panel (if it already hasn't been), then on the sidebar go to **APIs and Auth -> APIs**. Scroll through the list to slect ***ON*** for the following services:
2424

2525
- Books API
2626
- Youtube Data API v3
27-
- (Optional: Google Custom Search API, if using Google Search)
28-
- (Optional: Translate API, if using Google Translate)
27+
- Optional: Google Custom Search API, if using Google Search
28+
- Optional: Translate API, if using Google Translate
2929

3030
![GDC Select the APIs](img/gdev_3.png?raw=true "Select the APIs")
31+
32+
For each API, you may have to first accept their individual Terms of Service, then select ***Accept***.
33+
34+
![GDC Agree to the ToS](img/gdev_4.png?raw=true "Agree to the ToS")
35+
36+
## 4 - Generate an API Key
37+
GDC API services only need one key for all Google Services used. You must generate a key for each bot instance you plan to use. Go to **APIs and Auth -> Credentials** then select ***Create a new Key***
38+
39+
![GDC Create a Key](img/gdev_5.png?raw=true "Create a Key")
40+
41+
Select to create a ***Server Key***
42+
43+
![GDC Server Key](img/gdev_6.png?raw=true "Server Key")
44+
45+
Enter the Public IPs of the Cloudbot instance you plan to assign to this key. If you don't know it, running `wget -qO- http://icanhazip.com/` within your terminal should return it. Click ***Create***.
46+
47+
![GDC Enter IPs](img/gdev_7.png?raw=true "Enter IPs")
48+
49+
Your new key should now appear on the main panel, simply copy it to the *google_dev_key* object in your CloudBot's configuration.
50+
51+
![GDC Copy the key](img/gdev_8.png?raw=true "Copy the key")

0 commit comments

Comments
 (0)