MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / sample

Function sample

data_example/toolenv/tools/Business/contus_mirrorfly/api.py:9–28  ·  view source on GitHub ↗

"Sample"

(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff')

Source from the content-addressed store, hash-verified

7
8
9def sample(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10 """
11 "Sample"
12
13 """
14 url = f"https://contus-mirrorfly.p.rapidapi.com/"
15 querystring = {}
16
17 headers = {
18 "X-RapidAPI-Key": toolbench_rapidapi_key,
19 "X-RapidAPI-Host": "contus-mirrorfly.p.rapidapi.com"
20 }
21
22
23 response = requests.get(url, headers=headers, params=querystring)
24 try:
25 observation = response.json()
26 except:
27 observation = response.text
28 return observation
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected