-
Register for a GCP YouTube API key. For instructions, see: https://developers.google.com/youtube/v3/getting-started
-
Create youtube-secret.json in the secrets directory, using youtube-secret-template.json.
The file should be of the format:
{
"installed": {
"client_id": "<client_id>",
"project_id": "<project_id>",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "<client_secret>",
"redirect_uris": [
"urn:ietf:wg:oauth:2.0:oob",
"http://localhost"
]
}
}
DO NOT commit your credentials or the youtube-secret.json file.
- Build or run the project
go run .
# OR
go install .