You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/googledevconsole_api.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,42 @@ In this guide, we will cover the setup of the GDC API for use within CloudBot. T
10
10
You can create a GDC account at https://console.developers.google.com/. You need to create a Google account or use an existing one.
11
11
12
12
## 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:
14
14
15
15

16
16
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***.
18
18
19
19

20
20
21
21
## 3 - Enable APIs
22
22
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:
24
24
25
25
- Books API
26
26
- 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
29
29
30
30

31
+
32
+
For each API, you may have to first accept their individual Terms of Service, then select ***Accept***.
33
+
34
+

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
+

40
+
41
+
Select to create a ***Server Key***
42
+
43
+

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
+

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
+

0 commit comments