MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / verify

Method verify

plugin/bundles/youtube/bundle.py:8–19  ·  view source on GitHub ↗
(self, credentials: BundleCredentials)

Source from the content-addressed store, hash-verified

6
7class Youtube(BundleHandler):
8 async def verify(self, credentials: BundleCredentials):
9 query: str = 'taskingai'
10 GOOGLE_API_KEY: str = credentials.credentials.get("GOOGLE_API_KEY")
11
12 url = f"https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=1&q={query}&key={GOOGLE_API_KEY}"
13
14 async with aiohttp.ClientSession() as session:
15 async with session.get(url, proxy=CONFIG.PROXY) as response:
16 if response.status == 200:
17 pass
18 else:
19 raise_credentials_validation_error()

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected