46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
$OpenBSD: README,v 1.5 2018/09/04 12:46:25 espie Exp $
|
|
|
|
+-----------------------------------------------------------------------
|
|
| Running ${PKGSTEM} on OpenBSD
|
|
+-----------------------------------------------------------------------
|
|
|
|
Google API key
|
|
==============
|
|
Minitube 2.4 has been ported to the new YouTube API version 3, hence an
|
|
API key is now required in order to access the YouTube Data web services.
|
|
|
|
Go to https://console.developers.google.com/
|
|
|
|
Log in using your Google account
|
|
|
|
Click on "Create Project"
|
|
|
|
Enter a Project name (e.g.: "Minitube")
|
|
|
|
On the left side bar, expand the "APIs & auth" drop-down menu and
|
|
click on "Credentials"
|
|
|
|
Click on "Create new Key" and then on "Browser key"
|
|
|
|
Click on "Create"
|
|
|
|
You should get an output like the one below:
|
|
|
|
Key for browser applications
|
|
API key AIzaSyD7zlL9sAC6-IcwU7Bpds8lZNzmqQTmALQ
|
|
Referers Any referer allowed
|
|
Activation date Apr 28, 2015, 2:02:00 AM
|
|
Activated by johndoe@gmail.com (you)
|
|
|
|
Be sure that "YouTube Data API v3" is enabled under "APIs & auth" ->
|
|
"APIs" -> "Enabled APIs"
|
|
|
|
If not, go to "APIs & auth" -> "APIs" -> "API Library", click on "YouTube
|
|
Data API" and then on "Enable API" to enable it.
|
|
|
|
Add the environment variable containing your newly generated key
|
|
to your ~/.profile or ~/.xinitrc:
|
|
|
|
GOOGLE_API_KEY="AIzaSyD7zlL9sAC6-IcwU7Bpds8lZNzmqQTmALQ"
|
|
export GOOGLE_API_KEY
|