I'm trying to write a ruby script to upload youtube videos, but I can't get past this line:
require 'google/api_client'
I get this error:
`require': cannot load such file -- google/api_client (LoadError)
I am running ruby 3.2.1. In gem list I see this:
google-api-client (0.53.0)
What else do I need to do?
The documentation that you're looking at references gem version 0.7.0:
Version 0.7.0 was released on January 23rd, 2014. The current version is 0.53.0 and was released January 18th, 2021. The documentation that you are looking at is out of date and will not work with v0.53.0.
If you look at the documentation for 0.53.0 you'll see that this gem has been deprecated:
And when you look at the README you can see that they recommend that you find a modern client:
Unfortunately for you there doesn't appear to be a modern client for YouTube.
There are multiple simple YouTube clients available in the repo instead such as this client for the v3 API, as well as sample code.
Separately, there is a gem called yt made by a third-party that may be usable however it has not been updated in two years.