Ruby与YouTube API

Ruby与YouTube API,ruby,youtube-data-api,Ruby,Youtube Data Api,我试着按照YouTube>DataAPI>的说明进行操作 我到达了quickstart.rb在终端窗口中显示以下消息的位置 Open the following URL in the browser and enter the resulting code after authorization https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id

我试着按照YouTube>DataAPI>的说明进行操作

我到达了
quickstart.rb
在终端窗口中显示以下消息的位置

Open the following URL in the browser and enter the resulting code after authorization
https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id=734122293169-d6v0li0rpv3fdj5th8m7hfqecigqcbrm.apps.googleusercontent.com&include_granted_scopes=true&redirect_uri=http://localhost:8080/oauth2callback&response_type=code&scope=https://www.googleapis.com/auth/youtube.readonly
在浏览器中,我输入url并按照说明操作,但在单击按钮“允许”后,我收到以下消息

This site can’t be reached

localhost refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
对于这个测试,防火墙被关闭,脚本再次运行——同样的问题也出现了

我假设quickstart.rb将侦听端口8080(该端口是在quickstart.rb文件中指定的)。试图在浏览器中连接到
http://localhost:8080
https://localhost:8080
未成功

有人能澄清什么是解决问题的正确程序吗?解决方案的指针是非常受欢迎的

操作系统:Windows 10