mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-12 04:16:54 +08:00
chore(api): Use channel from UI as API query parameter (#4562)
This commit is contained in:
@@ -36,7 +36,7 @@ class YoutubeVideosAnalyticsTool(BuiltinTool):
|
|||||||
youtube = build('youtube', 'v3', developerKey=self.runtime.credentials['google_api_key'])
|
youtube = build('youtube', 'v3', developerKey=self.runtime.credentials['google_api_key'])
|
||||||
|
|
||||||
# try to get channel id
|
# try to get channel id
|
||||||
search_results = youtube.search().list(q='mrbeast', type='channel', order='relevance', part='id').execute()
|
search_results = youtube.search().list(q=channel, type='channel', order='relevance', part='id').execute()
|
||||||
channel_id = search_results['items'][0]['id']['channelId']
|
channel_id = search_results['items'][0]['id']['channelId']
|
||||||
|
|
||||||
start_date, end_date = time_range
|
start_date, end_date = time_range
|
||||||
|
|||||||
Reference in New Issue
Block a user