Python 使用Youtube数据API V3获取实时流运行状况

Python 使用Youtube数据API V3获取实时流运行状况,python,youtube,youtube-api,youtube-data-api,youtube-livestreaming-api,Python,Youtube,Youtube Api,Youtube Data Api,Youtube Livestreaming Api,我可以通过我的GSuite邮件id访问Youtube频道xxxx@xxxx.com. 我正在使用Youtube数据API V3列出链接到该频道的实时流。() 然而,当我尝试使用此功能时,我得到以下信息: “暂时禁用此应用的Google登录 谷歌尚未验证此应用程序,以便使用谷歌登录。” 你能告诉我怎么解决这个问题吗 SCOPES = ['https://www.googleapis.com/auth/youtube.readonly'] API_SERVICE_NAME = 'youtube' A

我可以通过我的GSuite邮件id访问Youtube频道xxxx@xxxx.com. 我正在使用Youtube数据API V3列出链接到该频道的实时流。() 然而,当我尝试使用此功能时,我得到以下信息: “暂时禁用此应用的Google登录 谷歌尚未验证此应用程序,以便使用谷歌登录。”

你能告诉我怎么解决这个问题吗

SCOPES = ['https://www.googleapis.com/auth/youtube.readonly']
API_SERVICE_NAME = 'youtube'
API_VERSION = 'v3'

def get_authenticated_service():
  try:
    flow = flow_from_clientsecrets(CLIENT_SECRETS_FILE, scope=SCOPES, message="")
    storage = Storage(CLIENT_AUTH_FILE)
    credentials = storage.get()
    if credentials is None or credentials.invalid:
      credentials = run_flow(flow, storage, args)
    return build(API_SERVICE_NAME, API_VERSION, http=credentials.authorize(httplib2.Http()))
  except Exception as e:
    logger.info("ERROR: Exception from get_authenticated_service. " + str(e))

# Retrieve a list of the liveStream resources associated with the currently
# authenticated user's channel.
def list_streams(youtube):
    list_streams_request = youtube.liveStreams().list(
      # part='id,snippet,status',
      part='snippet,status',
      mine=True,
      maxResults=50
    )
    if list_streams_request:
      list_streams_response = list_streams_request.execute()

if __name__ == '__main__':
  youtube = get_authenticated_service()
  list_streams(youtube)

您可能需要等待应用程序验证。验证应用程序的过程是什么?我可以访问链接到我的其他gmail帐户的实时流,而无需验证应用程序。上述查询有任何更新吗?