-
Notifications
You must be signed in to change notification settings - Fork 13
Personal API key
Stekeblads Video Uploader allows you to use your own API key for accessing YouTube. This page describes how to add a key you already have and attempts to guide you if you need to create one.
If you already have a verified API client then its very easy:
- Close Stekeblads Video Uploader if its running.
- Rename your secrets file to client_secrets.json
- Copy or move it to the directory VideoUploader data/.auth (VideoUploader data is in the same folder as Stekeblads-Video-Uploader-.jar)
- Open Stekeblads Video Uploader, your API secret file will now be used by Stekeblads Video Uploader when making requests to YouTube.
Go to Google Cloud/Developer Console. Log in with your Google account and follow any steps to configure/update your accout if needed.
From the top menu select the projects "dropdown" and create a new project (quicklink)
- Give it a name, whatever you want
- If its for personal use leave the organisation option as no organisation. If you do this for an organisation or are a G-Suite customer you may want to link it to your organisation.
When the project has been created you must enable the YouTube API for it. Go to APIs & Services --> Library in the menu. Search for "YouTube Data API v3" and add it to your project.
Next must the consent screen be configured (APIs & Services --> OAuth Consent Screen) (link)
- enter app info (name, email)
- add the scopes https://www.googleapis.com/auth/youtube and https://www.googleapis.com/auth/youtube.upload
- Add the gmail address for the channel(s) you want to be able to upload to as test users.
Go to APIs & Services --> Credentials and click create credentials, select OAuth client ID (quicklink to new OAuth client ID credentials)
- For application type, select Desktop app
- Give it any name and save
- Select the new credentials in the list
- Click download json and save the file somewhere.
- Rename the file to client_secrets.json
Now you have the API set up and you just need to add the credentials to Stekeblads Video Uploader. Locate the folder VideoUploader data/.auth (VideoUploader data is in the same folder as Stekeblads-Video-Uploader-.jar)
- Move the downloaded client_secrets.json file to the .auth folder
- Open Stekeblads Video Uploader, your API secret file will now be used by Stekeblads Video Uploader when making requests to YouTube.
If everything is correct you should now be able to use Stekeblads Video Uploader to make your uploading easier... if you are ok with all videos being locked to private. To be able to upload public and unlisted videos your API project must be reviewed and verified by YouTube, for this you need to fill out the YouTube API Services - Audit and Quota Extension Form