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

Function home

data_example/toolenv/tools/Business/contacts_api/api.py:30–49  ·  view source on GitHub ↗

"Get all contacts"

(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff')

Source from the content-addressed store, hash-verified

28 return observation
29
30def home(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31 """
32 "Get all contacts"
33
34 """
35 url = f"https://contacts-api.p.rapidapi.com/"
36 querystring = {}
37
38 headers = {
39 "X-RapidAPI-Key": toolbench_rapidapi_key,
40 "X-RapidAPI-Host": "contacts-api.p.rapidapi.com"
41 }
42
43
44 response = requests.get(url, headers=headers, params=querystring)
45 try:
46 observation = response.json()
47 except:
48 observation = response.text
49 return observation
50

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected