Skip to content

YouTube ​

The YouTube connector uploads videos to a channel and manages them. It ships with Core Connectors.

Before you rely on it

The connector follows YouTube's published API and is tested against a stand-in that behaves as that documentation says. It has not yet been run against YouTube itself: that takes a Google account and an OAuth client, which each installation brings. Try it with a private video first.

What it does ​

ActionWhat it doesInputs
Upload videoSends a video file to the channel, in pieces of 8 MiBvideo (a file record), title, privacyStatus; optional description, tags, categoryId, madeForKids, publishAt
Set thumbnailSets a video's thumbnail from an image fileimage (a file record), videoId
Get videoDetails, visibility, numbers, and how far processing isvideoId
Update videoChanges title, description, tags, category and visibilityvideoId, title, categoryId, privacyStatus; optional description, tags
Delete videoDeletes a video. It cannot be undonevideoId
List my channelsThe account's channels
List my videosThe channel's latest 25 videos
List my playlistsThe channel's playlists (50 at most)
Add video to playlistPuts a video at the end of a playlistplaylistId, videoId

privacyStatus is private, unlisted or public. video and image take the id of a file record of the branch the workflow runs on.

Set it up once per installation ​

Google signs people in through an OAuth client that belongs to whoever runs CodeKasten. The connector ships without one.

  1. In the Google Cloud console, make a project and enable YouTube Data API v3.
  2. Configure the OAuth consent screen, and add the scopes …/auth/youtube.upload and …/auth/youtube.
  3. Create an OAuth client of the type Web application. As an authorised redirect URI, give your backend's address followed by /connectors/oauth/callback (on a development stack: http://127.0.0.1:3009/connectors/oauth/callback).
  4. In CodeKasten, open Core Connectors (/!core), then YouTube, then Auth methods. Fill in the Client ID, the Client secret and the same Redirect URI, and save. This takes an owner or admin of Core Connectors.
  5. Publish release, so workspaces get the connector with your client.

The client secret is stored encrypted on the server and is never part of a release.

Use it in a workspace ​

  1. Marketplace: install or upgrade Core Connectors.
  2. Integrations: choose YouTube, Add account, and sign in with the Google account that owns the channel.
  3. In a workflow, add a Connector Action step, choose YouTube and the action, and give it its inputs.

For example, a workflow that publishes a video when a record says so: an Entity Trigger on the record, Upload video with the record's file as video and its name as title, then Update Entity to write the answer's id back.

What to know ​

  • Quota. Google gives a project a daily quota, and an upload costs a large share of it. A project's first uploads may also be locked as private until Google has reviewed the project.
  • A failed upload is not started again by itself. A piece that fails is sent again up to three times; after that the step fails and a person decides. See Actions that send a file.
  • Processing takes time. A video is not watchable the moment the upload ends. Get video says how far it is.
  • Update video sets everything it sends. Leave out the description and it is emptied: send what should stay as well.
  • Text is sent as typed. Titles and descriptions may hold quotes and line breaks.

Every picture on this site was saved by a test that had just seen the feature work.