diff --git a/toolbench/toolenv/tools/Communication/amazechatzones.json b/toolbench/toolenv/tools/Communication/amazechatzones.json new file mode 100644 index 0000000000000000000000000000000000000000..9549c3fb7a1d5119d0c7a582033fb1a08ca01eb7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/amazechatzones.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Amazechatzones", + "tool_description":"Social Networking api", + "title":"Amazechatzones", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/khanabdulrehman406/api/amazechatzones/", + "host":"amazechatzones.p.rapidapi.com", + "api_list":[ + { + "name":"None", + "url":"https://amazechatzones.p.rapidapi.comhttps://amazechatzone.com", + "description":"nakxnakas", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://amazechatzones.p.rapidapi.comhttps://amazechatzone.com\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazechatzones.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/android_push_notification_service.json b/toolbench/toolenv/tools/Communication/android_push_notification_service.json new file mode 100644 index 0000000000000000000000000000000000000000..fc5a39252ca8744b0cb6a61c0b8cd3d1a3f7a9d6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/android_push_notification_service.json @@ -0,0 +1,57 @@ +{ + "product_id": "53aa4934e4b0a9b1348da037", + "tool_description": "Cloud service for pushing android notifications. \r\nAndroid Push Notification Service (APNS) is a free to use library for pushing the data to android devices, all you need is to download the library and start the service in your app. the library use our cloud servers, so you needn't pay for the expensive servers hosting.", + "home_url": "https://rapidapi.com/apns/api/android-push-notification-service/", + "name": "Android Push Notification Service", + "title": "Android Push Notification Service", + "pricing": "PAID", + "tool_name": "Android Push Notification Service", + "score": null, + "host": "apns.p.rapidapi.com", + "api_list": [ + { + "name": "APNS", + "url": "https://apns.p.rapidapi.com/pushto/test/dev0/hellooo/123/fe7f220ef8a208acab7e290d19b44c06", + "description": "Android Push Notification Service", + "method": "POST", + "required_parameters": [ + { + "name": "ch", + "type": "STRING", + "description": "the channel id ( go to http://push-notification.org to require one)", + "default": "test" + }, + { + "name": "devid", + "type": "STRING", + "description": "the id of device which should receive the message", + "default": "dev0" + }, + { + "name": "msg", + "type": "STRING", + "description": "the message will be sent", + "default": "hellooo" + }, + { + "name": "random", + "type": "STRING", + "description": "random number", + "default": "123" + }, + { + "name": "hash", + "type": "STRING", + "description": "md5(ch + devId + msg + random + apiKey), go to http://push-notification.org to get the apiKey", + "default": "fe7f220ef8a208acab7e290d19b44c06" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://apns.p.rapidapi.com/pushto/test/dev0/hellooo/123/fe7f220ef8a208acab7e290d19b44c06\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apns.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://apns.p.rapidapi.com/pushto/{ch}/{devid}/{msg}/{random}/{hash}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apns.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/another_rapid_test.json b/toolbench/toolenv/tools/Communication/another_rapid_test.json new file mode 100644 index 0000000000000000000000000000000000000000..cb1d3b802d7f7669c9062a0514e02df2c7558d59 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/another_rapid_test.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Another Rapid Test", + "tool_description":"Is it my name?", + "title":"Another Rapid Test", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/pavel-DFy8si8AW/api/another-rapid-test/", + "host":"another-rapid-test.p.rapidapi.com", + "api_list":[ + { + "name":"Demo Max", + "url":"https://another-rapid-test.p.rapidapi.com/yo", + "description":"hello", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://another-rapid-test.p.rapidapi.com/yo\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"another-rapid-test.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/another_rapid_test/api.py b/toolbench/toolenv/tools/Communication/another_rapid_test/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c4c21c3ed8acad200affb3c44023add9210bc10e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/another_rapid_test/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def demo_max(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "hello" + + """ + url = f"https://another-rapid-test.p.rapidapi.com/yo" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "another-rapid-test.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/anton_whatsapp_wrapper/api.py b/toolbench/toolenv/tools/Communication/anton_whatsapp_wrapper/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0724781350c6faf6730a641adea0dfe4796ca5cc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/anton_whatsapp_wrapper/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def hello(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "hello" + + """ + url = f"https://anton_whatsapp_wrapper.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anton_whatsapp_wrapper.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/anyemail.json b/toolbench/toolenv/tools/Communication/anyemail.json new file mode 100644 index 0000000000000000000000000000000000000000..bb0abb6b8e429801aa70251462f274085aabfb3c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/anyemail.json @@ -0,0 +1,75 @@ +{ + "product_id": "api_d15bcfc4-06bd-4ecf-b985-12a7b2d3af35", + "tool_description": "Any Email, Send Email anywhere", + "home_url": "https://rapidapi.com/codingeraasia-codingeraasia-default/api/anyemail/", + "name": "AnyEmail", + "title": "AnyEmail", + "pricing": "FREEMIUM", + "tool_name": "AnyEmail", + "score": null, + "host": "anyemail.p.rapidapi.com", + "api_list": [ + { + "name": "Send Email", + "url": "https://anyemail.p.rapidapi.com/", + "description": "Send Email", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anyemail.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anyemail.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anyemail.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anyemail.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "body": { + "type": "object", + "properties": { + "MessageId": { + "type": "string" + }, + "ResponseMetadata": { + "type": "object", + "properties": { + "RequestId": { + "type": "string" + }, + "HTTPStatusCode": { + "type": "integer" + }, + "HTTPHeaders": { + "type": "object", + "properties": { + "date": { + "type": "string" + }, + "content-type": { + "type": "string" + }, + "content-length": { + "type": "string" + }, + "connection": { + "type": "string" + }, + "x-amzn-requestid": { + "type": "string" + } + } + }, + "RetryAttempts": { + "type": "integer" + } + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/api2_ninja_network_utils.json b/toolbench/toolenv/tools/Communication/api2_ninja_network_utils.json new file mode 100644 index 0000000000000000000000000000000000000000..67b030aa6835751f8d1177ef8a95fbea73532d94 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/api2_ninja_network_utils.json @@ -0,0 +1,73 @@ +{ + "product_id": "58ac91eee4b02c01e6ec7774", + "tool_description": "Network utils: ip geo, reverse ip, nslookup,", + "home_url": "https://rapidapi.com/faceplusplus/api/api2-ninja-network-utils/", + "name": "API2.NINJA - Network Utils", + "title": "API2.NINJA - Network Utils", + "pricing": "FREEMIUM", + "tool_name": "API2.NINJA - Network Utils", + "score": null, + "host": "garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com", + "api_list": [ + { + "name": "reverse ip", + "url": "https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/reverse", + "description": "reverse IP api", + "method": "POST", + "required_parameters": [ + { + "name": "q", + "type": "STRING", + "description": "", + "default": "8.8.8.8" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/reverse\"\nquerystring = {\"q\": \"8.8.8.8\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/reverse\"\nquerystring = {\"q\": \"8.8.8.8\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "nslookup", + "url": "https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/nslookup", + "description": "Get nslookup", + "method": "POST", + "required_parameters": [ + { + "name": "q", + "type": "STRING", + "description": "", + "default": "yahoo.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/nslookup\"\nquerystring = {\"q\": \"yahoo.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/nslookup\"\nquerystring = {\"q\": \"yahoo.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "IP geo", + "url": "https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/geo", + "description": "Get IP geo infomations like country, city, region & more", + "method": "POST", + "required_parameters": [ + { + "name": "q", + "type": "STRING", + "description": "", + "default": "8.8.8.8" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/geo\"\nquerystring = {\"q\": \"8.8.8.8\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/geo\"\nquerystring = {\"q\": \"8.8.8.8\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/api_whatsapp.json b/toolbench/toolenv/tools/Communication/api_whatsapp.json new file mode 100644 index 0000000000000000000000000000000000000000..efbbe0da87631f17f1da1f904768a5726613795e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/api_whatsapp.json @@ -0,0 +1,1133 @@ +{ + "product_id": "api_c07ea490-578c-417c-bda5-5c6a026d7cf2", + "tool_description": "Demo access for 3 days", + "home_url": "https://rapidapi.com/apimessengercom/api/api-whatsapp1/", + "name": "API WhatsApp", + "title": "API WhatsApp", + "pricing": "PAID", + "tool_name": "API WhatsApp", + "score": null, + "host": "api-whatsapp1.p.rapidapi.com", + "api_list": [ + { + "name": "/muteChat", + "url": "https://api-whatsapp1.p.rapidapi.com/muteChat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/muteChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/muteChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/unmuteChat", + "url": "https://api-whatsapp1.p.rapidapi.com/unmuteChat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/unmuteChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/unmuteChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/markChatUnread", + "url": "https://api-whatsapp1.p.rapidapi.com/markChatUnread", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/markChatUnread\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/markChatUnread\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/readChat", + "url": "https://api-whatsapp1.p.rapidapi.com/readchat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/readchat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/readchat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/unarchiveChat", + "url": "https://api-whatsapp1.p.rapidapi.com/unarchiveChat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/unarchiveChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/unarchiveChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/unpinChat", + "url": "https://api-whatsapp1.p.rapidapi.com/unpinChat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/unpinChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/unpinChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/archiveChat", + "url": "https://api-whatsapp1.p.rapidapi.com/archiveChat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/archiveChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/archiveChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/pinChat", + "url": "https://api-whatsapp1.p.rapidapi.com/pinChat", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/pinChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/pinChat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/setWebhook", + "url": "https://api-whatsapp1.p.rapidapi.com/setwebhook", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setwebhook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setwebhook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendStateTyping", + "url": "https://api-whatsapp1.p.rapidapi.com/sendStateTyping", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendStateTyping\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendStateTyping\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/cancelPresence", + "url": "https://api-whatsapp1.p.rapidapi.com/cancelpresence", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/cancelpresence\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/cancelpresence\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/clearState", + "url": "https://api-whatsapp1.p.rapidapi.com/clearState", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/clearState\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/clearState\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendStateRecording", + "url": "https://api-whatsapp1.p.rapidapi.com/sendStateRecording", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendStateRecording\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendStateRecording\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/setSubjectGroup", + "url": "https://api-whatsapp1.p.rapidapi.com/setSubjectGroup", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setSubjectGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setSubjectGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/addGroupParticipant", + "url": "https://api-whatsapp1.p.rapidapi.com/addgroupparticipant", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/addgroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/addgroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/setDescriptionGroup", + "url": "https://api-whatsapp1.p.rapidapi.com/setDescriptionGroup", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setDescriptionGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setDescriptionGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/leaveGroup", + "url": "https://api-whatsapp1.p.rapidapi.com/leavegroup", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/leavegroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/leavegroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendFile", + "url": "https://api-whatsapp1.p.rapidapi.com/sendfile", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendfile\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendfile\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/promoteGroupParticipant", + "url": "https://api-whatsapp1.p.rapidapi.com/promotegroupparticipant", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/promotegroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/promotegroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendFileUrl", + "url": "https://api-whatsapp1.p.rapidapi.com/sendfileurl", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendfileurl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendfileurl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendContact", + "url": "https://api-whatsapp1.p.rapidapi.com/sendcontact", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendcontact\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendcontact\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendMessage", + "url": "https://api-whatsapp1.p.rapidapi.com/sendmessage", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendmessage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendmessage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendButton", + "url": "https://api-whatsapp1.p.rapidapi.com/sendbutton", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendbutton\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendbutton\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/demoteGroupParticipant", + "url": "https://api-whatsapp1.p.rapidapi.com/demotegroupparticipant", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/demotegroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/demotegroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/setPresence", + "url": "https://api-whatsapp1.p.rapidapi.com/setpresence", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setpresence\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setpresence\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/group", + "url": "https://api-whatsapp1.p.rapidapi.com/group", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/group\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/group\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendLocation", + "url": "https://api-whatsapp1.p.rapidapi.com/sendlocation", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendlocation\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendlocation\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/setSettingsGroup", + "url": "https://api-whatsapp1.p.rapidapi.com/setSettingsGroup", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setSettingsGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setSettingsGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/setPictureUrl", + "url": "https://api-whatsapp1.p.rapidapi.com/setPictureUrl", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setPictureUrl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/setPictureUrl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/sendList", + "url": "https://api-whatsapp1.p.rapidapi.com/sendlist", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendlist\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/sendlist\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/reboot", + "url": "https://api-whatsapp1.p.rapidapi.com/reboot", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/reboot\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/reboot\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/removeGroupParticipant", + "url": "https://api-whatsapp1.p.rapidapi.com/removegroupparticipant", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/removegroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-whatsapp1.p.rapidapi.com/removegroupparticipant\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-whatsapp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/api_whatsapp/api.py b/toolbench/toolenv/tools/Communication/api_whatsapp/api.py new file mode 100644 index 0000000000000000000000000000000000000000..10c2a792f9a6a39ec32e621a354e2daafe2e0dc2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/api_whatsapp/api.py @@ -0,0 +1,232 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def chats(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/chats" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def webhook(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/webhook" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def status(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/status" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def checknumber(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/checknumber" + querystring = {'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages(new: str='true', page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/messages" + querystring = {} + if new: + querystring['new'] = new + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contacts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/contacts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def info(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/info" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messagesqueue(page: int=1, filter: str='message,contact,file,fileurl,list,location,button', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/messagesqueue" + querystring = {} + if page: + querystring['page'] = page + if filter: + querystring['filter'] = filter + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def go(img: str='true', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/go" + querystring = {} + if img: + querystring['img'] = img + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messagesinchat(new: str='true', page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://api-whatsapp1.p.rapidapi.com/messagesinchat" + querystring = {} + if new: + querystring['new'] = new + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/approves_2_0.json b/toolbench/toolenv/tools/Communication/approves_2_0.json new file mode 100644 index 0000000000000000000000000000000000000000..f9b5582c2e2b07853932978d4c576f9c4603955d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/approves_2_0.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Approves 2.0", + "tool_description":"sdfsdfsd", + "title":"Approves 2.0", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/delete-my-org-4-delete-my-org-4-default/api/approves-2-0/", + "host":"approves-2-0.p.rapidapi.com", + "api_list":[ + { + "name":"dsf", + "url":"https://approves-2-0.p.rapidapi.com/posts", + "description":"ewrferf", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://approves-2-0.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"approves-2-0.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/approves_2_0/api.py b/toolbench/toolenv/tools/Communication/approves_2_0/api.py new file mode 100644 index 0000000000000000000000000000000000000000..906a154e9d1ce03f0f8a32b8afb1067380c7b63e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/approves_2_0/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def dsf(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "ewrferf" + + """ + url = f"https://approves-2-0.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "approves-2-0.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator.json b/toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..9e12a05acd4092cd558ed71144d1be1827344387 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator.json @@ -0,0 +1,155 @@ +{ + "tool_name":"AR Code, Augmented Reality Codes generator", + "tool_description":"Create Augmented Reality codes to display AR experiences that can be read on any mobile device. The first version allows you to display text flying over an AR code using AR.js rendering technology. For more information, visit https://ar-code.com.", + "title":"AR Code, Augmented Reality Codes generator", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/ar-code-ar-code-default/api/ar-code-augmented-reality-codes-generator/", + "host":"ar-code-augmented-reality-codes-generator.p.rapidapi.com", + "api_list":[ + { + "name":"Create an AR Code", + "url":"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_api", + "description":"To create an AR Code please fill all the parameters.\n\nTo edit this AR Code later with a premium plan keep its referenceID.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"Text to display", + "default":"AR Code" + }, + { + "name":"backgroundheight", + "type":"NUMBER", + "description":"Plane behind the text height (Example: 2)", + "default":"2" + }, + { + "name":"backgroundcolor", + "type":"STRING", + "description":"Plane behind the text Hex color (Example: FFFFFF)", + "default":"FFFFFF" + }, + { + "name":"backgroundwidth", + "type":"NUMBER", + "description":"Plane behind the text width (Example: 4)", + "default":"4" + }, + { + "name":"api_key", + "type":"STRING", + "description":"Get your API key for FREE on : https://ar-code.com/", + "default":"" + }, + { + "name":"textcolor", + "type":"STRING", + "description":"Hex text color (Example: ff0000)", + "default":"000000" + }, + { + "name":"textsize", + "type":"NUMBER", + "description":"Text size (Example: 8)", + "default":"6" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_api\"\nquerystring = {\"text\": text, \"backgroundheight\": backgroundheight, \"backgroundcolor\": backgroundcolor, \"backgroundwidth\": backgroundwidth, \"api_key\": api_key, \"textcolor\": textcolor, \"textsize\": textsize}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ar-code-augmented-reality-codes-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Scans statistics", + "url":"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_stats_api", + "description":"Scans number for an AR Code with its referenceID and password.", + "method":"GET", + "required_parameters":[ + { + "name":"api_key", + "type":"STRING", + "description":"Get your API key for FREE on : https://ar-code.com/", + "default":"" + }, + { + "name":"referenceid", + "type":"STRING", + "description":"", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_stats_api\"\nquerystring = {\"api_key\": api_key, \"referenceid\": referenceid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ar-code-augmented-reality-codes-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Edit an AR Code", + "url":"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_edit_api", + "description":"To edit an AR Code please indicate its referenceID.\n\nEditable data: text, textcolor, textsize, backgroundwidth, backgroundheight, backgroundcolor", + "method":"GET", + "required_parameters":[ + { + "name":"textcolor", + "type":"STRING", + "description":"Hex text color (Example: ff0000)", + "default":"000000" + }, + { + "name":"text", + "type":"STRING", + "description":"Text to display", + "default":"" + }, + { + "name":"backgroundwidth", + "type":"NUMBER", + "description":"Plane behind the text width (Example: 4)", + "default":"4" + }, + { + "name":"backgroundheight", + "type":"NUMBER", + "description":"Plane behind the text height (Example: 2)", + "default":"2" + }, + { + "name":"referenceid", + "type":"STRING", + "description":"To edit an AR Code please indicate its referenceid.", + "default":"" + }, + { + "name":"api_key", + "type":"STRING", + "description":"Get your API key for FREE on : https://ar-code.com/", + "default":"" + }, + { + "name":"textsize", + "type":"NUMBER", + "description":"Text size (Example: 8)", + "default":"6" + }, + { + "name":"backgroundcolor", + "type":"STRING", + "description":"Plane behind the text Hex color (Example: FFFFFF)", + "default":"FFFFFF" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_edit_api\"\nquerystring = {\"textcolor\": textcolor, \"text\": text, \"backgroundwidth\": backgroundwidth, \"backgroundheight\": backgroundheight, \"referenceid\": referenceid, \"api_key\": api_key, \"textsize\": textsize, \"backgroundcolor\": backgroundcolor}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ar-code-augmented-reality-codes-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator/api.py b/toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e88bb9cfd9bdf45e1d12d323c2ffab9e780a23e6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator/api.py @@ -0,0 +1,91 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def create_an_ar_code(text: str, backgroundheight: int, backgroundcolor: str, backgroundwidth: int, api_key: str, textcolor: str, textsize: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "To create an AR Code please fill all the parameters. + + To edit this AR Code later with a premium plan keep its referenceID." + text: Text to display + backgroundheight: Plane behind the text height (Example: 2) + backgroundcolor: Plane behind the text Hex color (Example: FFFFFF) + backgroundwidth: Plane behind the text width (Example: 4) + api_key: Get your API key for FREE on : https://ar-code.com/ + textcolor: Hex text color (Example: ff0000) + textsize: Text size (Example: 8) + + """ + url = f"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_api" + querystring = {'text': text, 'backgroundheight': backgroundheight, 'backgroundcolor': backgroundcolor, 'backgroundwidth': backgroundwidth, 'api_key': api_key, 'textcolor': textcolor, 'textsize': textsize, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ar-code-augmented-reality-codes-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scans_statistics(api_key: str, referenceid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Scans number for an AR Code with its referenceID and password." + api_key: Get your API key for FREE on : https://ar-code.com/ + + """ + url = f"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_stats_api" + querystring = {'api_key': api_key, 'referenceid': referenceid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ar-code-augmented-reality-codes-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def edit_an_ar_code(textcolor: str, text: str, backgroundwidth: int, backgroundheight: int, referenceid: str, api_key: str, textsize: int, backgroundcolor: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "To edit an AR Code please indicate its referenceID. + + Editable data: text, textcolor, textsize, backgroundwidth, backgroundheight, backgroundcolor" + textcolor: Hex text color (Example: ff0000) + text: Text to display + backgroundwidth: Plane behind the text width (Example: 4) + backgroundheight: Plane behind the text height (Example: 2) + referenceid: To edit an AR Code please indicate its referenceid. + api_key: Get your API key for FREE on : https://ar-code.com/ + textsize: Text size (Example: 8) + backgroundcolor: Plane behind the text Hex color (Example: FFFFFF) + + """ + url = f"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_edit_api" + querystring = {'textcolor': textcolor, 'text': text, 'backgroundwidth': backgroundwidth, 'backgroundheight': backgroundheight, 'referenceid': referenceid, 'api_key': api_key, 'textsize': textsize, 'backgroundcolor': backgroundcolor, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ar-code-augmented-reality-codes-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/ardic_speech_to_text_service.json b/toolbench/toolenv/tools/Communication/ardic_speech_to_text_service.json new file mode 100644 index 0000000000000000000000000000000000000000..a1b5b6264128c559d0f891fa2eca3e62df706359 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ardic_speech_to_text_service.json @@ -0,0 +1,55 @@ +{ + "product_id": "api_55f0ecfd-a1db-4dce-85f8-648fc9f5ea50", + "tool_description": "Transcription API for converting audio files to text. Includes confidence scores and timestamps for given words.", + "home_url": "https://rapidapi.com/ArdicAITeam/api/ardic-speech-to-text-service/", + "name": "Ardic Speech to Text Service", + "title": "Ardic Speech to Text Service", + "pricing": "FREE", + "tool_name": "Ardic Speech to Text Service", + "score": { + "avgServiceLevel": 97, + "avgLatency": 6677, + "avgSuccessRate": 91, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "ardic-speech-to-text-service.p.rapidapi.com", + "api_list": [ + { + "name": "Speech To Text File", + "url": "https://ardic-speech-to-text-service.p.rapidapi.com/stt", + "description": "Speech to Text service using binary file payload instead of Base64 encoded JSON payload", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "args", + "type": "STRING", + "description": "", + "default": "{\"stt_engine\": \"whisper\"}" + } + ], + "code": "import requests\n\nurl = \"https://ardic-speech-to-text-service.p.rapidapi.com/stt\"\nquerystring = {\"args\": \"{\\\"stt_engine\\\": \\\"whisper\\\"}\", \"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ardic-speech-to-text-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ardic-speech-to-text-service.p.rapidapi.com/stt\"\nquerystring = {\"args\": \"{\\\"stt_engine\\\": \\\"whisper\\\"}\", \"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ardic-speech-to-text-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Speech to Text Base64", + "url": "https://ardic-speech-to-text-service.p.rapidapi.com/stt_json_payload", + "description": "Transcribes audio files.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ardic-speech-to-text-service.p.rapidapi.com/stt_json_payload\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ardic-speech-to-text-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ardic-speech-to-text-service.p.rapidapi.com/stt_json_payload\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ardic-speech-to-text-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/automatic_custom_response_creator.json b/toolbench/toolenv/tools/Communication/automatic_custom_response_creator.json new file mode 100644 index 0000000000000000000000000000000000000000..aad13ce0f17ecc4a544bd26d053ff99558bcf6b8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/automatic_custom_response_creator.json @@ -0,0 +1,49 @@ +{ + "tool_name":"Automatic-custom-response-creator", + "tool_description":"send a customer review, you will receive a personalized response proposal automatically", + "title":"Automatic-custom-response-creator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":5562, + "avgSuccessRate":100, + "popularityScore":9.1, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/lespagnolrobin/api/automatic-custom-response-creator/", + "host":"automatic-custom-response-creator.p.rapidapi.com", + "api_list":[ + { + "name":"get_response", + "url":"https://automatic-custom-response-creator.p.rapidapi.com/get_response", + "description":"There are 3 params necessary : \n\n- First - Add a review \"avis\" (ex. \"Merci pour votre accueil, c'était parfait\")\n- Then - Add a \"business_type\" (ex. \"Restaurant\")\n- Finaly - Add a \"business_brand\" (ex. \"Fuzi\")", + "method":"GET", + "required_parameters":[ + { + "name":"business_type", + "type":"STRING", + "description":"", + "default":"Restaurant" + }, + { + "name":"business_brand", + "type":"STRING", + "description":"", + "default":"Fuzi" + }, + { + "name":"avis", + "type":"STRING", + "description":"", + "default":"C'était excellent" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://automatic-custom-response-creator.p.rapidapi.com/get_response\"\nquerystring = {\"business_type\": business_type, \"business_brand\": business_brand, \"avis\": avis}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"automatic-custom-response-creator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/automatic_custom_response_creator/api.py b/toolbench/toolenv/tools/Communication/automatic_custom_response_creator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..12ff93a1e1c8a386cacc95f4ad1734d1639f05ca --- /dev/null +++ b/toolbench/toolenv/tools/Communication/automatic_custom_response_creator/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_response(business_type: str, business_brand: str, avis: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "There are 3 params necessary : + + - First - Add a review "avis" (ex. "Merci pour votre accueil, c'était parfait") + - Then - Add a "business_type" (ex. "Restaurant") + - Finaly - Add a "business_brand" (ex. "Fuzi")" + + """ + url = f"https://automatic-custom-response-creator.p.rapidapi.com/get_response" + querystring = {'business_type': business_type, 'business_brand': business_brand, 'avis': avis, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "automatic-custom-response-creator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/automationtest_prod.json b/toolbench/toolenv/tools/Communication/automationtest_prod.json new file mode 100644 index 0000000000000000000000000000000000000000..b26ca39c8a18e150ff280facebcf7cbbd07d4dd4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/automationtest_prod.json @@ -0,0 +1,24 @@ +{ + "tool_name":"AutomationTest_PROD", + "tool_description":"API for automation run prod", + "title":"AutomationTest_PROD", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/Production test 9/api/automationtest_prod/", + "host":"automationtest_prod.p.rapidapi.com", + "api_list":[ + { + "name":"testtt", + "url":"https://automationtest_prod.p.rapidapi.com/posts", + "description":"gijojg", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://automationtest_prod.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"automationtest_prod.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/automationtest_prod/api.py b/toolbench/toolenv/tools/Communication/automationtest_prod/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b47e4f23ca3e44673e26f61c626221542138d3c4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/automationtest_prod/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def testtt(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "gijojg" + + """ + url = f"https://automationtest_prod.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "automationtest_prod.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/aweber.json b/toolbench/toolenv/tools/Communication/aweber.json new file mode 100644 index 0000000000000000000000000000000000000000..282de6ff67fb4065e918cd0ee853f4951f7fddaa --- /dev/null +++ b/toolbench/toolenv/tools/Communication/aweber.json @@ -0,0 +1,354 @@ +{ + "product_id": "api_11e9a6f4-6db7-4b6d-b52a-6f1bafbc7d3f", + "tool_description": "AWeber's API is a REST-based API that allows developers to construct their own applications for displaying and managing AWeber customer accounts.", + "home_url": "https://rapidapi.com/zacg/api/aweber2/", + "name": "AWeber", + "title": "AWeber", + "pricing": "FREE", + "tool_name": "AWeber", + "score": null, + "host": "aweber2.p.rapidapi.com", + "api_list": [ + { + "name": "Create broadcast", + "url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts", + "description": "Create a broadcast within a list", + "method": "POST", + "required_parameters": [ + { + "name": "body_html", + "type": "STRING", + "description": "Specify the html of a broadcast", + "default": "" + }, + { + "name": "body_text", + "type": "STRING", + "description": "Specify the plain text of a broadcast", + "default": "" + }, + { + "name": "subject", + "type": "STRING", + "description": "Specify the subject of the broadcast", + "default": "" + }, + { + "name": "accountId", + "type": "NUMBER", + "description": "Account ID", + "default": [] + }, + { + "name": "listId", + "type": "NUMBER", + "description": "List ID", + "default": [] + } + ], + "optional_parameters": [ + { + "name": "body_amp", + "type": "STRING", + "description": "Specify the AMP html", + "default": "" + }, + { + "name": "facebook_integration", + "type": "STRING", + "description": "Specify the Facebook broadcast integration", + "default": "" + }, + { + "name": "is_archived", + "type": "BOOLEAN", + "description": "Specify if the broadcast should be included in the archive", + "default": "" + }, + { + "name": "notify_on_send", + "type": "BOOLEAN", + "description": "Specify if the sender should be notified when stats are available after sending a broadcast", + "default": "" + }, + { + "name": "include_lists", + "type": "STRING", + "description": "Specify a group of lists to include in a broadcast", + "default": "" + }, + { + "name": "exclude_lists", + "type": "STRING", + "description": "Specify a group of lists to exclude from the broadcast", + "default": "" + }, + { + "name": "twitter_integration", + "type": "STRING", + "description": "Specify the Twitter broadcast integration", + "default": "" + }, + { + "name": "click_tracking_enabled", + "type": "BOOLEAN", + "description": "Enable or disable the click tracking of an email", + "default": "" + }, + { + "name": "segment_link", + "type": "STRING", + "description": "Specify the URL of the desired segment", + "default": [ + "" + ] + } + ], + "code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts\"\nquerystring = {\"body_amp\": \"\", \"facebook_integration\": \"\", \"is_archived\": \"\", \"body_html\": \"\", \"notify_on_send\": \"\", \"include_lists\": \"\", \"exclude_lists\": \"\", \"twitter_integration\": \"\", \"click_tracking_enabled\": \"\", \"body_text\": \"\", \"segment_link\": [\"\"], \"subject\": \"\", \"accountId\": [], \"listId\": []}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts\"\nquerystring = {\"body_amp\": \"\", \"facebook_integration\": \"\", \"is_archived\": \"\", \"body_html\": \"\", \"notify_on_send\": \"\", \"include_lists\": \"\", \"exclude_lists\": \"\", \"twitter_integration\": \"\", \"click_tracking_enabled\": \"\", \"body_text\": \"\", \"segment_link\": [\"\"], \"subject\": \"\", \"accountId\": [], \"listId\": []}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Move subscriber", + "url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers/{subscriberId}", + "description": "Move a subscriber from one list to another within an account", + "method": "POST", + "required_parameters": [ + { + "name": "list_link", + "type": "STRING", + "description": "Specify the link to the destination list", + "default": "" + }, + { + "name": "ws.op", + "type": "STRING", + "description": "Specify that you want to perform a move operation", + "default": "move" + }, + { + "name": "accountId", + "type": "NUMBER", + "description": "Account ID", + "default": "" + }, + { + "name": "listId", + "type": "NUMBER", + "description": "List ID", + "default": "" + }, + { + "name": "subscriberId", + "type": "NUMBER", + "description": "Subscriber ID", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "enforce_custom_field_mapping", + "type": "BOOLEAN", + "description": "Specify whether custom fields should be mapped or not", + "default": "" + }, + { + "name": "last_followup_message_number_sent", + "type": "NUMBER", + "description": "Specify the last follow up message number sent when moving the subscriber", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers/{subscriberId}\"\nquerystring = {\"enforce_custom_field_mapping\": \"\", \"list_link\": \"\", \"ws.op\": \"move\", \"last_followup_message_number_sent\": \"\", \"accountId\": \"\", \"listId\": \"\", \"subscriberId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers/{subscriberId}\"\nquerystring = {\"enforce_custom_field_mapping\": \"\", \"list_link\": \"\", \"ws.op\": \"move\", \"last_followup_message_number_sent\": \"\", \"accountId\": \"\", \"listId\": \"\", \"subscriberId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Cancel scheduled broadcast", + "url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/cancel", + "description": "Cancel a previously scheduled broadcast within a list", + "method": "POST", + "required_parameters": [ + { + "name": "accountId", + "type": "NUMBER", + "description": "Account ID", + "default": "" + }, + { + "name": "listId", + "type": "NUMBER", + "description": "List ID", + "default": "" + }, + { + "name": "broadcastId", + "type": "NUMBER", + "description": "Broadcast ID", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/cancel\"\nquerystring = {\"accountId\": \"\", \"listId\": \"\", \"broadcastId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/cancel\"\nquerystring = {\"accountId\": \"\", \"listId\": \"\", \"broadcastId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Schedule broadcast", + "url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/schedule", + "description": "Schedule a specific broadcast within a list", + "method": "POST", + "required_parameters": [ + { + "name": "scheduled_for", + "type": "STRING", + "description": "Specify the date and time to send the broadcast in ISO-8601 format", + "default": "" + }, + { + "name": "accountId", + "type": "NUMBER", + "description": "Account ID", + "default": "" + }, + { + "name": "listId", + "type": "NUMBER", + "description": "List ID", + "default": "" + }, + { + "name": "broadcastId", + "type": "NUMBER", + "description": "Broadcast ID", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/schedule\"\nquerystring = {\"scheduled_for\": \"\", \"accountId\": \"\", \"listId\": \"\", \"broadcastId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/schedule\"\nquerystring = {\"scheduled_for\": \"\", \"accountId\": \"\", \"listId\": \"\", \"broadcastId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Add custom field", + "url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/custom_fields", + "description": "Add a custom field to an account", + "method": "POST", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "Name of the custom field", + "default": "" + }, + { + "name": "ws.op", + "type": "STRING", + "description": "Request to create a record", + "default": "create" + }, + { + "name": "accountId", + "type": "NUMBER", + "description": "Account ID", + "default": "" + }, + { + "name": "listId", + "type": "STRING", + "description": "List ID", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/custom_fields\"\nquerystring = {\"name\": \"\", \"ws.op\": \"create\", \"accountId\": \"\", \"listId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/custom_fields\"\nquerystring = {\"name\": \"\", \"ws.op\": \"create\", \"accountId\": \"\", \"listId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Add subscriber", + "url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers", + "description": "Add a subscriber to a list", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "Specify the subscriber's email address", + "default": "" + }, + { + "name": "ws.op", + "type": "STRING", + "description": "Specify that you want to create a subscriber", + "default": "create" + }, + { + "name": "listId", + "type": "NUMBER", + "description": "List ID", + "default": "" + }, + { + "name": "accountId", + "type": "NUMBER", + "description": "Account ID", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "ad_tracking", + "type": "STRING", + "description": "Specify an ad tracking value", + "default": "" + }, + { + "name": "ip_address", + "type": "STRING", + "description": "Specify the IP address", + "default": "" + }, + { + "name": "last_followup_message_number_sent", + "type": "NUMBER", + "description": "Set the last follow up message number sent", + "default": "" + }, + { + "name": "misc_notes", + "type": "STRING", + "description": "Specify any miscellenous notes", + "default": "" + }, + { + "name": "custom_fields", + "type": "STRING", + "description": "Specify the custom fields and values", + "default": "" + }, + { + "name": "strict_custom_fields", + "type": "BOOLEAN", + "description": "Specify if you want the system to explicitly validate custom field names", + "default": "" + }, + { + "name": "tags", + "type": "STRING", + "description": "Specify the tags", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Specify the subscriber's name", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers\"\nquerystring = {\"ad_tracking\": \"\", \"ip_address\": \"\", \"email\": \"\", \"last_followup_message_number_sent\": \"\", \"misc_notes\": \"\", \"custom_fields\": \"\", \"strict_custom_fields\": \"\", \"tags\": \"\", \"name\": \"\", \"ws.op\": \"create\", \"listId\": \"\", \"accountId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers\"\nquerystring = {\"ad_tracking\": \"\", \"ip_address\": \"\", \"email\": \"\", \"last_followup_message_number_sent\": \"\", \"misc_notes\": \"\", \"custom_fields\": \"\", \"strict_custom_fields\": \"\", \"tags\": \"\", \"name\": \"\", \"ws.op\": \"create\", \"listId\": \"\", \"accountId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aweber2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/aweber/api.py b/toolbench/toolenv/tools/Communication/aweber/api.py new file mode 100644 index 0000000000000000000000000000000000000000..695d667ba211faafc7de95ad6a1beb93fa2a0777 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/aweber/api.py @@ -0,0 +1,1391 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def find_lists(ws_op: str, accountid: int, ws_size: int=None, name: str=None, ws_show: str=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find a list within an account" + ws_op: Search + accountid: Account ID + ws_size: Number of items to retreive from pagination + name: Name or unique list id + ws_show: Return the total size of the collection only + ws_start: Starting position for pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists" + querystring = {'ws.op': ws_op, } + if ws_size: + querystring['ws.size'] = ws_size + if name: + querystring['name'] = name + if ws_show: + querystring['ws.show'] = ws_show + if ws_start: + querystring['ws.start'] = ws_start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_links(listid: int, campaigntype: str, accountid: int, campaignid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the links for a broadcast or follow up within a list" + listid: List ID + campaigntype: Campaign Type + accountid: Account ID + campaignid: Campaign ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_link(campaigntype: str, listid: int, campaignid: int, linkid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific link from a broadcast or follow up within a list" + campaigntype: Campaing Type + listid: List ID + campaignid: Campaign ID + linkid: Link ID + accountid: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links/{linkid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message_tracked_events(accountid: int, campaignid: int, listid: int, campaigntype: str, messageentryid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the tracked events associated with a message for a broadcast or follow up within a list" + accountid: Account ID + campaignid: Campaign ID + listid: List ID + campaigntype: Campaign Type + messageentryid: Message Entry ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/tracked_events" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_broadcast_statistic(accountid: int, statsid: str, listid: int, campaignid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific statistic for a broadcast within a list" + accountid: Account ID + statsid: Stats ID + listid: List ID + campaignid: Campaign ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/b{campaignid}/stats/{statsid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_webform_for_list(accountid: int, listid: int, webformid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific webform within a list" + accountid: Account ID + listid: List ID + webformid: Web Form ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_forms/{webformid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message_opens(accountid: int, listid: int, campaignid: int, campaigntype: str, messageentryid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the opens related to a specific message for a broadcast or follow up within a list" + accountid: Account ID + listid: List ID + campaignid: Campaign ID + campaigntype: Campaign Type + messageentryid: Message Entry ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/opens" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message_tracked_event(campaignid: int, accountid: int, listid: int, trackedeventid: int, messageentryid: int, campaigntype: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific tracked event associated with a message for a broadcast or follow up within a list" + campaignid: Campaign ID + accountid: Account ID + listid: List ID + trackedeventid: Tracked Event ID + messageentryid: Message Entry ID + campaigntype: Campaign Type + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/tracked_events/{trackedeventid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_split_test_components(accountid: int, listid: int, splittestid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the components of a web form split test" + accountid: Account ID + listid: List ID + splittestid: Split Test ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests/{splittestid}/components" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_list(listid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific list for an account" + listid: List ID + accountid: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_split_test_component(splittestid: int, listid: int, accountid: int, splittestcomponentid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific component of a web form split test" + splittestid: Split Test ID + listid: List ID + accountid: Account ID + splittestcomponentid: Split Test Component ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests/{splittestid}/components/{splittestcomponentid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_segments(accountid: int, listid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the segments within a list" + accountid: Account ID + listid: List ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/segments" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_subscriber(accountid: int, subscriberid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific subscriber within a list" + accountid: Account ID + subscriberid: Subscriber ID + listid: List ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers/{subscriberid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_split_tests_for_account(ws_op: str, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the web form split tests for an account" + ws_op: Specify you want web form split tests + accountid: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}" + querystring = {'ws.op': ws_op, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_subscribers(listid: int, accountid: int, ws_start: int=None, ws_size: int=None, sort_order: str='asc', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the subscribers witihin a list" + listid: List ID + accountid: Account ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + sort_order: Specify the sort order of the data + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + if sort_order: + querystring['sort_order'] = sort_order + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_integration(integrationid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get an integration within an account" + integrationid: Integration ID + accountid: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/integrations/{integrationid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_campaigns(ws_op: str, campaign_type: str, listid: int, accountid: int, ws_start: int=None, ws_show: str=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find a follow up or broadcast within a list" + ws_op: Specify the desire to search + campaign_type: Specify a follow up ("f") or a broadcast ("b") + listid: List ID + accountid: Account ID + ws_start: Starting position for pagination + ws_show: Return only the total number of rows + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns" + querystring = {'ws.op': ws_op, 'campaign_type': campaign_type, } + if ws_start: + querystring['ws.start'] = ws_start + if ws_show: + querystring['ws.show'] = ws_show + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_subscribers_for_list(ws_op: str, listid: int, accountid: int, ws_size: int=None, sort_order: str=None, ws_show: bool=None, ad_tracking: str=None, city: str=None, country: str=None, sort_key: str=None, area_code: int=None, ws_start: int=None, email: str=None, last_followup_message_sent_at: str=None, dma_code: int=None, longitude: str=None, latitude: int=None, misc_notes: str=None, name: str=None, custom_fields: str=None, status: str=None, region: str=None, subscribed_after: str=None, subscribed_at: str=None, postal_code: str=None, last_followup_message_number_sent: int=None, subscription_method: str=None, unsubscribe_method: str=None, subscribed_before: str=None, unsubscribed_after: str=None, verified_at: str=None, unsubscribed_before: str=None, unsubscribed_at: str=None, tags: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for subscribers within a list" + ws_op: Specify that you want to search + listid: Lists ID + accountid: Account ID + ws_size: Number of items to retrieve from pagination + sort_order: The direction of the sort order + ws_show: Return just the total number of rows + ad_tracking: Search for an ad_tracking value + city: Search for a city + country: Search for a country + sort_key: The field to be sorted + area_code: Search for an area code + ws_start: Starting position for pagination + email: Search for an email address + last_followup_message_sent_at: Search the date of the last follow-up message sent + dma_code: Search for a dma code + longitude: Search for a specific longitude + latitude: Search for a specific latitude + misc_notes: Search for miscellenous notes + name: Search the subscriber's name + custom_fields: Search custom field values + status: Search the subscriber's status + region: Search the region + subscribed_after: Search all subscriber who subscribed after a date + subscribed_at: Search all subscribers who subscribed on a date + postal_code: Search the postal code + last_followup_message_number_sent: Search for the last following message number sent + subscription_method: Search for the subscription method + unsubscribe_method: Search for the unsubscribe method + subscribed_before: Search all subscribers who subscribed before a date + unsubscribed_after: Search for subscribers who unsubscribed after a date + verified_at: Search for subscribers who verified their email on a date + unsubscribed_before: Search for subscribers who unsubscribed before a date + unsubscribed_at: Search for subscribers who unsubscribed on a date + tags: Search for a subscriber's tags + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers" + querystring = {'ws.op': ws_op, } + if ws_size: + querystring['ws.size'] = ws_size + if sort_order: + querystring['sort_order'] = sort_order + if ws_show: + querystring['ws.show'] = ws_show + if ad_tracking: + querystring['ad_tracking'] = ad_tracking + if city: + querystring['city'] = city + if country: + querystring['country'] = country + if sort_key: + querystring['sort_key'] = sort_key + if area_code: + querystring['area_code'] = area_code + if ws_start: + querystring['ws.start'] = ws_start + if email: + querystring['email'] = email + if last_followup_message_sent_at: + querystring['last_followup_message_sent_at'] = last_followup_message_sent_at + if dma_code: + querystring['dma_code'] = dma_code + if longitude: + querystring['longitude'] = longitude + if latitude: + querystring['latitude'] = latitude + if misc_notes: + querystring['misc_notes'] = misc_notes + if name: + querystring['name'] = name + if custom_fields: + querystring['custom_fields'] = custom_fields + if status: + querystring['status'] = status + if region: + querystring['region'] = region + if subscribed_after: + querystring['subscribed_after'] = subscribed_after + if subscribed_at: + querystring['subscribed_at'] = subscribed_at + if postal_code: + querystring['postal_code'] = postal_code + if last_followup_message_number_sent: + querystring['last_followup_message_number_sent'] = last_followup_message_number_sent + if subscription_method: + querystring['subscription_method'] = subscription_method + if unsubscribe_method: + querystring['unsubscribe_method'] = unsubscribe_method + if subscribed_before: + querystring['subscribed_before'] = subscribed_before + if unsubscribed_after: + querystring['unsubscribed_after'] = unsubscribed_after + if verified_at: + querystring['verified_at'] = verified_at + if unsubscribed_before: + querystring['unsubscribed_before'] = unsubscribed_before + if unsubscribed_at: + querystring['unsubscribed_at'] = unsubscribed_at + if tags: + querystring['tags'] = tags + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_integrations(accountid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the social integrations in an account" + accountid: Account ID + ws_size: Number of items to retrieve from pagination + ws_start: Starting position for pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/integrations" + querystring = {} + if ws_size: + querystring['ws.size'] = ws_size + if ws_start: + querystring['ws.start'] = ws_start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_click(linkid: int, listid: int, accountid: int, campaignid: int, campaigntype: str, clickid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specifc click for a broadcast or follow up within a list" + linkid: Link ID + listid: List ID + accountid: Account ID + campaignid: Campaign ID + campaigntype: Campaign Type + clickid: Click ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links/{linkid}/clicks/{clickid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_custom_field(listid: int, customfieldid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific custom field within an account" + listid: List ID + customfieldid: Custom Field ID + accountid: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/custom_fields/{customfieldid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_subscribers_for_account(ws_op: str, accountid: int, country: str=None, city: str=None, email: str=None, area_code: int=None, ad_tracking: str=None, custom_fields: str=None, latitude: int=None, last_followup_message_sent_at: str=None, longitude: int=None, name: str=None, last_followup_message_number_sent: str=None, dma_code: int=None, postal_code: str=None, misc_notes: str=None, subscribed_before: str=None, subscribed_after: str=None, region: str=None, subscribed_at: str=None, subscription_method: str=None, unsubscribed_before: str=None, tags: str=None, status: str=None, unsubscribe_method: str=None, verified_at: str=None, ws_show: str=None, ws_size: int=None, unsubscribed_after: str=None, unsubscribed_at: str=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find the subscribers across all lists within an account" + ws_op: Specify that you want to search + accountid: Account ID + country: Search for a country + city: Search for a city + email: Search for a subscriber's email address + area_code: Search for an area code + ad_tracking: Search for an ad tracking value + custom_fields: Search for values of custom fields + latitude: Search the latitude + last_followup_message_sent_at: Search the date of the last follow up message + longitude: Search the longitude + name: Search the subscriber's name + last_followup_message_number_sent: Search the last follow up message number sent + dma_code: Search for a dma code + postal_code: Search the postal code + misc_notes: Search the miscellenous notes + subscribed_before: Search subscribers who subscribed before a date + subscribed_after: Search subscribers who subscriberd after a date + region: Search the region + subscribed_at: Search subscribers who subscribed on a date + subscription_method: Search for subscription methods + unsubscribed_before: Search subscribers who unsubscribed before a date + tags: Search for a subscriber's tags + status: Search the subscriber's status + unsubscribe_method: Search for subscribe methods + verified_at: Search subscribers who verified their email on a date + ws_show: Return only the total number of rows + ws_size: Number of items to retrieve from pagination + unsubscribed_after: Search subscribers who unsubscribed after a date + unsubscribed_at: Search subscribers who unsubscribed on a date + ws_start: Starting position for pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}" + querystring = {'ws.op': ws_op, } + if country: + querystring['country'] = country + if city: + querystring['city'] = city + if email: + querystring['email'] = email + if area_code: + querystring['area_code'] = area_code + if ad_tracking: + querystring['ad_tracking'] = ad_tracking + if custom_fields: + querystring['custom_fields'] = custom_fields + if latitude: + querystring['latitude'] = latitude + if last_followup_message_sent_at: + querystring['last_followup_message_sent_at'] = last_followup_message_sent_at + if longitude: + querystring['longitude'] = longitude + if name: + querystring['name'] = name + if last_followup_message_number_sent: + querystring['last_followup_message_number_sent'] = last_followup_message_number_sent + if dma_code: + querystring['dma_code'] = dma_code + if postal_code: + querystring['postal_code'] = postal_code + if misc_notes: + querystring['misc_notes'] = misc_notes + if subscribed_before: + querystring['subscribed_before'] = subscribed_before + if subscribed_after: + querystring['subscribed_after'] = subscribed_after + if region: + querystring['region'] = region + if subscribed_at: + querystring['subscribed_at'] = subscribed_at + if subscription_method: + querystring['subscription_method'] = subscription_method + if unsubscribed_before: + querystring['unsubscribed_before'] = unsubscribed_before + if tags: + querystring['tags'] = tags + if status: + querystring['status'] = status + if unsubscribe_method: + querystring['unsubscribe_method'] = unsubscribe_method + if verified_at: + querystring['verified_at'] = verified_at + if ws_show: + querystring['ws.show'] = ws_show + if ws_size: + querystring['ws.size'] = ws_size + if unsubscribed_after: + querystring['unsubscribed_after'] = unsubscribed_after + if unsubscribed_at: + querystring['unsubscribed_at'] = unsubscribed_at + if ws_start: + querystring['ws.start'] = ws_start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_tags_for_list(accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the tags in a list" + accountid: Account ID + listid: LIst ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/tags" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_campaigns(accountid: int, listid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the follow up and broadcasts within a list" + accountid: Account ID + listid: List ID + ws_size: Number of items to retrieve from pagination + ws_start: Starting position for pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns" + querystring = {} + if ws_size: + querystring['ws.size'] = ws_size + if ws_start: + querystring['ws.start'] = ws_start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_messages(listid: int, campaignid: int, campaigntype: str, accountid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the messages for a broadcast or follow up within a list" + listid: List ID + campaignid: Campaign ID + campaigntype: Campaign Type + accountid: Account ID + ws_size: Number of items to retrieve from pagination + ws_start: Starting position for pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages" + querystring = {} + if ws_size: + querystring['ws.size'] = ws_size + if ws_start: + querystring['ws.start'] = ws_start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_campaign(accountid: int, campaignid: int, campaigntype: str, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific follow-up or broadcast within an list" + accountid: Account ID + campaignid: Campaign ID + campaigntype: Campaign Type + listid: List ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_clicks(listid: int, accountid: int, campaigntype: str, linkid: int, campaignid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the clicks from a broadcast or follow up within a list" + listid: List ID + accountid: Account ID + campaigntype: Campaign Type + linkid: Link ID + campaignid: Campaign ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links/{linkid}/clicks" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_accounts(ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get's the accounts linked to user" + ws_start: Starting point of the paginated collection + ws_size: Number of items in a pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_webforms_for_account(ws_op: str, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the webforms for an account" + ws_op: Specify you want the webforms + accountid: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}" + querystring = {'ws.op': ws_op, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message(campaignid: int, accountid: int, messageentryid: int, campaigntype: str, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific message for a broadcast or follow up within a list" + campaignid: Campaign ID + accountid: Account ID + messageentryid: Message Entry ID + campaigntype: Campaign Type + listid: List ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_custom_fields(listid: int, accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get custom fields within an account" + listid: List ID + accountid: Account ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/custom_fields" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_broadcast(broadcastid: int, accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific broadcast within a list" + broadcastid: Broadcast ID + accountid: Account ID + listid: List ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/broadcasts/{broadcastid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_segment(segmentid: int, accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific segment within a list" + segmentid: Segment ID + accountid: Account ID + listid: List ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/segments/{segmentid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_subscriber_activity(listid: int, subscriberid: int, ws_op: str, accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the activity for a specific subscriber" + listid: List ID + subscriberid: Subscriber ID + ws_op: Specify you want the activity + accountid: Account ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers/{subscriberid}" + querystring = {'ws.op': ws_op, } + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_webforms_for_list(listid: int, accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the webforms within a list" + listid: List ID + accountid: Account ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_forms" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_subscribers_for_message(campaignid: int, accountid: int, campaigntype: str, listid: int, ws_op: str, ws_start: int=None, ws_show: str=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the subscribers associated to a message for a broadcast or follow up within a list" + campaignid: Campaign ID + accountid: Account ID + campaigntype: Campaign Type + listid: List ID + ws_op: Specify the desire to return subscribers + ws_start: Starting position for pagination + ws_show: Return only the total number of records + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages" + querystring = {'ws.op': ws_op, } + if ws_start: + querystring['ws.start'] = ws_start + if ws_show: + querystring['ws.show'] = ws_show + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_total_broadcasts(accountid: int, listid: int, status: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get total number of broadcasts in a specific status within a list" + accountid: Account ID + listid: List ID + status: Specify the status of the broadcasts to retrieve + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/broadcasts/total" + querystring = {'status': status, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_broadcast_statistics(accountid: int, listid: int, campaignid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the statistics for a broadcast within a list" + accountid: Account ID + listid: List ID + campaignid: Campaign ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/b{campaignid}/stats" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message_open(campaignid: int, listid: int, accountid: int, messageentryid: int, openid: int, campaigntype: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific open associated to a message for a broadcast or follow up within a list" + campaignid: Campaign ID + listid: List ID + accountid: Account ID + messageentryid: Message Entry ID + openid: Open ID + campaigntype: Campaign Type + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/opens/{openid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_account(account_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific account" + account_id: Account ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{account_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_broadcasts(accountid: int, status: str, listid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the broadcasts within a list" + accountid: Account ID + status: Specify the status of broadcasts to retrieve + listid: List ID + ws_start: Starting position for pagination + ws_size: Number of items to retrieve from pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/broadcasts" + querystring = {'status': status, } + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_lists(accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get's the lists for an account" + accountid: Account ID + ws_start: Starting point of the paginated collection + ws_size: Number of items in a pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists" + querystring = {} + if ws_start: + querystring['ws.start'] = ws_start + if ws_size: + querystring['ws.size'] = ws_size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_split_tests_for_list(listid: int, accountid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the web form split tests within a list" + listid: List ID + accountid: Account ID + ws_size: Number of items to retrieve from pagination + ws_start: Starting position for pagination + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests" + querystring = {} + if ws_size: + querystring['ws.size'] = ws_size + if ws_start: + querystring['ws.start'] = ws_start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_split_test_for_list(splittestid: int, accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific web form split test within a list" + splittestid: Split Test ID + accountid: Account ID + listid: List ID + + """ + url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests/{splittestid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aweber2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/barbaraaa.json b/toolbench/toolenv/tools/Communication/barbaraaa.json new file mode 100644 index 0000000000000000000000000000000000000000..d3eafcc2da4eee215b5597d71ed57b2c67dcc870 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/barbaraaa.json @@ -0,0 +1,30 @@ +{ + "tool_name":"Barbaraaa", + "tool_description":"Hi", + "title":"Barbaraaa", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":1061, + "avgSuccessRate":100, + "popularityScore":9.1, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/Barbaraaa/api/barbaraaa/", + "host":"barbaraaa.p.rapidapi.com", + "api_list":[ + { + "name":"M", + "url":"https://barbaraaa.p.rapidapi.com/", + "description":"crypto", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://barbaraaa.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"barbaraaa.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/barbaraaa/api.py b/toolbench/toolenv/tools/Communication/barbaraaa/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fac73df88c7c0bf531f2889c50ab56d3ecc62b0b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/barbaraaa/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def m(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "crypto" + + """ + url = f"https://barbaraaa.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "barbaraaa.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/bcolimited.json b/toolbench/toolenv/tools/Communication/bcolimited.json new file mode 100644 index 0000000000000000000000000000000000000000..a11f9d2d19b266222f4b67feb936520e66340f2f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bcolimited.json @@ -0,0 +1,24 @@ +{ + "tool_name":"bcolimited", + "tool_description":"translate", + "title":"bcolimited", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/bcoded/api/bcolimited/", + "host":"bcolimited.p.rapidapi.com", + "api_list":[ + { + "name":"endpoint1", + "url":"https://bcolimited.p.rapidapi.com/index.php", + "description":"endpoint desc", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bcolimited.p.rapidapi.com/index.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bcolimited.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/bcolimited/api.py b/toolbench/toolenv/tools/Communication/bcolimited/api.py new file mode 100644 index 0000000000000000000000000000000000000000..eb951c0d22f5009c14452f4def4d12f0cd3cdb11 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bcolimited/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def endpoint1(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "endpoint desc" + + """ + url = f"https://bcolimited.p.rapidapi.com/index.php" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bcolimited.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/bermainapi_whatsapp_gateway.json b/toolbench/toolenv/tools/Communication/bermainapi_whatsapp_gateway.json new file mode 100644 index 0000000000000000000000000000000000000000..d4167321829af6e5368bc3248b68c1f17105d4e3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bermainapi_whatsapp_gateway.json @@ -0,0 +1,49 @@ +{ + "product_id": "api_23d47925-cb4d-4657-9d10-aecb0dd20666", + "tool_description": "Whatsapp API Gateway to sending notification, OTP, or anything else using your whatsapp, this is for demo, the full source code is for sell, visit https://demo.bermainapi.com/", + "home_url": "https://rapidapi.com/invictussevenfold-UTc0Aaopdoj/api/bermainapi-whatsapp-gateway/", + "name": "Bermainapi - Whatsapp Gateway", + "title": "Bermainapi - Whatsapp Gateway", + "pricing": "FREEMIUM", + "tool_name": "Bermainapi - Whatsapp Gateway", + "score": null, + "host": "bermainapi-whatsapp-gateway.p.rapidapi.com", + "api_list": [ + { + "name": "SendMessage", + "url": "https://bermainapi-whatsapp-gateway.p.rapidapi.com/apiv2/send.php?key=316411", + "description": "Sample for sending text message", + "method": "POST", + "required_parameters": [ + { + "name": "message", + "type": "STRING", + "description": "your message", + "default": "" + }, + { + "name": "number", + "type": "NUMBER", + "description": "your number (628xxxxxx)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://bermainapi-whatsapp-gateway.p.rapidapi.com/apiv2/send.php?key=316411\"\nquerystring = {\"message\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bermainapi-whatsapp-gateway.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://bermainapi-whatsapp-gateway.p.rapidapi.com/apiv2/send.php?key=316411\"\nquerystring = {\"message\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bermainapi-whatsapp-gateway.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/bitikas1.json b/toolbench/toolenv/tools/Communication/bitikas1.json new file mode 100644 index 0000000000000000000000000000000000000000..211c3d2847bff3c1b62491f0f33373860cc9f2bf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bitikas1.json @@ -0,0 +1,37 @@ +{ + "tool_name":"bitikas1", + "tool_description":"niisama", + "title":"bitikas1", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/bjorn.kass/api/bitikas1/", + "host":"bitikas1.p.rapidapi.com", + "api_list":[ + { + "name":"lopp1", + "url":"https://bitikas1.p.rapidapi.comhttp://www.brunn.ee", + "description":"niisamalopp", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"aaa", + "type":"STRING", + "description":"", + "default":"" + }, + { + "name":"bbb", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://bitikas1.p.rapidapi.comhttp://www.brunn.ee\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bitikas1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/bitikas1/api.py b/toolbench/toolenv/tools/Communication/bitikas1/api.py new file mode 100644 index 0000000000000000000000000000000000000000..71c49682a59ecd90d8136d0111731aabbd9ce44b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bitikas1/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def lopp1(aaa: str=None, bbb: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "niisamalopp" + + """ + url = f"https://bitikas1.p.rapidapi.comhttp://www.brunn.ee" + querystring = {} + if aaa: + querystring['aaa'] = aaa + if bbb: + querystring['bbb'] = bbb + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bitikas1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/blanq.json b/toolbench/toolenv/tools/Communication/blanq.json new file mode 100644 index 0000000000000000000000000000000000000000..76cd7e82c1465f0a030d4c5d08c10f31467e9f1c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/blanq.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_63278ed2-6d85-40d7-961e-50779a5fdb76", + "tool_description": "API to shorten and manage your links. Supports custom domains and analytics.", + "home_url": "https://rapidapi.com/blanq-blanq-default/api/blanq2/", + "name": "Blanq", + "title": "Blanq", + "pricing": "FREE", + "tool_name": "Blanq", + "score": null, + "host": "blanq2.p.rapidapi.com", + "api_list": [ + { + "name": "createShortLink", + "url": "https://blanq2.p.rapidapi.com/api/v1/links", + "description": "Create a short link from a long link.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://blanq2.p.rapidapi.com/api/v1/links\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"blanq2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://blanq2.p.rapidapi.com/api/v1/links\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"blanq2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/blanq/api.py b/toolbench/toolenv/tools/Communication/blanq/api.py new file mode 100644 index 0000000000000000000000000000000000000000..18bb95947364cf5244661430de85290c61d07556 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/blanq/api.py @@ -0,0 +1,73 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getuserdetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get account level information about the user." + + """ + url = f"https://blanq2.p.rapidapi.com/api/v1/user" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "blanq2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getrecenturls(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://blanq2.p.rapidapi.com/api/v1/links" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "blanq2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def geturldetails(backhalf: str, domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Pass domain and backhalf to retrieve information about a short link." + backhalf: Backhalf or slug of your short link + domain: Your custom domain without http, www and https + + """ + url = f"https://blanq2.p.rapidapi.com/api/v1/links/{domain}/{backhalf}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "blanq2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/bombsaway.json b/toolbench/toolenv/tools/Communication/bombsaway.json new file mode 100644 index 0000000000000000000000000000000000000000..596e41e25e4e1c59677b7bcbd06a39b3c349f3c7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bombsaway.json @@ -0,0 +1,24 @@ +{ + "tool_name":"BombsAway", + "tool_description":"Shock and Awe", + "title":"BombsAway", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/mariedell870/api/bombsaway/", + "host":"bombsaway.p.rapidapi.com", + "api_list":[ + { + "name":"Bombed", + "url":"https://bombsaway.p.rapidapi.com/", + "description":"Sends SMS", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://bombsaway.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"bombsaway.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/bombsaway/api.py b/toolbench/toolenv/tools/Communication/bombsaway/api.py new file mode 100644 index 0000000000000000000000000000000000000000..832ebc49f7bbaf8f930fc162157d6671ce86386d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bombsaway/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def bombed(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sends SMS" + + """ + url = f"https://bombsaway.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bombsaway.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/botlibre.json b/toolbench/toolenv/tools/Communication/botlibre.json new file mode 100644 index 0000000000000000000000000000000000000000..dd357611b82620d08fd4796e67cf5e6d06f76831 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/botlibre.json @@ -0,0 +1,197 @@ +{ + "product_id": "53aa59cfe4b0a9b1348db1f5", + "tool_description": "BOT libre's goal is to foster an open, safe community of artificial intelligent chat bots and their developers.\r\n\r\nBOT libre allows you to create your own artificial intelligent chat bot, train them, and share them with others. You are free to use this website, and create your own bots for personal, commercial, or recreation usages.\r\n\r\nYou can give your bot its own avatar images, connect it to Twitter, or IRC chat.\r\nYou can train your bot through interacting with it, or using chat logs.\r\nYou can program your bot using a 4th generational state machine scripting language \"Self\".\r\nYou can import data from the web into your bot's memory, such as words from Wiktionary, or information from Freebase.\r\nYou can create a bot to act as your own website avatar.\r\nYou can create a bot to provide customer service or technical support for your products or services.\r\n\r\nBOT libre is a website produced and hosted by Paphus Solutions Inc.", + "home_url": "https://rapidapi.com/paphus/api/botlibre/", + "name": "BOTlibre", + "title": "BOTlibre", + "pricing": "FREE", + "tool_name": "BOTlibre", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1252, + "avgSuccessRate": 22, + "popularityScore": 2.3, + "__typename": "Score" + }, + "host": "paphus-botlibre.p.rapidapi.com", + "api_list": [ + { + "name": "form-check-instance", + "url": "https://paphus-botlibre.p.rapidapi.com/form-check-instance", + "description": "The form-check-instance API validates that a bot ID or name exists, and returns the bot's details.", + "method": "GET", + "required_parameters": [ + { + "name": "password", + "type": "STRING", + "description": "OPTIONAL: The password of the user. A token can also be used.", + "default": "password" + } + ], + "optional_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "REQUIRED: The ID of the bot to validate. The bot's name can also be used, but the ID is better as it is guaranteed to be unique.", + "default": "1234" + }, + { + "name": "name", + "type": "STRING", + "description": "REQUIRED: The nameof the bot to validate. The bot's ID can also be used.", + "default": "mybot" + }, + { + "name": "application", + "type": "STRING", + "description": "OPTIONAL: The application ID. If not passed, the application will be anonymous.", + "default": "myapp" + }, + { + "name": "user", + "type": "STRING", + "description": "OPTIONAL: The ID of the user. The user must be registered with BOT libre. If not passed the user will be anonymous. The user is required if the bot is private.", + "default": "myuserid" + }, + { + "name": "token", + "type": "STRING", + "description": "OPTIONAL: The token of the user. A token can be obtained through check-user, and is valid until reset.", + "default": "123456" + } + ], + "code": "import requests\n\nurl = \"https://paphus-botlibre.p.rapidapi.com/form-check-instance\"\nquerystring = {\"id\": \"1234\", \"name\": \"mybot\", \"application\": \"myapp\", \"user\": \"myuserid\", \"password\": \"password\", \"token\": \"123456\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paphus-botlibre.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paphus-botlibre.p.rapidapi.com/form-check-instance\"\nquerystring = {\"id\": \"1234\", \"name\": \"mybot\", \"application\": \"myapp\", \"user\": \"myuserid\", \"password\": \"password\", \"token\": \"123456\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paphus-botlibre.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "form-check-user", + "url": "https://paphus-botlibre.p.rapidapi.com/form-check-user", + "description": "The form-check-user API validates user, and returns the user's details.", + "method": "GET", + "required_parameters": [ + { + "name": "user", + "type": "STRING", + "description": "REQUIRED: The ID of the user. The user must be registered with BOT libre. If not passed the user will be anonymous. The user is required if the bot is private.", + "default": "myuserid" + } + ], + "optional_parameters": [ + { + "name": "application", + "type": "STRING", + "description": "OPTIONAL: The application ID. If not passed, the application will be anonymous.", + "default": "myapp" + }, + { + "name": "password", + "type": "STRING", + "description": "REQUIRED: The password of the user. A token can also be used.", + "default": "password" + }, + { + "name": "token", + "type": "STRING", + "description": "REQUIRED: The token of the user. A token can be obtained through check-user, and is valid until reset.", + "default": "123456" + } + ], + "code": "import requests\n\nurl = \"https://paphus-botlibre.p.rapidapi.com/form-check-user\"\nquerystring = {\"application\": \"myapp\", \"user\": \"myuserid\", \"password\": \"password\", \"token\": \"123456\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paphus-botlibre.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paphus-botlibre.p.rapidapi.com/form-check-user\"\nquerystring = {\"application\": \"myapp\", \"user\": \"myuserid\", \"password\": \"password\", \"token\": \"123456\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paphus-botlibre.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "form-chat", + "url": "https://paphus-botlibre.p.rapidapi.com/form-chat", + "description": "The form-chat API receives a chat message and returns the chat bot's reply as an XML document.", + "method": "GET", + "required_parameters": [ + { + "name": "instance", + "type": "STRING", + "description": "REQUIRED: The ID of the bot to chat with. The bot's name can also be used, but the ID is better as it is guaranteed to be unique.", + "default": "mybot" + } + ], + "optional_parameters": [ + { + "name": "application", + "type": "STRING", + "description": "OPTIONAL: The application ID. If not passed, the application will be anonymous.", + "default": "myapp" + }, + { + "name": "user", + "type": "STRING", + "description": "OPTIONAL: The ID of the user who is sending the message. The user must be registered with BOT libre. If not passed the user will be anonymous. The user is required if the bot is private. The user/password are only required on the first message.", + "default": "myuserid" + }, + { + "name": "password", + "type": "STRING", + "description": "OPTIONAL: The password of the user who is sending the message. A token can also be used.", + "default": "mypassword" + }, + { + "name": "token", + "type": "STRING", + "description": "OPTIONAL: The token of the user who is sending the message. A token can be obtained through check-user, and is valid until reset.", + "default": "123456" + }, + { + "name": "conversation", + "type": "STRING", + "description": "OPTIONAL: The conversation ID for the current conversation. This must not be passed on the first message, but will be returned by the response, and should be used for all subsequent messages in the conversation.", + "default": "1234" + }, + { + "name": "message", + "type": "STRING", + "description": "OPTIONAL: The chat message to send to the bot. The message can be omitted if you wish the bot to start the conversation (if the bot has a greeting set). The message must be encoded in the URI.", + "default": "Hello Bot" + }, + { + "name": "emote", + "type": "STRING", + "description": "OPTIONAL: A emotion to tag the message with. This is one of LOVE, LIKE, DISLIKE, HATE, RAGE, ANGER, CALM, SERENE, ECSTATIC, HAPPY, SAD, CRYING, PANIC, AFRAID, CONFIDENT, COURAGEOUS, SURPRISE, BORED, LAUGHTER, SERIOUS.", + "default": "HAPPY" + }, + { + "name": "correction", + "type": "STRING", + "description": "OPTIONAL: A boolean that defines the chat message is a correction to the bot's last answer.", + "default": "" + }, + { + "name": "offensive", + "type": "STRING", + "description": "OPTIONAL: A boolean that defines the bot's last answer as offensive. The message will be flagged for the bot's administrator to review.", + "default": "" + }, + { + "name": "disconnect", + "type": "STRING", + "description": "OPTIONAL: A boolean that defines the end of the conversation.", + "default": "" + }, + { + "name": "includeQuestion", + "type": "STRING", + "description": "OPTIONAL: A boolean that indicates the question should be included in the response.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://paphus-botlibre.p.rapidapi.com/form-chat\"\nquerystring = {\"application\": \"myapp\", \"instance\": \"mybot\", \"user\": \"myuserid\", \"password\": \"mypassword\", \"token\": \"123456\", \"conversation\": \"1234\", \"message\": \"Hello Bot\", \"emote\": \"HAPPY\", \"correction\": \"\", \"offensive\": \"\", \"disconnect\": \"\", \"includeQuestion\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paphus-botlibre.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paphus-botlibre.p.rapidapi.com/form-chat\"\nquerystring = {\"application\": \"myapp\", \"instance\": \"mybot\", \"user\": \"myuserid\", \"password\": \"mypassword\", \"token\": \"123456\", \"conversation\": \"1234\", \"message\": \"Hello Bot\", \"emote\": \"HAPPY\", \"correction\": \"\", \"offensive\": \"\", \"disconnect\": \"\", \"includeQuestion\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paphus-botlibre.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "botlibre" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/botlibre/api.py b/toolbench/toolenv/tools/Communication/botlibre/api.py new file mode 100644 index 0000000000000000000000000000000000000000..55fc9d24d54f19743fc48c69b24e965d201c15e6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/botlibre/api.py @@ -0,0 +1,131 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def form_check_instance(password: str, is_id: str='1234', name: str='mybot', application: str='myapp', user: str='myuserid', token: str='123456', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The form-check-instance API validates that a bot ID or name exists, and returns the bot's details." + password: OPTIONAL: The password of the user. A token can also be used. + is_id: REQUIRED: The ID of the bot to validate. The bot's name can also be used, but the ID is better as it is guaranteed to be unique. + name: REQUIRED: The nameof the bot to validate. The bot's ID can also be used. + application: OPTIONAL: The application ID. If not passed, the application will be anonymous. + user: OPTIONAL: The ID of the user. The user must be registered with BOT libre. If not passed the user will be anonymous. The user is required if the bot is private. + token: OPTIONAL: The token of the user. A token can be obtained through check-user, and is valid until reset. + + """ + url = f"https://paphus-botlibre.p.rapidapi.com/form-check-instance" + querystring = {'password': password, } + if is_id: + querystring['id'] = is_id + if name: + querystring['name'] = name + if application: + querystring['application'] = application + if user: + querystring['user'] = user + if token: + querystring['token'] = token + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "paphus-botlibre.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def form_check_user(user: str, application: str='myapp', password: str='password', token: str='123456', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The form-check-user API validates user, and returns the user's details." + user: REQUIRED: The ID of the user. The user must be registered with BOT libre. If not passed the user will be anonymous. The user is required if the bot is private. + application: OPTIONAL: The application ID. If not passed, the application will be anonymous. + password: REQUIRED: The password of the user. A token can also be used. + token: REQUIRED: The token of the user. A token can be obtained through check-user, and is valid until reset. + + """ + url = f"https://paphus-botlibre.p.rapidapi.com/form-check-user" + querystring = {'user': user, } + if application: + querystring['application'] = application + if password: + querystring['password'] = password + if token: + querystring['token'] = token + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "paphus-botlibre.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def form_chat(instance: str, application: str='myapp', user: str='myuserid', password: str='mypassword', token: str='123456', conversation: str='1234', message: str='Hello Bot', emote: str='HAPPY', correction: str=None, offensive: str=None, disconnect: str=None, includequestion: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The form-chat API receives a chat message and returns the chat bot's reply as an XML document." + instance: REQUIRED: The ID of the bot to chat with. The bot's name can also be used, but the ID is better as it is guaranteed to be unique. + application: OPTIONAL: The application ID. If not passed, the application will be anonymous. + user: OPTIONAL: The ID of the user who is sending the message. The user must be registered with BOT libre. If not passed the user will be anonymous. The user is required if the bot is private. The user/password are only required on the first message. + password: OPTIONAL: The password of the user who is sending the message. A token can also be used. + token: OPTIONAL: The token of the user who is sending the message. A token can be obtained through check-user, and is valid until reset. + conversation: OPTIONAL: The conversation ID for the current conversation. This must not be passed on the first message, but will be returned by the response, and should be used for all subsequent messages in the conversation. + message: OPTIONAL: The chat message to send to the bot. The message can be omitted if you wish the bot to start the conversation (if the bot has a greeting set). The message must be encoded in the URI. + emote: OPTIONAL: A emotion to tag the message with. This is one of LOVE, LIKE, DISLIKE, HATE, RAGE, ANGER, CALM, SERENE, ECSTATIC, HAPPY, SAD, CRYING, PANIC, AFRAID, CONFIDENT, COURAGEOUS, SURPRISE, BORED, LAUGHTER, SERIOUS. + correction: OPTIONAL: A boolean that defines the chat message is a correction to the bot's last answer. + offensive: OPTIONAL: A boolean that defines the bot's last answer as offensive. The message will be flagged for the bot's administrator to review. + disconnect: OPTIONAL: A boolean that defines the end of the conversation. + includequestion: OPTIONAL: A boolean that indicates the question should be included in the response. + + """ + url = f"https://paphus-botlibre.p.rapidapi.com/form-chat" + querystring = {'instance': instance, } + if application: + querystring['application'] = application + if user: + querystring['user'] = user + if password: + querystring['password'] = password + if token: + querystring['token'] = token + if conversation: + querystring['conversation'] = conversation + if message: + querystring['message'] = message + if emote: + querystring['emote'] = emote + if correction: + querystring['correction'] = correction + if offensive: + querystring['offensive'] = offensive + if disconnect: + querystring['disconnect'] = disconnect + if includequestion: + querystring['includeQuestion'] = includequestion + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "paphus-botlibre.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/brcd.json b/toolbench/toolenv/tools/Communication/brcd.json new file mode 100644 index 0000000000000000000000000000000000000000..775ac45ae43cd6c353497a03c4d6c1395df9a77a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/brcd.json @@ -0,0 +1,37 @@ +{ + "tool_name":"brcd", + "tool_description":"brcd api", + "title":"brcd", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/k-d0Whkii_3/api/brcd/", + "host":"brcd.p.rapidapi.com", + "api_list":[ + { + "name":"hello", + "url":"https://brcd.p.rapidapi.com/", + "description":"brcd", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://brcd.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"brcd.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"hello_copy", + "url":"https://brcd.p.rapidapi.com/", + "description":"hello text", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://brcd.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"brcd.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/brcd/api.py b/toolbench/toolenv/tools/Communication/brcd/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bddff64a65712673e33d8dea7b09bd5a182d368b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/brcd/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def hello(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "brcd" + + """ + url = f"https://brcd.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "brcd.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hello_copy(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "hello text" + + """ + url = f"https://brcd.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "brcd.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/bulksmsapi.json b/toolbench/toolenv/tools/Communication/bulksmsapi.json new file mode 100644 index 0000000000000000000000000000000000000000..e3bc1b80c0113d3b8a1859e76bb7fe783fa10290 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bulksmsapi.json @@ -0,0 +1,29 @@ +{ + "product_id": "56c3d898e4b07732012a3146", + "tool_description": "You may find many players in Indian market who offers you this kind of Transactional SMS Service with HTTP Bulk SMS API. KAPSYSTEM is one of the major premium Bulk SMS Service Providers with extensive range of API keys to meet your business needs in a flexible module.\r\n\r\nOur API allows integrating our Bulk SMS Gateway into your application for better control and functionality. Our API's are fast, simple and reliable, and built in such a way that they are easily manipulated to fit with any system. We ensure that any developer who wants to interface an application, site or system with our messaging Gateway can do so reliably and simply with freedom and flexibility. \r\n\r\nKAPSYSTEM BULK SMS SERVICE PROVIDER:\r\nIf you are looking to get best Transactional Route from direct provider, you are at right place, where our team will assist you to track how well this works for you and your customers before using with a free demo service option.\r\nKey features of our SMS Gateway:\r\n\r\n Scheduling of SMS as per your requirement.\r\n Creation and management of SMS templates for regular use.\r\n Detailed reporting of all sent and received SMS messages.\r\n Bulk SMS Web Interface is very intuitive and easy-to-use.\r\n Easy to customize and run your mass SMS campaigns.\r\n Multiple carrier option to be connected always.\r\n Robust and secure functionality with reliable deliverability.\r\n Admin panel to control all your campaigns.\r\n Full API documentation and well versed technical support team to assist you in integration of API with your application.", + "home_url": "https://rapidapi.com/kapsystem/api/bulksmsapi/", + "name": "BulkSMSAPI", + "title": "BulkSMSAPI", + "pricing": "FREE", + "tool_name": "BulkSMSAPI", + "score": null, + "host": "kapsystem-bulksmsapi-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/api/command?username=test&password=test&cmd=X", + "url": "https://kapsystem-bulksmsapi-v1.p.rapidapi.com/api/command?username=test&password=test&cmd=X", + "description": "HTTP GET Commands", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kapsystem-bulksmsapi-v1.p.rapidapi.com/api/command?username=test&password=test&cmd=X\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kapsystem-bulksmsapi-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kapsystem-bulksmsapi-v1.p.rapidapi.com/api/command?username=test&password=test&cmd=X\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kapsystem-bulksmsapi-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "message": "Endpoint '/api/command' does not exist" + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "bulksmsapi" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/bulksmsapi/api.py b/toolbench/toolenv/tools/Communication/bulksmsapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a1f424b7a5d2763312077be98426d37925eba3b1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/bulksmsapi/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def api_command_username_test_password_test_cmd_x(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "HTTP GET Commands" + + """ + url = f"https://kapsystem-bulksmsapi-v1.p.rapidapi.com/api/command?username=test&password=test&cmd=x" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "kapsystem-bulksmsapi-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/cakemail.json b/toolbench/toolenv/tools/Communication/cakemail.json new file mode 100644 index 0000000000000000000000000000000000000000..8e0bb7ac6cc1c4055572a28e2fc897b4147b8e0c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/cakemail.json @@ -0,0 +1,40 @@ +{ + "product_id": "53aa5885e4b0b60946a2fe20", + "tool_description": "CakeMail is an email marketing application that simplifies the way small businesses engage with customers, allowing them to manage contacts, create personalized email campaigns from templates and simply... send. It\u2019s an affordable, easy-to-use solution, created to help small businesses begin, or pursue, their email marketing efforts - regardless of the marketing resources, design background or technical expertise they have.", + "home_url": "https://rapidapi.com/cakemail/api/cakemail/", + "name": "CakeMail", + "title": "CakeMail", + "pricing": "FREE", + "tool_name": "CakeMail", + "score": { + "avgServiceLevel": 100, + "avgLatency": 24, + "avgSuccessRate": 100, + "popularityScore": 6.7, + "__typename": "Score" + }, + "host": "cakemail-cakemail.p.rapidapi.com", + "api_list": [ + { + "name": "Documentation", + "url": "https://cakemail-cakemail.p.rapidapi.com/http://cakemail.com/start", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "How to", + "type": "STRING", + "description": "How to Start", + "default": "http://cakemail.com/start" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cakemail-cakemail.p.rapidapi.com/http://cakemail.com/start\"\nquerystring = {\"How to\": \"http://cakemail.com/start\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cakemail-cakemail.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cakemail-cakemail.p.rapidapi.com/http://cakemail.com/start\"\nquerystring = {\"How to\": \"http://cakemail.com/start\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cakemail-cakemail.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "cakemail" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/cakemail/api.py b/toolbench/toolenv/tools/Communication/cakemail/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a705fcb82eeb649a503f9cab26f80b03f829969d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/cakemail/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def documentation(how_to: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + how_to: How to Start + + """ + url = f"https://cakemail-cakemail.p.rapidapi.com/http://cakemail.com/start" + querystring = {'How to': how_to, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cakemail-cakemail.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/callbackfy.json b/toolbench/toolenv/tools/Communication/callbackfy.json new file mode 100644 index 0000000000000000000000000000000000000000..2b0f9e95cd3bb83cc5f5ab663f5ca9c426fb3dbe --- /dev/null +++ b/toolbench/toolenv/tools/Communication/callbackfy.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_d3b6724b-5209-48f3-8042-6134aedad774", + "tool_description": "Avoid long http requests by buffering requests and sending a callback when the result is complete.", + "home_url": "https://rapidapi.com/kadukeitor/api/callbackfy2/", + "name": "Callbackfy", + "title": "Callbackfy", + "pricing": "FREE", + "tool_name": "Callbackfy", + "score": null, + "host": "callbackfy2.p.rapidapi.com", + "api_list": [ + { + "name": "Callback", + "url": "https://callbackfy2.p.rapidapi.com/callback", + "description": "Get a callback with the response of the requested call.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://callbackfy2.p.rapidapi.com/callback\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"callbackfy2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://callbackfy2.p.rapidapi.com/callback\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"callbackfy2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/caller_id.json b/toolbench/toolenv/tools/Communication/caller_id.json new file mode 100644 index 0000000000000000000000000000000000000000..96404ebc966cd5b01876b9003a5d0c2f582c94da --- /dev/null +++ b/toolbench/toolenv/tools/Communication/caller_id.json @@ -0,0 +1,67 @@ +{ + "tool_name":"caller-id", + "tool_description":"Retrieve personal data (including Name, Gender, Job, Company Name, Email, Telco carrier name, etc) with mobile number", + "title":"caller-id", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":66, + "avgLatency":3734, + "avgSuccessRate":66, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/williamchew85/api/caller-id4/", + "host":"caller-id4.p.rapidapi.com", + "api_list":[ + { + "name":"search-mobile", + "url":"https://caller-id4.p.rapidapi.com/search-mobile", + "description":"Retrieve personal details with mobile number", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"STRING", + "description":"", + "default":"4" + }, + { + "name":"encoding", + "type":"STRING", + "description":"", + "default":"json" + }, + { + "name":"q", + "type":"NUMBER", + "description":"", + "default":"88888888" + }, + { + "name":"countryCode", + "type":"STRING", + "description":"", + "default":"SG" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://caller-id4.p.rapidapi.com/search-mobile\"\nquerystring = {\"type\": type, \"encoding\": encoding, \"q\": q, \"countryCode\": countrycode}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"caller-id4.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":"{\n \"data\": [\n {\n \"id\": \"Kk1TblWTc72T4idLDnSFaw==\",\n \"name\": \"John Smith\",\n \"imId\": \"1h3n6jozkf3ls\",\n \"gender\": \"UNKNOWN\",\n \"about\": \"\",\n \"jobTitle\": \"\",\n \"score\": 0.9,\n \"access\": \"PUBLIC\",\n \"enhanced\": true,\n \"companyName\": \"\",\n \"phones\": [\n {\n \"e164Format\": \"+6588888888\",\n \"numberType\": \"MOBILE\",\n \"nationalFormat\": \"8888 8888\",\n \"dialingCode\": 65,\n \"countryCode\": \"SG\",\n \"carrier\": \"\",\n \"type\": \"openPhone\"\n }\n ],\n \"addresses\": [\n {\n \"countryCode\": \"SG\",\n \"timeZone\": \"+08:00\",\n \"type\": \"address\"\n }\n ],\n \"internetAddresses\": [\n {\n \"id\": \"johnsmith@gmail.com\",\n \"service\": \"email\",\n \"caption\": \"John Smith\",\n \"type\": \"internetAddress\"\n }\n ],\n \"badges\": [],\n \"tags\": [],\n \"cacheTtl\": 86400000,\n \"sources\": [],\n \"searchWarnings\": [],\n \"surveys\": [\n {\n \"id\": \"100\",\n \"frequency\": 3600,\n \"passthroughData\": \"eyAiMyI6ICI2NTg4ODg4ODg4IiB9\",\n \"perNumberCooldown\": 7890000\n },\n {\n \"id\": \"b6588ff4-47cb-46ce-8b11-015199c1f729\",\n \"frequency\": 3600,\n \"passthroughData\": \"eyAiMyI6ICI2NTg4ODg4ODg4IiB9\",\n \"perNumberCooldown\": 7890000\n }\n ],\n \"commentsStats\": {\n \"showComments\": false\n },\n \"ns\": 100\n }\n ],\n \"provider\": \"ss-nu\",\n \"stats\": {\n \"sourceStats\": []\n }\n}", + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"78900d40ec7d46cd-SIN", + "content-type":"text/html; charset=utf-8", + "date":"Fri, 13 Jan 2023 18:04:01 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "referrer-policy":"same-origin", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/caller_id/api.py b/toolbench/toolenv/tools/Communication/caller_id/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c10c866f252152b0ae055a83595541ce60397a59 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/caller_id/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def search_mobile(type: str, encoding: str, q: int, countrycode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve personal details with mobile number" + + """ + url = f"https://caller-id4.p.rapidapi.com/search-mobile" + querystring = {'type': type, 'encoding': encoding, 'q': q, 'countryCode': countrycode, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "caller-id4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/canitobot_webhook.json b/toolbench/toolenv/tools/Communication/canitobot_webhook.json new file mode 100644 index 0000000000000000000000000000000000000000..e88840b004d3188a79354ecd655b81135e131515 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/canitobot_webhook.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_3b200165-2c1c-44c6-9f93-a02c3f67b6e8", + "tool_description": "Webhook used for ClassHack 2019 hackathon", + "home_url": "https://rapidapi.com/CesarNog/api/canitobot-webhook/", + "name": "CanitoBot -Webhook", + "title": "CanitoBot -Webhook", + "pricing": "FREE", + "tool_name": "CanitoBot -Webhook", + "score": { + "avgServiceLevel": 0, + "avgLatency": 6, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "canitobot-webhook.p.rapidapi.com", + "api_list": [ + { + "name": "facebook", + "url": "https://canitobot-webhook.p.rapidapi.com/facebook", + "description": "Send post from Facebook to SMS and WhatsApp using TwilioAPI", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://canitobot-webhook.p.rapidapi.com/facebook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"canitobot-webhook.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://canitobot-webhook.p.rapidapi.com/facebook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"canitobot-webhook.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/capitalizer/api.py b/toolbench/toolenv/tools/Communication/capitalizer/api.py new file mode 100644 index 0000000000000000000000000000000000000000..59c46fd9cdb7da812af25474aa10963d49628c00 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/capitalizer/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def capitalizer(text: str, lang: str, mode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Changes the capitalization of incoming text based on language rules of that text and responds with a simple string" + text: The text to be capitalized + lang: The ISO 639-1 code if know or "autoDetect" to detect language before applying the change. + mode: The target capitalization mode: default, title, sentence, lower, upper, nospace + + """ + url = f"https://sprawkcapitalizer.p.rapidapi.com/api/applycaps" + querystring = {'text': text, 'lang': lang, 'mode': mode, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sprawkcapitalizer.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/celitech_bee_wireless_esim.json b/toolbench/toolenv/tools/Communication/celitech_bee_wireless_esim.json new file mode 100644 index 0000000000000000000000000000000000000000..d9f03881228a6c7db6c618ed58fe5ea2d878bf52 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/celitech_bee_wireless_esim.json @@ -0,0 +1,52 @@ +{ + "product_id": "api_5acd234e-bd24-44d5-a305-e1d53b500ef2", + "tool_description": "Celitech Bee API enables web and mobile apps to add cellular data eSIM to their online offerings.", + "home_url": "https://rapidapi.com/celitech-celitech-default/api/celitech-bee-wireless-esim/", + "name": "Celitech Bee - Wireless eSIM", + "title": "Celitech Bee - Wireless eSIM", + "pricing": "FREE", + "tool_name": "Celitech Bee - Wireless eSIM", + "score": null, + "host": "celitech-bee-wireless-esim.p.rapidapi.com", + "api_list": [ + { + "name": "Create session", + "url": "https://celitech-bee-wireless-esim.p.rapidapi.com/sessions", + "description": "Use this call to reserve an eSIM profile from Celitech inventory, in preparation to issue and/or sell the eSIM with associated package(s) to the end customer.\r\nA session can be created anonymously (without customer_Id) or for a specific customer (i.e. using customer_Id). If customer_Id is used, it allows topping up customer\u2019s eSIM with new packages whenever required. The session typically lasts 5 minutes.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://celitech-bee-wireless-esim.p.rapidapi.com/sessions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"celitech-bee-wireless-esim.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://celitech-bee-wireless-esim.p.rapidapi.com/sessions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"celitech-bee-wireless-esim.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create a purchase (eSIM)", + "url": "https://celitech-bee-wireless-esim.p.rapidapi.com/purchases", + "description": "Use package_Id and sessionId with a specific startTime and finishTime (both in Unix Epoch time format) to create a purchase. Upon successful post, an eSIM QR code (as a long base64 string) is returned with eSIM's ICCID identifier (e.g. 8910300000001034617).\r\nTransform the QR code from base64 to image format and share it with the end customer to scan & activate on an eSIM-capable device (e.g. iPhone XR, XS, 11, SE, 12).", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://celitech-bee-wireless-esim.p.rapidapi.com/purchases\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"celitech-bee-wireless-esim.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://celitech-bee-wireless-esim.p.rapidapi.com/purchases\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"celitech-bee-wireless-esim.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Create a customer (optional)", + "url": "https://celitech-bee-wireless-esim.p.rapidapi.com/customers", + "description": "This call is optional. Use this call with any relevant metadata to create a customer_Id and be able top up the eSIM of a specific customer.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://celitech-bee-wireless-esim.p.rapidapi.com/customers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"celitech-bee-wireless-esim.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://celitech-bee-wireless-esim.p.rapidapi.com/customers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"celitech-bee-wireless-esim.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists.json b/toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists.json new file mode 100644 index 0000000000000000000000000000000000000000..5149e8c040b91f0c3d8fb980a774a5cfeecc16cc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists.json @@ -0,0 +1,31 @@ +{ + "tool_name":"CFC (Capitalize for Capitalists)", + "tool_description":"Expensive API to capitalize strings", + "title":"CFC (Capitalize for Capitalists)", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/elopezrfis-xGgXXStQuE/api/cfc-capitalize-for-capitalists/", + "host":"cfc-capitalize-for-capitalists.p.rapidapi.com", + "api_list":[ + { + "name":"CAPITALIZE IT!!!", + "url":"https://cfc-capitalize-for-capitalists.p.rapidapi.com/", + "description":"CAPITALIZE YOUR TEXT, USE THIS ENDPOINT!!!", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"", + "default":"hello" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cfc-capitalize-for-capitalists.p.rapidapi.com/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cfc-capitalize-for-capitalists.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists/api.py b/toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists/api.py new file mode 100644 index 0000000000000000000000000000000000000000..82e033535d4759a437af4ef948c82c6a7fc2d8a1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def capitalize_it(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "CAPITALIZE YOUR TEXT, USE THIS ENDPOINT!!!" + + """ + url = f"https://cfc-capitalize-for-capitalists.p.rapidapi.com/" + querystring = {'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cfc-capitalize-for-capitalists.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/chat_rooms.json b/toolbench/toolenv/tools/Communication/chat_rooms.json new file mode 100644 index 0000000000000000000000000000000000000000..2eaef28d5198744adc87af13deaab6bc321e5e52 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/chat_rooms.json @@ -0,0 +1,46 @@ +{ + "tool_name":"Chat Rooms", + "tool_description":"This is a chatroom API. Plug in with your server and lets chat.", + "title":"Chat Rooms", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/businessangelsunited/api/chat-rooms/", + "host":"chat-rooms.p.rapidapi.com", + "api_list":[ + { + "name":"Mars Test Chat", + "url":"https://chat-rooms.p.rapidapi.com/localhost6969", + "description":"This is a chat API. Users will plug in a server and start a chat room. no screen name required.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"localhost6969", + "type":"STRING", + "description":"this is the mars chain", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://chat-rooms.p.rapidapi.com/localhost6969\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"chat-rooms.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "A-IM":"Good" + }, + "schema":{ + "type":"object", + "properties":{ + "key1":{ + "type":"string" + }, + "key2":{ + "type":"string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/chat_rooms/api.py b/toolbench/toolenv/tools/Communication/chat_rooms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d348fa8cdbc00bafeb3477b68791e51197eb457f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/chat_rooms/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def mars_test_chat(localhost6969: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This is a chat API. Users will plug in a server and start a chat room. no screen name required." + localhost6969: this is the mars chain + + """ + url = f"https://chat-rooms.p.rapidapi.com/localhost6969" + querystring = {} + if localhost6969: + querystring['localhost6969'] = localhost6969 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "chat-rooms.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/checky_verify_phone_number.json b/toolbench/toolenv/tools/Communication/checky_verify_phone_number.json new file mode 100644 index 0000000000000000000000000000000000000000..cc9b8dcd833f645e16dbd63427a93dc0892a6abd --- /dev/null +++ b/toolbench/toolenv/tools/Communication/checky_verify_phone_number.json @@ -0,0 +1,165 @@ +{ + "tool_name": "Checky - Verify Phone Number", + "tool_description": "Determine in realtime if a given phone number is valid and the type of phone line it is connected to. Works for all countries! ", + "title": "Checky - Verify Phone Number", + "pricing": "PAID", + "score": { + "avgServiceLevel": 100, + "avgLatency": 66, + "avgSuccessRate": 100, + "popularityScore": 9.1, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/kidddevs/api/checky-verify-phone-number/", + "host": "checky-verify-phone-number.p.rapidapi.com", + "api_list": [ + { + "name": "Verify (Batch)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/verify/batch", + "description": "This endpoint accepts a POST request with JSON payload to verify the validity of a phone number and returns its type and national format.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Verify (POST)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/verify/post", + "description": "This endpoint accepts a POST request with JSON payload to verify the validity of a phone number and returns its type and national format.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify/post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Verify", + "url": "https://checky-verify-phone-number.p.rapidapi.com/verify", + "description": "To use this endpoint, you need to make an HTTP GET request to the API with the phone and country parameters in the query string.", + "method": "GET", + "required_parameters": [ + { + "name": "country", + "type": "STRING", + "description": "The two-letter country code of the phone number. eg **US**, **CA**, **FR** etc.", + "default": "US" + }, + { + "name": "phone", + "type": "STRING", + "description": "The phone number to verify. It should be provided without any spaces or special characters.", + "default": "6502530000" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify\"\nquerystring = {\"country\": country, \"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Carrier (Batch)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/batch", + "description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Carrier (POST)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/post", + "description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier/post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Carrier", + "url": "https://checky-verify-phone-number.p.rapidapi.com/carrier", + "description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.", + "method": "GET", + "required_parameters": [ + { + "name": "country", + "type": "STRING", + "description": "The country code of the phone number.", + "default": "CM" + }, + { + "name": "phone", + "type": "STRING", + "description": "The phone number for which to retrieve carrier information.", + "default": "620063770" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier\"\nquerystring = {\"country\": country, \"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Verify (Batch)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/verify/batch", + "description": "This endpoint accepts a POST request with JSON payload to verify the validity of a phone number and returns its type and national format.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Verify (POST)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/verify/post", + "description": "This endpoint accepts a POST request with JSON payload to verify the validity of a phone number and returns its type and national format.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify/post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/verify/post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Carrier (Batch)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/batch", + "description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Carrier (POST)", + "url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/post", + "description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier/post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://checky-verify-phone-number.p.rapidapi.com/carrier/post\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"checky-verify-phone-number.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/checky_verify_phone_number/api.py b/toolbench/toolenv/tools/Communication/checky_verify_phone_number/api.py new file mode 100644 index 0000000000000000000000000000000000000000..60d142b72008e05a6bc3c8d956e5f2081d01ff16 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/checky_verify_phone_number/api.py @@ -0,0 +1,54 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def verify(country: str, phone: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "To use this endpoint, you need to make an HTTP GET request to the API with the phone and country parameters in the query string." + country: The two-letter country code of the phone number. eg **US**, **CA**, **FR** etc. + phone: The phone number to verify. It should be provided without any spaces or special characters. + + """ + url = f"https://checky-verify-phone-number.p.rapidapi.com/verify" + querystring = {'country': country, 'phone': phone, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "checky-verify-phone-number.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def carrier(country: str, phone: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number." + country: The country code of the phone number. + phone: The phone number for which to retrieve carrier information. + + """ + url = f"https://checky-verify-phone-number.p.rapidapi.com/carrier" + querystring = {'country': country, 'phone': phone, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "checky-verify-phone-number.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/clan_meeting_video.json b/toolbench/toolenv/tools/Communication/clan_meeting_video.json new file mode 100644 index 0000000000000000000000000000000000000000..d6a8591c48de9414d703e90b41768e9996e2fae5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clan_meeting_video.json @@ -0,0 +1,30 @@ +{ + "tool_name":"Clan Meeting Video", + "tool_description":"Super easy to integrate and extremely affordable - pay as you go HD video conferencing web and mobile API - with integration support, custom logo and branding, HD video recording to your own cloud, live streaming, host controls, customization, auto-scaling, and much more.", + "title":"Clan Meeting Video", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":785, + "avgSuccessRate":100, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/nanothread-nanothread-default/api/clan-meeting-video/", + "host":"clan-meeting-video.p.rapidapi.com", + "api_list":[ + { + "name":"Clan Meeting Video REST API v1.0.0", + "url":"https://clan-meeting-video.p.rapidapi.com/", + "description":"Clan Meeting Video API offers integration with a video conferencing service. API methods are available to manage meeting links, custom logo branding, and more. From the provider: \"Super easy to integrate and extremely affordable - pay as you go HD video conferencing web and mobile API - with integration support, custom logo and branding, HD video recording to your own cloud, live streaming, host controls, customization, auto-scaling and much more.\"", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://clan-meeting-video.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clan-meeting-video.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/clan_meeting_video/api.py b/toolbench/toolenv/tools/Communication/clan_meeting_video/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5c716a3e6ee1e9e00e111782b5a561bea4af2f82 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clan_meeting_video/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def clan_meeting_video_rest_api_v1_0_0(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Clan Meeting Video API offers integration with a video conferencing service. API methods are available to manage meeting links, custom logo branding, and more. From the provider: "Super easy to integrate and extremely affordable - pay as you go HD video conferencing web and mobile API - with integration support, custom logo and branding, HD video recording to your own cloud, live streaming, host controls, customization, auto-scaling and much more."" + + """ + url = f"https://clan-meeting-video.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "clan-meeting-video.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/clickatell.json b/toolbench/toolenv/tools/Communication/clickatell.json new file mode 100644 index 0000000000000000000000000000000000000000..4ee339fde2fae1f25ebfc4f7735a4e512e8056c3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clickatell.json @@ -0,0 +1,46 @@ +{ + "product_id": "53aa5ab9e4b008bb2ef8710b", + "tool_description": "Use Clickatell's global SMS Gateway to send bulk SMS to:\r\nover 5.2 billion people on 960+ networks in 220+ countries & territories. This product provides an interface between your existing systems and Clickatell's Messaging Gateway.", + "home_url": "https://rapidapi.com/clickatell/api/clickatell/", + "name": "Clickatell", + "title": "Clickatell", + "pricing": "FREE", + "tool_name": "Clickatell", + "score": { + "avgServiceLevel": 100, + "avgLatency": 433, + "avgSuccessRate": 100, + "popularityScore": 7.4, + "__typename": "Score" + }, + "host": "community-clickatell.p.rapidapi.com", + "api_list": [ + { + "name": "Send Message", + "url": "https://community-clickatell.p.rapidapi.com/sendmsg", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "", + "default": "Test message" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-clickatell.p.rapidapi.com/sendmsg\"\nquerystring = {\"to\": \"\", \"text\": \"Test message\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-clickatell.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-clickatell.p.rapidapi.com/sendmsg\"\nquerystring = {\"to\": \"\", \"text\": \"Test message\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-clickatell.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "clickatell" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/clickatell/api.py b/toolbench/toolenv/tools/Communication/clickatell/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dce00a11e64cd4d076165d0362f8e6b09e327f10 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clickatell/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def send_message(to: str, text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://community-clickatell.p.rapidapi.com/sendmsg" + querystring = {'to': to, 'text': text, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-clickatell.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/clickbaitiness.json b/toolbench/toolenv/tools/Communication/clickbaitiness.json new file mode 100644 index 0000000000000000000000000000000000000000..bac33c20520f9b854926a33cb465502879619784 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clickbaitiness.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Clickbaitiness", + "tool_description":"Detects clickbait headlines using deep learning.", + "title":"Clickbaitiness", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/marcperezpro/api/clickbaitiness/", + "host":"clickbaitiness.p.rapidapi.com", + "api_list":[ + { + "name":"/detect", + "url":"https://clickbaitiness.p.rapidapi.com/detect", + "description":"Send a headline to receive the clickbaitiness score", + "method":"GET", + "required_parameters":[ + { + "name":"headline", + "type":"STRING", + "description":"", + "default":"Just 22 Cute Animal Pictures You Need Right Now" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://clickbaitiness.p.rapidapi.com/detect\"\nquerystring = {\"headline\": headline}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clickbaitiness.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/clickbaitiness/api.py b/toolbench/toolenv/tools/Communication/clickbaitiness/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5694d3ce80ffa974fb68108d4ef7f7859a4e51e5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clickbaitiness/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def detect(headline: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Send a headline to receive the clickbaitiness score" + + """ + url = f"https://clickbaitiness.p.rapidapi.com/detect" + querystring = {'headline': headline, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "clickbaitiness.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/clicksend_sms.json b/toolbench/toolenv/tools/Communication/clicksend_sms.json new file mode 100644 index 0000000000000000000000000000000000000000..e3716cbffbe9a286fedc5f25587e551f44789edc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/clicksend_sms.json @@ -0,0 +1,71 @@ +{ + "product_id": "53aa6085e4b07e1f4ebec95b", + "tool_description": "Sign up for a free account at https://clicksend.com\r\nClickSend is not a free service. Pricing can be found here https://clicksend.com/?r=pricing/", + "home_url": "https://rapidapi.com/clicksend/api/clicksend-sms/", + "name": "ClickSend SMS", + "title": "ClickSend SMS", + "pricing": "FREE", + "tool_name": "ClickSend SMS", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1077, + "avgSuccessRate": 72, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "clicksend.p.rapidapi.com", + "api_list": [ + { + "name": "Send Voice TTS", + "url": "https://clicksend.p.rapidapi.com/voice/send", + "description": "Send a Voice Call - Text-to-speech", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/voice/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/voice/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Send SMS", + "url": "https://clicksend.p.rapidapi.com/sms/send", + "description": "Sends an SMS", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/sms/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/sms/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Send Post Letter", + "url": "https://clicksend.p.rapidapi.com/post/letters/send", + "description": "Send Post Letter", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/post/letters/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/post/letters/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Send Fax", + "url": "https://clicksend.p.rapidapi.com/fax/send", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/fax/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://clicksend.p.rapidapi.com/fax/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"clicksend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/colis_nc.json b/toolbench/toolenv/tools/Communication/colis_nc.json new file mode 100644 index 0000000000000000000000000000000000000000..133f304220e15c2bd732772cb8d4d51b383cde4c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/colis_nc.json @@ -0,0 +1,199 @@ +{ + "tool_name":"colis-nc", + "tool_description":"Suivis des Colis en Nouvelle-Calédonie", + "title":"colis-nc", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/adriens/api/colis-nc/", + "host":"colis-nc.p.rapidapi.com", + "api_list":[ + { + "name":"Count", + "url":"https://colis-nc.p.rapidapi.com/colis/{colisid}/count", + "description":"Compte le nombre d'étapes passées par ce colis", + "method":"GET", + "required_parameters":[ + { + "name":"colisId", + "type":"STRING", + "description":"", + "default":"CA107308006SI" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://colis-nc.p.rapidapi.com/colis/{colisid}/count\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"colis-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Latest", + "url":"https://colis-nc.p.rapidapi.com/colis/{colisid}/latest", + "description":"Uniquement le dernier status", + "method":"GET", + "required_parameters":[ + { + "name":"colisId", + "type":"STRING", + "description":"", + "default":"CA107308006SI" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://colis-nc.p.rapidapi.com/colis/{colisid}/latest\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"colis-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "rawDateHeure":"06/08/2019 09:37:00", + "pays":"SLOVÉNIE", + "localisation":"2116", + "typeEvenement":"Votre courrier/colis a été pris en charge", + "informations":"", + "date":"2019-08-06T09:37:00" + }, + "headers":{ + "content-type":"application/json;charset=UTF-8", + "date":"Wed, 25 Sep 2019 08:55:00 GMT", + "server":"RapidAPI-1.0.32", + "via":"1.1 vegur", + "x-rapidapi-region":"AWS - ap-southeast-2", + "x-rapidapi-version":"1.0.32", + "content-length":"188", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"Latest for all", + "url":"https://colis-nc.p.rapidapi.com/colis/list/latest/", + "description":"Latest status only for a collection of colis", + "method":"GET", + "required_parameters":[ + { + "name":"List", + "type":"ENUM", + "description":"", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://colis-nc.p.rapidapi.com/colis/list/latest/\"\nquerystring = {\"List\": list}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"colis-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "content-type":"text/plain; charset=UTF-8", + "date":"Wed, 27 Nov 2019 06:12:20 GMT", + "server":"RapidAPI-1.0.32", + "vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers", + "via":"1.1 vegur", + "x-rapidapi-region":"AWS - ap-southeast-2", + "x-rapidapi-version":"1.0.32", + "content-length":"0", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"colis", + "url":"https://colis-nc.p.rapidapi.com/colis/{colidid}", + "description":"Etapes d'un colis", + "method":"GET", + "required_parameters":[ + { + "name":"colidId", + "type":"STRING", + "description":"", + "default":"RE053981424NC" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://colis-nc.p.rapidapi.com/colis/{colidid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"colis-nc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "rawDateHeure":"09/09/2019 09:41:13", + "pays":"NOUVELLE-CALÉDONIE", + "localisation":"NOUMEA CDC", + "typeEvenement":"Votre courrier/colis a été livré", + "informations":"Signataire : MIS BP 1978 VARNEY CHANTAL", + "date":"2019-09-09T09:41:13" + }, + "headers":{ + "content-type":"application/json;charset=UTF-8", + "date":"Tue, 24 Sep 2019 23:19:21 GMT", + "server":"RapidAPI-1.0.32", + "via":"1.1 vegur", + "x-rapidapi-region":"AWS - ap-southeast-2", + "x-rapidapi-version":"1.0.32", + "content-length":"1277", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/colis_nc/api.py b/toolbench/toolenv/tools/Communication/colis_nc/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a2578ff9f33736cee80f093b868662896f33fbab --- /dev/null +++ b/toolbench/toolenv/tools/Communication/colis_nc/api.py @@ -0,0 +1,92 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def count(colisid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Compte le nombre d'étapes passées par ce colis" + + """ + url = f"https://colis-nc.p.rapidapi.com/colis/{colisid}/count" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "colis-nc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def latest(colisid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Uniquement le dernier status" + + """ + url = f"https://colis-nc.p.rapidapi.com/colis/{colisid}/latest" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "colis-nc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def latest_for_all(list: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Latest status only for a collection of colis" + + """ + url = f"https://colis-nc.p.rapidapi.com/colis/list/latest/" + querystring = {'List': list, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "colis-nc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def colis(colidid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Etapes d'un colis" + + """ + url = f"https://colis-nc.p.rapidapi.com/colis/{colidid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "colis-nc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/compras_net_api.json b/toolbench/toolenv/tools/Communication/compras_net_api.json new file mode 100644 index 0000000000000000000000000000000000000000..7cf3b85976ceae7b502f43ca562556e69533a2ed --- /dev/null +++ b/toolbench/toolenv/tools/Communication/compras_net_api.json @@ -0,0 +1,63 @@ +{ + "tool_name":"Compras Net Api", + "tool_description":"Compras Net Api", + "title":"Compras Net Api", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":877, + "avgSuccessRate":9, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/agil-devs-agil-devs-default/api/compras-net-api/", + "host":"compras-net-api.p.rapidapi.com", + "api_list":[ + { + "name":"1º - Obter Código do Chat (Code to Chat)", + "url":"https://compras-net-api.p.rapidapi.com/codigo", + "description":"Obter Código do Chat", + "method":"GET", + "required_parameters":[ + { + "name":"co_uasg", + "type":"NUMBER", + "description":"Código UASG do Orgão", + "default":"980369" + }, + { + "name":"numprp", + "type":"NUMBER", + "description":"Número do Processo a ser Consultado", + "default":"632021" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://compras-net-api.p.rapidapi.com/codigo\"\nquerystring = {\"co_uasg\": co_uasg, \"numprp\": numprp}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"compras-net-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"2º - Mensagens do Chat (Chat message)", + "url":"https://compras-net-api.p.rapidapi.com/chat", + "description":"Chat", + "method":"GET", + "required_parameters":[ + { + "name":"cod", + "type":"NUMBER", + "description":"Código do Chat (Pode ser obtido no outro endpoint)", + "default":"1104281" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://compras-net-api.p.rapidapi.com/chat\"\nquerystring = {\"cod\": cod}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"compras-net-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/compras_net_api/api.py b/toolbench/toolenv/tools/Communication/compras_net_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..eb1b882eb6e0ba9e019026142f2225c72b4fda21 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/compras_net_api/api.py @@ -0,0 +1,53 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_1_obter_c_digo_do_chat_code_to_chat(co_uasg: int, numprp: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Obter Código do Chat" + co_uasg: Código UASG do Orgão + numprp: Número do Processo a ser Consultado + + """ + url = f"https://compras-net-api.p.rapidapi.com/codigo" + querystring = {'co_uasg': co_uasg, 'numprp': numprp, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "compras-net-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_2_mensagens_do_chat_chat_message(cod: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Chat" + cod: Código do Chat (Pode ser obtido no outro endpoint) + + """ + url = f"https://compras-net-api.p.rapidapi.com/chat" + querystring = {'cod': cod, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "compras-net-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/contact_information_exchange_detector.json b/toolbench/toolenv/tools/Communication/contact_information_exchange_detector.json new file mode 100644 index 0000000000000000000000000000000000000000..b4beee5b1726d86d5fb0629eab5ad553e057511e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/contact_information_exchange_detector.json @@ -0,0 +1,46 @@ +{ + "product_id": "api_55473cde-d252-4038-ba5e-3fa4a35101a6", + "tool_description": "Prevent users from exchangin contact information that could potentially allow them to find eachother outside of your platform.", + "home_url": "https://rapidapi.com/tg-corp-tg-corp-default/api/contact-information-exchange-detector/", + "name": "Contact Information Exchange Detector", + "title": "Contact Information Exchange Detector", + "pricing": "FREEMIUM", + "tool_name": "Contact Information Exchange Detector", + "score": null, + "host": "contact-information-exchange-detector.p.rapidapi.com", + "api_list": [ + { + "name": "Detect", + "url": "https://contact-information-exchange-detector.p.rapidapi.com/contact-information-exchange-detector", + "description": "Detect contact information in body.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://contact-information-exchange-detector.p.rapidapi.com/contact-information-exchange-detector\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"contact-information-exchange-detector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://contact-information-exchange-detector.p.rapidapi.com/contact-information-exchange-detector\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"contact-information-exchange-detector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "detected": { + "type": "boolean", + "description": "Whether contact information was detected or not." + }, + "extracts": { + "type": "array", + "description": "List of text extracts.", + "items": { + "type": "string", + "description": "Text extract." + } + } + }, + "required": [ + "detected", + "extracts" + ] + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/conversation_starter.json b/toolbench/toolenv/tools/Communication/conversation_starter.json new file mode 100644 index 0000000000000000000000000000000000000000..40193bf97cb633cac82362c0f5399a6fa2ad954f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/conversation_starter.json @@ -0,0 +1,30 @@ +{ + "tool_name":"Conversation Starter", + "tool_description":"Returns random conversation starters from a huge database. Literally, Nothing else.", + "title":"Conversation Starter", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":460, + "avgSuccessRate":100, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/nishujain199719-vgIfuFHZxVZ/api/conversation-starter1/", + "host":"conversation-starter1.p.rapidapi.com", + "api_list":[ + { + "name":"Random Question", + "url":"https://conversation-starter1.p.rapidapi.com/", + "description":"Returns a random conversation starter question", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://conversation-starter1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"conversation-starter1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/conversation_starter/api.py b/toolbench/toolenv/tools/Communication/conversation_starter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2bbeccded717d1afeb84bab4733bfcafcdd47964 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/conversation_starter/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def random_question(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a random conversation starter question" + + """ + url = f"https://conversation-starter1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "conversation-starter1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/custom_qr_code_with_logo_and_data_tracking.json b/toolbench/toolenv/tools/Communication/custom_qr_code_with_logo_and_data_tracking.json new file mode 100644 index 0000000000000000000000000000000000000000..3cf6dcbd20dc9294ff87fb2c899b2b230b7229d6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/custom_qr_code_with_logo_and_data_tracking.json @@ -0,0 +1,46 @@ +{ + "product_id": "5b1e0737e4b05b36a9cbed88", + "tool_description": "A complete API to make customized QR codes with logo, dynamic QR codes to track data, QR codes in bulk for consumer products. We offer PNG as SVG format for professional use. Many major brands use our API. For more information contact us on: info@qrzebra.com", + "home_url": "https://rapidapi.com/qrzebra/api/custom-qr-code-with-logo-and-data-tracking-1/", + "name": "Custom QR-Code with Logo and Data Tracking", + "title": "Custom QR-Code with Logo and Data Tracking", + "pricing": "FREEMIUM", + "tool_name": "Custom QR-Code with Logo and Data Tracking", + "score": null, + "host": "qrzebra-qr-ze-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Dynamic QR generator", + "url": "https://qrzebra-qr-ze-v1.p.rapidapi.com/campaign/", + "description": "Create a custom Visual QR code with this API. This will create the campaign of Dynamic QR which you can easily track for visitors.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrzebra-qr-ze-v1.p.rapidapi.com/campaign/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrzebra-qr-ze-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrzebra-qr-ze-v1.p.rapidapi.com/campaign/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrzebra-qr-ze-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Upload Logo", + "url": "https://qrzebra-qr-ze-v1.p.rapidapi.com/accounts/uploads/", + "description": "Upload your brand Logo or an Image with the content-type \"multipart/form-data\". No Authorization needed.", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "STRING", + "description": "Image name Form-Field is file which support PNG or JPEG", + "default": "fb_icon_325x325.png" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrzebra-qr-ze-v1.p.rapidapi.com/accounts/uploads/\"\nquerystring = {\"file\": \"fb_icon_325x325.png\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrzebra-qr-ze-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrzebra-qr-ze-v1.p.rapidapi.com/accounts/uploads/\"\nquerystring = {\"file\": \"fb_icon_325x325.png\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrzebra-qr-ze-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/custom_qr_code_with_logo_and_data_tracking/api.py b/toolbench/toolenv/tools/Communication/custom_qr_code_with_logo_and_data_tracking/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a3355f6a5627455293e8110fbdce29c508707561 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/custom_qr_code_with_logo_and_data_tracking/api.py @@ -0,0 +1,62 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_your_all_qr_code_list(limit: int=5, sort: int=1, page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List all custom Visual QR code with this API. This will return all the campaign of Dynamic QR which you can easily track for visitors." + limit: Query limit for No. of campaign per page (Default 5) + sort: List all campaign by Date(1) or Name(2) + page: Request Query campaign by page (Default 1) + + """ + url = f"https://qrzebra-qr-ze-v1.p.rapidapi.com/campaign/" + querystring = {} + if limit: + querystring['limit'] = limit + if sort: + querystring['sort'] = sort + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "qrzebra-qr-ze-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_track_data(period: str='month', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Track your Custom QR code Data by No. Of scans, Country, City, Device type" + period: GET Tracking Data by “day” (Day viz data of current day/ today) “week” (Day viz data of current week) “month” (Day viz data of current month) “months” (Month viz data of the current year) “year” (Yearly data) + + """ + url = f"https://qrzebra-qr-ze-v1.p.rapidapi.com/data/qrid" + querystring = {} + if period: + querystring['period'] = period + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "qrzebra-qr-ze-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/d7_slack.json b/toolbench/toolenv/tools/Communication/d7_slack.json new file mode 100644 index 0000000000000000000000000000000000000000..b746a3b0298df26a7bf003448a8821bc20fcde5c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/d7_slack.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_5dbeeba3-a2a7-4e98-b2d1-63ac14f0a695", + "tool_description": "Our Messaging API designed to fullfill most of your use cases and can be easily integrate to any of the system. We can send single message to both private and public channel in your workspace by adding the channel as slack in messaging API. ", + "home_url": "https://rapidapi.com/direct7-networks-direct7-networks-default/api/d7-slack/", + "name": "D7 Slack", + "title": "D7 Slack", + "pricing": "FREE", + "tool_name": "D7 Slack", + "score": null, + "host": "d7-slack.p.rapidapi.com", + "api_list": [ + { + "name": "Send Slack Message", + "url": "https://d7-slack.p.rapidapi.com/messages/v1/send", + "description": "Our Messaging API designed to fullfill most of your use cases and can be easily integrate to any of the system. We can send single message to both private and public channel in your workspace by adding the channel as slack in messaging API. The D7Messaging App should be added to your workspace before sending slack messages.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://d7-slack.p.rapidapi.com/messages/v1/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-slack.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://d7-slack.p.rapidapi.com/messages/v1/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-slack.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/d7_viber.json b/toolbench/toolenv/tools/Communication/d7_viber.json new file mode 100644 index 0000000000000000000000000000000000000000..95ffca9d3cc3df3c0793159bafe3c4c3c83a2df9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/d7_viber.json @@ -0,0 +1,76 @@ +{ + "product_id": "api_d9dbf62f-e58e-4eeb-8ce7-e53a411d5915", + "tool_description": "Experience boundless connectivity with the D7API Gateway, connecting you to a vast messaging network. Now with Viber integration, enjoy seamless communication and stay connected like never before.", + "home_url": "https://rapidapi.com/direct7-networks-direct7-networks-default/api/d7-viber/", + "name": "D7 Viber", + "title": "D7 Viber", + "pricing": "FREE", + "tool_name": "D7 Viber", + "score": { + "avgServiceLevel": 100, + "avgLatency": 717, + "avgSuccessRate": 81, + "popularityScore": 7.8, + "__typename": "Score" + }, + "host": "d7-viber.p.rapidapi.com", + "api_list": [ + { + "name": "Check Balance", + "url": "https://d7-viber.p.rapidapi.com/messages/v1/balance", + "description": "Retrieve details about your D7API account's current balance.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://d7-viber.p.rapidapi.com/messages/v1/balance\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-viber.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://d7-viber.p.rapidapi.com/messages/v1/balance\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-viber.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "detail": { + "code": "ACCESS_TOKEN_SIGNATURE_VERIFICATION_FAILED", + "message": "It looks like your requests were failed due to a missing or invalid 'Access Token'. Sign up at https://app.d7networks.com and create an authentication token in the developer section." + } + }, + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Message Status", + "url": "https://d7-viber.p.rapidapi.com/report/v1/message-log/{request_id}", + "description": "Retrieve the delivery status of Viber messages that were sent earlier.", + "method": "GET", + "required_parameters": [ + { + "name": "request_id", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://d7-viber.p.rapidapi.com/report/v1/message-log/{request_id}\"\nquerystring = {\"request_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-viber.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://d7-viber.p.rapidapi.com/report/v1/message-log/{request_id}\"\nquerystring = {\"request_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-viber.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "detail": { + "code": "ACCESS_TOKEN_SIGNATURE_VERIFICATION_FAILED", + "message": "It looks like your requests were failed due to a missing or invalid 'Access Token'. Sign up at https://app.d7networks.com and create an authentication token in the developer section." + } + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "Send Viber Message", + "url": "https://d7-viber.p.rapidapi.com/viber/v1/send", + "description": "D7's Viber Messaging API is designed to meet a wide range of use cases and can be seamlessly integrated into any system. With this API, you can effortlessly implement single Viber messages or personalized batch Viber messages, catering to your specific needs.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://d7-viber.p.rapidapi.com/viber/v1/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-viber.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://d7-viber.p.rapidapi.com/viber/v1/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"d7-viber.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ], + "standardized_name": "d7_viber" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/d7_viber/api.py b/toolbench/toolenv/tools/Communication/d7_viber/api.py new file mode 100644 index 0000000000000000000000000000000000000000..029881454569ccb89336dbd855024b27591d48ff --- /dev/null +++ b/toolbench/toolenv/tools/Communication/d7_viber/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check_balance(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve details about your D7API account's current balance." + + """ + url = f"https://d7-viber.p.rapidapi.com/messages/v1/balance" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "d7-viber.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message_status(request_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve the delivery status of Viber messages that were sent earlier." + + """ + url = f"https://d7-viber.p.rapidapi.com/report/v1/message-log/{request_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "d7-viber.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/dataplans_esim_reseller.json b/toolbench/toolenv/tools/Communication/dataplans_esim_reseller.json new file mode 100644 index 0000000000000000000000000000000000000000..08d5d49b4243cfe1278f7c390261564d0d5e75f4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dataplans_esim_reseller.json @@ -0,0 +1,162 @@ +{ + "tool_name": "DataPlans eSIM reseller", + "tool_description": "Sell roaming and travel data plans from the Dataplans.io API", + "title": "DataPlans eSIM reseller", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/dataplans/api/dataplans-esim-reseller/", + "host": "dataplans-esim-reseller.p.rapidapi.com", + "api_list": [ + { + "name": "GetAccountBalance", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/accountBalance", + "description": "Balance Check in THB", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/accountBalance\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetthePlanDetails", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plan/dtac-tourist-sim", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plan/dtac-tourist-sim\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetallPlans", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans", + "description": "List of Data Plans", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetallRegions", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/regions", + "description": "ALL regions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/regions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetPlansforaCountry", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans/countries/jp", + "description": "Plans available for each country", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans/countries/jp\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "PostPlanPurchase", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases", + "description": "Buy a eSIM with the slug in body.", + "method": "POST", + "required_parameters": [ + { + "name": "slug", + "type": "STRING", + "description": "", + "default": "sim2fly-asia" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases\"\nquerystring = {\"slug\": slug}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetallCountries", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/countries", + "description": "Returns all countries with dataplans", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/countries\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetPurchasedPlanInfo", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases/{dp_last_purchase_id}", + "description": "List a past purchase", + "method": "GET", + "required_parameters": [ + { + "name": "dp_last_purchase_id", + "type": "STRING", + "description": "", + "default": "dp_last_purchase_id" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases/{dp_last_purchase_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetallPlansbyOperator", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans/operators/ais", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans/operators/ais\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "PostPlanPurchase", + "url": "https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases", + "description": "Buy a eSIM with the slug in body.", + "method": "POST", + "required_parameters": [ + { + "name": "slug", + "type": "STRING", + "description": "", + "default": "sim2fly-asia" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases\"\nquerystring = {\"slug\": \"sim2fly-asia\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases\"\nquerystring = {\"slug\": \"sim2fly-asia\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dataplans-esim-reseller.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/dataplans_esim_reseller/api.py b/toolbench/toolenv/tools/Communication/dataplans_esim_reseller/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9c18b6750b7748369f23f9cca226e7b11e11529b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dataplans_esim_reseller/api.py @@ -0,0 +1,176 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getaccountbalance(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Balance Check in THB" + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/accountbalance" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def gettheplandetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plan/dtac-tourist-sim" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallplans(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List of Data Plans" + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallregions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "ALL regions" + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/regions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getplansforacountry(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Plans available for each country" + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans/countries/jp" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallcountries(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns all countries with dataplans" + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/countries" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getpurchasedplaninfo(dp_last_purchase_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List a past purchase" + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/purchases/{dp_last_purchase_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getallplansbyoperator(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://dataplans-esim-reseller.p.rapidapi.com/api/v1/plans/operators/ais" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dataplans-esim-reseller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/dial2verify_sms_gateway.json b/toolbench/toolenv/tools/Communication/dial2verify_sms_gateway.json new file mode 100644 index 0000000000000000000000000000000000000000..698d22a421e71793fec62e26ad0781a2e4eefb27 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dial2verify_sms_gateway.json @@ -0,0 +1,51 @@ +{ + "product_id": "5455264ee4b0fbfe26b483ab", + "tool_description": "Introducing ultra cheap Transactional SMS API for developers ( India )\r\nSend speedy sms with fully customizable dynamic sender ids for FREE.\r\n\r\nClaim your FREE SMS Credits at http://goo.gl/fsEPSo", + "home_url": "https://rapidapi.com/motp/api/dial2verify-sms-gateway/", + "name": "Dial2verify SMS Gateway", + "title": "Dial2verify SMS Gateway", + "pricing": "FREE", + "tool_name": "Dial2verify SMS Gateway", + "score": null, + "host": "dial2verify-sms.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://dial2verify-sms.p.rapidapi.com/RA$00356-23DXXXXXX-XXXXXXXXXX/DIALTV/9920123456", + "description": "Dial2verify API Key", + "method": "POST", + "required_parameters": [ + { + "name": "Msg", + "type": "STRING", + "description": "SMS content to be sent to the user", + "default": "Thank you for subscribing to our SMS API Service" + }, + { + "name": "recipient_number", + "type": "NUMBER", + "description": "Phone number of the recipient", + "default": "9920123456" + }, + { + "name": "sender_id", + "type": "STRING", + "description": "6 Character Sender ID", + "default": "DIALTV" + }, + { + "name": "api_key", + "type": "STRING", + "description": "Dial2verify API Key", + "default": "RA$00356-23DXXXXXX-XXXXXXXXXX" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dial2verify-sms.p.rapidapi.com/RA$00356-23DXXXXXX-XXXXXXXXXX/DIALTV/9920123456\"\nquerystring = {\"Msg\": \"Thank you for subscribing to our SMS API Service\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dial2verify-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dial2verify-sms.p.rapidapi.com/{api_key}/{sender_id}/{recipient_number}\"\nquerystring = {\"Msg\": \"Thank you for subscribing to our SMS API Service\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dial2verify-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/discord_information.json b/toolbench/toolenv/tools/Communication/discord_information.json new file mode 100644 index 0000000000000000000000000000000000000000..c7af38fba1b67d15627107ce177af2c6acb59ca1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/discord_information.json @@ -0,0 +1,51 @@ +{ + "tool_name":"discord information", + "tool_description":"testing", + "title":"discord information", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/TonyKun7/api/discord-information1/", + "host":"discord-information1.p.rapidapi.com", + "api_list":[ + { + "name":"get guild info by code", + "url":"https://discord-information1.p.rapidapi.com/guild/invites", + "description":"get guild info by code", + "method":"GET", + "required_parameters":[ + { + "name":"code", + "type":"STRING", + "description":"", + "default":"discord-testers" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://discord-information1.p.rapidapi.com/guild/invites\"\nquerystring = {\"code\": code}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"discord-information1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"get user info by id", + "url":"https://discord-information1.p.rapidapi.com/user/info", + "description":"get user info by id", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"STRING", + "description":"", + "default":"123" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://discord-information1.p.rapidapi.com/user/info\"\nquerystring = {\"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"discord-information1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/discord_information/api.py b/toolbench/toolenv/tools/Communication/discord_information/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5d8eedf15b993b0c0fc2bbe6482a4ab07c6c12d0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/discord_information/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_guild_info_by_code(code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get guild info by code" + + """ + url = f"https://discord-information1.p.rapidapi.com/guild/invites" + querystring = {'code': code, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "discord-information1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_user_info_by_id(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get user info by id" + + """ + url = f"https://discord-information1.p.rapidapi.com/user/info" + querystring = {'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "discord-information1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/disposable_email_detection.json b/toolbench/toolenv/tools/Communication/disposable_email_detection.json new file mode 100644 index 0000000000000000000000000000000000000000..c04900264db87156476719115be04b217463b079 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/disposable_email_detection.json @@ -0,0 +1,46 @@ +{ + "tool_name":"Disposable Email Detection", + "tool_description":"Detects disposable, fake and throwaway email addresses.", + "title":"Disposable Email Detection", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/ExoWatts/api/disposable-email-detection/", + "host":"disposable-email-detection.p.rapidapi.com", + "api_list":[ + { + "name":"check", + "url":"https://disposable-email-detection.p.rapidapi.com/", + "description":"Checks if a domain is a disposable email address or not.", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"mailinator.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://disposable-email-detection.p.rapidapi.com/\"\nquerystring = {\"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-email-detection.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "is_disposable":true + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"7598c2f0993b8284-IAD", + "content-type":"application/json; charset=UTF-8", + "date":"Thu, 13 Oct 2022 14:28:23 GMT", + "nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2FW7dk53FWYbox3WToxk4N0olDlCrlc%2FZohetvQeWUOrtwgO815LwEKWah4%2BB0zbROIDyLzUcz%2FaYuvCc4jaM66OWop8%2BycFybT6uY6Mj4hGA9%2FvjhArX2ESt69Ta%2FMotKpId\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.8", + "x-rapidapi-region":"AWS - us-east-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/disposable_email_detection/api.py b/toolbench/toolenv/tools/Communication/disposable_email_detection/api.py new file mode 100644 index 0000000000000000000000000000000000000000..05460d5c7af740c623cb6a278f53a6136f136343 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/disposable_email_detection/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Checks if a domain is a disposable email address or not." + + """ + url = f"https://disposable-email-detection.p.rapidapi.com/" + querystring = {'domain': domain, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "disposable-email-detection.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/disposable_regdata_verification.json b/toolbench/toolenv/tools/Communication/disposable_regdata_verification.json new file mode 100644 index 0000000000000000000000000000000000000000..30d36bdefb10c24d1f6c7c2d0a73568f86c2a578 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/disposable_regdata_verification.json @@ -0,0 +1,58 @@ +{ + "product_id": "api_758ae2c1-85bb-428a-88ee-5df2ad39212e", + "tool_description": "Out API will offer you possibility to check Phone or Email if is Valid or Disposable, as well you can check IP if is a VPN or Proxy during your KYC procedures or lead registration.", + "home_url": "https://rapidapi.com/it-fintech-md-it-fintech-md-default/api/disposable-regdata-verification/", + "name": "Disposable RegData Verification", + "title": "Disposable RegData Verification", + "pricing": "FREEMIUM", + "tool_name": "Disposable RegData Verification", + "score": { + "avgServiceLevel": 100, + "avgLatency": 403, + "avgSuccessRate": 100, + "popularityScore": 9.1, + "__typename": "Score" + }, + "host": "disposable-regdata-verification.p.rapidapi.com", + "api_list": [ + { + "name": "IP Verification", + "url": "https://disposable-regdata-verification.p.rapidapi.com/score/ip", + "description": "Check IP details for supporting v4 and v6", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://disposable-regdata-verification.p.rapidapi.com/score/ip\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-regdata-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://disposable-regdata-verification.p.rapidapi.com/score/ip\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-regdata-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Email Verification", + "url": "https://disposable-regdata-verification.p.rapidapi.com/score/email", + "description": "Verifying Email against RFC standards.\nChecks if it's from a disposable/temporary email service\nChecks for MX records in order to be sure that client provide correct/valid domain name.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://disposable-regdata-verification.p.rapidapi.com/score/email\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-regdata-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://disposable-regdata-verification.p.rapidapi.com/score/email\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-regdata-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Validate phone number", + "url": "https://disposable-regdata-verification.p.rapidapi.com/score/phone", + "description": "Checks provided phone number for Disposable services \nAs well check if phone is mentioned in public recourses which affects reputation score.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://disposable-regdata-verification.p.rapidapi.com/score/phone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-regdata-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://disposable-regdata-verification.p.rapidapi.com/score/phone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"disposable-regdata-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/dnd_checker_india.json b/toolbench/toolenv/tools/Communication/dnd_checker_india.json new file mode 100644 index 0000000000000000000000000000000000000000..3c5e619a7d24f0549cf9151c2e1b45770131cbaf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dnd_checker_india.json @@ -0,0 +1,32 @@ +{ + "product_id": "5639119fe4b071b68c61dc32", + "tool_description": "Check DND status of any valid mobile number before sending a SMS/Text Message to India using an up to date database of NDNC, NCCP, TRAI, DNC or NCPR.", + "home_url": "https://rapidapi.com/navii/api/dnd-checker-india/", + "name": "DND Checker - India", + "title": "DND Checker - India", + "pricing": "FREE", + "tool_name": "DND Checker - India", + "score": { + "avgServiceLevel": 59, + "avgLatency": 7631, + "avgSuccessRate": 0, + "popularityScore": 0.1, + "__typename": "Score" + }, + "host": "dnd.p.rapidapi.com", + "api_list": [ + { + "name": "MOBILE", + "url": "https://dnd.p.rapidapi.com/", + "description": "10 Digit Mobile Number", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dnd.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dnd.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dnd.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dnd.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/dns_lookup.json b/toolbench/toolenv/tools/Communication/dns_lookup.json new file mode 100644 index 0000000000000000000000000000000000000000..ff41c1efa6b49837583d2fa2443912bb26cffff0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dns_lookup.json @@ -0,0 +1,328 @@ +{ + "tool_name":"DNS Lookup", + "tool_description":"API to programmatically perform DNS lookups.", + "title":"DNS Lookup", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1113, + "avgSuccessRate":100, + "popularityScore":8.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/ersinkoc/api/dns-lookup2/", + "host":"dns-lookup2.p.rapidapi.com", + "api_list":[ + { + "name":"/Api/a/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/a/{domain}", + "description":"Sample request:\r\nGET /api/a/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/a/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "cf-cache-status":"DYNAMIC", + "cf-ray":"60521dc73f920830-CDG", + "cf-request-id":"072730f087000008304692c000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 13:58:09 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=M6SSlg6UyboRNdOEb2IUYIAForwQtRYP%2Fpuy6TaY3P%2FDZMgrgXV1bD2virG9Qanpt%2FqV%2Bszjz%2BPAEwBFurdUH2ikw7i52nv6G93dHehJdBc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=df2efc9ce07d1231830c8bb1d2d2ab83c1608559089; expires=Wed, 20-Jan-21 13:58:09 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"A", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"58", + "x-ratelimit-requests-reset":"83389", + "content-length":"187", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"/Api/aaaa/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/aaaa/{domain}", + "description":"Sample request:\r\nGET /api/aaaa/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/aaaa/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"60521e38ab490893-CDG", + "cf-request-id":"0727313767000008932c10b000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 13:58:28 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=rgRzxe3HYCrplFQZsiXpPom0vlm%2B8vQ1D3BeFTwFLQlDZPM%2Bfa1Z6U8dQhW3ZjVQ5DgI84N4m9PhTMfMMxPAGWRfuJQ5g8KveilBPVL%2BSxE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=dfdab7b1643d41ba4c54d6a4264645f021608559107; expires=Wed, 20-Jan-21 13:58:27 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"AAAA", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"57", + "x-ratelimit-requests-reset":"83370", + "content-length":"223", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"/Api/any/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/any/{domain}", + "description":"Sample request:\r\nGET /api/any/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/any/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "cf-cache-status":"DYNAMIC", + "cf-ray":"60521e889d4369c2-CDG", + "cf-request-id":"0727316963000069c2a323f000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 13:58:41 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=gQzW8BGP2UyGHB%2BJ8R0x9MRk7k3DCxBSrrYbfNHNW4EIWKsCiE%2BkHusrhkpYSbwXAo9ki0lvjX%2FnG9%2F2vXo9nVHlPXKpBqkBVM25Tc3r1mk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=dafcf67c91ae3606ca42083ff25635a521608559120; expires=Wed, 20-Jan-21 13:58:40 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"ANY", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"58", + "x-ratelimit-requests-reset":"83357", + "transfer-encoding":"chunked", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"/Api/mx/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/mx/{domain}", + "description":"Sample request:\r\nGET /api/mx/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/mx/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"60521f81af89bd59-CDG", + "cf-request-id":"07273205090000bd591ca72000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 13:59:20 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=MKrX2lh1qEXH4eYDN65e%2FAMZa0tlJOp89pD1BV7SNXcFEZa1bQYOSpp%2BwijFk2Ds0VUYaJGVz7Mn0bgqKWmPEb9nPfL5X34K5RJmXvwpibU%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=df8cb7041337cd1b6042b0b3338be44ce1608559160; expires=Wed, 20-Jan-21 13:59:20 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"MX", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"55", + "x-ratelimit-requests-reset":"83318", + "transfer-encoding":"chunked", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"/Api/ns/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/ns/{domain}", + "description":"Sample request:\r\nGET /api/ns/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/ns/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "cf-cache-status":"DYNAMIC", + "cf-ray":"60521ffed9cd085f-CDG", + "cf-request-id":"072732534b0000085f128f5000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 13:59:40 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=DnfQIxxtLZ%2FklLF2WBIMy6BstFobz5y%2BveYxTthc%2BNxynFRcDOvemdIUc1nAFzdKM4CRpynLrXc2fwc4auuJ%2FnFCtlBL%2B0S9k%2FNWWu4k%2F%2Fg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=d5f6e8d3621ef04a63254891989e970861608559180; expires=Wed, 20-Jan-21 13:59:40 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"NS", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"55", + "x-ratelimit-requests-reset":"83298", + "content-length":"174", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"/Api/soa/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/soa/{domain}", + "description":"Sample request:\r\nGET /api/soa/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/soa/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "alt-svc":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status":"DYNAMIC", + "cf-ray":"605220578e07edff-CDG", + "cf-request-id":"0727328ab80000edff65057000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 13:59:54 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=v03I6oPaGb1C0EVkY7mv5TZQ%2Fq3DYKT1VLReYypb28jlX7WIffHgpJD1sMbQTJs%2FPNhKzxsBuebZtG7Qqcxy6EPFBoEOTUeQaBsh%2F4zk530%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=de25fd44d1c958f5cb705a82c4f89e30e1608559194; expires=Wed, 20-Jan-21 13:59:54 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"SOA", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"55", + "x-ratelimit-requests-reset":"83284", + "content-length":"264", + "connection":"Close" + }, + "schema":{} + }, + { + "name":"/Api/txt/{domain}", + "url":"https://dns-lookup2.p.rapidapi.com/Api/txt/{domain}", + "description":"Sample request:\r\nGET /api/txt/oxog.net", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"oxog.net" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://dns-lookup2.p.rapidapi.com/Api/txt/{domain}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dns-lookup2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{ + "cf-cache-status":"DYNAMIC", + "cf-ray":"605220a5fed7089b-CDG", + "cf-request-id":"072732bbba0000089bd70cc000000001", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 21 Dec 2020 14:00:08 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "nel":"{\"report_to\":\"cf-nel\",\"max_age\":604800}", + "report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=peVy2noIHS67sxqtafvuG2VmkvhMJ12%2Fo8T6KBJvLKaGfXUD6PfAhFxz%2BGxARk2ePWjqlDQxWUFBTy79z6dvW6nt4WDbjiVXNPaQIAtk2OE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}", + "server":"RapidAPI-1.2.6", + "set-cookie":[ + "__cfduid=d3e7f13efc69c613ef6545697a824e31f1608559207; expires=Wed, 20-Jan-21 14:00:07 GMT; path=/; domain=.oxog.net; HttpOnly; SameSite=Lax" + ], + "x-api-request-domain":"oxog.net", + "x-api-request-from":"rapidapi.com", + "x-api-request-type":"TXT", + "x-api-version":"1.1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.6", + "x-ratelimit-requests-limit":"60", + "x-ratelimit-requests-remaining":"54", + "x-ratelimit-requests-reset":"83270", + "content-length":"266", + "connection":"Close" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/dns_lookup/api.py b/toolbench/toolenv/tools/Communication/dns_lookup/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6ca0348430f1c4c1fbf8192c532810bc0b2980e5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dns_lookup/api.py @@ -0,0 +1,162 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def api_a_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/a/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/a/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_aaaa_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/aaaa/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/aaaa/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_any_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/any/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/any/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_mx_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/mx/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/mx/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_ns_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/ns/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/ns/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_soa_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/soa/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/soa/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_txt_domain(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample request: + GET /api/txt/oxog.net" + + """ + url = f"https://dns-lookup2.p.rapidapi.com/api/txt/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dns-lookup2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/dns_tools/api.py b/toolbench/toolenv/tools/Communication/dns_tools/api.py new file mode 100644 index 0000000000000000000000000000000000000000..216498497ab58bb4803b83a6749bad60ba3d1614 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dns_tools/api.py @@ -0,0 +1,75 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ip2dns(ip: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "It returns the hostname of a given IP address." + ip: The IP address you want to resolve. + + """ + url = f"https://jack-dns-tools.p.rapidapi.com/dnstools.php" + querystring = {'ip': ip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "jack-dns-tools.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def dns2ip(dns: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "It returns the IP address of a given DNS address." + dns: The DNS address you want to resolve. + + """ + url = f"https://jack-dns-tools.p.rapidapi.com/dnstools.php" + querystring = {'dns': dns, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "jack-dns-tools.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def chkprt(host: str, port: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check if a port is open on a remote host." + host: The DNS or IP address of the host you want to check. + port: The port you want to check if open. + + """ + url = f"https://jack-dns-tools.p.rapidapi.com/dnstools.php" + querystring = {'host': host, 'port': port, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "jack-dns-tools.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/dudu.json b/toolbench/toolenv/tools/Communication/dudu.json new file mode 100644 index 0000000000000000000000000000000000000000..b09f640833a90bb5b8bd231aaf97299997cb2c99 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dudu.json @@ -0,0 +1,52 @@ +{ + "product_id": "53aa5805e4b0a798dbd1ace8", + "tool_description": "Dudu.com \u2013 multilingual social network with a unique translation technology allowing Internet users that speak different languages to communicate freely without language barriers.", + "home_url": "https://rapidapi.com/thefosk/api/dudu/", + "name": "Dudu", + "title": "Dudu", + "pricing": "FREE", + "tool_name": "Dudu", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1086, + "avgSuccessRate": 0, + "popularityScore": 0.1, + "__typename": "Score" + }, + "host": "community-dudu.p.rapidapi.com", + "api_list": [ + { + "name": "Command", + "url": "https://community-dudu.p.rapidapi.com/Mashape", + "description": "Please check http://dudu.com/docs/api/command/list for the proper parameter and method combinations", + "method": "GET", + "required_parameters": [ + { + "name": "json", + "type": "STRING", + "description": "", + "default": "{\"id\":\"null\",\"method\":\"friend.list\",\"params\":{\"count\":15,\"offset\":0,\"user_id\":\"\"}}" + }, + { + "name": "mask", + "type": "STRING", + "description": "", + "default": "{\"friends\":{\"id\":1,\"url_id\":1,\"fullname\":1,\"gender\":1,\"avatar\":1,\"is_page\":1}}" + }, + { + "name": "application_id", + "type": "STRING", + "description": "", + "default": "Mashape" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-dudu.p.rapidapi.com/Mashape\"\nquerystring = {\"json\": \"{\\\"id\\\":\\\"null\\\",\\\"method\\\":\\\"friend.list\\\",\\\"params\\\":{\\\"count\\\":15,\\\"offset\\\":0,\\\"user_id\\\":\\\"\\\"}}\", \"mask\": \"{\\\"friends\\\":{\\\"id\\\":1,\\\"url_id\\\":1,\\\"fullname\\\":1,\\\"gender\\\":1,\\\"avatar\\\":1,\\\"is_page\\\":1}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-dudu.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-dudu.p.rapidapi.com/{application_id}\"\nquerystring = {\"json\": \"{\\\"id\\\":\\\"null\\\",\\\"method\\\":\\\"friend.list\\\",\\\"params\\\":{\\\"count\\\":15,\\\"offset\\\":0,\\\"user_id\\\":\\\"\\\"}}\", \"mask\": \"{\\\"friends\\\":{\\\"id\\\":1,\\\"url_id\\\":1,\\\"fullname\\\":1,\\\"gender\\\":1,\\\"avatar\\\":1,\\\"is_page\\\":1}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-dudu.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "dudu" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/dudu/api.py b/toolbench/toolenv/tools/Communication/dudu/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d67fc24893222c929ef654166f450024e6857c8a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/dudu/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def command(json: str, mask: str, application_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Please check http://dudu.com/docs/api/command/list for the proper parameter and method combinations" + + """ + url = f"https://community-dudu.p.rapidapi.com/{application_id}" + querystring = {'json': json, 'mask': mask, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-dudu.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/eazita_com.json b/toolbench/toolenv/tools/Communication/eazita_com.json new file mode 100644 index 0000000000000000000000000000000000000000..51be9c7f16141d706166b6b09e05a2b3700ff149 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/eazita_com.json @@ -0,0 +1,101 @@ +{ + "product_id": "53aa619ee4b0a9b1348dbfa8", + "tool_description": "Eazita's application programming interface (API) provides the communication link between your application and Eazita's SMS Gateway, allowing you to send and receive text messages and to check the delivery status of text messages you've already sent.", + "home_url": "https://rapidapi.com/eazita/api/eazita-com/", + "name": "eazita.com", + "title": "eazita.com", + "pricing": "FREE", + "tool_name": "eazita.com", + "score": { + "avgServiceLevel": 100, + "avgLatency": 652, + "avgSuccessRate": 50, + "popularityScore": 6.2, + "__typename": "Score" + }, + "host": "eazita.p.rapidapi.com", + "api_list": [ + { + "name": "Check Account Balance", + "url": "https://eazita.p.rapidapi.com/balance/", + "description": "Retrieve your current eazita account balance.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eazita.p.rapidapi.com/balance/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eazita.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eazita.p.rapidapi.com/balance/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eazita.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "code": -1, + "error": "Authenticating parameters required. api or pass parameter is missing." + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "Send SMS", + "url": "https://eazita.p.rapidapi.com/json/", + "description": "Send a new outgoing message", + "method": "POST", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "Recipient number(s) must be in international number format without 0 or + (e.g. 923122699633). Separate each recipient with a semicolon.", + "default": "923122699633" + }, + { + "name": "from", + "type": "STRING", + "description": "Sender address could be in alphanumeric/numaric.", + "default": "Eazita" + }, + { + "name": "msg", + "type": "STRING", + "description": "Body of the text message. If your message is in Unicode Characters then must use type=unicode otherwise your message will change to simple text.", + "default": "Sended using www.eazita.com" + } + ], + "optional_parameters": [ + { + "name": "code", + "type": "STRING", + "description": "This parameter is optional, If you use Country Code then SMS will delivered to only the selected Country, Other SMS will reject.", + "default": "92" + }, + { + "name": "type", + "type": "STRING", + "description": "It will not required when sending a simple text message, but is required when sending a Unicode and Flash message. Parameters (text,unicode,flash) default is (text).", + "default": "unicode" + } + ], + "code": "import requests\n\nurl = \"https://eazita.p.rapidapi.com/json/\"\nquerystring = {\"code\": \"92\", \"to\": \"923122699633\", \"from\": \"Eazita\", \"type\": \"unicode\", \"msg\": \"Sended using www.eazita.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eazita.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eazita.p.rapidapi.com/json/\"\nquerystring = {\"code\": \"92\", \"to\": \"923122699633\", \"from\": \"Eazita\", \"type\": \"unicode\", \"msg\": \"Sended using www.eazita.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eazita.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Delivery Reports", + "url": "https://eazita.p.rapidapi.com/dlvr/", + "description": "The option to receive message delivery reports (DLR) via PULL method.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "messageid", + "type": "STRING", + "description": "Use messageid parameter for requesting specific delivery report.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://eazita.p.rapidapi.com/dlvr/\"\nquerystring = {\"messageid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eazita.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eazita.p.rapidapi.com/dlvr/\"\nquerystring = {\"messageid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eazita.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "eazita_com" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/eazita_com/api.py b/toolbench/toolenv/tools/Communication/eazita_com/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e262f5328768e57b6fdf89e0e91f88f62e8af780 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/eazita_com/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check_account_balance(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve your current eazita account balance." + + """ + url = f"https://eazita.p.rapidapi.com/balance/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "eazita.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/email_address_verification.json b/toolbench/toolenv/tools/Communication/email_address_verification.json new file mode 100644 index 0000000000000000000000000000000000000000..d560a0155fe382388f8fbdc3272916d90f053e07 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_address_verification.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_6b8ce322-d628-42f3-80d3-ab4e6fc2ac6a", + "tool_description": "Verify if an email address is valid. Email Validation avoids email marketing delivery issues.", + "home_url": "https://rapidapi.com/marcelobrocardo/api/email-address-verification3/", + "name": "Email Address Verification", + "title": "Email Address Verification", + "pricing": "PAID", + "tool_name": "Email Address Verification", + "score": null, + "host": "email-address-verification3.p.rapidapi.com", + "api_list": [ + { + "name": "Bulk request", + "url": "https://email-address-verification3.p.rapidapi.com/v1/verify", + "description": "Lookup several EMAILs at once (up to 50 per request)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://email-address-verification3.p.rapidapi.com/v1/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-address-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://email-address-verification3.p.rapidapi.com/v1/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-address-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/email_checker/api.py b/toolbench/toolenv/tools/Communication/email_checker/api.py new file mode 100644 index 0000000000000000000000000000000000000000..356c6f8d33bcb3dfd1efc456e6cc7361b17f41ee --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_checker/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def email_xml(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide the email address to be validated. A XML response will be returned." + + """ + url = f"https://bulk-email-checker.p.rapidapi.com/?xml=true&email={email}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-email-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def email_json(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide the email address to be validated. A jSON response will be returned." + + """ + url = f"https://bulk-email-checker.p.rapidapi.com/?email={email}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "bulk-email-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/email_checker_and_validator.json b/toolbench/toolenv/tools/Communication/email_checker_and_validator.json new file mode 100644 index 0000000000000000000000000000000000000000..18ee2feca0330d72c8fcb9fb470577df09e282d6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_checker_and_validator.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Email Checker and Validator", + "tool_description":"Use this API to validate the email addresses for your business. This endpoint will check syntax and will validate deliverability.\n\nWhen an email address is valid, an object is returned containing a normalized form of the email address (which you should use!) and other information.", + "title":"Email Checker and Validator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":7663, + "avgSuccessRate":100, + "popularityScore":8.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/cantagalloedoardo/api/email-checker-and-validator/", + "host":"email-checker-and-validator.p.rapidapi.com", + "api_list":[ + { + "name":"Check Email", + "url":"https://email-checker-and-validator.p.rapidapi.com/check_email/{email}", + "description":"Just paste the Email Address you want to validate and wait for the results", + "method":"GET", + "required_parameters":[ + { + "name":"email", + "type":"string", + "description":"The email address to validate", + "default":"marod29733@lubde.com" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://email-checker-and-validator.p.rapidapi.com/check_email/{email}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-checker-and-validator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/email_checker_and_validator/api.py b/toolbench/toolenv/tools/Communication/email_checker_and_validator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a50e34f1752b0fa51eb608e3e3199ff9b7e65e9e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_checker_and_validator/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check_email(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Just paste the Email Address you want to validate and wait for the results" + email: The email address to validate + + """ + url = f"https://email-checker-and-validator.p.rapidapi.com/check_email/{email}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "email-checker-and-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/email_proofer.json b/toolbench/toolenv/tools/Communication/email_proofer.json new file mode 100644 index 0000000000000000000000000000000000000000..3cfe9c8a565741ed4ea641e5ab8e0378c359f5f0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_proofer.json @@ -0,0 +1,56 @@ +{ + "product_id": "api_5468a56f-87e8-4e3a-ab66-606186ee07d1", + "tool_description": "Email Proofer. Leverage this email validation API to inspect and remove invalid email addresses from your list. This API can additionally answer if a provided email address is using a disposable or free email provider. Just call the endpoints and reduce your bounce rates instantly.", + "home_url": "https://rapidapi.com/harishsg99/api/email-proofer/", + "name": "Email Proofer", + "title": "Email Proofer", + "pricing": "FREEMIUM", + "tool_name": "Email Proofer", + "score": null, + "host": "email-proofer.p.rapidapi.com", + "api_list": [ + { + "name": "Verify deliverable", + "url": "https://email-proofer.p.rapidapi.com/verify", + "description": "Takes in email address as input and returns if deliverable", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "", + "default": "harish@gmail.com" + } + ], + "optional_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "", + "default": "test@email.com" + } + ], + "code": "import requests\n\nurl = \"https://email-proofer.p.rapidapi.com/verify\"\nquerystring = {\"email\": \"test@email.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-proofer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://email-proofer.p.rapidapi.com/verify\"\nquerystring = {\"email\": \"test@email.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-proofer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Check Disposable", + "url": "https://email-proofer.p.rapidapi.com/disposable", + "description": "Takes email as input and responds with if email is disposable.", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://email-proofer.p.rapidapi.com/disposable\"\nquerystring = {\"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-proofer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://email-proofer.p.rapidapi.com/disposable\"\nquerystring = {\"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-proofer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/email_verifier/api.py b/toolbench/toolenv/tools/Communication/email_verifier/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1f2d53c69868a3149d0c17ae41083163552959c2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_verifier/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def verify_v1(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + email: The email address to be validated. + + """ + url = f"https://email-checker.p.rapidapi.com/verify/v1" + querystring = {'email': email, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "email-checker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/email_verifier_app_email_verification_service.json b/toolbench/toolenv/tools/Communication/email_verifier_app_email_verification_service.json new file mode 100644 index 0000000000000000000000000000000000000000..c2cbc83b5d5fce8ef5dd04aea224cf8a9326995b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/email_verifier_app_email_verification_service.json @@ -0,0 +1,148 @@ +{ + "product_id": "579ac2aee4b0bb11197e8ae3", + "tool_description": "The Email Verifier API allows developers to integrate email data verification capabilities into 3rd-party applications. Email Verifier connects with email domains to verify the status of email addresses and removes addresses containing invalid domains. It can also remove duplicate email addresses, clean records that match spam-trap indicators, remove email addresses containing invalid syntax, and more.", + "home_url": "https://rapidapi.com/janz/api/email-verifier-app-email-verification-service/", + "name": "Email Verifier App - Email Verification Service", + "title": "Email Verifier App - Email Verification Service", + "pricing": "FREEMIUM", + "tool_name": "Email Verifier App - Email Verification Service", + "score": null, + "host": "janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Bulk Email Verification API", + "url": "https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/batch_process/", + "description": "Allows users to verify and validate email addresses or mailing lists in bulk", + "method": "POST", + "required_parameters": [ + { + "name": "source_file", + "type": "STRING", + "description": "The location of the mailing list you want to verify in bulk.", + "default": "HTTP-LOCATION-OF-YOUR-MAILING-LIST" + } + ], + "optional_parameters": [ + { + "name": "disposable", + "type": "BOOLEAN", + "description": "Tells you whether the email in query belongs to temporary email service provider", + "default": true + }, + { + "name": "free", + "type": "BOOLEAN", + "description": "Tells you whether the email in query belongs to free email service provider", + "default": true + }, + { + "name": "bad", + "type": "BOOLEAN", + "description": "Tells you if the email in query is in spamtrap, complainers or other similar databases", + "default": true + }, + { + "name": "role", + "type": "BOOLEAN", + "description": "Tells you if the email in query belongs to a role rather than an actual person", + "default": true + } + ], + "code": "import requests\n\nurl = \"https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/batch_process/\"\nquerystring = {\"source_file\": \"HTTP-LOCATION-OF-YOUR-MAILING-LIST\", \"disposable\": true, \"free\": true, \"bad\": true, \"role\": true}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/batch_process/\"\nquerystring = {\"source_file\": \"HTTP-LOCATION-OF-YOUR-MAILING-LIST\", \"disposable\": true, \"free\": true, \"bad\": true, \"role\": true}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Email Verification API", + "url": "https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/email_verification/", + "description": "Allows users to verify and validate an email address", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "The email address you are trying to verify and validate.", + "default": "EMAIL-ADDRESS-TO-VERIFY" + } + ], + "optional_parameters": [ + { + "name": "disposable", + "type": "BOOLEAN", + "description": "Tells you if the email in query is a low-quality risky email", + "default": "" + }, + { + "name": "free", + "type": "BOOLEAN", + "description": "Tells you whether the email in query belongs to free email service provider", + "default": true + }, + { + "name": "bad", + "type": "BOOLEAN", + "description": "Tells you if the email in query is in spamtrap, complainers or other similar databases", + "default": true + }, + { + "name": "role", + "type": "BOOLEAN", + "description": "Tells you if the email in query belongs to a role rather than an actual person", + "default": true + } + ], + "code": "import requests\n\nurl = \"https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/email_verification/\"\nquerystring = {\"disposable\": \"\", \"free\": true, \"bad\": true, \"role\": true, \"email\": \"EMAIL-ADDRESS-TO-VERIFY\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/email_verification/\"\nquerystring = {\"disposable\": \"\", \"free\": true, \"bad\": true, \"role\": true, \"email\": \"EMAIL-ADDRESS-TO-VERIFY\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Form Validation API", + "url": "https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/email_validate/", + "description": "Allows users to validate an email address in sign up and other forms", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "The email address you are trying to validate.", + "default": "EMAIL-ADDRESS-TO-VERIFY" + } + ], + "optional_parameters": [ + { + "name": "free", + "type": "BOOLEAN", + "description": "Tells you whether the email in query belongs to free email service provider", + "default": true + }, + { + "name": "bad", + "type": "BOOLEAN", + "description": "Tells you if the email in query is in spamtrap, complainers or other similar databases", + "default": true + }, + { + "name": "role", + "type": "BOOLEAN", + "description": "Tells you if the email in query belongs to a role rather than an actual person", + "default": true + }, + { + "name": "disposable", + "type": "BOOLEAN", + "description": "Tells you if the email in query is a low-quality risky email", + "default": true + } + ], + "code": "import requests\n\nurl = \"https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/email_validate/\"\nquerystring = {\"free\": true, \"bad\": true, \"role\": true, \"disposable\": true, \"email\": \"EMAIL-ADDRESS-TO-VERIFY\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com/email_validate/\"\nquerystring = {\"free\": true, \"bad\": true, \"role\": true, \"disposable\": true, \"email\": \"EMAIL-ADDRESS-TO-VERIFY\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"janz-email-verifier-app-email-verification-service-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/engagespot_push_notification.json b/toolbench/toolenv/tools/Communication/engagespot_push_notification.json new file mode 100644 index 0000000000000000000000000000000000000000..46242c422567388902bce1d178f624bf0b0c14cc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/engagespot_push_notification.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_8c4e11ea-a3a5-4e90-80bf-4b9a44a0b539", + "tool_description": "Single API to build multi-channel transactional notifications.", + "home_url": "https://rapidapi.com/anandrmedia/api/engagespot-push-notification/", + "name": "Engagespot Push Notification", + "title": "Engagespot Push Notification", + "pricing": "FREE", + "tool_name": "Engagespot Push Notification", + "score": null, + "host": "engagespot-push-notification.p.rapidapi.com", + "api_list": [ + { + "name": "Send Notification", + "url": "https://engagespot-push-notification.p.rapidapi.com/notifications", + "description": "Sends a notification", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://engagespot-push-notification.p.rapidapi.com/notifications\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"engagespot-push-notification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://engagespot-push-notification.p.rapidapi.com/notifications\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"engagespot-push-notification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/english_talking.json b/toolbench/toolenv/tools/Communication/english_talking.json new file mode 100644 index 0000000000000000000000000000000000000000..2519e72221f88d27d7379f733a7ce022805bb5ac --- /dev/null +++ b/toolbench/toolenv/tools/Communication/english_talking.json @@ -0,0 +1,280 @@ +{ + "tool_name": "English Talking", + "tool_description": "This API aims to provide users with the possibility of conducting dialogues in English where the conversations and answers are registered and evaluated by the users themselves.\n\ud83d\udc7d", + "title": "English Talking", + "pricing": "FREE", + "score": { + "avgServiceLevel": 100, + "avgLatency": 8, + "avgSuccessRate": 100, + "popularityScore": 9.2, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/maatheusb96/api/english-talking2/", + "host": "english-talking2.p.rapidapi.com", + "api_list": [ + { + "name": "Get an answer", + "url": "https://english-talking2.p.rapidapi.com/v1/dialog", + "description": "Get an answer", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "page", + "type": "STRING", + "description": "Number of page", + "default": "1" + }, + { + "name": "limit", + "type": "STRING", + "description": "Length of page", + "default": "10" + }, + { + "name": "status", + "type": "STRING", + "description": "approved or analyzing", + "default": "approved" + }, + { + "name": "answer", + "type": "STRING", + "description": "Response to the initial speech of the dialogue", + "default": "Hi, how are you?" + }, + { + "name": "_id", + "type": "STRING", + "description": "Unique dialog identifier (automatically generated)\n\n", + "default": "5ec47b3d8958430d6a6d5898" + }, + { + "name": "speech", + "type": "STRING", + "description": "Speak in which the usuairio wants to get an answer", + "default": "Hi" + }, + { + "name": "user", + "type": "STRING", + "description": "User who created the dialogue", + "default": "5ec479048958430d6a6d5895" + } + ], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/dialog\"\nquerystring = {\"page\": page, \"limit\": limit, \"status\": status, \"answer\": answer, \"_id\": id, \"speech\": speech, \"user\": user}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "code": "success-get/dialog", + "data": [ + { + "__v": 1, + "_id": "5ec47b3d8958430d6a6d5898", + "answer": "Hi, how are you?", + "approval_rate": 100, + "approvals": [ + "5ec479048958430d6a6d5895" + ], + "createdAt": "2020-05-20T00:35:09.530Z", + "disapprovals": [], + "speech": "Hi", + "status": "approved", + "updatedAt": "2020-05-20T00:41:28.188Z", + "user": "5ec479048958430d6a6d5895" + } + ], + "entity": "dialog", + "status": 200 + }, + "headers": { + "X-Total-Count": "1" + }, + "schema": { + "properties": { + "code": { + "type": "string" + }, + "data": { + "items": { + "properties": { + "__v": { + "type": "integer" + }, + "_id": { + "type": "string" + }, + "answer": { + "type": "string" + }, + "approval_rate": { + "type": "integer" + }, + "approvals": { + "items": { + "type": "string" + }, + "type": "array" + }, + "createdAt": { + "type": "string" + }, + "disapprovals": { + "type": "array" + }, + "speech": { + "type": "string" + }, + "status": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "entity": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "type": "object" + } + }, + { + "name": "Approve a dialogue", + "url": "https://english-talking2.p.rapidapi.com/v1/dialog/{id}/approval", + "description": "Approve a dialogue", + "method": "PUT", + "required_parameters": [ + { + "name": "Authorization", + "type": "STRING", + "description": "accessToken of a user registered in the application. See Register User", + "default": "Bearer " + }, + { + "name": "_id", + "type": "string", + "description": "", + "default": "5ec47b3d8958430d6a6d5898" + } + ], + "optional_parameters": [ + { + "name": "Authorization", + "type": "STRING", + "description": "accessToken of a user registered in the application. See Register User", + "default": "Bearer " + } + ], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/dialog/{id}/approval\"\nquerystring = {\"Authorization\": authorization}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Rejecting a dialogue", + "url": "https://english-talking2.p.rapidapi.com/v1/dialog/{id}/rejection", + "description": "Rejecting a dialogue", + "method": "PUT", + "required_parameters": [ + { + "name": "Authorization", + "type": "STRING", + "description": "accessToken of a user registered in the application. See Register User", + "default": "Bearer " + }, + { + "name": "_id", + "type": "string", + "description": "", + "default": "5ec47b3d8958430d6a6d5898" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/dialog/{id}/rejection\"\nquerystring = {\"Authorization\": authorization}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Register User", + "url": "https://english-talking2.p.rapidapi.com/v1/register", + "description": "Register User", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/register\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Authenticate User", + "url": "https://english-talking2.p.rapidapi.com/v1/authenticate", + "description": "Authenticate User", + "method": "POST", + "required_parameters": [ + { + "name": "Authorization", + "type": "STRING", + "description": "AUTHORIZATION\n\nBasic Auth\n\nUsername\nPassword", + "default": "Basic eW91cmVtYWlsQG1haWwuY29tOnlvdXJfcGFzc3dvcmQ=" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/authenticate\"\nquerystring = {\"Authorization\": authorization}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Create a dialogue", + "url": "https://english-talking2.p.rapidapi.com/v1/dialog", + "description": "Create a dialogue", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/dialog\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/dialog\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Register User", + "url": "https://english-talking2.p.rapidapi.com/v1/register", + "description": "Register User", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/register\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/register\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Authenticate User", + "url": "https://english-talking2.p.rapidapi.com/v1/authenticate", + "description": "Authenticate User", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/authenticate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://english-talking2.p.rapidapi.com/v1/authenticate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"english-talking2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/english_talking/api.py b/toolbench/toolenv/tools/Communication/english_talking/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a0502734e8f51e2c34c45548aec69f96f3a0748a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/english_talking/api.py @@ -0,0 +1,52 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_an_answer(page: str='1', limit: str='10', status: str='approved', answer: str='Hi, how are you?', is_id: str='5ec47b3d8958430d6a6d5898', speech: str='Hi', user: str='5ec479048958430d6a6d5895', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get an answer" + page: Number of page + limit: Length of page + status: approved or analyzing + answer: Response to the initial speech of the dialogue + is_id: Unique dialog identifier (automatically generated) + + + speech: Speak in which the usuairio wants to get an answer + user: User who created the dialogue + + """ + url = f"https://english-talking2.p.rapidapi.com/v1/dialog" + querystring = {} + if page: + querystring['page'] = page + if limit: + querystring['limit'] = limit + if status: + querystring['status'] = status + if answer: + querystring['answer'] = answer + if is_id: + querystring['_id'] = is_id + if speech: + querystring['speech'] = speech + if user: + querystring['user'] = user + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "english-talking2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/enterprise_communication_push_to_talk.json b/toolbench/toolenv/tools/Communication/enterprise_communication_push_to_talk.json new file mode 100644 index 0000000000000000000000000000000000000000..b69da50b0b40b78e0feb730a511cac2c25eb437d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/enterprise_communication_push_to_talk.json @@ -0,0 +1,24 @@ +{ + "product_id": "575a12eae4b028dd93823d55", + "tool_description": "VoicePing is built for companies that have workers are distributed in the field. Our Push-To-Talk feature is the most convenient way for field workers to communicate. Workers communicate one to one or in a work group. Additional features like Texting and Photos makes VoicePing the All-in-One communication App for field workers.\r\n\r\nVoicePing APIs allow Enterprise IT managers and ERP solution providers to include a communication solution as an integral part of their Enterprise Apps. This allows for additional use cases to increase productivity.\r\n\r\nAPIs available\r\n1) Audio Notifications to Alert Workers\r\n2) Location Information\r\n3) Dynamic Grouping\r\n4) Android App SDK/Intent to activate PTT\r\n\r\nThe combination of tightly integrated Workflow Apps and Communication App allows companies to reap the full benefits of Enterprise Mobility. Quicker decision making via more accessible information, higher productivity via automation of information flow and increased agility of work groups are some benefits shown below.", + "home_url": "https://rapidapi.com/wenhan/api/enterprise-communication-push-to-talk/", + "name": "Enterprise Communication - Push To Talk", + "title": "Enterprise Communication - Push To Talk", + "pricing": "FREE", + "tool_name": "Enterprise Communication - Push To Talk", + "score": null, + "host": "voiceping.p.rapidapi.com", + "api_list": [ + { + "name": "Talk", + "url": "https://voiceping.p.rapidapi.com/api/v1/bot/talk", + "description": "Send a Text message/Audio Notification to a User", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://voiceping.p.rapidapi.com/api/v1/bot/talk\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"voiceping.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://voiceping.p.rapidapi.com/api/v1/bot/talk\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"voiceping.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/eqivo_telephony.json b/toolbench/toolenv/tools/Communication/eqivo_telephony.json new file mode 100644 index 0000000000000000000000000000000000000000..cad08a815d0380331d451024d97abbd8b0d3e974 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/eqivo_telephony.json @@ -0,0 +1,1990 @@ +{ + "product_id": "api_94eacf19-d5a1-4443-9959-45e6a547d09d", + "tool_description": "Started as a reimplementation of the open source Plivo Framework (now discontinued), Eqivo Telephony API simplifies the integration between web applications and voice-enabled endpoints, such as traditional phone lines (PSTN), VoIP phones, webRTC clients etc.", + "home_url": "https://rapidapi.com/rtckit/api/eqivo-telephony/", + "name": "Eqivo Telephony", + "title": "Eqivo Telephony", + "pricing": "FREE", + "tool_name": "Eqivo Telephony", + "score": null, + "host": "eqivo-telephony.p.rapidapi.com", + "api_list": [ + { + "name": "/v0.1/RecordStop/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/RecordStop/", + "description": "Stops the recording of a given call", + "method": "POST", + "required_parameters": [ + { + "name": "RecordFile", + "type": "STRING", + "description": "Full path to recording file, as returned by RecordStart; `all` shorthand is also available", + "default": "/tmp/recording/sample.wav" + }, + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call", + "default": "eacfa857-4001-4379-b79a-c7ef6d963bcb" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/RecordStop/\"\nquerystring = {\"RecordFile\": \"/tmp/recording/sample.wav\", \"CallUUID\": \"eacfa857-4001-4379-b79a-c7ef6d963bcb\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/RecordStop/\"\nquerystring = {\"RecordFile\": \"/tmp/recording/sample.wav\", \"CallUUID\": \"eacfa857-4001-4379-b79a-c7ef6d963bcb\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "RecordStop Executed", + "CallUUID Parameter must be present", + "RecordFile Parameter must be present", + "RecordStop Failed -- Call not found", + "RecordStop Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceRecordStop/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceRecordStop/", + "description": "Stops a conference recording", + "method": "POST", + "required_parameters": [ + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + }, + { + "name": "RecordFile", + "type": "STRING", + "description": "Full path to recording file, as returned by ConferenceRecordStart; `all` shorthand is also available", + "default": "/tmp/recording/sample.wav" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceRecordStop/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"RecordFile\": \"/tmp/recording/sample.wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceRecordStop/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"RecordFile\": \"/tmp/recording/sample.wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference RecordStop Executed", + "ConferenceName Parameter must be present", + "RecordFile Parameter must be present", + "Conference RecordStop Failed", + "Conference RecordStop Failed -- Conference not found" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/CancelScheduledHangup/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/CancelScheduledHangup/", + "description": "Cancels a scheduled hangup for a call", + "method": "POST", + "required_parameters": [ + { + "name": "SchedHangupId", + "type": "STRING", + "description": "Unique identifier returned when scheduled hangup was originally requested", + "default": "ea428fbd-ac9b-498c-8bb2-a36ac49f10fd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/CancelScheduledHangup/\"\nquerystring = {\"SchedHangupId\": \"ea428fbd-ac9b-498c-8bb2-a36ac49f10fd\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/CancelScheduledHangup/\"\nquerystring = {\"SchedHangupId\": \"ea428fbd-ac9b-498c-8bb2-a36ac49f10fd\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Scheduled Hangup Cancelation Executed", + "SchedHangupId Parameter must be present", + "Scheduled Hangup Cancelation Failed -- ID not found", + "Scheduled Hangup Cancelation Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/SchedulePlay/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/SchedulePlay/", + "description": "Schedules media playback for a specific call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call to play media into", + "default": "e69b32da-3243-4ba6-a965-5d2f64a57d48" + }, + { + "name": "Sounds", + "type": "STRING", + "description": "Comma separated list of file paths/URIs to be played", + "default": "/tmp/prompt.wav" + }, + { + "name": "Time", + "type": "NUMBER", + "description": "Time (in seconds) after which the media will be playedback", + "default": 29 + } + ], + "optional_parameters": [ + { + "name": "Mix", + "type": "BOOLEAN", + "description": "Whether the media should be mixed with the call's audio stream", + "default": false + }, + { + "name": "Loop", + "type": "BOOLEAN", + "description": "Loops the media file(s) indefinitely", + "default": true + }, + { + "name": "Legs", + "type": "STRING", + "description": "Call leg(s) for which the media will be played; `aleg` refers to the initial call leg, `bleg` refers to the bridged call leg, if applicable.", + "default": "both" + }, + { + "name": "Length", + "type": "NUMBER", + "description": "Maximum amount of time (in seconds) to playback the media", + "default": 90 + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SchedulePlay/\"\nquerystring = {\"CallUUID\": \"e69b32da-3243-4ba6-a965-5d2f64a57d48\", \"Mix\": false, \"Loop\": true, \"Sounds\": \"/tmp/prompt.wav\", \"Legs\": \"both\", \"Time\": 29, \"Length\": 90}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SchedulePlay/\"\nquerystring = {\"CallUUID\": \"e69b32da-3243-4ba6-a965-5d2f64a57d48\", \"Mix\": false, \"Loop\": true, \"Sounds\": \"/tmp/prompt.wav\", \"Legs\": \"both\", \"Time\": 29, \"Length\": 90}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success", + "SchedPlayId" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Play Executed", + "CallUUID Parameter Missing", + "Sounds Parameter Missing", + "Time Parameter Missing", + "Time Parameter must be > 0", + "Legs Parameter is Invalid", + "Length Parameter must be a positive integer", + "Sounds Parameter is Invalid", + "Play Failed -- Call not found", + "Play Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "SchedPlayId": { + "description": "Unique identifier of the scheduled playback request (UUIDv4)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/SoundTouch/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/SoundTouch/", + "description": "Applies SoundTouch effects to a live call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call to send DTMF to", + "default": "b7054b68-0620-455a-8ac7-f8f126853b9d" + } + ], + "optional_parameters": [ + { + "name": "PitchSemiTones", + "type": "NUMBER", + "description": "Adjust the pitch in semitones", + "default": 2 + }, + { + "name": "Rate", + "type": "NUMBER", + "description": "Adjust the rate", + "default": 3 + }, + { + "name": "PitchOctaves", + "type": "NUMBER", + "description": "Adjust the pitch in octaves", + "default": 0.5 + }, + { + "name": "Pitch", + "type": "NUMBER", + "description": "Adjust the pitch", + "default": 4 + }, + { + "name": "AudioDirection", + "type": "STRING", + "description": "Media stream to be altered, incoming or outgoing", + "default": "in" + }, + { + "name": "Tempo", + "type": "NUMBER", + "description": "Adjust the tempo", + "default": 2 + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SoundTouch/\"\nquerystring = {\"PitchSemiTones\": 2, \"Rate\": 3, \"PitchOctaves\": 0.5, \"Pitch\": 4, \"CallUUID\": \"b7054b68-0620-455a-8ac7-f8f126853b9d\", \"AudioDirection\": \"in\", \"Tempo\": 2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SoundTouch/\"\nquerystring = {\"PitchSemiTones\": 2, \"Rate\": 3, \"PitchOctaves\": 0.5, \"Pitch\": 4, \"CallUUID\": \"b7054b68-0620-455a-8ac7-f8f126853b9d\", \"AudioDirection\": \"in\", \"Tempo\": 2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "SoundTouch Executed", + "CallUUID Parameter Missing", + "AudioDirection Parameter Must be 'in' or 'out'", + "PitchSemiTones Parameter must be float", + "PitchSemiTones Parameter must be between -14 and 14", + "PitchOctaves Parameter must be float", + "PitchOctaves Parameter must be between -1 and 1", + "Pitch Parameter must be float", + "Pitch Parameter must be > 0", + "Rate Parameter must be float", + "Rate Parameter must be > 0", + "Tempo Parameter must be float", + "Tempo Parameter must be > 0", + "SoundTouch Failed -- Call not found", + "SoundTouch Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/SoundTouchStop/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/SoundTouchStop/", + "description": "Removes SoundTouch effects from a given call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call", + "default": "fe372011-face-4bc2-bbcc-893d045bf67d" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SoundTouchStop/\"\nquerystring = {\"CallUUID\": \"fe372011-face-4bc2-bbcc-893d045bf67d\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SoundTouchStop/\"\nquerystring = {\"CallUUID\": \"fe372011-face-4bc2-bbcc-893d045bf67d\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "SoundTouchStop Executed", + "CallUUID Parameter Missing", + "SoundTouchStop Failed -- Call not found", + "SoundTouchStop Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/TransferCall/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/TransferCall/", + "description": "Replaces the RestXML flow of a live call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call", + "default": "03694cf6-62b3-4f00-b0fc-6831ddcc2693" + }, + { + "name": "Url", + "type": "STRING", + "description": "Absolute URL which will return the updated RestXML flow", + "default": "https://example.org/restxml/endpoint/" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/TransferCall/\"\nquerystring = {\"CallUUID\": \"03694cf6-62b3-4f00-b0fc-6831ddcc2693\", \"Url\": \"https://example.org/restxml/endpoint/\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/TransferCall/\"\nquerystring = {\"CallUUID\": \"03694cf6-62b3-4f00-b0fc-6831ddcc2693\", \"Url\": \"https://example.org/restxml/endpoint/\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Transfer Call Executed", + "CallUUID Parameter must be present", + "Url Parameter must be present", + "Url is not Valid", + "Transfer Call Failed -- Call not found", + "Transfer Call Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/HangupCall/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/HangupCall/", + "description": "Hangs up a specific call", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call (when established); this parameter is mutually exclusive with RequestUUID", + "default": "b0519011-6987-47c8-9270-a820e0978acd" + }, + { + "name": "RequestUUID", + "type": "STRING", + "description": "Unique identifier of the API request (when the call is not established yet); this parameter is mutually exclusive with CallUUID", + "default": "c059b96b-04d8-414b-920c-7b373bff916e" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/HangupCall/\"\nquerystring = {\"CallUUID\": \"b0519011-6987-47c8-9270-a820e0978acd\", \"RequestUUID\": \"c059b96b-04d8-414b-920c-7b373bff916e\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/HangupCall/\"\nquerystring = {\"CallUUID\": \"b0519011-6987-47c8-9270-a820e0978acd\", \"RequestUUID\": \"c059b96b-04d8-414b-920c-7b373bff916e\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Hangup Call Executed", + "CallUUID or RequestUUID Parameter must be present", + "Both CallUUID and RequestUUID Parameters cannot be present", + "Hangup Call Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/Play/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/Play/", + "description": "Plays media into a live call", + "method": "POST", + "required_parameters": [ + { + "name": "Sounds", + "type": "STRING", + "description": "Comma separated list of file paths/URIs to be played", + "default": "/tmp/prompt.wav" + }, + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call to play media into", + "default": "e69b32da-3243-4ba6-a965-5d2f64a57d48" + } + ], + "optional_parameters": [ + { + "name": "Length", + "type": "NUMBER", + "description": "Maximum amount of time (in seconds) to playback the media", + "default": 90 + }, + { + "name": "Loop", + "type": "BOOLEAN", + "description": "Loops the media file(s) indefinitely", + "default": true + }, + { + "name": "Mix", + "type": "BOOLEAN", + "description": "Whether the media should be mixed with the call's audio stream", + "default": false + }, + { + "name": "Legs", + "type": "STRING", + "description": "Call leg(s) for which the media will be played; `aleg` refers to the initial call leg, `bleg` refers to the bridged call leg, if applicable.", + "default": "both" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/Play/\"\nquerystring = {\"Length\": 90, \"Sounds\": \"/tmp/prompt.wav\", \"Loop\": true, \"Mix\": false, \"CallUUID\": \"e69b32da-3243-4ba6-a965-5d2f64a57d48\", \"Legs\": \"both\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/Play/\"\nquerystring = {\"Length\": 90, \"Sounds\": \"/tmp/prompt.wav\", \"Loop\": true, \"Mix\": false, \"CallUUID\": \"e69b32da-3243-4ba6-a965-5d2f64a57d48\", \"Legs\": \"both\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Play Executed", + "CallUUID Parameter Missing", + "Sounds Parameter Missing", + "Legs Parameter is Invalid", + "Length Parameter must be a positive integer", + "Sounds Parameter is Invalid", + "Play Failed -- Call not found", + "Play Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/PlayStop/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/PlayStop/", + "description": "Interrupts media playback on a given call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call", + "default": "441afb63-85bc-49d4-9ac8-8459f9bf5e6b" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/PlayStop/\"\nquerystring = {\"CallUUID\": \"441afb63-85bc-49d4-9ac8-8459f9bf5e6b\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/PlayStop/\"\nquerystring = {\"CallUUID\": \"441afb63-85bc-49d4-9ac8-8459f9bf5e6b\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "PlayStop Executed", + "CallUUID Parameter Missing", + "PlayStop Failed -- Call not found", + "PlayStop Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/Call/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/Call/", + "description": "Initiates an outbound call", + "method": "POST", + "required_parameters": [ + { + "name": "AnswerUrl", + "type": "STRING", + "description": "Fully qualified URL which will provide the RestXML once the call connects", + "default": "" + }, + { + "name": "Gateways", + "type": "STRING", + "description": "Comma separated FreeSWITCH gateway strings. When multiple gateways are specified, they will be tried sequentially (failover)", + "default": "user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/" + }, + { + "name": "From", + "type": "STRING", + "description": "Phone number to be used as Caller ID", + "default": "15551234567" + }, + { + "name": "To", + "type": "STRING", + "description": "Phone number to be called", + "default": "15557654321" + } + ], + "optional_parameters": [ + { + "name": "RingUrl", + "type": "STRING", + "description": "Fully qualified URL to which the call ringing notification will be POSTed. `RequestUUID` and `CallUUID` is added to the usual [call notification parameters](#/components/schemas/CallNotificationParameters)", + "default": "" + }, + { + "name": "CallerName", + "type": "STRING", + "description": "Caller Name to be set for the call", + "default": "" + }, + { + "name": "GatewayCodecs", + "type": "STRING", + "description": "List of codec(s) to be used for each gateway. Enclose codec groups in single quotes", + "default": "'PCMA,PCMU','G729,PCMU','PCMA,G729'" + }, + { + "name": "SendOnPreanswer", + "type": "BOOLEAN", + "description": "When set to `true`, DTMF tones will be sent as early media rather than when the call is answered", + "default": false + }, + { + "name": "HangupOnRing", + "type": "NUMBER", + "description": "Schedules the call's hangup at a given time offset (in seconds) after the destination starts ringing", + "default": 90 + }, + { + "name": "SendDigits", + "type": "STRING", + "description": "DTMF tones to be sent when the call is answered. Each occurrence of `w` implies a 0.5 seconds delay whereas `W` will apply a whole second delay. To alter the tone duration (by default, 2000ms), append `@` and the length in milliseconds at the end of the string", + "default": "1w2w3W#*@1500" + }, + { + "name": "GatewayTimeouts", + "type": "STRING", + "description": "List of maximum timeout amounts (in seconds) for each gateway", + "default": "10,30,20" + }, + { + "name": "ExtraDialString", + "type": "STRING", + "description": "Additional [channel variables](https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables) to be added to the originate FreeSWITCH API call.", + "default": "bridge_early_media=true,hangup_after_bridge=true" + }, + { + "name": "HangupUrl", + "type": "STRING", + "description": "Fully qualified URL to which the call hangup notification will be POSTed. `HangupCause` is added to the usual call [call notification parameters](#/components/schemas/CallNotificationParameters)", + "default": "" + }, + { + "name": "TimeLimit", + "type": "NUMBER", + "description": "Schedules the call's hangup at a given time offset (in seconds) after the call is answered", + "default": 90 + }, + { + "name": "GatewayRetries", + "type": "STRING", + "description": "List of maximum retry counts for each gateway", + "default": "3,1,2" + }, + { + "name": "CoreUUID", + "type": "STRING", + "description": "Core UUID of the desired FreeSWITCH instance (an Eqivo extension)", + "default": "45521fc6-a4b3-42b6-96ad-9136256be216" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/Call/\"\nquerystring = {\"RingUrl\": \"\", \"CallerName\": \"\", \"GatewayCodecs\": \"'PCMA,PCMU','G729,PCMU','PCMA,G729'\", \"SendOnPreanswer\": false, \"HangupOnRing\": 90, \"SendDigits\": \"1w2w3W#*@1500\", \"AnswerUrl\": \"\", \"Gateways\": \"user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/\", \"From\": \"15551234567\", \"GatewayTimeouts\": \"10,30,20\", \"To\": \"15557654321\", \"ExtraDialString\": \"bridge_early_media=true,hangup_after_bridge=true\", \"HangupUrl\": \"\", \"TimeLimit\": 90, \"GatewayRetries\": \"3,1,2\", \"CoreUUID\": \"45521fc6-a4b3-42b6-96ad-9136256be216\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/Call/\"\nquerystring = {\"RingUrl\": \"\", \"CallerName\": \"\", \"GatewayCodecs\": \"'PCMA,PCMU','G729,PCMU','PCMA,G729'\", \"SendOnPreanswer\": false, \"HangupOnRing\": 90, \"SendDigits\": \"1w2w3W#*@1500\", \"AnswerUrl\": \"\", \"Gateways\": \"user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/\", \"From\": \"15551234567\", \"GatewayTimeouts\": \"10,30,20\", \"To\": \"15557654321\", \"ExtraDialString\": \"bridge_early_media=true,hangup_after_bridge=true\", \"HangupUrl\": \"\", \"TimeLimit\": 90, \"GatewayRetries\": \"3,1,2\", \"CoreUUID\": \"45521fc6-a4b3-42b6-96ad-9136256be216\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "RequestUUID", + "Success", + "RestApiServer" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Call Request Executed", + "Mandatory Parameters Missing", + "AnswerUrl is not Valid", + "HangupUrl is not Valid", + "RingUrl is not Valid", + "Unknown Core UUID" + ] + }, + "RequestUUID": { + "description": "Unique identifier of the Call request (UUIDv4)", + "type": "string" + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "RestApiServer": { + "description": "API server which handled this request (an Eqivo extension)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/RecordStart/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/RecordStart/", + "description": "Initiates recording of a given call", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "FileName", + "type": "STRING", + "description": "Recording file name (without extension); if empty, a timestamp based file name will be generated", + "default": "sample_recording" + }, + { + "name": "FilePath", + "type": "STRING", + "description": "Directory path/URI where the recording file will be saved", + "default": "/tmp/recordings" + }, + { + "name": "TimeLimit", + "type": "NUMBER", + "description": "Maximum recording length, in seconds", + "default": 89 + }, + { + "name": "FileFormat", + "type": "STRING", + "description": "File format (extension)", + "default": "wav" + }, + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call to be recorded", + "default": "052d04e4-019a-45ff-a562-f74d4ae99ea2" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/RecordStart/\"\nquerystring = {\"FileName\": \"sample_recording\", \"FilePath\": \"/tmp/recordings\", \"TimeLimit\": 89, \"FileFormat\": \"wav\", \"CallUUID\": \"052d04e4-019a-45ff-a562-f74d4ae99ea2\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/RecordStart/\"\nquerystring = {\"FileName\": \"sample_recording\", \"FilePath\": \"/tmp/recordings\", \"TimeLimit\": 89, \"FileFormat\": \"wav\", \"CallUUID\": \"052d04e4-019a-45ff-a562-f74d4ae99ea2\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "RecordFile", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "RecordStart Executed", + "CallUUID Parameter must be present", + "FileFormat Parameter must be", + "RecordStart Failed: invalid TimeLimit", + "RecordStart Failed -- Call not found", + "RecordStart Failed" + ] + }, + "RecordFile": { + "description": "Directory path/URI where the recording file will be saved", + "type": "string" + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/SendDigits/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/SendDigits/", + "description": "Emits DMTF tones to a call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call to send DTMF to", + "default": "d4cd08fe-4245-490a-ae39-5b58c6addbe8" + }, + { + "name": "Digits", + "type": "STRING", + "description": "DTMF tones to be sent; each occurrence of `w` implies a 0.5 seconds delay whereas `W` will apply a whole second delay. To alter the tone duration (by default, 2000ms), append `@` and the length in milliseconds at the end of the string", + "default": "1w2w3W#*@1500" + } + ], + "optional_parameters": [ + { + "name": "Leg", + "type": "STRING", + "description": "Call leg(s) to which DTMFs will be sent; `aleg` refers to the initial call leg, `bleg` refers to the bridged call leg, if applicable.", + "default": "both" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SendDigits/\"\nquerystring = {\"Leg\": \"both\", \"CallUUID\": \"d4cd08fe-4245-490a-ae39-5b58c6addbe8\", \"Digits\": \"1w2w3W#*@1500\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/SendDigits/\"\nquerystring = {\"Leg\": \"both\", \"CallUUID\": \"d4cd08fe-4245-490a-ae39-5b58c6addbe8\", \"Digits\": \"1w2w3W#*@1500\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "SendDigits Executed", + "CallUUID Parameter Missing", + "Digits Parameter Missing", + "Invalid Leg Parameter", + "SendDigits Failed -- Call not found", + "SendDigits Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferencePlay/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferencePlay/", + "description": "Plays media to one or more conference members", + "method": "POST", + "required_parameters": [ + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + }, + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + }, + { + "name": "FilePath", + "type": "STRING", + "description": "Path/URI of the media file to be played", + "default": "/var/local/media/sample.wav" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferencePlay/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\", \"FilePath\": \"/var/local/media/sample.wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferencePlay/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\", \"FilePath\": \"/var/local/media/sample.wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Play Executed", + "ConferenceName Parameter must be present", + "FilePath Parameter must be present", + "MemberID Parameter must be present", + "Conference Play Failed -- Conference not found", + "Conference Play Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceList/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceList/", + "description": "Returns a list of all established conferences", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "MutedFilter", + "type": "BOOLEAN", + "description": "Restricts listed members to muted ones", + "default": "true" + }, + { + "name": "DeafFilter", + "type": "BOOLEAN", + "description": "Restricts listed members to deaf ones", + "default": "true" + }, + { + "name": "CallUUIDFilter", + "type": "STRING", + "description": "Restricts listed calls to the provided values (comma separated call UUID list)", + "default": "872066e1-fd89-4c57-8733-93c113980bc9,55e4214a-604a-4b56-82e4-97834b0d524e" + }, + { + "name": "MemberFilter", + "type": "STRING", + "description": "Restricts listed members to the provided values (comma separated member ID list)", + "default": "13,42" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceList/\"\nquerystring = {\"MutedFilter\": \"true\", \"DeafFilter\": \"true\", \"CallUUIDFilter\": \"872066e1-fd89-4c57-8733-93c113980bc9,55e4214a-604a-4b56-82e4-97834b0d524e\", \"MemberFilter\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceList/\"\nquerystring = {\"MutedFilter\": \"true\", \"DeafFilter\": \"true\", \"CallUUIDFilter\": \"872066e1-fd89-4c57-8733-93c113980bc9,55e4214a-604a-4b56-82e4-97834b0d524e\", \"MemberFilter\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success", + "List" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference List Executed", + "Conference List Failed to parse result" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "List": { + "description": "List of established conferences", + "type": "object" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/BulkCall/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/BulkCall/", + "description": "Initiates multiple concurrent outbound calls", + "method": "POST", + "required_parameters": [ + { + "name": "AnswerUrl", + "type": "STRING", + "description": "Fully qualified URL which will provide the RestXML once the call connects", + "default": "" + }, + { + "name": "To", + "type": "STRING", + "description": "Phone number to be called", + "default": "15557654321" + }, + { + "name": "Delimiter", + "type": "STRING", + "description": "Any character, except `/` and `,`, which will be used as a separator within several parameters", + "default": "<" + }, + { + "name": "From", + "type": "STRING", + "description": "Phone number to be used as Caller ID", + "default": "15551234567" + }, + { + "name": "Gateways", + "type": "STRING", + "description": "Comma separated FreeSWITCH gateway strings. When multiple gateways are specified, they will be tried sequentially (failover)", + "default": "user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/" + } + ], + "optional_parameters": [ + { + "name": "CallerName", + "type": "STRING", + "description": "Caller Name to be set for the call", + "default": "" + }, + { + "name": "HangupUrl", + "type": "STRING", + "description": "Fully qualified URL to which the call hangup notification will be POSTed. `HangupCause` is added to the usual call [call notification parameters](#/components/schemas/CallNotificationParameters)", + "default": "" + }, + { + "name": "GatewayRetries", + "type": "STRING", + "description": "List of maximum retry counts for each gateway", + "default": "3,1,2" + }, + { + "name": "CoreUUID", + "type": "STRING", + "description": "Core UUID of the desired FreeSWITCH instance (an Eqivo extension)", + "default": "2e8e6275-7cfe-4e3c-a8d6-25316b4519c7" + }, + { + "name": "ExtraDialString", + "type": "STRING", + "description": "Additional [channel variables](https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables) to be added to the originate FreeSWITCH API call.", + "default": "bridge_early_media=true,hangup_after_bridge=true" + }, + { + "name": "SendOnPreanswer", + "type": "BOOLEAN", + "description": "When set to `true`, DTMF tones will be sent as early media rather than when the call is answered", + "default": false + }, + { + "name": "RingUrl", + "type": "STRING", + "description": "Fully qualified URL to which the call ringing notification will be POSTed. `RequestUUID` and `CallUUID` is added to the usual [call notification parameters](#/components/schemas/CallNotificationParameters)", + "default": "" + }, + { + "name": "SendDigits", + "type": "STRING", + "description": "DTMF tones to be sent when the call is answered. Each occurrence of `w` implies a 0.5 seconds delay whereas `W` will apply a whole second delay. To alter the tone duration (by default, 2000ms), append `@` and the length in milliseconds at the end of the string", + "default": "1w2w3W#*@1500" + }, + { + "name": "ConfirmSound", + "type": "STRING", + "description": "Remote URL to fetch with POST HTTP request which must return a RestXML with Play, Wait and/or Speak Elements only (all others are ignored). This RESTXML is played to the called party when he answered", + "default": "" + }, + { + "name": "GatewayCodecs", + "type": "STRING", + "description": "List of codec(s) to be used for each gateway. Enclose codec groups in single quotes", + "default": "'PCMA,PCMU','G729,PCMU','PCMA,G729'" + }, + { + "name": "GatewayTimeouts", + "type": "STRING", + "description": "List of maximum timeout amounts (in seconds) for each gateway", + "default": "10,30,20" + }, + { + "name": "RejectCauses", + "type": "STRING", + "description": "Comma separated reject causes", + "default": "USER_BUSY,NO_ANSWER" + }, + { + "name": "ConfirmKey", + "type": "STRING", + "description": "DTMF tone the called party must send to accept the call", + "default": "" + }, + { + "name": "HangupOnRing", + "type": "NUMBER", + "description": "Schedules the call's hangup at a given time offset (in seconds) after the destination starts ringing", + "default": 90 + }, + { + "name": "TimeLimit", + "type": "NUMBER", + "description": "Schedules the call's hangup at a given time offset (in seconds) after the call is answered", + "default": 90 + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/BulkCall/\"\nquerystring = {\"CallerName\": \"\", \"HangupUrl\": \"\", \"GatewayRetries\": \"3,1,2\", \"AnswerUrl\": \"\", \"CoreUUID\": \"2e8e6275-7cfe-4e3c-a8d6-25316b4519c7\", \"ExtraDialString\": \"bridge_early_media=true,hangup_after_bridge=true\", \"SendOnPreanswer\": false, \"RingUrl\": \"\", \"SendDigits\": \"1w2w3W#*@1500\", \"ConfirmSound\": \"\", \"To\": \"15557654321\", \"Delimiter\": \"<\", \"GatewayCodecs\": \"'PCMA,PCMU','G729,PCMU','PCMA,G729'\", \"GatewayTimeouts\": \"10,30,20\", \"From\": \"15551234567\", \"RejectCauses\": \"USER_BUSY,NO_ANSWER\", \"ConfirmKey\": \"\", \"Gateways\": \"user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/\", \"HangupOnRing\": 90, \"TimeLimit\": 90}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/BulkCall/\"\nquerystring = {\"CallerName\": \"\", \"HangupUrl\": \"\", \"GatewayRetries\": \"3,1,2\", \"AnswerUrl\": \"\", \"CoreUUID\": \"2e8e6275-7cfe-4e3c-a8d6-25316b4519c7\", \"ExtraDialString\": \"bridge_early_media=true,hangup_after_bridge=true\", \"SendOnPreanswer\": false, \"RingUrl\": \"\", \"SendDigits\": \"1w2w3W#*@1500\", \"ConfirmSound\": \"\", \"To\": \"15557654321\", \"Delimiter\": \"<\", \"GatewayCodecs\": \"'PCMA,PCMU','G729,PCMU','PCMA,G729'\", \"GatewayTimeouts\": \"10,30,20\", \"From\": \"15551234567\", \"RejectCauses\": \"USER_BUSY,NO_ANSWER\", \"ConfirmKey\": \"\", \"Gateways\": \"user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/\", \"HangupOnRing\": 90, \"TimeLimit\": 90}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "RequestUUID", + "Success", + "RestApiServer" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "BulkCalls Request Executed", + "Mandatory Parameters Missing", + "This Delimiter is not allowed", + "BulkCalls should be used for at least 2 numbers", + "'To' parameter length does not match 'Gateways' Length", + "AnswerUrl is not Valid", + "HangupUrl is not Valid", + "RingUrl is not Valid", + "Unknown Core UUID" + ] + }, + "RequestUUID": { + "description": "Unique identifiers of each Call request (UUIDv4)", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "RestApiServer": { + "description": "API server which handled this request (an Eqivo extension)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/CancelScheduledPlay/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/CancelScheduledPlay/", + "description": "Cancels a scheduled playback request", + "method": "POST", + "required_parameters": [ + { + "name": "SchedPlayId", + "type": "STRING", + "description": "Unique identifier returned when scheduled playback was originally requested", + "default": "ea428fbd-ac9b-498c-8bb2-a36ac49f10fd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/CancelScheduledPlay/\"\nquerystring = {\"SchedPlayId\": \"ea428fbd-ac9b-498c-8bb2-a36ac49f10fd\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/CancelScheduledPlay/\"\nquerystring = {\"SchedPlayId\": \"ea428fbd-ac9b-498c-8bb2-a36ac49f10fd\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Scheduled Play Cancelation Executed", + "SchedPlayId Parameter must be present", + "Scheduled Play Cancelation Failed -- ID not found", + "Scheduled Play Cancelation Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/GroupCall/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/GroupCall/", + "description": "Initiate multiple racing outbound calls", + "method": "POST", + "required_parameters": [ + { + "name": "To", + "type": "STRING", + "description": "Phone number to be called", + "default": "15557654321" + }, + { + "name": "Gateways", + "type": "STRING", + "description": "Comma separated FreeSWITCH gateway strings. When multiple gateways are specified, they will be tried sequentially (failover)", + "default": "user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/" + }, + { + "name": "From", + "type": "STRING", + "description": "Phone number to be used as Caller ID", + "default": "15551234567" + }, + { + "name": "AnswerUrl", + "type": "STRING", + "description": "Fully qualified URL which will provide the RestXML once the call connects", + "default": "" + }, + { + "name": "Delimiter", + "type": "STRING", + "description": "Any character, except `/` and `,`, which will be used as a separator within several parameters", + "default": "<" + } + ], + "optional_parameters": [ + { + "name": "ConfirmSound", + "type": "STRING", + "description": "Remote URL to fetch with POST HTTP request which must return a RestXML with Play, Wait and/or Speak Elements only (all others are ignored). This RESTXML is played to the called party when he answered", + "default": "" + }, + { + "name": "GatewayTimeouts", + "type": "STRING", + "description": "List of maximum timeout amounts (in seconds) for each gateway", + "default": "10,30,20" + }, + { + "name": "RejectCauses", + "type": "STRING", + "description": "Comma separated reject causes", + "default": "USER_BUSY,NO_ANSWER" + }, + { + "name": "RingUrl", + "type": "STRING", + "description": "Fully qualified URL to which the call ringing notification will be POSTed. `RequestUUID` and `CallUUID` is added to the usual [call notification parameters](#/components/schemas/CallNotificationParameters)", + "default": "" + }, + { + "name": "GatewayRetries", + "type": "STRING", + "description": "List of maximum retry counts for each gateway", + "default": "3,1,2" + }, + { + "name": "GatewayCodecs", + "type": "STRING", + "description": "List of codec(s) to be used for each gateway. Enclose codec groups in single quotes", + "default": "'PCMA,PCMU','G729,PCMU','PCMA,G729'" + }, + { + "name": "SendOnPreanswer", + "type": "BOOLEAN", + "description": "When set to `true`, DTMF tones will be sent as early media rather than when the call is answered", + "default": false + }, + { + "name": "ExtraDialString", + "type": "STRING", + "description": "Additional [channel variables](https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables) to be added to the originate FreeSWITCH API call.", + "default": "bridge_early_media=true,hangup_after_bridge=true" + }, + { + "name": "SendDigits", + "type": "STRING", + "description": "DTMF tones to be sent when the call is answered. Each occurrence of `w` implies a 0.5 seconds delay whereas `W` will apply a whole second delay. To alter the tone duration (by default, 2000ms), append `@` and the length in milliseconds at the end of the string", + "default": "1w2w3W#*@1500" + }, + { + "name": "ConfirmKey", + "type": "STRING", + "description": "DTMF tone the called party must send to accept the call", + "default": "" + }, + { + "name": "CoreUUID", + "type": "STRING", + "description": "Core UUID of the desired FreeSWITCH instance (an Eqivo extension)", + "default": "46ae8cd9-c28e-447d-ba40-a09cba49d474" + }, + { + "name": "CallerName", + "type": "STRING", + "description": "Caller Name to be set for the call", + "default": "" + }, + { + "name": "HangupOnRing", + "type": "NUMBER", + "description": "Schedules the call's hangup at a given time offset (in seconds) after the destination starts ringing", + "default": 90 + }, + { + "name": "TimeLimit", + "type": "NUMBER", + "description": "Schedules the call's hangup at a given time offset (in seconds) after the call is answered", + "default": 90 + }, + { + "name": "HangupUrl", + "type": "STRING", + "description": "Fully qualified URL to which the call hangup notification will be POSTed. `HangupCause` is added to the usual call [call notification parameters](#/components/schemas/CallNotificationParameters)", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/GroupCall/\"\nquerystring = {\"To\": \"15557654321\", \"Gateways\": \"user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/\", \"ConfirmSound\": \"\", \"GatewayTimeouts\": \"10,30,20\", \"RejectCauses\": \"USER_BUSY,NO_ANSWER\", \"RingUrl\": \"\", \"GatewayRetries\": \"3,1,2\", \"GatewayCodecs\": \"'PCMA,PCMU','G729,PCMU','PCMA,G729'\", \"From\": \"15551234567\", \"SendOnPreanswer\": false, \"ExtraDialString\": \"bridge_early_media=true,hangup_after_bridge=true\", \"SendDigits\": \"1w2w3W#*@1500\", \"AnswerUrl\": \"\", \"Delimiter\": \"<\", \"ConfirmKey\": \"\", \"CoreUUID\": \"46ae8cd9-c28e-447d-ba40-a09cba49d474\", \"CallerName\": \"\", \"HangupOnRing\": 90, \"TimeLimit\": 90, \"HangupUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/GroupCall/\"\nquerystring = {\"To\": \"15557654321\", \"Gateways\": \"user/,sofia/gateway/PSTNgateway1/,sofia/gateway/PSTNgateway2/\", \"ConfirmSound\": \"\", \"GatewayTimeouts\": \"10,30,20\", \"RejectCauses\": \"USER_BUSY,NO_ANSWER\", \"RingUrl\": \"\", \"GatewayRetries\": \"3,1,2\", \"GatewayCodecs\": \"'PCMA,PCMU','G729,PCMU','PCMA,G729'\", \"From\": \"15551234567\", \"SendOnPreanswer\": false, \"ExtraDialString\": \"bridge_early_media=true,hangup_after_bridge=true\", \"SendDigits\": \"1w2w3W#*@1500\", \"AnswerUrl\": \"\", \"Delimiter\": \"<\", \"ConfirmKey\": \"\", \"CoreUUID\": \"46ae8cd9-c28e-447d-ba40-a09cba49d474\", \"CallerName\": \"\", \"HangupOnRing\": 90, \"TimeLimit\": 90, \"HangupUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "RequestUUID", + "Success", + "RestApiServer" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "GroupCall Request Executed", + "Mandatory Parameters Missing", + "This Delimiter is not allowed", + "GroupCall should be used for at least 2 numbers", + "'To' parameter length does not match 'Gateways' Length", + "AnswerUrl is not Valid", + "HangupUrl is not Valid", + "RingUrl is not Valid", + "ConfirmSound is not Valid", + "Unknown Core UUID", + "GroupCall Request Failed" + ] + }, + "RequestUUID": { + "description": "Unique identifier of the Call request (UUIDv4)", + "type": "string" + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "RestApiServer": { + "description": "API server which handled this request (an Eqivo extension)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/HangupAllCalls/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/HangupAllCalls/", + "description": "Hangs up all established calls", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/HangupAllCalls/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/HangupAllCalls/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "All Calls Hungup", + "Hangup Call Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ScheduleHangup/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ScheduleHangup/", + "description": "Schedules a hangup for a specific call", + "method": "POST", + "required_parameters": [ + { + "name": "CallUUID", + "type": "STRING", + "description": "Unique identifier of the call", + "default": "f84fbadc-5df0-4c02-934b-aac0c1efb8ae" + }, + { + "name": "Time", + "type": "NUMBER", + "description": "Time (in seconds) after which the call in question will be hung up", + "default": 59 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ScheduleHangup/\"\nquerystring = {\"CallUUID\": \"f84fbadc-5df0-4c02-934b-aac0c1efb8ae\", \"Time\": 59}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ScheduleHangup/\"\nquerystring = {\"CallUUID\": \"f84fbadc-5df0-4c02-934b-aac0c1efb8ae\", \"Time\": 59}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success", + "SchedHangupId" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "ScheduleHangup Executed", + "CallUUID Parameter must be present", + "Time Parameter must be present", + "Time Parameter must be > 0!", + "ScheduleHangup Failed -- Call not found", + "ScheduleHangup Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "SchedHangupId": { + "description": "Unique identifier of the scheduled hangup request (UUIDv4)", + "type": "string" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceUnmute/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceUnmute/", + "description": "Restores audio from one or more conference members", + "method": "POST", + "required_parameters": [ + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + }, + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceUnmute/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceUnmute/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Unmute Executed", + "ConferenceName Parameter must be present", + "MemberID Parameter must be present", + "Conference Unmute Failed -- Conference not found" + ] + }, + "Members": { + "description": "List of affected members", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceUndeaf/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceUndeaf/", + "description": "Restores audio to one or more conference members", + "method": "POST", + "required_parameters": [ + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + }, + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceUndeaf/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceUndeaf/\"\nquerystring = {\"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Undeaf Executed", + "ConferenceName Parameter must be present", + "MemberID Parameter must be present", + "Conference Undeaf Failed -- Conference not found" + ] + }, + "Members": { + "description": "List of affected members", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceHangup/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceHangup/", + "description": "Kicks one or more conference members, without playing the kick sound", + "method": "POST", + "required_parameters": [ + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + }, + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceHangup/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceHangup/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Hangup Executed", + "ConferenceName Parameter must be present", + "MemberID Parameter must be present", + "Conference Hangup Failed -- Conference not found" + ] + }, + "Members": { + "description": "List of affected members", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceRecordStart/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceRecordStart/", + "description": "Initiates a conference recording", + "method": "POST", + "required_parameters": [ + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + } + ], + "optional_parameters": [ + { + "name": "FileFormat", + "type": "STRING", + "description": "File format (extension)", + "default": "wav" + }, + { + "name": "FilePath", + "type": "STRING", + "description": "Directory path/URI where the recording file will be saved", + "default": "/tmp/recordings" + }, + { + "name": "FileName", + "type": "STRING", + "description": "Recording file name (without extension); if empty, a timestamp based file name will be generated", + "default": "Room402Rec" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceRecordStart/\"\nquerystring = {\"FileFormat\": \"wav\", \"FilePath\": \"/tmp/recordings\", \"ConferenceName\": \"Room402\", \"FileName\": \"Room402Rec\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceRecordStart/\"\nquerystring = {\"FileFormat\": \"wav\", \"FilePath\": \"/tmp/recordings\", \"ConferenceName\": \"Room402\", \"FileName\": \"Room402Rec\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "RecordFile", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference RecordStart Executed", + "ConferenceName Parameter must be present", + "FileFormat Parameter must be", + "Conference RecordStart Failed", + "Conference RecordStart Failed -- Conference not found" + ] + }, + "RecordFile": { + "description": "Directory path/URI where the recording file will be saved", + "type": "string" + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceKick/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceKick/", + "description": "Kicks one or more conference members", + "method": "POST", + "required_parameters": [ + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + }, + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceKick/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceKick/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Kick Executed", + "ConferenceName Parameter must be present", + "MemberID Parameter must be present", + "Conference Kick Failed -- Conference not found" + ] + }, + "Members": { + "description": "List of affected members", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceMute/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceMute/", + "description": "Blocks audio from one or more conference members", + "method": "POST", + "required_parameters": [ + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + }, + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceMute/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceMute/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Mute Executed", + "ConferenceName Parameter must be present", + "MemberID Parameter must be present", + "Conference Mute Failed -- Conference not found" + ] + }, + "Members": { + "description": "List of affected members", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceListMembers/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceListMembers/", + "description": "Retrieves the member list for a given conference", + "method": "POST", + "required_parameters": [ + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference", + "default": "Room402" + } + ], + "optional_parameters": [ + { + "name": "MemberFilter", + "type": "STRING", + "description": "Restricts listed members to the provided values (comma separated member ID list)", + "default": "13,42" + }, + { + "name": "MutedFilter", + "type": "BOOLEAN", + "description": "Restricts listed members to muted ones", + "default": "true" + }, + { + "name": "CallUUIDFilter", + "type": "STRING", + "description": "Restricts listed calls to the provided values (comma separated call UUID list)", + "default": "872066e1-fd89-4c57-8733-93c113980bc9,55e4214a-604a-4b56-82e4-97834b0d524e" + }, + { + "name": "DeafFilter", + "type": "BOOLEAN", + "description": "Restricts listed members to deaf ones", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceListMembers/\"\nquerystring = {\"MemberFilter\": \"13,42\", \"MutedFilter\": \"true\", \"ConferenceName\": \"Room402\", \"CallUUIDFilter\": \"872066e1-fd89-4c57-8733-93c113980bc9,55e4214a-604a-4b56-82e4-97834b0d524e\", \"DeafFilter\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceListMembers/\"\nquerystring = {\"MemberFilter\": \"13,42\", \"MutedFilter\": \"true\", \"ConferenceName\": \"Room402\", \"CallUUIDFilter\": \"872066e1-fd89-4c57-8733-93c113980bc9,55e4214a-604a-4b56-82e4-97834b0d524e\", \"DeafFilter\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success", + "List" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference ListMembers Executed", + "ConferenceName Parameter must be present", + "Conference ListMembers Failed to parse result", + "Conference ListMembers Failed -- Conference not found" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + }, + "List": { + "description": "List of established conferences", + "type": "object" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceSpeak/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceSpeak/", + "description": "Plays synthesized speech into a conference", + "method": "POST", + "required_parameters": [ + { + "name": "Text", + "type": "STRING", + "description": "Text to be synthesized", + "default": "The quick brown fox jumps over the lazy dog" + }, + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + }, + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceSpeak/\"\nquerystring = {\"Text\": \"The quick brown fox jumps over the lazy dog\", \"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceSpeak/\"\nquerystring = {\"Text\": \"The quick brown fox jumps over the lazy dog\", \"ConferenceName\": \"Room402\", \"MemberID\": \"13,42\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Speak Executed", + "ConferenceName Parameter must be present", + "Text Parameter must be present", + "MemberID Parameter must be present", + "Conference Speak Failed -- Conference not found", + "Conference Speak Failed" + ] + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + }, + { + "name": "/v0.1/ConferenceDeaf/", + "url": "https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceDeaf/", + "description": "Blocks audio to one or more conference members", + "method": "POST", + "required_parameters": [ + { + "name": "MemberID", + "type": "STRING", + "description": "List of comma separated member IDs to be affected; `all` shorthand is available too.", + "default": "13,42" + }, + { + "name": "ConferenceName", + "type": "STRING", + "description": "Name of the conference in question", + "default": "Room402" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceDeaf/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eqivo-telephony.p.rapidapi.com/v0.1/ConferenceDeaf/\"\nquerystring = {\"MemberID\": \"13,42\", \"ConferenceName\": \"Room402\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eqivo-telephony.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "required": [ + "Message", + "Success" + ], + "properties": { + "Message": { + "description": "Response message", + "type": "string", + "enum": [ + "Conference Deaf Executed", + "ConferenceName Parameter must be present", + "MemberID Parameter must be present", + "Conference Deaf Failed -- Conference not found" + ] + }, + "Members": { + "description": "List of affected members", + "type": "array", + "items": { + "type": "string" + } + }, + "Success": { + "description": "Whether the request was successful or not", + "type": "boolean" + } + }, + "type": "object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/etymology_meaning.json b/toolbench/toolenv/tools/Communication/etymology_meaning.json new file mode 100644 index 0000000000000000000000000000000000000000..d2e40e5ea18f81086284088ad0abbfac16897f48 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/etymology_meaning.json @@ -0,0 +1,109 @@ +{ + "tool_name":"Etymology Meaning", + "tool_description":"API that returns the etymological meaning of specified word", + "title":"Etymology Meaning", + "pricing":"FREE", + "score":{ + "avgServiceLevel":0, + "avgLatency":377, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/UrielAzevedo/api/etymology-meaning/", + "host":"etymology-meaning.p.rapidapi.com", + "api_list":[ + { + "name":"All Syntaxes", + "url":"https://etymology-meaning.p.rapidapi.com/all-syntaxes/{word}", + "description":"Returns the value for all synataxes available", + "method":"GET", + "required_parameters":[ + { + "name":"word", + "type":"string", + "description":"", + "default":"log" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://etymology-meaning.p.rapidapi.com/all-syntaxes/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"etymology-meaning.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Noun Search", + "url":"https://etymology-meaning.p.rapidapi.com/noun-search/{word}", + "description":"Returns noun meanings for specific word", + "method":"GET", + "required_parameters":[ + { + "name":"word", + "type":"string", + "description":"", + "default":"bar" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://etymology-meaning.p.rapidapi.com/noun-search/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"etymology-meaning.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Adjective Search", + "url":"https://etymology-meaning.p.rapidapi.com/adjective-search/{word}", + "description":"Adjective specific etymological meaning", + "method":"GET", + "required_parameters":[ + { + "name":"word", + "type":"string", + "description":"", + "default":"wonderful" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://etymology-meaning.p.rapidapi.com/adjective-search/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"etymology-meaning.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Verb Search", + "url":"https://etymology-meaning.p.rapidapi.com/verb-search/{word}", + "description":"Verb specific etymological meaning", + "method":"GET", + "required_parameters":[ + { + "name":"word", + "type":"string", + "description":"", + "default":"bar" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://etymology-meaning.p.rapidapi.com/verb-search/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"etymology-meaning.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/etymology_meaning/api.py b/toolbench/toolenv/tools/Communication/etymology_meaning/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bddea06fc112d091eb8b9a2b3b9fb5cf968e11f1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/etymology_meaning/api.py @@ -0,0 +1,92 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def all_syntaxes(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the value for all synataxes available" + + """ + url = f"https://etymology-meaning.p.rapidapi.com/all-syntaxes/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "etymology-meaning.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def noun_search(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns noun meanings for specific word" + + """ + url = f"https://etymology-meaning.p.rapidapi.com/noun-search/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "etymology-meaning.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def adjective_search(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Adjective specific etymological meaning" + + """ + url = f"https://etymology-meaning.p.rapidapi.com/adjective-search/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "etymology-meaning.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def verb_search(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Verb specific etymological meaning" + + """ + url = f"https://etymology-meaning.p.rapidapi.com/verb-search/{word}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "etymology-meaning.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/false_testing_avc.json b/toolbench/toolenv/tools/Communication/false_testing_avc.json new file mode 100644 index 0000000000000000000000000000000000000000..36e75058c35ac3d098b796b49c53dee20d7b9b47 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/false_testing_avc.json @@ -0,0 +1,74 @@ +{ + "tool_name": "False Testing AVC", + "tool_description": "False Testing AVC", + "title": "False Testing AVC", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/trucnguyentester022/api/false-testing-avc/", + "host": "false-testing-avc.p.rapidapi.com", + "api_list": [ + { + "name": "Truc Nguyen TESTING 01 ABC", + "url": "https://false-testing-avc.p.rapidapi.com/", + "description": "Truc Nguyen TESTING 01 ABC", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://false-testing-avc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"false-testing-avc.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Truc Nguyen TESTING 01", + "url": "https://false-testing-avc.p.rapidapi.com/", + "description": "Truc Nguyen TESTING 01", + "method": "PUT", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://false-testing-avc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"false-testing-avc.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Endpoint AD", + "url": "https://false-testing-avc.p.rapidapi.com/", + "description": "Endpoint AD", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://false-testing-avc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"false-testing-avc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Truc Nguyen TESTING 1a1adddddddddd_copy", + "url": "https://false-testing-avc.p.rapidapi.com/", + "description": "Truc Nguyen TESTING", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://false-testing-avc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"false-testing-avc.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Truc Nguyen TESTING 01 ABC", + "url": "https://false-testing-avc.p.rapidapi.com/", + "description": "Truc Nguyen TESTING 01 ABC", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://false-testing-avc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"false-testing-avc.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://false-testing-avc.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"false-testing-avc.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/false_testing_avc/api.py b/toolbench/toolenv/tools/Communication/false_testing_avc/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e33d95d96b9fca8f08caaf36679957201e9dced3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/false_testing_avc/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def endpoint_ad(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint AD" + + """ + url = f"https://false-testing-avc.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "false-testing-avc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def truc_nguyen_testing_1a1adddddddddd_copy(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Truc Nguyen TESTING" + + """ + url = f"https://false-testing-avc.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "false-testing-avc.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/feedr.json b/toolbench/toolenv/tools/Communication/feedr.json new file mode 100644 index 0000000000000000000000000000000000000000..a3cdc9d00449654809438a4cf9070a37d5269437 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/feedr.json @@ -0,0 +1,26 @@ +{ + "product_id": "53aa5ad8e4b0a9b1348db40a", + "tool_description": "RSS cloud proxy service for web publishers, developers and readers.\r\nMore @ www.feedr.io", + "home_url": "https://rapidapi.com/feedr/api/feedr/", + "name": "Feedr", + "title": "Feedr", + "pricing": "FREE", + "tool_name": "Feedr", + "score": null, + "host": "feedr.p.rapidapi.com", + "api_list": [ + { + "name": "Create", + "url": "https://feedr.p.rapidapi.com/s", + "description": "The method creates a new seed based on the provided link and retrieves feed entries. If the seed for the link already exists, nothing happens. Returns the status and the created seed.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://feedr.p.rapidapi.com/s\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"feedr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://feedr.p.rapidapi.com/s\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"feedr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/flask.json b/toolbench/toolenv/tools/Communication/flask.json new file mode 100644 index 0000000000000000000000000000000000000000..f70e8355c004095321f0c5bf99f7a67b835140c2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/flask.json @@ -0,0 +1,55 @@ +{ + "tool_name":"Flask", + "tool_description":"Transtate for flask app", + "title":"Flask", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/perepiskass/api/flask11/", + "host":"flask11.p.rapidapi.com", + "api_list":[ + { + "name":"flask_app", + "url":"https://flask11.p.rapidapi.com/nlp-translation.p.rapidapi.com/v1/translate", + "description":"flask application", + "method":"GET", + "required_parameters":[ + { + "name":"X-RapidAPI-Key", + "type":"STRING", + "description":"", + "default":"e956c83a55msh49fac5ba7eaca37p1175f2jsnda43c746caea" + }, + { + "name":"X-RapidAPI-Host", + "type":"STRING", + "description":"", + "default":"nlp-translation.p.rapidapi.com" + }, + { + "name":"text", + "type":"STRING", + "description":"", + "default":"Hello" + }, + { + "name":"from", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"to", + "type":"STRING", + "description":"", + "default":"ru" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://flask11.p.rapidapi.com/nlp-translation.p.rapidapi.com/v1/translate\"\nquerystring = {\"X-RapidAPI-Key\": x_rapidapi_key, \"X-RapidAPI-Host\": x_rapidapi_host, \"text\": text, \"from\": is_from, \"to\": to}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"flask11.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/flask/api.py b/toolbench/toolenv/tools/Communication/flask/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2cdfec7c4428328d4a196628f86fb7d6eb242819 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/flask/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def flask_app(x_rapidapi_key: str, x_rapidapi_host: str, text: str, is_from: str, to: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "flask application" + + """ + url = f"https://flask11.p.rapidapi.com/nlp-translation.p.rapidapi.com/v1/translate" + querystring = {'X-RapidAPI-Key': x_rapidapi_key, 'X-RapidAPI-Host': x_rapidapi_host, 'text': text, 'from': is_from, 'to': to, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "flask11.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/fleep.json b/toolbench/toolenv/tools/Communication/fleep.json new file mode 100644 index 0000000000000000000000000000000000000000..4aa127fad45d5c91cb25b99b19969b4071778180 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/fleep.json @@ -0,0 +1,3668 @@ +{ + "product_id": "660", + "tool_description": "Fleep is a messenger for your teams and projects.", + "home_url": "https://rapidapi.com/raygorodskij/api/Fleep/", + "name": "Fleep", + "title": "Fleep", + "pricing": "FREE", + "tool_name": "Fleep", + "score": null, + "host": "FleepraygorodskijV1.p.rapidapi.com", + "api_list": [ + { + "name": "addEmailAlias", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/addEmailAlias", + "description": "Register email aliases for given account. Requires confirmation through email. All conversations are transferred under primary account as a result.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email to be registered as alias.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/addEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/addEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "addMembersToConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/addMembersToConversation", + "description": "Add member to the conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Add members to the conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email address.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/addMembersToConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"email\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/addMembersToConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"email\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "addReminder", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/addReminder", + "description": "Informs backend that given reminder has been show to the user.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "reminderId", + "type": "STRING", + "description": "Reminder id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/addReminder\"\nquerystring = {\"tokenId\": \"\", \"reminderId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/addReminder\"\nquerystring = {\"tokenId\": \"\", \"reminderId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "autojoinConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/autojoinConversation", + "description": "Autojoin conversation if not member yet.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationUrlKey", + "type": "STRING", + "description": "Either convinfo.conversation_id or last part of convinfo.autojoin_url (KEY).", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/autojoinConversation\"\nquerystring = {\"conversationUrlKey\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/autojoinConversation\"\nquerystring = {\"conversationUrlKey\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "autojoinToTeam", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/autojoinToTeam", + "description": "Autojoin team if not member yet. Autojoin url has following format https://fleep.io/team/KEY", + "method": "POST", + "required_parameters": [ + { + "name": "teamUrlKey", + "type": "STRING", + "description": "Either teaminfo.team_id or last part of teaminfo.autojoin_url (KEY).", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/autojoinToTeam\"\nquerystring = {\"teamUrlKey\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/autojoinToTeam\"\nquerystring = {\"teamUrlKey\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "changeConversationTopic", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/changeConversationTopic", + "description": "Change conversation topic.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "topic", + "type": "STRING", + "description": "Conversation topic.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/changeConversationTopic\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"topic\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/changeConversationTopic\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"topic\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "checkPermissions", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/checkPermissions", + "description": "Check if account has modification rights on the conversation. Same check is done in all conversation services so this here mainly helps with testing and documentation at first.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Check permission conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/checkPermissions\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/checkPermissions\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "configureConversationWebhook", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/configureConversationWebhook", + "description": "Change webhook name and/or other settings.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "hookKey", + "type": "STRING", + "description": "Hook key.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "hookName", + "type": "STRING", + "description": "Name for hook.", + "default": "" + }, + { + "name": "outgoingDisabled", + "type": "SELECT", + "description": "Whether outgoing URL functionality is disabled or not only relevant for plain and slack hooks.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "outgoingUrl", + "type": "STRING", + "description": "URL for outgoing messages only relevant for plain and slack hooks.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/configureConversationWebhook\"\nquerystring = {\"conversationId\": \"\", \"hookName\": \"\", \"ticket\": \"\", \"hookKey\": \"\", \"tokenId\": \"\", \"outgoingDisabled\": \"\", \"fromMessageNumber\": \"\", \"outgoingUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/configureConversationWebhook\"\nquerystring = {\"conversationId\": \"\", \"hookName\": \"\", \"ticket\": \"\", \"hookKey\": \"\", \"tokenId\": \"\", \"outgoingDisabled\": \"\", \"fromMessageNumber\": \"\", \"outgoingUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "configureTeam", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/configureTeam", + "description": "Add or remove members and change team name.", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Id of team.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "addEmail", + "type": "STRING", + "description": "Email to be added to team.", + "default": "" + }, + { + "name": "teamName", + "type": "STRING", + "description": "Team name.", + "default": "" + }, + { + "name": "removeEmail", + "type": "STRING", + "description": "Email to be removed from team.", + "default": "" + }, + { + "name": "isManaged", + "type": "SELECT", + "description": "Set team managed or not.", + "default": "" + }, + { + "name": "isAutojoin", + "type": "SELECT", + "description": "Is autojoin enabled.", + "default": "" + }, + { + "name": "addConversations", + "type": "LIST", + "description": "List of conversation id's to add.", + "default": "" + }, + { + "name": "removeConversations", + "type": "LIST", + "description": "List of conversation id's to remove.", + "default": "" + }, + { + "name": "addAccountIds", + "type": "LIST", + "description": "List of account ids to be added to team.", + "default": "" + }, + { + "name": "removeAccountIds", + "type": "LIST", + "description": "List of account ids to be removed from team.", + "default": "" + }, + { + "name": "kickAccountIds", + "type": "LIST", + "description": "List of account ids to be kicked from team , together with confistacion of managed history.", + "default": "" + }, + { + "name": "addAdminIds", + "type": "LIST", + "description": "Add team admins.", + "default": "" + }, + { + "name": "removeAdminIds", + "type": "LIST", + "description": "Remove team admins.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/configureTeam\"\nquerystring = {\"teamId\": \"\", \"ticket\": \"\", \"addEmail\": \"\", \"teamName\": \"\", \"tokenId\": \"\", \"removeEmail\": \"\", \"isManaged\": \"\", \"isAutojoin\": \"\", \"addConversations\": \"\", \"removeConversations\": \"\", \"addAccountIds\": \"\", \"removeAccountIds\": \"\", \"kickAccountIds\": \"\", \"addAdminIds\": \"\", \"removeAdminIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/configureTeam\"\nquerystring = {\"teamId\": \"\", \"ticket\": \"\", \"addEmail\": \"\", \"teamName\": \"\", \"tokenId\": \"\", \"removeEmail\": \"\", \"isManaged\": \"\", \"isAutojoin\": \"\", \"addConversations\": \"\", \"removeConversations\": \"\", \"addAccountIds\": \"\", \"removeAccountIds\": \"\", \"kickAccountIds\": \"\", \"addAdminIds\": \"\", \"removeAdminIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "confirmAccount", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/confirmAccount", + "description": "Confirm receiving email with confirmation code and activate account.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "notificationId", + "type": "STRING", + "description": "notification token", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/confirmAccount\"\nquerystring = {\"ticket\": \"\", \"notificationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/confirmAccount\"\nquerystring = {\"ticket\": \"\", \"notificationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "confirmAndConfigureAccount", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/confirmAndConfigureAccount", + "description": "Confirm receiving email and configure account.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "notificationId", + "type": "STRING", + "description": "notification token", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fleepAddress", + "type": "STRING", + "description": "Fleep address.", + "default": "" + }, + { + "name": "displayName", + "type": "STRING", + "description": "Display name.", + "default": "" + }, + { + "name": "password", + "type": "STRING", + "description": "User password.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/confirmAndConfigureAccount\"\nquerystring = {\"ticket\": \"\", \"fleepAddress\": \"\", \"displayName\": \"\", \"tokenId\": \"\", \"password\": \"\", \"notificationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/confirmAndConfigureAccount\"\nquerystring = {\"ticket\": \"\", \"fleepAddress\": \"\", \"displayName\": \"\", \"tokenId\": \"\", \"password\": \"\", \"notificationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "confirmEmailAlias", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/confirmEmailAlias", + "description": "Confirm that alias email received confirmation code.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "notificationId", + "type": "STRING", + "description": "Notification id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/confirmEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"notificationId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/confirmEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"notificationId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "convertConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/convertConversation", + "description": "Convert conversation to new API.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Convert conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/convertConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/convertConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "copyMessage", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/copyMessage", + "description": "Copy message from another chat.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Number of pinned message.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "toConversationId", + "type": "STRING", + "description": "Destination conversation.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/copyMessage\"\nquerystring = {\"tokenId\": \"\", \"messageNumber\": \"\", \"fromMessageNumber\": \"\", \"ticket\": \"\", \"conversationId\": \"\", \"toConversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/copyMessage\"\nquerystring = {\"tokenId\": \"\", \"messageNumber\": \"\", \"fromMessageNumber\": \"\", \"ticket\": \"\", \"conversationId\": \"\", \"toConversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createAccount", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/createAccount", + "description": "Create new account and send verification email.", + "method": "POST", + "required_parameters": [ + { + "name": "password", + "type": "STRING", + "description": "Initial password to set.", + "default": "" + }, + { + "name": "displayName", + "type": "STRING", + "description": "Name to be displayed in conversations.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "User email.", + "default": "" + }, + { + "name": "useCode", + "type": "SELECT", + "description": "Use flow based on registration code.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "referer", + "type": "STRING", + "description": "Page that referred used to fleep.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createAccount\"\nquerystring = {\"password\": \"\", \"referer\": \"\", \"displayName\": \"\", \"email\": \"\", \"useCode\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createAccount\"\nquerystring = {\"password\": \"\", \"referer\": \"\", \"displayName\": \"\", \"email\": \"\", \"useCode\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/createConversation", + "description": "Create new conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "topic", + "type": "STRING", + "description": "Conversation topic.", + "default": "" + }, + { + "name": "subject", + "type": "STRING", + "description": "Subject for first message.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email address.", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Initial message into the conversation.", + "default": "" + }, + { + "name": "isDisclose", + "type": "SELECT", + "description": "Enable/disable auto disclose.", + "default": "" + }, + { + "name": "isInvite", + "type": "SELECT", + "description": "Send out invite emails to fresh fleepers", + "default": "" + }, + { + "name": "isAutojoin", + "type": "SELECT", + "description": "Allow autojoin to the conversation.", + "default": "" + }, + { + "name": "fwdConversationId", + "type": "STRING", + "description": "Forwarded conversation id (for forwarding html messages).", + "default": "" + }, + { + "name": "isList", + "type": "SELECT", + "description": "Behaves as mailing list. Set true for group conversations with more than two members as a default.", + "default": "" + }, + { + "name": "mkConvType", + "type": "SELECT", + "description": "Conversation type.", + "default": "" + }, + { + "name": "isManaged", + "type": "SELECT", + "description": "Is this conversation managed conversation.", + "default": "" + }, + { + "name": "forkConversationId", + "type": "STRING", + "description": "Parent conversation.", + "default": "" + }, + { + "name": "attachments", + "type": "LIST", + "description": "List of AttachmentInfos to be added to conversation.", + "default": "" + }, + { + "name": "teamIds", + "type": "LIST", + "description": "Add teams to conversation.", + "default": "" + }, + { + "name": "accountIds", + "type": "LIST", + "description": "List of account ids.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createConversation\"\nquerystring = {\"topic\": \"\", \"ticket\": \"\", \"subject\": \"\", \"tokenId\": \"\", \"email\": \"\", \"message\": \"\", \"isDisclose\": \"\", \"isInvite\": \"\", \"isAutojoin\": \"\", \"fwdConversationId\": \"\", \"isList\": \"\", \"mkConvType\": \"\", \"isManaged\": \"\", \"forkConversationId\": \"\", \"attachments\": \"\", \"teamIds\": \"\", \"accountIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createConversation\"\nquerystring = {\"topic\": \"\", \"ticket\": \"\", \"subject\": \"\", \"tokenId\": \"\", \"email\": \"\", \"message\": \"\", \"isDisclose\": \"\", \"isInvite\": \"\", \"isAutojoin\": \"\", \"fwdConversationId\": \"\", \"isList\": \"\", \"mkConvType\": \"\", \"isManaged\": \"\", \"forkConversationId\": \"\", \"attachments\": \"\", \"teamIds\": \"\", \"accountIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createConversationWebhook", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/createConversationWebhook", + "description": "Create webhook for given conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "hookName", + "type": "STRING", + "description": "Name for hook.", + "default": "" + }, + { + "name": "outgoingUrl", + "type": "STRING", + "description": "URL for outgoing messages only relevant for plain and slack hooks.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "externalObjectId", + "type": "STRING", + "description": "Id of the object in external system that should be hooked only relevant for trello (board id).", + "default": "" + }, + { + "name": "hookType", + "type": "SELECT", + "description": "Select hook type.", + "default": "" + }, + { + "name": "outgoingDisabled", + "type": "SELECT", + "description": "Whether outgoing URL functionality is disabled or not only relevant for plain and slack hooks.", + "default": "" + }, + { + "name": "externalAccountId", + "type": "STRING", + "description": "Id of the external account (see ExternalAccountInfo)only relevant for trello.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createConversationWebhook\"\nquerystring = {\"hookName\": \"\", \"outgoingUrl\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\", \"externalObjectId\": \"\", \"hookType\": \"\", \"conversationId\": \"\", \"outgoingDisabled\": \"\", \"ticket\": \"\", \"externalAccountId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createConversationWebhook\"\nquerystring = {\"hookName\": \"\", \"outgoingUrl\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\", \"externalObjectId\": \"\", \"hookType\": \"\", \"conversationId\": \"\", \"outgoingDisabled\": \"\", \"ticket\": \"\", \"externalAccountId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createTeam", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/createTeam", + "description": "Create team with given members and conversations.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "teamName", + "type": "STRING", + "description": "Team name.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "addEmail", + "type": "STRING", + "description": "Email to be added to team.", + "default": "" + }, + { + "name": "isManaged", + "type": "SELECT", + "description": "Set team managed or not.", + "default": "" + }, + { + "name": "isAutojoin", + "type": "SELECT", + "description": "Is autojoin enabled.", + "default": "" + }, + { + "name": "addConversations", + "type": "LIST", + "description": "List of conversation id's to add.", + "default": "" + }, + { + "name": "addAccountIds", + "type": "LIST", + "description": "List of account ids to be added to team.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createTeam\"\nquerystring = {\"tokenId\": \"\", \"addEmail\": \"\", \"ticket\": \"\", \"teamName\": \"\", \"isManaged\": \"\", \"isAutojoin\": \"\", \"addConversations\": \"\", \"addAccountIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createTeam\"\nquerystring = {\"tokenId\": \"\", \"addEmail\": \"\", \"ticket\": \"\", \"teamName\": \"\", \"isManaged\": \"\", \"isAutojoin\": \"\", \"addConversations\": \"\", \"addAccountIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createVideoCall", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/createVideoCall", + "description": "Create a new (video)call.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "provider", + "type": "STRING", + "description": "Call service provider (appear.in).", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Create video call by conversation id.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "roomName", + "type": "STRING", + "description": "If not provided, room will have an unique random name.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createVideoCall\"\nquerystring = {\"tokenId\": \"\", \"roomName\": \"\", \"provider\": \"\", \"ticket\": \"\", \"conversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/createVideoCall\"\nquerystring = {\"tokenId\": \"\", \"roomName\": \"\", \"provider\": \"\", \"ticket\": \"\", \"conversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/deleteConversation", + "description": "Remove conversation from your conversation list. If you don\u2019t leave conversation before deleting it will still reappear when someone writes in it.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Delete conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/deleteConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/deleteConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteCurrentAvatar", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/deleteCurrentAvatar", + "description": "Delete current avatar.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/deleteCurrentAvatar\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/deleteCurrentAvatar\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteMessageFromConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/deleteMessageFromConversation", + "description": "Delete message from conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Number of pinned message.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "attachmentId", + "type": "STRING", + "description": "Delete only given attachment.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/deleteMessageFromConversation\"\nquerystring = {\"conversationId\": \"\", \"tokenId\": \"\", \"messageNumber\": \"\", \"fromMessageNumber\": \"\", \"attachmentId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/deleteMessageFromConversation\"\nquerystring = {\"conversationId\": \"\", \"tokenId\": \"\", \"messageNumber\": \"\", \"fromMessageNumber\": \"\", \"attachmentId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "describeFofContact", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/describeFofContact", + "description": "Provide description for the contact that will be displayed only to the user.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contactId", + "type": "STRING", + "description": "Contact id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "phoneNumber", + "type": "STRING", + "description": "Set users phone number.", + "default": "" + }, + { + "name": "contactName", + "type": "STRING", + "description": "Description to set.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/describeFofContact\"\nquerystring = {\"ticket\": \"\", \"contactId\": \"\", \"phoneNumber\": \"\", \"contactName\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/describeFofContact\"\nquerystring = {\"ticket\": \"\", \"contactId\": \"\", \"phoneNumber\": \"\", \"contactName\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeTeam", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTeam", + "description": "Synchronize team.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "ConversationId to prove team access.", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "Team id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTeam\"\nquerystring = {\"tokenId\": \"\", \"conversationId\": \"\", \"teamId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTeam\"\nquerystring = {\"tokenId\": \"\", \"conversationId\": \"\", \"teamId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "discloseAllConversationsHistory", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/discloseAllConversationsHistory", + "description": "Disclose conversation history to members. All content of last membership is disclosed. ", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Disclose conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email address.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/discloseAllConversationsHistory\"\nquerystring = {\"conversationId\": \"\", \"fromMessageNumber\": \"\", \"ticket\": \"\", \"email\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/discloseAllConversationsHistory\"\nquerystring = {\"conversationId\": \"\", \"fromMessageNumber\": \"\", \"ticket\": \"\", \"email\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "discloseConversationHistory", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/discloseConversationHistory", + "description": "Disclose conversation history to members until given message.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email addresses.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Disclose conversation by id.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Disclose up to this message.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/discloseConversationHistory\"\nquerystring = {\"tokenId\": \"\", \"fromMessageNumber\": \"\", \"email\": \"\", \"messageNumber\": \"\", \"ticket\": \"\", \"conversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/discloseConversationHistory\"\nquerystring = {\"tokenId\": \"\", \"fromMessageNumber\": \"\", \"email\": \"\", \"messageNumber\": \"\", \"ticket\": \"\", \"conversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "dropIndexDataToCache", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/dropIndexDataToCache", + "description": "Drop user\u2019s index from cache.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/dropIndexDataToCache\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/dropIndexDataToCache\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "editAccountSettings", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/editAccountSettings", + "description": "Change account related settings.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "phoneNumber", + "type": "STRING", + "description": "User's phone number.", + "default": "" + }, + { + "name": "password", + "type": "STRING", + "description": "New password.", + "default": "" + }, + { + "name": "primaryEmail", + "type": "STRING", + "description": "Set new primary email (it has to be confirmed as alias first).", + "default": "" + }, + { + "name": "isAutomuteEnabled", + "type": "SELECT", + "description": "Enable/disable incoming email automute.", + "default": "" + }, + { + "name": "isFullPrivacy", + "type": "SELECT", + "description": "Stop sending out reading writing activity.", + "default": "" + }, + { + "name": "isNewsletterDisabled", + "type": "SELECT", + "description": "Enable/disable newsletter sending", + "default": "" + }, + { + "name": "displayName", + "type": "STRING", + "description": "Name displayed instead of email in chats.", + "default": "" + }, + { + "name": "clientSettings", + "type": "JSON", + "description": "Json encoded dict of changed client settings.", + "default": "" + }, + { + "name": "fleepAddress", + "type": "STRING", + "description": "Set fleep address (results in error if account already has one).", + "default": "" + }, + { + "name": "oldPassword", + "type": "STRING", + "description": "Required when submitting new password.", + "default": "" + }, + { + "name": "emailInterval", + "type": "STRING", + "description": "Email interval.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/editAccountSettings\"\nquerystring = {\"phoneNumber\": \"\", \"password\": \"\", \"primaryEmail\": \"\", \"tokenId\": \"\", \"isAutomuteEnabled\": \"\", \"isFullPrivacy\": \"\", \"isNewsletterDisabled\": \"\", \"displayName\": \"\", \"clientSettings\": \"\", \"fleepAddress\": \"\", \"oldPassword\": \"\", \"emailInterval\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/editAccountSettings\"\nquerystring = {\"phoneNumber\": \"\", \"password\": \"\", \"primaryEmail\": \"\", \"tokenId\": \"\", \"isAutomuteEnabled\": \"\", \"isFullPrivacy\": \"\", \"isNewsletterDisabled\": \"\", \"displayName\": \"\", \"clientSettings\": \"\", \"fleepAddress\": \"\", \"oldPassword\": \"\", \"emailInterval\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "editConversationMessage", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/editConversationMessage", + "description": "Edit conversation message.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Number of pinned message.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "message", + "type": "STRING", + "description": "Message content.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "attachments", + "type": "LIST", + "description": "List of AttachmentInfo objects to be added.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/editConversationMessage\"\nquerystring = {\"tokenId\": \"\", \"messageNumber\": \"\", \"conversationId\": \"\", \"ticket\": \"\", \"message\": \"\", \"fromMessageNumber\": \"\", \"attachments\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/editConversationMessage\"\nquerystring = {\"tokenId\": \"\", \"messageNumber\": \"\", \"conversationId\": \"\", \"ticket\": \"\", \"message\": \"\", \"fromMessageNumber\": \"\", \"attachments\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "exportConversationHistory", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/exportConversationHistory", + "description": "Export conversation history. User is notified when files are available for download.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "exportAction", + "type": "STRING", + "description": "What to export: history_all - conversation history, all file types.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "If set, generate files for this conversation only,and return ConvInfo else return ContactInfo.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/exportConversationHistory\"\nquerystring = {\"ticket\": \"\", \"exportAction\": \"\", \"conversationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/exportConversationHistory\"\nquerystring = {\"ticket\": \"\", \"exportAction\": \"\", \"conversationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getActivity", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getActivity", + "description": "Show writing pen and/or pinboard editing status. This works both ways. Any call activates this conversation for this account. So to start receiving activity call with empty parameters.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "isWriting", + "type": "SELECT", + "description": "true - writing, false - cancel", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Edited flow or pinboard message number.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getActivity\"\nquerystring = {\"ticket\": \"\", \"isWriting\": \"\", \"conversationId\": \"\", \"messageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getActivity\"\nquerystring = {\"ticket\": \"\", \"isWriting\": \"\", \"conversationId\": \"\", \"messageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getAllConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getAllConversation", + "description": "List all conversations for this account. Same conversations may pop up several times due to shifting order caused by incoming messages. Stop calling when you receive empty conversation list.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "synchronizeHorizon", + "type": "NUMBER", + "description": "Keeps track of conversations loaded set 0 for first call.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getAllConversation\"\nquerystring = {\"ticket\": \"\", \"synchronizeHorizon\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getAllConversation\"\nquerystring = {\"ticket\": \"\", \"synchronizeHorizon\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClassificators", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getClassificators", + "description": "Get list of classificators.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getClassificators\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getClassificators\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getContactsRecordList", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getContactsRecordList", + "description": "Lookup accounts.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "lookupList", + "type": "LIST", + "description": "List of lookup strings.", + "default": "" + }, + { + "name": "ignoreList", + "type": "LIST", + "description": "List of accountId's to ignore.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getContactsRecordList\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\", \"lookupList\": \"\", \"ignoreList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getContactsRecordList\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\", \"lookupList\": \"\", \"ignoreList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getContentBySearchQuery", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getContentBySearchQuery", + "description": "Set conversation read horizon for this account. Used when client determines that it has shown messages to user for long enough for them to get read or user wants to move read horizon up again.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "keywords", + "type": "LIST", + "description": "Query search for content.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Limit search to one conversation.", + "default": "" + }, + { + "name": "needSuggestions", + "type": "SELECT", + "description": "Request suggestion list.", + "default": "" + }, + { + "name": "ignoreConversationIds", + "type": "LIST", + "description": "Client side matches no need to search duplicate matches.", + "default": "" + }, + { + "name": "searchTypes", + "type": "LIST", + "description": "Do only search in specific areas`topic` - topic search only;`chat` - search in message content; `file` - search in file names; `pin` - search in pins;`task` - search in tasks.`subject` - search in email subjects;", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getContentBySearchQuery\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\", \"needSuggestions\": \"\", \"keywords\": \"\", \"ignoreConversationIds\": \"\", \"searchTypes\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getContentBySearchQuery\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\", \"needSuggestions\": \"\", \"keywords\": \"\", \"ignoreConversationIds\": \"\", \"searchTypes\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getConversationWebhook", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getConversationWebhook", + "description": "Show webhooks in conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation by id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getConversationWebhook\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getConversationWebhook\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getExternalAccountInfo", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getExternalAccountInfo", + "description": "Get External Account Info.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "mkPermissionType", + "type": "SELECT", + "description": "Type of permissions that external account has granted to Fleep.", + "default": "" + }, + { + "name": "mkExternalAccountType", + "type": "SELECT", + "description": "Type of the connected external account.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getExternalAccountInfo\"\nquerystring = {\"mkPermissionType\": \"\", \"tokenId\": \"\", \"ticket\": \"\", \"mkExternalAccountType\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getExternalAccountInfo\"\nquerystring = {\"mkPermissionType\": \"\", \"tokenId\": \"\", \"ticket\": \"\", \"mkExternalAccountType\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getNextBatchOfConversations", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getNextBatchOfConversations", + "description": "Get next or previous batch of conversations.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationIds", + "type": "LIST", + "description": "List of conversation id's to synchronize.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "mkInitMode", + "type": "SELECT", + "description": "`ic_header` - header only.`ic_tiny` - for minimal.`ic_full` - ready for display.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getNextBatchOfConversations\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"mkInitMode\": \"\", \"conversationIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getNextBatchOfConversations\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"mkInitMode\": \"\", \"conversationIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getNotificationIdForFurtherRequests", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getNotificationIdForFurtherRequests", + "description": "Get notificationId for further requests.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "registrationCode", + "type": "STRING", + "description": "Registration code.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "registrationMail", + "type": "STRING", + "description": "Registration mail.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "notificationId", + "type": "STRING", + "description": "Notification id.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getNotificationIdForFurtherRequests\"\nquerystring = {\"tokenId\": \"\", \"registrationCode\": \"\", \"notificationId\": \"\", \"ticket\": \"\", \"registrationMail\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getNotificationIdForFurtherRequests\"\nquerystring = {\"tokenId\": \"\", \"registrationCode\": \"\", \"notificationId\": \"\", \"ticket\": \"\", \"registrationMail\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSuggestWords", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getSuggestWords", + "description": "Suggest words.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "keywords", + "type": "LIST", + "description": "Query search for suggest words.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getSuggestWords\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\", \"conversationId\": \"\", \"keywords\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getSuggestWords\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\", \"conversationId\": \"\", \"keywords\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getTrelloBoardList", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/getTrelloBoardList", + "description": "Get Trello board list.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "mkPermissionType", + "type": "SELECT", + "description": "Type of permissions that external account has granted to Fleep.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "externalAccountId", + "type": "STRING", + "description": "Id of the external account (see ExternalAccountInfo).", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getTrelloBoardList\"\nquerystring = {\"tokenId\": \"\", \"mkPermissionType\": \"\", \"ticket\": \"\", \"externalAccountId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/getTrelloBoardList\"\nquerystring = {\"tokenId\": \"\", \"mkPermissionType\": \"\", \"ticket\": \"\", \"externalAccountId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "hideContact", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/hideContact", + "description": "Hide contacts from this user\u2019s contactlist.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contactIds", + "type": "LIST", + "description": "List of contacts to hide.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/hideContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contactIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/hideContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contactIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "hideConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/hideConversation", + "description": "Hide conversation until new messages arrives. Useful for people who want to keep their inbox clear.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Hide conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/hideConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/hideConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "importContact", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/importContact", + "description": "Import contacts into users contactlist. Used for gmail contact import.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contacts", + "type": "ARRAY", + "description": "List of ContactImport objects.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/importContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contacts\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/importContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contacts\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "leaveConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/leaveConversation", + "description": "Leave the conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Leave conversation by id.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/leaveConversation\"\nquerystring = {\"fromMessageNumber\": \"\", \"tokenId\": \"\", \"ticket\": \"\", \"conversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/leaveConversation\"\nquerystring = {\"fromMessageNumber\": \"\", \"tokenId\": \"\", \"ticket\": \"\", \"conversationId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listenForNotificationsFromFleep", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/listenForNotificationsFromFleep", + "description": "Use long poll to listen for notifications from Fleep.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "eventHorizon", + "type": "NUMBER", + "description": "Latest event client has seen.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "wait", + "type": "SELECT", + "description": "Set to False if you want to get latest events but not stay waiting if there isn't any.", + "default": "" + }, + { + "name": "downloadUrl", + "type": "STRING", + "description": "url from where to download new binary sent when server decides that client is too old and needs to be upgraded.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/listenForNotificationsFromFleep\"\nquerystring = {\"wait\": \"\", \"tokenId\": \"\", \"downloadUrl\": \"\", \"eventHorizon\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/listenForNotificationsFromFleep\"\nquerystring = {\"wait\": \"\", \"tokenId\": \"\", \"downloadUrl\": \"\", \"eventHorizon\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "loadIndexDataToCache", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/loadIndexDataToCache", + "description": "Load current user\u2019s index data to cache.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/loadIndexDataToCache\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/loadIndexDataToCache\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "loginAccount", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/loginAccount", + "description": "Handle user login business logic. If login is successful, it sets session token and returns account info.", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "CREDENTIALS", + "description": "User email.", + "default": "" + }, + { + "name": "password", + "type": "CREDENTIALS", + "description": "User password.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "rememberMe", + "type": "SELECT", + "description": "Whether user wants long-term session cookie.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/loginAccount\"\nquerystring = {\"rememberMe\": \"\", \"email\": \"\", \"password\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/loginAccount\"\nquerystring = {\"rememberMe\": \"\", \"email\": \"\", \"password\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "logoutAccount", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/logoutAccount", + "description": "Close session.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/logoutAccount\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/logoutAccount\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "markConversationAsRead", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/markConversationAsRead", + "description": "Mark conversation as read regardless of how many unread messages there are. Useful for marking read conversations that you are not planning to read. For example error log after it has rolled up thousands of messages. Returns init conversation stream so the client side conversation will be reset to new read position and all the possibly skipped messages will not get misinterpreted.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Leave conversation by id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "mkInitMode", + "type": "SELECT", + "description": "`ic_tiny` - for minimal.`ic_full` - ready for display.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/markConversationAsRead\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\", \"mkInitMode\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/markConversationAsRead\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\", \"mkInitMode\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeTeamsList", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTeamsList", + "description": "Synchronize teams.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation by id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "teamIds", + "type": "LIST", + "description": "Add teams to conversation.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTeamsList\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\", \"teamIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTeamsList\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\", \"teamIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "markMessageAsRead", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/markMessageAsRead", + "description": "Set conversation read horizon for this account. Used when client determines that it has shown messages to user for long enough for them to get read or user wants to move read horizon up again.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Client read horizon. Last message number that we have shown to user. We update database and send notifications to other connected clients if it is larger than current value in database.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/markMessageAsRead\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"fromMessageNumber\": \"\", \"messageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/markMessageAsRead\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"fromMessageNumber\": \"\", \"messageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "removeContactFromConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/removeContactFromConversation", + "description": "Remove contact from conversation list dialog suggestions.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contactId", + "type": "STRING", + "description": "Account id to synchronize.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeContactFromConversation\"\nquerystring = {\"ticket\": \"\", \"contactId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeContactFromConversation\"\nquerystring = {\"ticket\": \"\", \"contactId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "removeConversationWebhook", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/removeConversationWebhook", + "description": "Remove webhook from conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "hookKey", + "type": "STRING", + "description": "Key used as identifier.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeConversationWebhook\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"hookKey\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeConversationWebhook\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"hookKey\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "removeEmailAlias", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/removeEmailAlias", + "description": "Remove email alias from given account.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email to be removed.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "removeMembersFromConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/removeMembersFromConversation", + "description": "Remove members from the conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Email address.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Leave conversation by id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeMembersFromConversation\"\nquerystring = {\"ticket\": \"\", \"email\": \"\", \"conversationId\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeMembersFromConversation\"\nquerystring = {\"ticket\": \"\", \"email\": \"\", \"conversationId\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "removeTeam", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/removeTeam", + "description": "Remove team.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "Team id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeTeam\"\nquerystring = {\"tokenId\": \"\", \"teamId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/removeTeam\"\nquerystring = {\"tokenId\": \"\", \"teamId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "repeatEmailCode", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/repeatEmailCode", + "description": "Trigger registration code email.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "User email.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "referer", + "type": "STRING", + "description": "Page that referred used to fleep.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/repeatEmailCode\"\nquerystring = {\"tokenId\": \"\", \"referer\": \"\", \"ticket\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/repeatEmailCode\"\nquerystring = {\"tokenId\": \"\", \"referer\": \"\", \"ticket\": \"\", \"email\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendMessage", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/sendMessage", + "description": "Send message to flow.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Message content.", + "default": "" + }, + { + "name": "isRetry", + "type": "SELECT", + "description": "Client is retrying same message send n'th time. Will fail if fromMessageNumber != lastMessageNumber.", + "default": "" + }, + { + "name": "attachments", + "type": "LIST", + "description": "List of attachment urls.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/sendMessage\"\nquerystring = {\"ticket\": \"\", \"fromMessageNumber\": \"\", \"conversationId\": \"\", \"message\": \"\", \"isRetry\": \"\", \"tokenId\": \"\", \"attachments\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/sendMessage\"\nquerystring = {\"ticket\": \"\", \"fromMessageNumber\": \"\", \"conversationId\": \"\", \"message\": \"\", \"isRetry\": \"\", \"tokenId\": \"\", \"attachments\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendPokeEven", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/sendPokeEven", + "description": "Send poke event, used for testing synchronize between clients.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Disclose up to this message.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "isBgPoke", + "type": "SELECT", + "description": "Go through bgworker.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/sendPokeEven\"\nquerystring = {\"tokenId\": \"\", \"messageNumber\": \"\", \"isBgPoke\": \"\", \"fromMessageNumber\": \"\", \"conversationId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/sendPokeEven\"\nquerystring = {\"tokenId\": \"\", \"messageNumber\": \"\", \"isBgPoke\": \"\", \"fromMessageNumber\": \"\", \"conversationId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendResetPasswordLink", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/sendResetPasswordLink", + "description": "Request password reset email for active account. Password is not reset yet just email with rest token is sent out. User must click on link in email and then enter new passord to rest it.", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "User email.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/sendResetPasswordLink\"\nquerystring = {\"email\": \"\", \"tokenId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/sendResetPasswordLink\"\nquerystring = {\"email\": \"\", \"tokenId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setAccountFlag", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/setAccountFlag", + "description": "Set flag for given account that may be used by clients to display or hide content etc.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "clientFlag", + "type": "STRING", + "description": "Name of the flag to set or clear.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "boolValue", + "type": "SELECT", + "description": "Clear given flag from account.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/setAccountFlag\"\nquerystring = {\"boolValue\": \"\", \"tokenId\": \"\", \"clientFlag\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/setAccountFlag\"\nquerystring = {\"boolValue\": \"\", \"tokenId\": \"\", \"clientFlag\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setConversationAlerts", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/setConversationAlerts", + "description": "Set conversation alerts.", + "method": "POST", + "required_parameters": [ + { + "name": "mkAlertLevel", + "type": "SELECT", + "description": "`never` - do not alert for this conversation;`default` - default behaviour.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation by id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/setConversationAlerts\"\nquerystring = {\"mkAlertLevel\": \"\", \"conversationId\": \"\", \"ticket\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/setConversationAlerts\"\nquerystring = {\"mkAlertLevel\": \"\", \"conversationId\": \"\", \"ticket\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "storeConversationHeaderFields", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/storeConversationHeaderFields", + "description": "Store conversation header fields. Store only fields that have changed. Call only when cache is fully synced.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "mkAlertLevel", + "type": "SELECT", + "description": "`never` - do not alert for this conversation;`default` - default behaviour.", + "default": "" + }, + { + "name": "topic", + "type": "STRING", + "description": "Shared topic for conversation.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "readMessageNumber", + "type": "NUMBER", + "description": "New read horizon for conversation.", + "default": "" + }, + { + "name": "discloseEmail", + "type": "STRING", + "description": "Disclose conversation to these user.", + "default": "" + }, + { + "name": "addEmail", + "type": "STRING", + "description": "Email to be added (map to fleep accounts if possible).", + "default": "" + }, + { + "name": "snoozeInterval", + "type": "STRING", + "description": "For how long to snooze conversation in seconds.", + "default": "" + }, + { + "name": "removeEmail", + "type": "STRING", + "description": "email to be removed (map to fleep accounts if possible).", + "default": "" + }, + { + "name": "isDeleted", + "type": "SELECT", + "description": "Set to true to delete the conversation.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "isDisclose", + "type": "SELECT", + "description": "Enable/disable auto disclose.", + "default": "" + }, + { + "name": "isUrlPreviewDisabled", + "type": "SELECT", + "description": "Don't show url previews for all users.", + "default": "" + }, + { + "name": "hideMessageNumber", + "type": "NUMBER", + "description": "Hide the conversation from this message number.", + "default": "" + }, + { + "name": "isAutojoin", + "type": "SELECT", + "description": "Enable disable auto join.", + "default": "" + }, + { + "name": "isList", + "type": "SELECT", + "description": "Behaves as mailing list.", + "default": "" + }, + { + "name": "isDeletedByAdmin", + "type": "SELECT", + "description": "Delete by admin (affects all members).", + "default": "" + }, + { + "name": "canPost", + "type": "SELECT", + "description": "Set to false to leave the conversation.", + "default": "" + }, + { + "name": "isManaged", + "type": "SELECT", + "description": "Is this conversation managed conversation.", + "default": "" + }, + { + "name": "mkConvType", + "type": "SELECT", + "description": "Change conversation email behavior.", + "default": "" + }, + { + "name": "removeAccountIds", + "type": "LIST", + "description": "Account ids to be removed from the conversation.", + "default": "" + }, + { + "name": "kickAccountIds", + "type": "LIST", + "description": "Account ids to be removed from the conversation with no access to history - only useable with managed conversations.", + "default": "" + }, + { + "name": "labels", + "type": "LIST", + "description": "User labels for conversation.", + "default": "" + }, + { + "name": "labelIds", + "type": "LIST", + "description": "User labels for conversation.", + "default": "" + }, + { + "name": "addAccountIds", + "type": "LIST", + "description": "Account ids to be added to the conversation.", + "default": "" + }, + { + "name": "discloseAccountIds", + "type": "LIST", + "description": "Disclose conversation to these users.", + "default": "" + }, + { + "name": "addTeamIds", + "type": "LIST", + "description": "Add teams to conversation.", + "default": "" + }, + { + "name": "removeTeamIds", + "type": "LIST", + "description": "Remove teams from conversation.", + "default": "" + }, + { + "name": "addAdmins", + "type": "LIST", + "description": "Add conversation admins. Allow settingi non organisation admins as admins for conv.", + "default": "" + }, + { + "name": "removeAdmins", + "type": "LIST", + "description": "Remove conversation admins.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/storeConversationHeaderFields\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"readMessageNumber\": \"\", \"tokenId\": \"\", \"mkAlertLevel\": \"\", \"discloseEmail\": \"\", \"addEmail\": \"\", \"snoozeInterval\": \"\", \"removeEmail\": \"\", \"topic\": \"\", \"isDeleted\": \"\", \"fromMessageNumber\": \"\", \"isDisclose\": \"\", \"isUrlPreviewDisabled\": \"\", \"hideMessageNumber\": \"\", \"isAutojoin\": \"\", \"isList\": \"\", \"isDeletedByAdmin\": \"\", \"canPost\": \"\", \"isManaged\": \"\", \"mkConvType\": \"\", \"removeAccountIds\": \"\", \"kickAccountIds\": \"\", \"labels\": \"\", \"labelIds\": \"\", \"addAccountIds\": \"\", \"discloseAccountIds\": \"\", \"addTeamIds\": \"\", \"removeTeamIds\": \"\", \"addAdmins\": \"\", \"removeAdmins\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/storeConversationHeaderFields\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"readMessageNumber\": \"\", \"tokenId\": \"\", \"mkAlertLevel\": \"\", \"discloseEmail\": \"\", \"addEmail\": \"\", \"snoozeInterval\": \"\", \"removeEmail\": \"\", \"topic\": \"\", \"isDeleted\": \"\", \"fromMessageNumber\": \"\", \"isDisclose\": \"\", \"isUrlPreviewDisabled\": \"\", \"hideMessageNumber\": \"\", \"isAutojoin\": \"\", \"isList\": \"\", \"isDeletedByAdmin\": \"\", \"canPost\": \"\", \"isManaged\": \"\", \"mkConvType\": \"\", \"removeAccountIds\": \"\", \"kickAccountIds\": \"\", \"labels\": \"\", \"labelIds\": \"\", \"addAccountIds\": \"\", \"discloseAccountIds\": \"\", \"addTeamIds\": \"\", \"removeTeamIds\": \"\", \"addAdmins\": \"\", \"removeAdmins\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizehronizePinboard", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizehronizePinboard", + "description": "Synchronize pinboard.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "pinLimit", + "type": "NUMBER", + "description": "Pin limit.", + "default": "" + }, + { + "name": "pinWeight", + "type": "STRING", + "description": "Pin weight.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizehronizePinboard\"\nquerystring = {\"conversationId\": \"\", \"pinLimit\": \"\", \"ticket\": \"\", \"tokenId\": \"\", \"pinWeight\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizehronizePinboard\"\nquerystring = {\"conversationId\": \"\", \"pinLimit\": \"\", \"ticket\": \"\", \"tokenId\": \"\", \"pinWeight\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "storeMessage", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/storeMessage", + "description": "Store message changes whatever they are. Do changes in local cache and send only changed fields.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "CrapNetId", + "type": "NUMBER", + "description": "CrapNet id for message.", + "default": "" + }, + { + "name": "pinWeight", + "type": "NUMBER", + "description": "Used for sorting.", + "default": "" + }, + { + "name": "forwardedMessageNumber", + "type": "STRING", + "description": "Forwarded message number (for forwarding html messages).", + "default": "" + }, + { + "name": "isRetry", + "type": "SELECT", + "description": "Client is retrying same message send n'th time. Will fail if fromMessageNumber != lastMessageNumber.", + "default": "" + }, + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Used to return next batch of changes.", + "default": "" + }, + { + "name": "isUrlPreviewDisabled", + "type": "SELECT", + "description": "Disable generating url previews for this message and remove if generated.", + "default": "" + }, + { + "name": "forwardedConversationId", + "type": "STRING", + "description": "Forwarded conversation id (for forwarding html messages).", + "default": "" + }, + { + "name": "messageNumber", + "type": "NUMBER", + "description": "Message number for edits and deletes.", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Message content.", + "default": "" + }, + { + "name": "subject", + "type": "STRING", + "description": "Subject for first message.", + "default": "" + }, + { + "name": "attachments", + "type": "LIST", + "description": "List of attachment urls.", + "default": "" + }, + { + "name": "assigneeIds", + "type": "LIST", + "description": "Assignees for task or message.", + "default": "" + }, + { + "name": "tags", + "type": "LIST", + "description": "List of tags for message;`pin` - pinned message;`is_todo` - task incomplete;`is_done` - done task;`is_separator` - task separator;`is_deleted` - message deleted;`is_archived` - pin or task archived;", + "default": "" + }, + { + "name": "addReactions", + "type": "LIST", + "description": "Reactions to add.", + "default": "" + }, + { + "name": "deleteReactions", + "type": "LIST", + "description": "Reactions to remove.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/storeMessage\"\nquerystring = {\"CrapNetId\": \"\", \"pinWeight\": \"\", \"conversationId\": \"\", \"forwardedMessageNumber\": \"\", \"ticket\": \"\", \"isRetry\": \"\", \"fromMessageNumber\": \"\", \"isUrlPreviewDisabled\": \"\", \"forwardedConversationId\": \"\", \"messageNumber\": \"\", \"message\": \"\", \"tokenId\": \"\", \"subject\": \"\", \"attachments\": \"\", \"assigneeIds\": \"\", \"tags\": \"\", \"addReactions\": \"\", \"deleteReactions\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/storeMessage\"\nquerystring = {\"CrapNetId\": \"\", \"pinWeight\": \"\", \"conversationId\": \"\", \"forwardedMessageNumber\": \"\", \"ticket\": \"\", \"isRetry\": \"\", \"fromMessageNumber\": \"\", \"isUrlPreviewDisabled\": \"\", \"forwardedConversationId\": \"\", \"messageNumber\": \"\", \"message\": \"\", \"tokenId\": \"\", \"subject\": \"\", \"attachments\": \"\", \"assigneeIds\": \"\", \"tags\": \"\", \"addReactions\": \"\", \"deleteReactions\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "storingConnectionInformation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/storingConnectionInformation", + "description": "Handles long poll server side by storing connection information into connection table by the token.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "wait", + "type": "SELECT", + "description": "Set to False if you want to get latest events but not stay waiting if there isn't any.", + "default": "" + }, + { + "name": "eventHorizon", + "type": "NUMBER", + "description": "Latest event client has seen.", + "default": "" + }, + { + "name": "pollFlags", + "type": "SELECT", + "description": "Can be used to fine tune polls according to client needs. skip_hidden - skip hidden conversations during initial synchronize. skip_rest - skip other conversations and start polling events used for limiting number of conversations loaded into client cache.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/storingConnectionInformation\"\nquerystring = {\"tokenId\": \"\", \"wait\": \"\", \"ticket\": \"\", \"eventHorizon\": \"\", \"pollFlags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/storingConnectionInformation\"\nquerystring = {\"tokenId\": \"\", \"wait\": \"\", \"ticket\": \"\", \"eventHorizon\": \"\", \"pollFlags\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeAccount", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeAccount", + "description": "Use it to initialize some information using token.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "accountId", + "type": "STRING", + "description": "Account ID.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Account's email.", + "default": "" + }, + { + "name": "displayName", + "type": "STRING", + "description": "Account's display name.", + "default": "" + }, + { + "name": "eventHorizon", + "type": "NUMBER", + "description": "No point to read historic events either server must return good enough guess so that contacts and conversations will be.", + "default": "" + }, + { + "name": "mkAccountStatus", + "type": "SELECT", + "description": "`new` - email has been registered but is goodness is unknown;`active` - user has stored a password and can participate;`banned` - user has been banned for some unacceptable activity;`closed` - user has requested this account to be closed;", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeAccount\"\nquerystring = {\"tokenId\": \"\", \"accountId\": \"\", \"email\": \"\", \"displayName\": \"\", \"ticket\": \"\", \"eventHorizon\": \"\", \"mkAccountStatus\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeAccount\"\nquerystring = {\"tokenId\": \"\", \"accountId\": \"\", \"email\": \"\", \"displayName\": \"\", \"ticket\": \"\", \"eventHorizon\": \"\", \"mkAccountStatus\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeAllContact", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeAllContact", + "description": "Returns profile data for all. Use it to update local client side cache.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "searchString", + "type": "STRING", + "description": "Returns profile data for given list of id\u2019s. Use it to update local client side cache.", + "default": "" + }, + { + "name": "ignoreIds", + "type": "LIST", + "description": "List of account_ids client already has.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeAllContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"searchString\": \"\", \"ignoreIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeAllContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"searchString\": \"\", \"ignoreIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeBackwardForConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeBackwardForConversation", + "description": "Synchronize state for single conversation. Used to fetch messages for backward scroll.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Earliest message number client has received or previous messages are read and returned.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeBackwardForConversation\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeBackwardForConversation\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeContactActivity", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContactActivity", + "description": "Synchronize last seen time for requested contacts.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contactIds", + "type": "LIST", + "description": "List of account_ids to synchronize.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContactActivity\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contactIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContactActivity\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contactIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeContact", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContact", + "description": "Returns profile data for given id. Use it to update local client side cache.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contactId", + "type": "STRING", + "description": "Id of contact to synchronize.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contactId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContact\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\", \"contactId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeContactList", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContactList", + "description": "Returns profile data for given list of id\u2019s. Use it to update local client side cache.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "contactsIds", + "type": "LIST", + "description": "List of account_ids to synchronize.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContactList\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\", \"contactsIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeContactList\"\nquerystring = {\"ticket\": \"\", \"tokenId\": \"\", \"contactsIds\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeEmailAlias", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeEmailAlias", + "description": "Fetch all aliases for given account. Used for displaying aliases in UI.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeEmailAlias\"\nquerystring = {\"tokenId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizePinboardForConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizePinboardForConversation", + "description": "Synchronize pinboard for conversation where it was not fully sent with init.", + "method": "POST", + "required_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Earliest message number client has received or previous messages are read and returned.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizePinboardForConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizePinboardForConversation\"\nquerystring = {\"conversationId\": \"\", \"ticket\": \"\", \"tokenId\": \"\", \"fromMessageNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeStateForConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeStateForConversation", + "description": "Synchronize state for single conversation. If used with default values 5 messages before and after last reported readMessageNumber are returned. Also all conversation state are returned: PinInfo, memberInfo. All optional fields (o) are returned for first synchronize. After that these are included only when there have been changes. Changes are detected from system messages in message flow.", + "method": "POST", + "required_parameters": [ + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Earliest message number client has received or previous messages are read and returned.", + "default": "" + }, + { + "name": "mkDirection", + "type": "SELECT", + "description": "mkDirection select.See more in readme.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeStateForConversation\"\nquerystring = {\"tokenId\": \"\", \"fromMessageNumber\": \"\", \"ticket\": \"\", \"conversationId\": \"\", \"mkDirection\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeStateForConversation\"\nquerystring = {\"tokenId\": \"\", \"fromMessageNumber\": \"\", \"ticket\": \"\", \"conversationId\": \"\", \"mkDirection\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "synchronizeTaskboard", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTaskboard", + "description": "Synchronize taskboard.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "sectionId", + "type": "STRING", + "description": "Section id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "taskWeight", + "type": "STRING", + "description": "Task weight from cursor if provided.", + "default": "" + }, + { + "name": "taskLimit", + "type": "NUMBER", + "description": "Tasks to synchronize in one batch (between 1 and 100).", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTaskboard\"\nquerystring = {\"ticket\": \"\", \"taskWeight\": \"\", \"conversationId\": \"\", \"sectionId\": \"\", \"tokenId\": \"\", \"taskLimit\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/synchronizeTaskboard\"\nquerystring = {\"ticket\": \"\", \"taskWeight\": \"\", \"conversationId\": \"\", \"sectionId\": \"\", \"tokenId\": \"\", \"taskLimit\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "unhideConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/unhideConversation", + "description": "Bring conversation out of hiding.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "fromMessageNumber", + "type": "NUMBER", + "description": "Earliest message number client has received or previous messages are read and returned.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/unhideConversation\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/unhideConversation\"\nquerystring = {\"ticket\": \"\", \"conversationId\": \"\", \"fromMessageNumber\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "unsubscribeForNotification", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/unsubscribeForNotification", + "description": "Unsubscribe for notification.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "notificationId", + "type": "STRING", + "description": "Id of notification.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/unsubscribeForNotification\"\nquerystring = {\"ticket\": \"\", \"notificationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/unsubscribeForNotification\"\nquerystring = {\"ticket\": \"\", \"notificationId\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "unsubscribeFromConversation", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/unsubscribeFromConversation", + "description": "Unsubscribe from conversation.", + "method": "POST", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "Email address to remove from conversation.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "conversationId", + "type": "STRING", + "description": "Conversation id.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/unsubscribeFromConversation\"\nquerystring = {\"email\": \"\", \"tokenId\": \"\", \"conversationId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/unsubscribeFromConversation\"\nquerystring = {\"email\": \"\", \"tokenId\": \"\", \"conversationId\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "uploadAvatar", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/uploadAvatar", + "description": "Upload avatar.", + "method": "POST", + "required_parameters": [ + { + "name": "imageName", + "type": "STRING", + "description": "Name of the image.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + }, + { + "name": "contentType", + "type": "STRING", + "description": "Content-Type of the image.Example - image/jpg.", + "default": "" + }, + { + "name": "imageFile", + "type": "FILE", + "description": "Image for avatar.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/uploadAvatar\"\nquerystring = {\"imageName\": \"\", \"tokenId\": \"\", \"contentType\": \"\", \"imageFile\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/uploadAvatar\"\nquerystring = {\"imageName\": \"\", \"tokenId\": \"\", \"contentType\": \"\", \"imageFile\": \"\", \"ticket\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "uploadExternalFile", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/uploadExternalFile", + "description": "Add file into Fleep from an external source. Maximum allowed file size is 1GB. Upload request is put into queue and processed by a background job. Upload progress events are sent to the client during the upload process.", + "method": "POST", + "required_parameters": [ + { + "name": "fileUrl", + "type": "STRING", + "description": "Input field for files.", + "default": "" + }, + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "fileName", + "type": "STRING", + "description": "Name for files.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "conversationId", + "type": "STRING", + "description": "Needed, if file is related to a conversation.", + "default": "" + }, + { + "name": "fileSize", + "type": "STRING", + "description": "max 1073741824.", + "default": "" + }, + { + "name": "fileOrigin", + "type": "STRING", + "description": "From where the file originates (Dropbox, Google Drive, Giphy, ...).", + "default": "" + }, + { + "name": "uploadId", + "type": "STRING", + "description": "Upload id in client side.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/uploadExternalFile\"\nquerystring = {\"fileUrl\": \"\", \"conversationId\": \"\", \"fileSize\": \"\", \"ticket\": \"\", \"fileName\": \"\", \"fileOrigin\": \"\", \"tokenId\": \"\", \"uploadId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/uploadExternalFile\"\nquerystring = {\"fileUrl\": \"\", \"conversationId\": \"\", \"fileSize\": \"\", \"ticket\": \"\", \"fileName\": \"\", \"fileOrigin\": \"\", \"tokenId\": \"\", \"uploadId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "uploadFile", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/uploadFile", + "description": "Upload one or more files. File upload url-s can be used in message API calls storeMessage and sendMessage as attachments parameter.", + "method": "POST", + "required_parameters": [ + { + "name": "ticket", + "type": "STRING", + "description": "Must be sent as parameter to all subsequent api calls.", + "default": "" + }, + { + "name": "contentType", + "type": "STRING", + "description": "Content-Type of the file.Example - image/jpg.", + "default": "" + }, + { + "name": "file", + "type": "FILE", + "description": "Input field for files.", + "default": "" + }, + { + "name": "fileName", + "type": "STRING", + "description": "Name of the file.", + "default": "" + }, + { + "name": "tokenId", + "type": "STRING", + "description": "Token id from loginAccount endpoint.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/uploadFile\"\nquerystring = {\"ticket\": \"\", \"contentType\": \"\", \"file\": \"\", \"fileName\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/uploadFile\"\nquerystring = {\"ticket\": \"\", \"contentType\": \"\", \"file\": \"\", \"fileName\": \"\", \"tokenId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "webhookEvent", + "url": "https://FleepraygorodskijV1.p.rapidapi.com/webhookEvent", + "description": "This API allows you to create, edit, and delete conversation webhooks programmatically.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "username", + "type": "STRING", + "description": "Your fleep username.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/webhookEvent\"\nquerystring = {\"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://FleepraygorodskijV1.p.rapidapi.com/webhookEvent\"\nquerystring = {\"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"FleepraygorodskijV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/flowplayer_drive.json b/toolbench/toolenv/tools/Communication/flowplayer_drive.json new file mode 100644 index 0000000000000000000000000000000000000000..5bff6e8408fcaf74cd7975e3660b7a6de9a17106 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/flowplayer_drive.json @@ -0,0 +1,202 @@ +{ + "product_id": "5547d2f0e4b0bded76bba791", + "tool_description": "Encode videos in the cloud and host them with Flowplayer. Manage your video library, and access your videos' analytics data.", + "home_url": "https://rapidapi.com/anssi/api/flowplayer-drive/", + "name": "Flowplayer Drive", + "title": "Flowplayer Drive", + "pricing": "FREE", + "tool_name": "Flowplayer Drive", + "score": { + "avgServiceLevel": 100, + "avgLatency": 875, + "avgSuccessRate": 0, + "popularityScore": 0.1, + "__typename": "Score" + }, + "host": "anssi-flowplayer-drive-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/videos", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos", + "description": "List all videos in the library", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "authcode missing", + "statuscode": 1, + "schema": "" + }, + { + "name": "show video", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}", + "description": "Shows the specified video, with embedded encodings", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "authcode missing", + "statuscode": 1, + "schema": "" + }, + { + "name": "show account", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/account", + "description": "Shows the account", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/account\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/account\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "authcode missing", + "statuscode": 1, + "schema": "" + }, + { + "name": "traffic", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}/traffic", + "description": "Get traffic statistics for the specified video.", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "start", + "type": "STRING", + "description": "Optional start value of the time range. Format yyyy-mm-dd, for example 2013-01-01. Default value is dependent on the specified grouping.", + "default": "start time" + }, + { + "name": "end", + "type": "STRING", + "description": "Optional end value of the time range. Format yyyy-mm-dd. Defaults to yesterday.", + "default": "" + }, + { + "name": "grouping", + "type": "STRING", + "description": "One of 'hour', 'day', 'week', 'month'. Specifies the granularity of the results. For example, in a day grouping one value is returned for each day of the time range. In a hour grouping one value is returned for every hour.", + "default": "hour" + }, + { + "name": "type", + "type": "STRING", + "description": "Either 'views' or 'bytes'. Specifies if the results should be view counts or bytes. Defaults to 'views'.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}/traffic\"\nquerystring = {\"id\": \"\", \"start\": \"start time\", \"end\": \"\", \"grouping\": \"hour\", \"type\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}/traffic\"\nquerystring = {\"id\": \"\", \"start\": \"start time\", \"end\": \"\", \"grouping\": \"hour\", \"type\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "authcode missing", + "statuscode": 1, + "schema": "" + }, + { + "name": "retention", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}/retention", + "description": "Get retention data for the specified video. Retention data answers following questions: How long do viewers spend watching your videos? At what point do they lose interest or tune out and go elsewhere? The returned data tells the percentage (and count) of viewers that watched the video up to a given time in the video's timeline.", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}/retention\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{id}/retention\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "authcode missing", + "statuscode": 1, + "schema": "" + }, + { + "name": "/jobs", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/jobs", + "description": "Post an encoding job", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/jobs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/jobs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "upload", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos", + "description": "Upload a video to your library, the video will be first encoded.", + "method": "POST", + "required_parameters": [ + { + "name": "The video to be uploaded", + "type": "BINARY", + "description": "The video file to be encoded and added to be library.", + "default": "video file" + } + ], + "optional_parameters": [ + { + "name": "multires", + "type": "BOOLEAN", + "description": "If true, the video will be encoded to multiple resolutions (and bitrates). Requires a paid Flowplayer Drive plan.", + "default": "" + }, + { + "name": "title", + "type": "STRING", + "description": "The title for the video.", + "default": "My first promo video" + }, + { + "name": "notify", + "type": "BOOLEAN", + "description": "If true, an email will be sent when encoding has been completed.", + "default": "" + }, + { + "name": "free", + "type": "BOOLEAN", + "description": "If true, the video will be free and will have a flowplayer watermark. Setting this to false requires a paid Flowplayer Drive plan.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos\"\nquerystring = {\"multires\": \"\", \"The video to be uploaded\": \"video file\", \"title\": \"My first promo video\", \"notify\": \"\", \"free\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos\"\nquerystring = {\"multires\": \"\", \"The video to be uploaded\": \"video file\", \"title\": \"My first promo video\", \"notify\": \"\", \"free\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/login", + "url": "https://anssi-flowplayer-drive-v1.p.rapidapi.com/login", + "description": "Login to your flowplayer.org account to receive an auth token to be used in all additional API call.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anssi-flowplayer-drive-v1.p.rapidapi.com/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anssi-flowplayer-drive-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "flowplayer_drive" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/flowplayer_drive/api.py b/toolbench/toolenv/tools/Communication/flowplayer_drive/api.py new file mode 100644 index 0000000000000000000000000000000000000000..333d36d2917e256e15b5bfee47f39c1c6efefefd --- /dev/null +++ b/toolbench/toolenv/tools/Communication/flowplayer_drive/api.py @@ -0,0 +1,125 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def videos(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List all videos in the library" + + """ + url = f"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anssi-flowplayer-drive-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def show_video(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Shows the specified video, with embedded encodings" + + """ + url = f"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anssi-flowplayer-drive-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def show_account(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Shows the account" + + """ + url = f"https://anssi-flowplayer-drive-v1.p.rapidapi.com/account" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anssi-flowplayer-drive-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def traffic(is_id: str, start: str='start time', end: str=None, grouping: str='hour', type: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get traffic statistics for the specified video." + start: Optional start value of the time range. Format yyyy-mm-dd, for example 2013-01-01. Default value is dependent on the specified grouping. + end: Optional end value of the time range. Format yyyy-mm-dd. Defaults to yesterday. + grouping: One of 'hour', 'day', 'week', 'month'. Specifies the granularity of the results. For example, in a day grouping one value is returned for each day of the time range. In a hour grouping one value is returned for every hour. + type: Either 'views' or 'bytes'. Specifies if the results should be view counts or bytes. Defaults to 'views'. + + """ + url = f"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{is_id}/traffic" + querystring = {} + if start: + querystring['start'] = start + if end: + querystring['end'] = end + if grouping: + querystring['grouping'] = grouping + if type: + querystring['type'] = type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anssi-flowplayer-drive-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retention(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get retention data for the specified video. Retention data answers following questions: How long do viewers spend watching your videos? At what point do they lose interest or tune out and go elsewhere? The returned data tells the percentage (and count) of viewers that watched the video up to a given time in the video's timeline." + + """ + url = f"https://anssi-flowplayer-drive-v1.p.rapidapi.com/videos/{is_id}/retention" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "anssi-flowplayer-drive-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/formdata_or_postdata_to_email.json b/toolbench/toolenv/tools/Communication/formdata_or_postdata_to_email.json new file mode 100644 index 0000000000000000000000000000000000000000..c1cb9da48e287ddbc3c3c764e5c9aab03ac8176b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/formdata_or_postdata_to_email.json @@ -0,0 +1,69 @@ +{ + "product_id": "55e2247ee4b05d7886819580", + "tool_description": "Turn form submissions into emails, no configuration required. Just build a form & submit POST data to our server, and the data arrives in your mailbox seconds later. Even attachments!", + "home_url": "https://rapidapi.com/kidGodzilla/api/formdata-or-postdata-to-email/", + "name": "Formdata or Postdata to Email", + "title": "Formdata or Postdata to Email", + "pricing": "FREE", + "tool_name": "Formdata or Postdata to Email", + "score": null, + "host": "kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/{email-alias}", + "url": "https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{email-alias}", + "description": "Sends an email to an email address associated with a specific email alias (username)", + "method": "POST", + "required_parameters": [ + { + "name": "email-alias", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{email-alias}\"\nquerystring = {\"email-alias\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{email-alias}\"\nquerystring = {\"email-alias\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/{email-address}", + "url": "https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{email-address}", + "description": "Allows your users to post data to any email address or Alias & you'll receive an email response", + "method": "POST", + "required_parameters": [ + { + "name": "email-address", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{email-address}\"\nquerystring = {\"email-address\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{email-address}\"\nquerystring = {\"email-address\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/{username}", + "url": "https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{username}", + "description": "Sends an email to an email address associated with a specific username", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{username}\"\nquerystring = {\"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com/{username}\"\nquerystring = {\"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kidgodzilla-formdata-or-postdata-to-email-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/foryoureyesonly.json b/toolbench/toolenv/tools/Communication/foryoureyesonly.json new file mode 100644 index 0000000000000000000000000000000000000000..6dc63001f5f49c6b9730086ab87498a0531787c3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/foryoureyesonly.json @@ -0,0 +1,37 @@ +{ + "tool_name":"ForYourEyesOnly", + "tool_description":"sdfasfasdf", + "title":"ForYourEyesOnly", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/YopmailGiltest1/api/foryoureyesonly/", + "host":"foryoureyesonly.p.rapidapi.com", + "api_list":[ + { + "name":"asdfasdf", + "url":"https://foryoureyesonly.p.rapidapi.com/users", + "description":"asdfasdfsd", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://foryoureyesonly.p.rapidapi.com/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"foryoureyesonly.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"hgfg", + "url":"https://foryoureyesonly.p.rapidapi.com/posts", + "description":"jghgv", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://foryoureyesonly.p.rapidapi.com/posts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"foryoureyesonly.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/foryoureyesonly/api.py b/toolbench/toolenv/tools/Communication/foryoureyesonly/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9aac863fd6f700149e7a05f943c4c1d7f43e4572 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/foryoureyesonly/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def asdfasdf(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "asdfasdfsd" + + """ + url = f"https://foryoureyesonly.p.rapidapi.com/users" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "foryoureyesonly.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hgfg(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "jghgv" + + """ + url = f"https://foryoureyesonly.p.rapidapi.com/posts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "foryoureyesonly.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/fowiz_text_messaging/api.py b/toolbench/toolenv/tools/Communication/fowiz_text_messaging/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c25e1fd24712267d3664800a5c26428496043408 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/fowiz_text_messaging/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sending_message(phonenumber: str, message: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sending message using FOWiz text messaging API" + phonenumber: Recipient phone number + message: Message to send + + """ + url = f"https://fowiz.p.rapidapi.com/message_http_api.php" + querystring = {'phonenumber': phonenumber, 'message': message, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "fowiz.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/free_email_sender.json b/toolbench/toolenv/tools/Communication/free_email_sender.json new file mode 100644 index 0000000000000000000000000000000000000000..ae42ff5c3ad46d43a418e72c4adad7879b87b6e9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/free_email_sender.json @@ -0,0 +1,61 @@ +{ + "product_id": "api_f813d18c-0162-40cc-86e5-7c33f36f7dfe", + "tool_description": "Free Api to send email absolutley from your gmail account . You only need to follow some steps :\n1. open your gmail account\n2. click on Manage my account\n3. on left side click on Security Tab\n4. Allow Less Secure app Access\nHooray! you are Ready.", + "home_url": "https://rapidapi.com/ritikranjan12/api/free-email-sender/", + "name": "Free Email Sender", + "title": "Free Email Sender", + "pricing": "FREEMIUM", + "tool_name": "Free Email Sender", + "score": { + "avgServiceLevel": 100, + "avgLatency": 472, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "free-email-sender.p.rapidapi.com", + "api_list": [ + { + "name": "Send Email", + "url": "https://free-email-sender.p.rapidapi.com/sendemail", + "description": "Send free Email", + "method": "POST", + "required_parameters": [ + { + "name": "subject", + "type": "STRING", + "description": "", + "default": "email subject" + }, + { + "name": "message", + "type": "STRING", + "description": "", + "default": "message to be sent" + }, + { + "name": "senderEmail", + "type": "STRING", + "description": "", + "default": "sender email address" + }, + { + "name": "email", + "type": "STRING", + "description": "", + "default": "reciever's email" + }, + { + "name": "password", + "type": "STRING", + "description": "", + "default": "sender account password" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://free-email-sender.p.rapidapi.com/sendemail\"\nquerystring = {\"subject\": \"email subject\", \"message\": \"message to be sent\", \"senderEmail\": \"sender email address\", \"email\": \"reciever's email\", \"password\": \"sender account password\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-email-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://free-email-sender.p.rapidapi.com/sendemail\"\nquerystring = {\"subject\": \"email subject\", \"message\": \"message to be sent\", \"senderEmail\": \"sender email address\", \"email\": \"reciever's email\", \"password\": \"sender account password\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-email-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/free_phone_carrier_lookup.json b/toolbench/toolenv/tools/Communication/free_phone_carrier_lookup.json new file mode 100644 index 0000000000000000000000000000000000000000..c7c7230c6cb0f53e3fa8b965e547ff9a84cbfbfc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/free_phone_carrier_lookup.json @@ -0,0 +1,44 @@ +{ + "tool_name":"Free Phone Carrier Lookup", + "tool_description":"FREEEEE !!! , Phone carrier lookups are a great way to obtain more information about leads and user data. If a number is not associated with a phone carrier, then it's likely that phone number is not currently active. The phone number carrier provides useful information about location, user type (personal or business number), line type, and much more. Some carriers are frequently associated with fraudulent behavior, ", + "title":"Free Phone Carrier Lookup", + "pricing":"FREE", + "score":{ + "avgServiceLevel":99, + "avgLatency":1524, + "avgSuccessRate":99, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/nemohadaana/api/free-phone-carrier-lookup/", + "host":"free-phone-carrier-lookup.p.rapidapi.com", + "api_list":[ + { + "name":"Carrier Endpoint", + "url":"https://free-phone-carrier-lookup.p.rapidapi.com/num/{phonenumber}", + "description":"The phone number carrier provides useful information about location. Please any Bug contact me at @ta9ra9pa9 on Telegram", + "method":"GET", + "required_parameters":[ + { + "name":"PhoneNumber", + "type":"string", + "description":"", + "default":"+8613923443147" + } + ], + "optional_parameters":[ + { + "name":"PhoneNumber", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://free-phone-carrier-lookup.p.rapidapi.com/num/{phonenumber}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-phone-carrier-lookup.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/free_phone_carrier_lookup/api.py b/toolbench/toolenv/tools/Communication/free_phone_carrier_lookup/api.py new file mode 100644 index 0000000000000000000000000000000000000000..4759d03c3d24adc251205b9308e24b6c86797758 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/free_phone_carrier_lookup/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def carrier_endpoint(phonenumber: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The phone number carrier provides useful information about location. Please any Bug contact me at @ta9ra9pa9 on Telegram" + + """ + url = f"https://free-phone-carrier-lookup.p.rapidapi.com/num/{phonenumber}" + querystring = {} + if phonenumber: + querystring['PhoneNumber'] = phonenumber + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "free-phone-carrier-lookup.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/free_phone_number_lookup_and_validation_api.json b/toolbench/toolenv/tools/Communication/free_phone_number_lookup_and_validation_api.json new file mode 100644 index 0000000000000000000000000000000000000000..19d239ebdc2c91763b98d395da83eef5cc0970c0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/free_phone_number_lookup_and_validation_api.json @@ -0,0 +1,40 @@ +{ + "tool_name":"Free Phone Number Lookup and Validation API", + "tool_description":"Free Lookup and Validation API Phone Numbers and receive additional information like Geo Location, Timezone and Currency. No Signup required. ", + "title":"Free Phone Number Lookup and Validation API", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1275, + "avgSuccessRate":100, + "popularityScore":8.9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/teracrawl-teracrawl-default/api/free-phone-number-lookup-and-validation-api1/", + "host":"free-phone-number-lookup-and-validation-api1.p.rapidapi.com", + "api_list":[ + { + "name":"Free JSON Endpoint", + "url":"https://free-phone-number-lookup-and-validation-api1.p.rapidapi.com/json", + "description":"Please see [https://phone-number-api.com/docs/json](url) for details", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"STRING", + "description":"", + "default":"12134635888" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://free-phone-number-lookup-and-validation-api1.p.rapidapi.com/json\"\nquerystring = {\"number\": number}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-phone-number-lookup-and-validation-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/free_phone_number_lookup_and_validation_api/api.py b/toolbench/toolenv/tools/Communication/free_phone_number_lookup_and_validation_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..63e1a2e9fec3fc388097afa646ee8f452fe0ddf7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/free_phone_number_lookup_and_validation_api/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def free_json_endpoint(number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Please see [https://phone-number-api.com/docs/json](url) for details" + + """ + url = f"https://free-phone-number-lookup-and-validation-api1.p.rapidapi.com/json" + querystring = {'number': number, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "free-phone-number-lookup-and-validation-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/free_whatsapp_sender.json b/toolbench/toolenv/tools/Communication/free_whatsapp_sender.json new file mode 100644 index 0000000000000000000000000000000000000000..6f6c2d4ea9d2b2f4441bbacd0a2a6c788b8c2fc7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/free_whatsapp_sender.json @@ -0,0 +1,43 @@ +{ + "product_id": "api_95d5e15e-6dac-4671-877f-a03c6db3ebc9", + "tool_description": "Send messages & files to WhatsApp accounts for free.", + "home_url": "https://rapidapi.com/whatsimo-whatsimo-default/api/free-whatsapp-sender/", + "name": "Free Whatsapp Sender", + "title": "Free Whatsapp Sender", + "pricing": "FREE", + "tool_name": "Free Whatsapp Sender", + "score": { + "avgServiceLevel": 0, + "avgLatency": 62, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "free-whatsapp-sender.p.rapidapi.com", + "api_list": [ + { + "name": "send_file", + "url": "https://free-whatsapp-sender.p.rapidapi.com/send_file", + "description": "Send Documents", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://free-whatsapp-sender.p.rapidapi.com/send_file\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-whatsapp-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://free-whatsapp-sender.p.rapidapi.com/send_file\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-whatsapp-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "send", + "url": "https://free-whatsapp-sender.p.rapidapi.com/send", + "description": "Send text message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://free-whatsapp-sender.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-whatsapp-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://free-whatsapp-sender.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"free-whatsapp-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/freesms8.json b/toolbench/toolenv/tools/Communication/freesms8.json new file mode 100644 index 0000000000000000000000000000000000000000..af76e302dfc4fa044c68d4f371168d36ba932c80 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/freesms8.json @@ -0,0 +1,55 @@ +{ + "tool_name":"FreeSMS8", + "tool_description":"Send unlimited SMS to any Indian mobile number using this API, all you need is an account from freesms8.co.in", + "title":"FreeSMS8", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":398, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/blaazetech/api/freesms8/", + "host":"freesms8.p.rapidapi.com", + "api_list":[ + { + "name":"Send SMS", + "url":"https://freesms8.p.rapidapi.com/index.php", + "description":"Send SMS using this endpoint.", + "method":"GET", + "required_parameters":[ + { + "name":"uid", + "type":"STRING", + "description":"Username registered on freesms8", + "default":"username" + }, + { + "name":"pwd", + "type":"STRING", + "description":"Password of the account registered on freesms8", + "default":"password" + }, + { + "name":"phone", + "type":"STRING", + "description":"Recipients 10-digit phone numbers separated by semicolon", + "default":"9xxxxxxx;9xxxxxxx" + }, + { + "name":"msg", + "type":"STRING", + "description":"Message to be sent as SMS", + "default":"message" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://freesms8.p.rapidapi.com/index.php\"\nquerystring = {\"uid\": uid, \"pwd\": pwd, \"phone\": phone, \"msg\": msg}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"freesms8.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/freesms8/api.py b/toolbench/toolenv/tools/Communication/freesms8/api.py new file mode 100644 index 0000000000000000000000000000000000000000..45a0ed75d8195a4ee5759db6cbdb2250384222ca --- /dev/null +++ b/toolbench/toolenv/tools/Communication/freesms8/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def send_sms(uid: str, pwd: str, phone: str, msg: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Send SMS using this endpoint." + uid: Username registered on freesms8 + pwd: Password of the account registered on freesms8 + phone: Recipients 10-digit phone numbers separated by semicolon + msg: Message to be sent as SMS + + """ + url = f"https://freesms8.p.rapidapi.com/index.php" + querystring = {'uid': uid, 'pwd': pwd, 'phone': phone, 'msg': msg, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "freesms8.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/generaltalker.json b/toolbench/toolenv/tools/Communication/generaltalker.json new file mode 100644 index 0000000000000000000000000000000000000000..85cc06f09e3e62a173a62e351ba3eb5c6b42424c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/generaltalker.json @@ -0,0 +1,464 @@ +{ + "product_id": "api_0920ba93-2583-48b4-9e62-e977e9523257", + "tool_description": "\u307e\u308b\u3067\u4eba\u9593\u306e\u3088\u3046\u306a\u81ea\u7136\u306a\u4f1a\u8a71\u3092\u5b9f\u73fe\u3059\u308bAPI", + "home_url": "https://rapidapi.com/morikatroninc-morikatroninc-default/api/generaltalker/", + "name": "GeneralTalker", + "title": "GeneralTalker", + "pricing": "FREEMIUM", + "tool_name": "GeneralTalker", + "score": { + "avgServiceLevel": 100, + "avgLatency": 5410, + "avgSuccessRate": 100, + "popularityScore": 9.1, + "__typename": "Score" + }, + "host": "generaltalker.p.rapidapi.com", + "api_list": [ + { + "name": "on_line", + "url": "https://generaltalker.p.rapidapi.com/on_line/", + "description": "LINE\u30dc\u30c3\u30c8\u5c02\u7528\u306e\u96d1\u8ac7API\u3067\u3059\u3002\n\n\u4ee5\u4e0b\u306fon_line\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u4f8b\u3068\u3001\u305d\u306e\u610f\u5473\u3067\u3059\u3002\n```\n{\n\"response\":{\n \"res\":\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u751f\u6210\u3055\u308c\u305f\u8fd4\u7b54\n \"user_score\":-2.8724350929260254 # \u30e6\u30fc\u30b6\u30fc\u306e\u767a\u8a71\u306e\u30b9\u30b3\u30a2\n \"lm\":0.7096909880638123 # \u6587\u7ae0\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"mc\":-1.5187406539916992 # \u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"score\":-0.3534274697303772 # \u7dcf\u5408\u30b9\u30b3\u30a2\n \"history_text\":\"Hello\" # \u767a\u8a71\u306e\u751f\u6210\u306b\u4f7f\u308f\u308c\u305f\u767a\u8a71\u5c65\u6b74\n \"res_score_list\":[ # \u63a1\u7528\u3057\u306a\u304b\u3063\u305f\u8fd4\u7b54\u306e\u30ea\u30b9\u30c8\n 0:[\n 0:\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u8fd4\u7b54\u306e\u5185\u5bb9\n 1:[ # \u30b9\u30b3\u30a2\uff08\u6587\u7ae0\u306e\u59a5\u5f53\u6027,\u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027,\u7dcf\u5408\u30b9\u30b3\u30a2\uff09\n 0:0.7096909880638123\n 1:-1.5187406539916992\n 2:-0.3534274697303772\n ]\n ]\n ... # \u4e2d\u7565\n ]\n }\n}\n```", + "method": "GET", + "required_parameters": [ + { + "name": "bot_name", + "type": "STRING", + "description": "\u3053\u306eAPI\u3092\u5229\u7528\u3059\u308b\u30dc\u30c3\u30c8\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u203bAPI\u5185\u90e8\u3067\u306f[bot_name - user_name]\u9593\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u5143\u306b\u3001\u300c\u6d41\u308c\u306e\u3042\u308b\u81ea\u7136\u306a\u4f1a\u8a71\u300d\u3092\u6210\u7acb\u3055\u305b\u307e\u3059\u3002", + "default": "MyBotName" + }, + { + "name": "channel_token", + "type": "STRING", + "description": "\u30c1\u30e3\u30f3\u30cd\u30eb\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "channel1" + }, + { + "name": "user_name", + "type": "STRING", + "description": "\u30dc\u30c3\u30c8\u306e\u8a71\u3057\u76f8\u624b\u3067\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "UserName" + }, + { + "name": "user_msg_text", + "type": "STRING", + "description": "\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u8a71\u3057\u304b\u3051\u3089\u308c\u305f\u5185\u5bb9\uff08\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "Hello" + } + ], + "optional_parameters": [ + { + "name": "save_only_positive_info", + "type": "BOOLEAN", + "description": "use_detect_user_info \u306e\u60c5\u5831\u62bd\u51fa\u306e\u5bfe\u8c61\u3092\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u4e8b\u67c4\u306e\u307f\u306b\u3059\u308b\u5834\u5408true\u3001\u3059\u3079\u3066\u306e\u4e8b\u67c4\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "use_change_topic", + "type": "BOOLEAN", + "description": "true\u306a\u3089\u3070\u8a71\u984c\u5909\u63db\u3092\u3057\u307e\u3059\u3002\uff08detect_user_info=false\u306e\u6642\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff09", + "default": "true" + }, + { + "name": "use_detect_user_info", + "type": "BOOLEAN", + "description": "\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ftrue\u3092\u3001\u60c5\u5831\u62bd\u51fa\u3092\u3057\u306a\u3044\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "load_only_positive_info", + "type": "BOOLEAN", + "description": "true\u306e\u6642\u3001\u8a71\u984c\u5909\u63db\u6642\u306b\u306f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u5358\u8a9e\u306e\u307f\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_line/\"\nquerystring = {\"save_only_positive_info\": \"true\", \"use_change_topic\": \"true\", \"bot_name\": \"MyBotName\", \"channel_token\": \"channel1\", \"use_detect_user_info\": \"true\", \"load_only_positive_info\": \"true\", \"user_name\": \"UserName\", \"user_msg_text\": \"Hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_line/\"\nquerystring = {\"save_only_positive_info\": \"true\", \"use_change_topic\": \"true\", \"bot_name\": \"MyBotName\", \"channel_token\": \"channel1\", \"use_detect_user_info\": \"true\", \"load_only_positive_info\": \"true\", \"user_name\": \"UserName\", \"user_msg_text\": \"Hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "response": { + "res": "UserName\u3055\u3093\u3053\u3093\u3070\u3093\u306f\u304a\u75b2\u308c\u69d8\u3067\u3059", + "user_score": -0.15976466238498688, + "lm": 0.6394258737564087, + "mc": 19.869834899902344, + "score": 14.548310279846191, + "history_text": "Hello", + "res_score_list": [ + [ + "\u3061\u3083\u3093\u3001\u3053\u3093\u3070\u3093\u306f", + [ + 0.5816981196403503, + 18.75834083557129, + 13.712536811828613 + ] + ], + [ + "\u4eca\u6708\u3082\u3088\u308d\u3057\u304f\u306d!", + [ + 0.5732120275497437, + 5.58270263671875, + 4.481103897094727 + ] + ], + [ + "\u3061\u3083\u3093\u3001\u304a\u306f\u3088", + [ + 0.49087581038475037, + 17.54663848876953, + 12.773523330688477 + ] + ], + [ + "\u3055\u3093\u3001\u304a\u306f\u3088\u30fc", + [ + 0.4854471683502197, + 18.809181213378906, + 13.651873588562012 + ] + ], + [ + "\u3055\u3093!\u3053\u3093\u3070\u3093\u306f", + [ + 0.5124089121818542, + 18.736980438232422, + 13.628294944763184 + ] + ] + ] + } + } + }, + { + "name": "on_twitter", + "url": "https://generaltalker.p.rapidapi.com/on_twitter/", + "description": "\u30c4\u30a4\u30c3\u30bf\u30fc\u30dc\u30c3\u30c8\u5c02\u7528\u306e\u96d1\u8ac7API\u3067\u3059\u3002reply_to_id\uff08\u30ea\u30d7\u30e9\u30a4\u5148\u306eID\uff09\u3092\u6e21\u3059\u3053\u3068\u3067\u3001\u904e\u53bb\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u3075\u307e\u3048\u305f\u4f1a\u8a71\u304c\u3067\u304d\u307e\u3059\u3002\n\n\u4ee5\u4e0b\u306f\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4f8b\u3068\u3001\u305d\u306e\u610f\u5473\u3067\u3059\u3002\n\n```\n{\n\"response\":{\n \"res\":\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u751f\u6210\u3055\u308c\u305f\u8fd4\u7b54\n \"user_score\":-2.8724350929260254 # \u30e6\u30fc\u30b6\u30fc\u306e\u767a\u8a71\u306e\u30b9\u30b3\u30a2\n \"lm\":0.7096909880638123 # \u6587\u7ae0\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"mc\":-1.5187406539916992 # \u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"score\":-0.3534274697303772 # \u7dcf\u5408\u30b9\u30b3\u30a2\n \"history_text\":\"Hello\" # \u767a\u8a71\u306e\u751f\u6210\u306b\u4f7f\u308f\u308c\u305f\u767a\u8a71\u5c65\u6b74\n \"res_score_list\":[ # \u63a1\u7528\u3057\u306a\u304b\u3063\u305f\u8fd4\u7b54\u306e\u30ea\u30b9\u30c8\n 0:[\n 0:\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u8fd4\u7b54\u306e\u5185\u5bb9\n 1:[ # \u30b9\u30b3\u30a2\uff08\u6587\u7ae0\u306e\u59a5\u5f53\u6027,\u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027,\u7dcf\u5408\u30b9\u30b3\u30a2\uff09\n 0:0.7096909880638123\n 1:-1.5187406539916992\n 2:-0.3534274697303772\n ]\n ]\n ... # \u4e2d\u7565\n ]\n \"user_utt_id\":1355 # \u30e6\u30fc\u30b6\u30fc\u306e\u767a\u8a71\u306eid\n \"bot_utt_id\":1356 # \u751f\u6210\u3057\u305f\u8fd4\u7b54\u306eid\n }\n}\n```", + "method": "GET", + "required_parameters": [ + { + "name": "user_msg_text", + "type": "STRING", + "description": "\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u8a71\u3057\u304b\u3051\u3089\u308c\u305f\u5185\u5bb9\uff08\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "Hello" + }, + { + "name": "user_name", + "type": "STRING", + "description": "\u30dc\u30c3\u30c8\u306e\u8a71\u3057\u76f8\u624b\u3067\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "UserName" + }, + { + "name": "reply_to_id", + "type": "NUMBER", + "description": "\u30ea\u30d7\u30e9\u30a4\u5148\u306eid\u756a\u53f7", + "default": "1" + }, + { + "name": "bot_name", + "type": "STRING", + "description": "\u3053\u306eAPI\u3092\u5229\u7528\u3059\u308b\u30dc\u30c3\u30c8\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u203bAPI\u5185\u90e8\u3067\u306f[bot_name - user_name]\u9593\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u5143\u306b\u3001\u300c\u6d41\u308c\u306e\u3042\u308b\u81ea\u7136\u306a\u4f1a\u8a71\u300d\u3092\u6210\u7acb\u3055\u305b\u307e\u3059\u3002", + "default": "MyBotName" + } + ], + "optional_parameters": [ + { + "name": "load_only_positive_info", + "type": "BOOLEAN", + "description": "true\u306e\u6642\u3001\u8a71\u984c\u5909\u63db\u6642\u306b\u306f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u5358\u8a9e\u306e\u307f\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n", + "default": "true" + }, + { + "name": "use_detect_user_info", + "type": "BOOLEAN", + "description": "\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ftrue\u3092\u3001\u60c5\u5831\u62bd\u51fa\u3092\u3057\u306a\u3044\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "use_change_topic", + "type": "BOOLEAN", + "description": "true\u306a\u3089\u3070\u8a71\u984c\u5909\u63db\u3092\u3057\u307e\u3059\u3002\uff08detect_user_info=false\u306e\u6642\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff09", + "default": "true" + }, + { + "name": "save_only_positive_info", + "type": "BOOLEAN", + "description": "use_detect_user_info \u306e\u60c5\u5831\u62bd\u51fa\u306e\u5bfe\u8c61\u3092\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u4e8b\u67c4\u306e\u307f\u306b\u3059\u308b\u5834\u5408true\u3001\u3059\u3079\u3066\u306e\u4e8b\u67c4\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_twitter/\"\nquerystring = {\"load_only_positive_info\": \"true\", \"user_msg_text\": \"Hello\", \"user_name\": \"UserName\", \"reply_to_id\": \"1\", \"use_detect_user_info\": \"true\", \"use_change_topic\": \"true\", \"bot_name\": \"MyBotName\", \"save_only_positive_info\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_twitter/\"\nquerystring = {\"load_only_positive_info\": \"true\", \"user_msg_text\": \"Hello\", \"user_name\": \"UserName\", \"reply_to_id\": \"1\", \"use_detect_user_info\": \"true\", \"use_change_topic\": \"true\", \"bot_name\": \"MyBotName\", \"save_only_positive_info\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "response": { + "res": "UserName\u3055\u3093\u3001\u304a\u306f\u3088\u30fc!", + "user_score": -0.15976466238498688, + "lm": 0.4587181806564331, + "mc": 18.619415283203125, + "score": 13.492308616638184, + "history_text": "Hello", + "res_score_list": [ + [ + "\u3053\u3093\u3070\u3093\u306f\u3001\u3055\u3093", + [ + 0.5276287794113159, + 17.923603057861328, + 13.074151039123535 + ] + ], + [ + "\u304d\u3083\u30fc\u30fc\u30fc\u30fc", + [ + 0.3973460793495178, + -1.1442265510559082, + -0.40361249446868896 + ] + ], + [ + "\u3088\u30fc\u3057\u3088\u3057\u3088\u3057!", + [ + 0.43043428659439087, + -0.03417768329381943, + 0.4065099060535431 + ] + ], + [ + "\u3088\u30fc\u3057\u3088\u3057\u3088\u3057\u3088\u3057", + [ + 0.4352944791316986, + 0.26606327295303345, + 0.6215387582778931 + ] + ], + [ + "\u3046\u3047\u30fc\u3044!\u3042\u308a\u304c\u3068\u3046", + [ + 0.36631518602371216, + 0.1892172396183014, + 0.49876725673675537 + ] + ] + ], + "user_utt_id": 33489, + "bot_utt_id": 33490 + } + } + }, + { + "name": "on_slack", + "url": "https://generaltalker.p.rapidapi.com/on_slack/", + "description": "slack\u30dc\u30c3\u30c8\u5c02\u7528\u306e\u96d1\u8ac7API\u3067\u3059\u3002\n\n\u4ee5\u4e0b\u306fon_slack\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u4f8b\u3068\u3001\u305d\u306e\u610f\u5473\u3067\u3059\u3002\n```\n{\n\"response\":{\n \"res\":\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u751f\u6210\u3055\u308c\u305f\u8fd4\u7b54\n \"user_score\":-2.8724350929260254 # \u30e6\u30fc\u30b6\u30fc\u306e\u767a\u8a71\u306e\u30b9\u30b3\u30a2\n \"lm\":0.7096909880638123 # \u6587\u7ae0\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"mc\":-1.5187406539916992 # \u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"score\":-0.3534274697303772 # \u7dcf\u5408\u30b9\u30b3\u30a2\n \"history_text\":\"Hello\" # \u767a\u8a71\u306e\u751f\u6210\u306b\u4f7f\u308f\u308c\u305f\u767a\u8a71\u5c65\u6b74\n \"res_score_list\":[ # \u63a1\u7528\u3057\u306a\u304b\u3063\u305f\u8fd4\u7b54\u306e\u30ea\u30b9\u30c8\n 0:[\n 0:\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u8fd4\u7b54\u306e\u5185\u5bb9\n 1:[ # \u30b9\u30b3\u30a2\uff08\u6587\u7ae0\u306e\u59a5\u5f53\u6027,\u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027,\u7dcf\u5408\u30b9\u30b3\u30a2\uff09\n 0:0.7096909880638123\n 1:-1.5187406539916992\n 2:-0.3534274697303772\n ]\n ]\n ... # \u4e2d\u7565\n ]\n }\n}\n```", + "method": "GET", + "required_parameters": [ + { + "name": "user_name", + "type": "STRING", + "description": "\u30dc\u30c3\u30c8\u306e\u8a71\u3057\u76f8\u624b\u3067\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "UserName" + }, + { + "name": "user_msg_text", + "type": "STRING", + "description": "\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u8a71\u3057\u304b\u3051\u3089\u308c\u305f\u5185\u5bb9\uff08\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "Hello" + }, + { + "name": "channel_token", + "type": "STRING", + "description": "Slack\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3054\u3068\u306e\u30c8\u30fc\u30af\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u4f8b 'D01E65TPZ2M'", + "default": "channel1" + }, + { + "name": "bot_name", + "type": "STRING", + "description": "\u3053\u306eAPI\u3092\u5229\u7528\u3059\u308b\u30dc\u30c3\u30c8\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u203bAPI\u5185\u90e8\u3067\u306f[bot_name - user_name]\u9593\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u5143\u306b\u3001\u300c\u6d41\u308c\u306e\u3042\u308b\u81ea\u7136\u306a\u4f1a\u8a71\u300d\u3092\u6210\u7acb\u3055\u305b\u307e\u3059\u3002", + "default": "MyBotName" + } + ], + "optional_parameters": [ + { + "name": "save_only_positive_info", + "type": "BOOLEAN", + "description": "use_detect_user_info \u306e\u60c5\u5831\u62bd\u51fa\u306e\u5bfe\u8c61\u3092\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u4e8b\u67c4\u306e\u307f\u306b\u3059\u308b\u5834\u5408true\u3001\u3059\u3079\u3066\u306e\u4e8b\u67c4\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "use_detect_user_info", + "type": "BOOLEAN", + "description": "\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ftrue\u3092\u3001\u60c5\u5831\u62bd\u51fa\u3092\u3057\u306a\u3044\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "load_only_positive_info", + "type": "BOOLEAN", + "description": "true\u306e\u6642\u3001\u8a71\u984c\u5909\u63db\u6642\u306b\u306f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u5358\u8a9e\u306e\u307f\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n", + "default": "true" + }, + { + "name": "use_change_topic", + "type": "BOOLEAN", + "description": "true\u306a\u3089\u3070\u8a71\u984c\u5909\u63db\u3092\u3057\u307e\u3059\u3002\uff08detect_user_info=false\u306e\u6642\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff09", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_slack/\"\nquerystring = {\"save_only_positive_info\": \"true\", \"use_detect_user_info\": \"true\", \"user_name\": \"UserName\", \"load_only_positive_info\": \"true\", \"user_msg_text\": \"Hello\", \"use_change_topic\": \"true\", \"channel_token\": \"channel1\", \"bot_name\": \"MyBotName\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_slack/\"\nquerystring = {\"save_only_positive_info\": \"true\", \"use_detect_user_info\": \"true\", \"user_name\": \"UserName\", \"load_only_positive_info\": \"true\", \"user_msg_text\": \"Hello\", \"use_change_topic\": \"true\", \"channel_token\": \"channel1\", \"bot_name\": \"MyBotName\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "response": { + "res": "UserName\u3061\u3083\u3093\u3001\u304a\u75b2\u308c\u69d8", + "user_score": -0.15976466238498688, + "lm": 0.542029619216919, + "mc": 18.517536163330078, + "score": 13.504304885864258, + "history_text": "Hello", + "res_score_list": [ + [ + "\u3069\u3057\u305f\u306e??", + [ + 0.46702274680137634, + 0.25986841320991516, + 0.6489306688308716 + ] + ], + [ + "\u3055\u3093\u304a\u306f\u3088\u30fc", + [ + 0.5050880312919617, + 18.119253158569336, + 13.188565254211426 + ] + ], + [ + "\u3084\u307b\u30fc!\u304a\u4e45\u3057\u3076\u308a\u3067\u3059", + [ + 0.4285958409309387, + 4.625365257263184, + 3.666351318359375 + ] + ], + [ + "\u304d\u3083\u3074\u304d\u3083\u3074", + [ + 0.4327908158302307, + -0.26386094093322754, + 0.24808816611766815 + ] + ], + [ + "\u3046\u3063\u3059!\u3053\u3093\u3070\u3093\u306f\u30fc", + [ + 0.33922532200813293, + 3.5348052978515625, + 2.813588857650757 + ] + ] + ] + } + } + }, + { + "name": "on_general", + "url": "https://generaltalker.p.rapidapi.com/on_general/", + "description": "\u3044\u308d\u3044\u308d\u306a\u30dc\u30c3\u30c8\u3067\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u308b\u96d1\u8ac7API\u3067\u3059\u3002\n\n\u4ee5\u4e0b\u306fon_general\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u4f8b\u3068\u3001\u305d\u306e\u610f\u5473\u3067\u3059\u3002\n```\n{\n\"response\":{\n \"res\":\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u751f\u6210\u3055\u308c\u305f\u8fd4\u7b54\n \"user_score\":-2.8724350929260254 # \u30e6\u30fc\u30b6\u30fc\u306e\u767a\u8a71\u306e\u30b9\u30b3\u30a2\n \"lm\":0.7096909880638123 # \u6587\u7ae0\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"mc\":-1.5187406539916992 # \u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027\u30b9\u30b3\u30a2\n \"score\":-0.3534274697303772 # \u7dcf\u5408\u30b9\u30b3\u30a2\n \"history_text\":\"Hello\" # \u767a\u8a71\u306e\u751f\u6210\u306b\u4f7f\u308f\u308c\u305f\u767a\u8a71\u5c65\u6b74\n \"res_score_list\":[ # \u63a1\u7528\u3057\u306a\u304b\u3063\u305f\u8fd4\u7b54\u306e\u30ea\u30b9\u30c8\n 0:[\n 0:\"\u304a\u306f\u3088\u30fc\u3054\u3056\u3044\u307e\u3059\" # \u8fd4\u7b54\u306e\u5185\u5bb9\n 1:[ # \u30b9\u30b3\u30a2\uff08\u6587\u7ae0\u306e\u59a5\u5f53\u6027,\u8fd4\u7b54\u3068\u3057\u3066\u306e\u59a5\u5f53\u6027,\u7dcf\u5408\u30b9\u30b3\u30a2\uff09\n 0:0.7096909880638123\n 1:-1.5187406539916992\n 2:-0.3534274697303772\n ]\n ]\n ... # \u4e2d\u7565\n ]\n }\n}\n```", + "method": "GET", + "required_parameters": [ + { + "name": "user_name", + "type": "STRING", + "description": "\u30dc\u30c3\u30c8\u306e\u8a71\u3057\u76f8\u624b\u3067\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "UserName" + }, + { + "name": "user_msg_text", + "type": "STRING", + "description": "\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u8a71\u3057\u304b\u3051\u3089\u308c\u305f\u5185\u5bb9\uff08\u30c6\u30ad\u30b9\u30c8\uff09\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "Hello" + }, + { + "name": "bot_name", + "type": "STRING", + "description": "\u3053\u306eAPI\u3092\u5229\u7528\u3059\u308b\u30dc\u30c3\u30c8\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u203bAPI\u5185\u90e8\u3067\u306f[bot_name - user_name]\u9593\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u5143\u306b\u3001\u300c\u6d41\u308c\u306e\u3042\u308b\u81ea\u7136\u306a\u4f1a\u8a71\u300d\u3092\u6210\u7acb\u3055\u305b\u307e\u3059\u3002", + "default": "MyBotName" + } + ], + "optional_parameters": [ + { + "name": "save_only_positive_info", + "type": "BOOLEAN", + "description": "use_detect_user_info \u306e\u60c5\u5831\u62bd\u51fa\u306e\u5bfe\u8c61\u3092\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u4e8b\u67c4\u306e\u307f\u306b\u3059\u308b\u5834\u5408true\u3001\u3059\u3079\u3066\u306e\u4e8b\u67c4\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "load_only_positive_info", + "type": "BOOLEAN", + "description": "true\u306e\u6642\u3001\u8a71\u984c\u5909\u63db\u6642\u306b\u306f\u30dd\u30b8\u30c6\u30a3\u30d6\u306a\u5358\u8a9e\u306e\u307f\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n", + "default": "true" + }, + { + "name": "use_detect_user_info", + "type": "BOOLEAN", + "description": "\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u5834\u5408\u306ftrue\u3092\u3001\u60c5\u5831\u62bd\u51fa\u3092\u3057\u306a\u3044\u5834\u5408\u306ffalse\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002", + "default": "true" + }, + { + "name": "use_change_topic", + "type": "BOOLEAN", + "description": "true\u306a\u3089\u3070\u8a71\u984c\u5909\u63db\u3092\u3057\u307e\u3059\u3002\uff08detect_user_info=false\u306e\u6642\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff09", + "default": "true" + } + ], + "code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_general/\"\nquerystring = {\"user_name\": \"UserName\", \"user_msg_text\": \"Hello\", \"save_only_positive_info\": \"true\", \"load_only_positive_info\": \"true\", \"use_detect_user_info\": \"true\", \"bot_name\": \"MyBotName\", \"use_change_topic\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://generaltalker.p.rapidapi.com/on_general/\"\nquerystring = {\"user_name\": \"UserName\", \"user_msg_text\": \"Hello\", \"save_only_positive_info\": \"true\", \"load_only_positive_info\": \"true\", \"use_detect_user_info\": \"true\", \"bot_name\": \"MyBotName\", \"use_change_topic\": \"true\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"generaltalker.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "response": { + "res": "UserName\u3055\u3093\u3001\u3053\u3093\u3070\u3093\u306f", + "user_score": -0.15976466238498688, + "lm": 0.6104969382286072, + "mc": 19.026779174804688, + "score": 13.929242134094238, + "history_text": "Hello", + "res_score_list": [ + [ + "\u3075\u3063...\u4ffa\u306b\u306f\u3053\u308c\u3057\u304b\u306a\u3044\u306e\u3055", + [ + 0.2840823829174042, + -2.556734561920166, + -1.5056318044662476 + ] + ], + [ + "\u3053\u3093\u3070\u3093\u306f\u4eca\u65e5\u30821\u65e5\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f", + [ + 0.714632511138916, + 2.855717182159424, + 2.713634490966797 + ] + ], + [ + "\u306f\u308d\u30fc\u30fc\u30fc!", + [ + 0.4317198097705841, + 7.384375095367432, + 5.60078239440918 + ] + ], + [ + "\u3084\u307b\u30fc!\u3082\u3063\u3068\u7d61\u3082\u3046\u306d", + [ + 0.4759257435798645, + 6.321331977844238, + 4.900858402252197 + ] + ], + [ + "\u3088\u30fc\u3078\u3044\u3078\u3044!", + [ + 0.4817992150783539, + 2.689579963684082, + 2.3645050525665283 + ] + ] + ] + } + } + } + ], + "standardized_name": "generaltalker" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/generaltalker/api.py b/toolbench/toolenv/tools/Communication/generaltalker/api.py new file mode 100644 index 0000000000000000000000000000000000000000..4f9cf6669541b89b0ace3025159ecfb99c46ac49 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/generaltalker/api.py @@ -0,0 +1,267 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def on_line(bot_name: str, channel_token: str, user_name: str, user_msg_text: str, save_only_positive_info: bool=None, use_change_topic: bool=None, use_detect_user_info: bool=None, load_only_positive_info: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "LINEボット専用の雑談APIです。 + + 以下はon_lineのレスポンス例と、その意味です。 + ``` + { + "response":{ + "res":"おはよーございます" # 生成された返答 + "user_score":-2.8724350929260254 # ユーザーの発話のスコア + "lm":0.7096909880638123 # 文章の妥当性スコア + "mc":-1.5187406539916992 # 返答としての妥当性スコア + "score":-0.3534274697303772 # 総合スコア + "history_text":"Hello" # 発話の生成に使われた発話履歴 + "res_score_list":[ # 採用しなかった返答のリスト + 0:[ + 0:"おはよーございます" # 返答の内容 + 1:[ # スコア(文章の妥当性,返答としての妥当性,総合スコア) + 0:0.7096909880638123 + 1:-1.5187406539916992 + 2:-0.3534274697303772 + ] + ] + ... # 中略 + ] + } + } + ```" + bot_name: このAPIを利用するボットの名前を指定してください。 +※API内部では[bot_name - user_name]間の会話履歴を元に、「流れのある自然な会話」を成立させます。 + channel_token: チャンネルアクセストークンを指定してください。 + user_name: ボットの話し相手であるユーザーの名前を指定してください。 + user_msg_text: ユーザーから話しかけられた内容(テキスト)を指定してください。 + save_only_positive_info: use_detect_user_info の情報抽出の対象をポジティブな事柄のみにする場合true、すべての事柄を抽出する場合はfalseを指定してください。 + use_change_topic: trueならば話題変換をします。(detect_user_info=falseの時は動作しません) + use_detect_user_info: ユーザーのメッセージから情報を抽出する場合はtrueを、情報抽出をしない場合はfalseを指定してください。 + load_only_positive_info: trueの時、話題変換時にはポジティブな単語のみを使用します。 + + + """ + url = f"https://generaltalker.p.rapidapi.com/on_line/" + querystring = {'bot_name': bot_name, 'channel_token': channel_token, 'user_name': user_name, 'user_msg_text': user_msg_text, } + if save_only_positive_info: + querystring['save_only_positive_info'] = save_only_positive_info + if use_change_topic: + querystring['use_change_topic'] = use_change_topic + if use_detect_user_info: + querystring['use_detect_user_info'] = use_detect_user_info + if load_only_positive_info: + querystring['load_only_positive_info'] = load_only_positive_info + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "generaltalker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def on_twitter(user_msg_text: str, user_name: str, reply_to_id: int, bot_name: str, load_only_positive_info: bool=None, use_detect_user_info: bool=None, use_change_topic: bool=None, save_only_positive_info: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "ツイッターボット専用の雑談APIです。reply_to_id(リプライ先のID)を渡すことで、過去の会話履歴をふまえた会話ができます。 + + 以下はレスポンスの例と、その意味です。 + + ``` + { + "response":{ + "res":"おはよーございます" # 生成された返答 + "user_score":-2.8724350929260254 # ユーザーの発話のスコア + "lm":0.7096909880638123 # 文章の妥当性スコア + "mc":-1.5187406539916992 # 返答としての妥当性スコア + "score":-0.3534274697303772 # 総合スコア + "history_text":"Hello" # 発話の生成に使われた発話履歴 + "res_score_list":[ # 採用しなかった返答のリスト + 0:[ + 0:"おはよーございます" # 返答の内容 + 1:[ # スコア(文章の妥当性,返答としての妥当性,総合スコア) + 0:0.7096909880638123 + 1:-1.5187406539916992 + 2:-0.3534274697303772 + ] + ] + ... # 中略 + ] + "user_utt_id":1355 # ユーザーの発話のid + "bot_utt_id":1356 # 生成した返答のid + } + } + ```" + user_msg_text: ユーザーから話しかけられた内容(テキスト)を指定してください。 + user_name: ボットの話し相手であるユーザーの名前を指定してください。 + reply_to_id: リプライ先のid番号 + bot_name: このAPIを利用するボットの名前を指定してください。 +※API内部では[bot_name - user_name]間の会話履歴を元に、「流れのある自然な会話」を成立させます。 + load_only_positive_info: trueの時、話題変換時にはポジティブな単語のみを使用します。 + + use_detect_user_info: ユーザーのメッセージから情報を抽出する場合はtrueを、情報抽出をしない場合はfalseを指定してください。 + use_change_topic: trueならば話題変換をします。(detect_user_info=falseの時は動作しません) + save_only_positive_info: use_detect_user_info の情報抽出の対象をポジティブな事柄のみにする場合true、すべての事柄を抽出する場合はfalseを指定してください。 + + """ + url = f"https://generaltalker.p.rapidapi.com/on_twitter/" + querystring = {'user_msg_text': user_msg_text, 'user_name': user_name, 'reply_to_id': reply_to_id, 'bot_name': bot_name, } + if load_only_positive_info: + querystring['load_only_positive_info'] = load_only_positive_info + if use_detect_user_info: + querystring['use_detect_user_info'] = use_detect_user_info + if use_change_topic: + querystring['use_change_topic'] = use_change_topic + if save_only_positive_info: + querystring['save_only_positive_info'] = save_only_positive_info + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "generaltalker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def on_slack(user_name: str, user_msg_text: str, channel_token: str, bot_name: str, save_only_positive_info: bool=None, use_detect_user_info: bool=None, load_only_positive_info: bool=None, use_change_topic: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "slackボット専用の雑談APIです。 + + 以下はon_slackのレスポンス例と、その意味です。 + ``` + { + "response":{ + "res":"おはよーございます" # 生成された返答 + "user_score":-2.8724350929260254 # ユーザーの発話のスコア + "lm":0.7096909880638123 # 文章の妥当性スコア + "mc":-1.5187406539916992 # 返答としての妥当性スコア + "score":-0.3534274697303772 # 総合スコア + "history_text":"Hello" # 発話の生成に使われた発話履歴 + "res_score_list":[ # 採用しなかった返答のリスト + 0:[ + 0:"おはよーございます" # 返答の内容 + 1:[ # スコア(文章の妥当性,返答としての妥当性,総合スコア) + 0:0.7096909880638123 + 1:-1.5187406539916992 + 2:-0.3534274697303772 + ] + ] + ... # 中略 + ] + } + } + ```" + user_name: ボットの話し相手であるユーザーの名前を指定してください。 + user_msg_text: ユーザーから話しかけられた内容(テキスト)を指定してください。 + channel_token: Slackのチャンネルごとのトークンを指定してください。 +例 'D01E65TPZ2M' + bot_name: このAPIを利用するボットの名前を指定してください。 +※API内部では[bot_name - user_name]間の会話履歴を元に、「流れのある自然な会話」を成立させます。 + save_only_positive_info: use_detect_user_info の情報抽出の対象をポジティブな事柄のみにする場合true、すべての事柄を抽出する場合はfalseを指定してください。 + use_detect_user_info: ユーザーのメッセージから情報を抽出する場合はtrueを、情報抽出をしない場合はfalseを指定してください。 + load_only_positive_info: trueの時、話題変換時にはポジティブな単語のみを使用します。 + + use_change_topic: trueならば話題変換をします。(detect_user_info=falseの時は動作しません) + + """ + url = f"https://generaltalker.p.rapidapi.com/on_slack/" + querystring = {'user_name': user_name, 'user_msg_text': user_msg_text, 'channel_token': channel_token, 'bot_name': bot_name, } + if save_only_positive_info: + querystring['save_only_positive_info'] = save_only_positive_info + if use_detect_user_info: + querystring['use_detect_user_info'] = use_detect_user_info + if load_only_positive_info: + querystring['load_only_positive_info'] = load_only_positive_info + if use_change_topic: + querystring['use_change_topic'] = use_change_topic + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "generaltalker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def on_general(user_name: str, user_msg_text: str, bot_name: str, save_only_positive_info: bool=None, load_only_positive_info: bool=None, use_detect_user_info: bool=None, use_change_topic: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "いろいろなボットでご利用いただける雑談APIです。 + + 以下はon_generalのレスポンス例と、その意味です。 + ``` + { + "response":{ + "res":"おはよーございます" # 生成された返答 + "user_score":-2.8724350929260254 # ユーザーの発話のスコア + "lm":0.7096909880638123 # 文章の妥当性スコア + "mc":-1.5187406539916992 # 返答としての妥当性スコア + "score":-0.3534274697303772 # 総合スコア + "history_text":"Hello" # 発話の生成に使われた発話履歴 + "res_score_list":[ # 採用しなかった返答のリスト + 0:[ + 0:"おはよーございます" # 返答の内容 + 1:[ # スコア(文章の妥当性,返答としての妥当性,総合スコア) + 0:0.7096909880638123 + 1:-1.5187406539916992 + 2:-0.3534274697303772 + ] + ] + ... # 中略 + ] + } + } + ```" + user_name: ボットの話し相手であるユーザーの名前を指定してください。 + user_msg_text: ユーザーから話しかけられた内容(テキスト)を指定してください。 + bot_name: このAPIを利用するボットの名前を指定してください。 +※API内部では[bot_name - user_name]間の会話履歴を元に、「流れのある自然な会話」を成立させます。 + save_only_positive_info: use_detect_user_info の情報抽出の対象をポジティブな事柄のみにする場合true、すべての事柄を抽出する場合はfalseを指定してください。 + load_only_positive_info: trueの時、話題変換時にはポジティブな単語のみを使用します。 + + use_detect_user_info: ユーザーのメッセージから情報を抽出する場合はtrueを、情報抽出をしない場合はfalseを指定してください。 + use_change_topic: trueならば話題変換をします。(detect_user_info=falseの時は動作しません) + + """ + url = f"https://generaltalker.p.rapidapi.com/on_general/" + querystring = {'user_name': user_name, 'user_msg_text': user_msg_text, 'bot_name': bot_name, } + if save_only_positive_info: + querystring['save_only_positive_info'] = save_only_positive_info + if load_only_positive_info: + querystring['load_only_positive_info'] = load_only_positive_info + if use_detect_user_info: + querystring['use_detect_user_info'] = use_detect_user_info + if use_change_topic: + querystring['use_change_topic'] = use_change_topic + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "generaltalker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/get_2factor_authentication_india.json b/toolbench/toolenv/tools/Communication/get_2factor_authentication_india.json new file mode 100644 index 0000000000000000000000000000000000000000..1da2d2bef521438901120ab8ed7efd8ae08cfcab --- /dev/null +++ b/toolbench/toolenv/tools/Communication/get_2factor_authentication_india.json @@ -0,0 +1,418 @@ +{ + "product_id": "559b4ff3e4b0520d42b5a6ae", + "tool_description": "2Factor.in provides extremely simple to use APIs for implementing 2Factor Authentication ( Phone verification ) with just 1 API Call.\r\nBest Part of 2Factor.in solution is its Fast, Reliable & Economical too.", + "home_url": "https://rapidapi.com/motp/api/2factor-authentication-india/", + "name": "2Factor Authentication - India", + "title": "2Factor Authentication - India", + "pricing": "FREE", + "tool_name": "2Factor Authentication - India", + "score": { + "avgServiceLevel": 100, + "avgLatency": 334, + "avgSuccessRate": 0, + "popularityScore": 0.3, + "__typename": "Score" + }, + "host": "2factor.p.rapidapi.com", + "api_list": [ + { + "name": "Check Balance - Addon Services", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/ADDON_SERVICES/BAL/TRANSACTIONAL_SMS", + "description": "Check Balance For Addon Services", + "method": "GET", + "required_parameters": [ + { + "name": "service_name", + "type": "STRING", + "description": "Name of the addon service", + "default": "TRANSACTIONAL_SMS" + }, + { + "name": "api_key", + "type": "STRING", + "description": "2Factor account API Key", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/ADDON_SERVICES/BAL/TRANSACTIONAL_SMS\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/ADDON_SERVICES/BAL/{service_name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending Voice OTP ( Custom OTP )", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/VOICE/9911991199/4499", + "description": "This endpoint is used to send VOICE OTP to India", + "method": "GET", + "required_parameters": [ + { + "name": "otp", + "type": "NUMBER", + "description": "4 Digit ( Numeric ) OTP code to be sent", + "default": "4499" + }, + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/VOICE/9911991199/4499\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/VOICE/{phone_number}/{otp}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending SMS OTP ( Custom OTP )", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/4499", + "description": "This endpoint is used to send Custom SMS OTP to India", + "method": "GET", + "required_parameters": [ + { + "name": "otp", + "type": "STRING", + "description": "4-6 Digit ( Numeric ) OTP code to be sent", + "default": "4499" + }, + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/4499\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/SMS/{phone_number}/{otp}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Verify SMS OTP Input", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/VERIFY/4a4b52d9-be3e-4f2c-b66e-f4141091b876/1234", + "description": "This endpoint is useful in verifying user entered OTP with sent OTP", + "method": "GET", + "required_parameters": [ + { + "name": "otp_input", + "type": "STRING", + "description": "OTP Value input by end user", + "default": "1234" + }, + { + "name": "session_id", + "type": "STRING", + "description": "Verification session id returned in send OTP step", + "default": "4a4b52d9-be3e-4f2c-b66e-f4141091b876" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/VERIFY/4a4b52d9-be3e-4f2c-b66e-f4141091b876/1234\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/SMS/VERIFY/{session_id}/{otp_input}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending SMS OTP ( Auto Generated OTP )", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/AUTOGEN", + "description": "This endpoint is used to send Auto Generated SMS OTP to India", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/AUTOGEN\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/SMS/{phone_number}/AUTOGEN\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Verify VOICE OTP Input", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/VOICE/VERIFY/4a4b52d9-be3e-4f2c-b66e-f4141091b876/1234", + "description": "This endpoint is useful in verifying user entered OTP with sent OTP", + "method": "GET", + "required_parameters": [ + { + "name": "otp_input", + "type": "STRING", + "description": "OTP Value input by end user", + "default": "1234" + }, + { + "name": "session_id", + "type": "STRING", + "description": "Verification session id returned in send OTP step", + "default": "4a4b52d9-be3e-4f2c-b66e-f4141091b876" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/VOICE/VERIFY/4a4b52d9-be3e-4f2c-b66e-f4141091b876/1234\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/VOICE/VERIFY/{session_id}/{otp_input}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending SMS OTP ( Auto Generated OTP - Custom Template )", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/AUTOGEN/ABCDEF", + "description": "This endpoint is used to send Auto Generated SMS OTP to India", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "template_name", + "type": "STRING", + "description": "Template name created using Custom Template Wizard", + "default": "ABCDEF" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/AUTOGEN/ABCDEF\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/SMS/{phone_number}/AUTOGEN/{template_name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending SMS OTP ( Custom OTP - Custom Template )", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/4499/ABCDEF", + "description": "This endpoint is used to send SMS OTP to India", + "method": "GET", + "required_parameters": [ + { + "name": "otp", + "type": "STRING", + "description": "4 Digit ( Numeric ) OTP code to be sent", + "default": "4499" + }, + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "template_name", + "type": "STRING", + "description": "Template name created using Custom Template Wizard", + "default": "ABCDEF" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/SMS/9911991199/4499/ABCDEF\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/SMS/{phone_number}/{otp}/{template_name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending VOICE OTP ( Auto Generated OTP )", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/VOICE/9911991199/AUTOGEN", + "description": "This endpoint is used to send Auto Generated VOICE OTP to India", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/VOICE/9911991199/AUTOGEN\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/VOICE/{phone_number}/AUTOGEN\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Block Number - SMS Service", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/SMS/ADD", + "description": "This endpoint is used to add number to SMS Blocklist", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/SMS/ADD\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/BLOCK/{phone_number}/SMS/ADD\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Un-Block Number - SMS Service", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/SMS/REMOVE", + "description": "This endpoint is used to remove number from SMS Blocklist", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/SMS/REMOVE\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/BLOCK/{phone_number}/SMS/REMOVE\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Un-Block Number - VOICE Service", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/VOICE/REMOVE", + "description": "This endpoint is used to remove number from VOICE Blocklist", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "Get one from http://2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/VOICE/REMOVE\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/BLOCK/{phone_number}/VOICE/REMOVE\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Block Number - VOICE Service", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/VOICE/ADD", + "description": "This endpoint is used to add number to VOICE Blocklist", + "method": "GET", + "required_parameters": [ + { + "name": "phone_number", + "type": "STRING", + "description": "10 Digit Indian Phone Number", + "default": "9911991199" + }, + { + "name": "api_key", + "type": "STRING", + "description": "Get one from http://2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/BLOCK/9911991199/VOICE/ADD\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/BLOCK/{phone_number}/VOICE/ADD\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Pull Delivery Report", + "url": "https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/ADDON_SERVICES/RPT/TSMS/Session Id Goes here", + "description": "Pull Delivery Report - Transactional SMS", + "method": "GET", + "required_parameters": [ + { + "name": "session_id", + "type": "STRING", + "description": "Session Id Returned By Send SMS Step", + "default": "Session Id Goes here" + }, + { + "name": "api_key", + "type": "STRING", + "description": "API Obtained From 2Factor.in", + "default": "293832-67745-11e5-88de-5600000c6b13" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/293832-67745-11e5-88de-5600000c6b13/ADDON_SERVICES/RPT/TSMS/Session Id Goes here\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://2factor.p.rapidapi.com/API/V1/{api_key}/ADDON_SERVICES/RPT/TSMS/{session_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"2factor.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "get_2factor_authentication_india" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/get_2factor_authentication_india/api.py b/toolbench/toolenv/tools/Communication/get_2factor_authentication_india/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0d5e29c5face5542504c048b62e95db4c4a517b6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/get_2factor_authentication_india/api.py @@ -0,0 +1,100 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def block_number_sms_service(phone_number: str, api_key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is used to add number to SMS Blocklist" + phone_number: 10 Digit Indian Phone Number + api_key: API Obtained From 2Factor.in + + """ + url = f"https://2factor.p.rapidapi.com/api/v1/{api_key}/block/{phone_number}/sms/add" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "2factor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def un_block_number_sms_service(phone_number: str, api_key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is used to remove number from SMS Blocklist" + phone_number: 10 Digit Indian Phone Number + api_key: API Obtained From 2Factor.in + + """ + url = f"https://2factor.p.rapidapi.com/api/v1/{api_key}/block/{phone_number}/sms/remove" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "2factor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def un_block_number_voice_service(phone_number: str, api_key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is used to remove number from VOICE Blocklist" + phone_number: 10 Digit Indian Phone Number + api_key: Get one from http://2Factor.in + + """ + url = f"https://2factor.p.rapidapi.com/api/v1/{api_key}/block/{phone_number}/voice/remove" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "2factor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def block_number_voice_service(phone_number: str, api_key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is used to add number to VOICE Blocklist" + phone_number: 10 Digit Indian Phone Number + api_key: Get one from http://2Factor.in + + """ + url = f"https://2factor.p.rapidapi.com/api/v1/{api_key}/block/{phone_number}/voice/add" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "2factor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/get_31events_send_native_calendar_invites.json b/toolbench/toolenv/tools/Communication/get_31events_send_native_calendar_invites.json new file mode 100644 index 0000000000000000000000000000000000000000..0cf346f2b3e1a651a0359ca4cbfd3f4be3701b61 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/get_31events_send_native_calendar_invites.json @@ -0,0 +1,112 @@ +{ + "product_id": "53aa60e5e4b07e1f4ebeca2f", + "tool_description": "31Events is a simple, yet powerful calendaring event management service that allows for the sending of calendaring events directly to your customer\u2019s calendar. It could be used for Webinars, Seminars, Training, etc. If the customer accepts the calendar invite they are automatically signed up for the event.\r\n\r\nStandards based iCal compliant that works with Exchange calendars, Google Calendars, mobile phones. \r\n\r\nNo more \"Click to download to calendar\" Send directly to a email account for accept or reject.", + "home_url": "https://rapidapi.com/pinke01/api/31events-send-native-calendar-invites/", + "name": "31Events - Send Native Calendar Invites", + "title": "31Events - Send Native Calendar Invites", + "pricing": "FREE", + "tool_name": "31Events - Send Native Calendar Invites", + "score": { + "avgServiceLevel": 100, + "avgLatency": 611, + "avgSuccessRate": 0, + "popularityScore": 0.1, + "__typename": "Score" + }, + "host": "pinke01-31events-auth.p.rapidapi.com", + "api_list": [ + { + "name": "AccountList", + "url": "https://pinke01-31events-auth.p.rapidapi.com/account/list", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/account/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/account/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "AccoungGet", + "url": "https://pinke01-31events-auth.p.rapidapi.com/account/1", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "customer_id", + "type": "STRING", + "description": "Customer ID", + "default": "1" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/account/1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/account/{customer_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "EventList", + "url": "https://pinke01-31events-auth.p.rapidapi.com/event/list", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/event/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/event/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "EventGet", + "url": "https://pinke01-31events-auth.p.rapidapi.com/event/1", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "event_id", + "type": "STRING", + "description": "Event ID", + "default": "1" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/event/1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/event/{event_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "EventResponses", + "url": "https://pinke01-31events-auth.p.rapidapi.com/event/1/accepted", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "event_id", + "type": "STRING", + "description": "Event ID", + "default": "1" + }, + { + "name": "response_type", + "type": "STRING", + "description": "one of \"accepted\", \"attended\", \"declined\", \"noreply\"", + "default": "accepted" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/event/1/accepted\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pinke01-31events-auth.p.rapidapi.com/event/{event_id}/{response_type}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pinke01-31events-auth.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "get_31events_send_native_calendar_invites" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/get_31events_send_native_calendar_invites/api.py b/toolbench/toolenv/tools/Communication/get_31events_send_native_calendar_invites/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9654a03c51c51426583a978dc863f4863da850fc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/get_31events_send_native_calendar_invites/api.py @@ -0,0 +1,117 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def accountlist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://pinke01-31events-auth.p.rapidapi.com/account/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pinke01-31events-auth.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def accoungget(customer_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + customer_id: Customer ID + + """ + url = f"https://pinke01-31events-auth.p.rapidapi.com/account/{customer_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pinke01-31events-auth.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def eventlist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://pinke01-31events-auth.p.rapidapi.com/event/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pinke01-31events-auth.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def eventget(event_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + event_id: Event ID + + """ + url = f"https://pinke01-31events-auth.p.rapidapi.com/event/{event_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pinke01-31events-auth.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def eventresponses(event_id: str, response_type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + event_id: Event ID + response_type: one of "accepted", "attended", "declined", "noreply" + + """ + url = f"https://pinke01-31events-auth.p.rapidapi.com/event/{event_id}/{response_type}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pinke01-31events-auth.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/get_4realrecords/api.py b/toolbench/toolenv/tools/Communication/get_4realrecords/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6f69e6f5e9cbc75946a30623f9031ef51087c5a3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/get_4realrecords/api.py @@ -0,0 +1,47 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def zeno(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "setUrl('https://zeno-media1.p.rapidapi.com/'); + $request->setMethod(HTTP_METH_GET); + + $request->setHeaders([ + 'Authorization' => '', + 'X-RapidAPI-Key' => 'f7de183c6dmsh5b1dbec0a9bd773p1c5a2ajsn58e8c3333ad3', + 'X-RapidAPI-Host' => 'zeno-media1.p.rapidapi.com' + ]); + + try { + $response = $request->send(); + + echo $response->getBody(); + } catch (HttpException $ex) { + echo $ex; + }" + + """ + url = f"https://4realrecords.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "4realrecords.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/getbs.json b/toolbench/toolenv/tools/Communication/getbs.json new file mode 100644 index 0000000000000000000000000000000000000000..8df5f1a633d6b73ddd34ed28399970b01859e05c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/getbs.json @@ -0,0 +1,123 @@ +{ + "tool_name": "getBs", + "tool_description": "DuLieuBs63Tinh", + "title": "getBs", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/p2ild-p2ild-default/api/getbs/", + "host": "getbs.p.rapidapi.com", + "api_list": [ + { + "name": "getBars", + "url": "https://getbs.p.rapidapi.com/getBars", + "description": "getBars", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/getBars\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "login", + "url": "https://getbs.p.rapidapi.com/api/login", + "description": "login", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "otp", + "url": "https://getbs.p.rapidapi.com/api/otp", + "description": "otp", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "phone", + "type": "NUMBER", + "description": "", + "default": "1" + } + ], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/otp\"\nquerystring = {\"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "registration", + "url": "https://getbs.p.rapidapi.com/api/registration", + "description": "registration", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/registration\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Prefereces", + "url": "https://getbs.p.rapidapi.com/api/prefereces", + "description": "Prefereces", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/prefereces\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "login", + "url": "https://getbs.p.rapidapi.com/api/login", + "description": "login", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "otp", + "url": "https://getbs.p.rapidapi.com/api/otp", + "description": "otp", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "phone", + "type": "NUMBER", + "description": "", + "default": "1" + } + ], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/otp\"\nquerystring = {\"phone\": \"1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/otp\"\nquerystring = {\"phone\": \"1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "registration", + "url": "https://getbs.p.rapidapi.com/api/registration", + "description": "registration", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/registration\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://getbs.p.rapidapi.com/api/registration\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getbs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/getbs/api.py b/toolbench/toolenv/tools/Communication/getbs/api.py new file mode 100644 index 0000000000000000000000000000000000000000..70e9079861fd1a142387525b1ee700ee6e087820 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/getbs/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getbars(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "getBars" + + """ + url = f"https://getbs.p.rapidapi.com/getbars" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "getbs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def prefereces(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Prefereces" + + """ + url = f"https://getbs.p.rapidapi.com/api/prefereces" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "getbs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/getip/api.py b/toolbench/toolenv/tools/Communication/getip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c2d50d70955349b02737b2a3408a10b519ebe811 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/getip/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getip(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve IP of the connected http client" + + """ + url = f"https://skitsanos-getip-v1.p.rapidapi.com/getip" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "skitsanos-getip-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/getotp.json b/toolbench/toolenv/tools/Communication/getotp.json new file mode 100644 index 0000000000000000000000000000000000000000..a219641977db6597d843415c0c3204339fdec310 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/getotp.json @@ -0,0 +1,74 @@ +{ + "product_id": "api_7dc81d1c-6bc0-49b3-ba1e-62dab900c0a5", + "tool_description": "A Simple, Multi-channel OTP Authentication API for Developers", + "home_url": "https://rapidapi.com/Lalokalabs/api/getotp1/", + "name": "GetOTP", + "title": "GetOTP", + "pricing": "FREE", + "tool_name": "GetOTP", + "score": null, + "host": "getotp1.p.rapidapi.com", + "api_list": [ + { + "name": "Verify endpoint", + "url": "https://getotp1.p.rapidapi.com/api/verify/", + "description": "The verify endpoint allows you to perform OTP verification via channels you prescribe.", + "method": "POST", + "required_parameters": [ + { + "name": "channel", + "type": "STRING", + "description": "", + "default": "email" + }, + { + "name": "fail_redirect_url", + "type": "STRING", + "description": "", + "default": "https://mysite.test/payments/qHgZiJQ8YF/otp-fail/" + }, + { + "name": "success_redirect_url", + "type": "STRING", + "description": "", + "default": "https://mysite.test/payments/qHgZiJQ8YF/otp-complete/" + } + ], + "optional_parameters": [ + { + "name": "captcha", + "type": "BOOLEAN", + "description": "", + "default": "true" + }, + { + "name": "metadata", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "callback_url", + "type": "STRING", + "description": "", + "default": "https://mysite.test/payments/otp-callback/" + }, + { + "name": "lang", + "type": "STRING", + "description": "", + "default": "en" + }, + { + "name": "hide", + "type": "BOOLEAN", + "description": "", + "default": "false" + } + ], + "code": "import requests\n\nurl = \"https://getotp1.p.rapidapi.com/api/verify/\"\nquerystring = {\"captcha\": \"true\", \"channel\": \"email\", \"fail_redirect_url\": \"https://mysite.test/payments/qHgZiJQ8YF/otp-fail/\", \"success_redirect_url\": \"https://mysite.test/payments/qHgZiJQ8YF/otp-complete/\", \"metadata\": \"\", \"callback_url\": \"https://mysite.test/payments/otp-callback/\", \"lang\": \"en\", \"hide\": \"false\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getotp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://getotp1.p.rapidapi.com/api/verify/\"\nquerystring = {\"captcha\": \"true\", \"channel\": \"email\", \"fail_redirect_url\": \"https://mysite.test/payments/qHgZiJQ8YF/otp-fail/\", \"success_redirect_url\": \"https://mysite.test/payments/qHgZiJQ8YF/otp-complete/\", \"metadata\": \"\", \"callback_url\": \"https://mysite.test/payments/otp-callback/\", \"lang\": \"en\", \"hide\": \"false\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"getotp1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/global_telephone_number_information.json b/toolbench/toolenv/tools/Communication/global_telephone_number_information.json new file mode 100644 index 0000000000000000000000000000000000000000..2e86c62bb62abd0c064e345c2126637df4ea3e5a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/global_telephone_number_information.json @@ -0,0 +1,78 @@ +{ + "tool_name":"Global Telephone Number Information", + "tool_description":"For a given international international phone number, get geographic information, including city, wealth score, language, mobile number, etc.", + "title":"Global Telephone Number Information", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":393, + "avgSuccessRate":100, + "popularityScore":8.1, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/interzoid/api/global-telephone-number-information/", + "host":"global-telephone-number-information.p.rapidapi.com", + "api_list":[ + { + "name":"Get Global Number Info", + "url":"https://global-telephone-number-information.p.rapidapi.com/getglobalnumberinfo", + "description":"Provides global telephone number demographic data for the given telephone number", + "method":"GET", + "required_parameters":[ + { + "name":"intlnumber", + "type":"STRING", + "description":"Global Telephone Number with Country Code", + "default":"+852 1212 8888" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://global-telephone-number-information.p.rapidapi.com/getglobalnumberinfo\"\nquerystring = {\"intlnumber\": intlnumber}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"global-telephone-number-information.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "Country":"Hong Kong", + "Region":"", + "PrimaryCity":"Hong Kong", + "Language1":"Cantonese", + "Language2":"English", + "Language3":"Mandarin", + "Mobile":"", + "Wealth":"3", + "Code":"Success", + "Credits":"499999995" + }, + "headers":{ + "content-type":"application/json", + "date":"Wed, 03 Jul 2019 14:29:03 GMT", + "server":"RapidAPI-1.0.16", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.0.16", + "content-length":"195", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/global_telephone_number_information/api.py b/toolbench/toolenv/tools/Communication/global_telephone_number_information/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d1e13bd98c49e98e5af5f359ae517ce74c5490dc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/global_telephone_number_information/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_global_number_info(intlnumber: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides global telephone number demographic data for the given telephone number" + intlnumber: Global Telephone Number with Country Code + + """ + url = f"https://global-telephone-number-information.p.rapidapi.com/getglobalnumberinfo" + querystring = {'intlnumber': intlnumber, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "global-telephone-number-information.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/gotify_push_messages.json b/toolbench/toolenv/tools/Communication/gotify_push_messages.json new file mode 100644 index 0000000000000000000000000000000000000000..615fad671e4993c8defd9ee4b0802fe661298e7c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/gotify_push_messages.json @@ -0,0 +1,88 @@ +{ + "product_id": "api_96579b63-7ad9-461f-87cd-91b0aed28e42", + "tool_description": "Push Messages to browser or android devices using push.tydids.com", + "home_url": "https://rapidapi.com/stromdao-stromdao-default/api/gotify-push-messages/", + "name": "Gotify - Push Messages", + "title": "Gotify - Push Messages", + "pricing": "FREEMIUM", + "tool_name": "Gotify - Push Messages", + "score": null, + "host": "gotify-push-messages.p.rapidapi.com", + "api_list": [ + { + "name": "createMessage", + "url": "https://gotify-push-messages.p.rapidapi.com/message", + "description": "This API ONLY accepts an application token as authentication.\n\n** Retrieve token: **\n1. Create User or Login at [push.tydids.com](https://push.tydids.com)\n2. Create new Application", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://gotify-push-messages.p.rapidapi.com/message\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gotify-push-messages.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://gotify-push-messages.p.rapidapi.com/message\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gotify-push-messages.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "description": "The MessageExternal holds information about a message which was sent by an Application.", + "type": "object", + "title": "MessageExternal Model", + "required": [ + "id", + "appid", + "message", + "date" + ], + "properties": { + "appid": { + "description": "The application id that send this message.", + "type": "integer", + "format": "int64", + "x-go-name": "ApplicationID", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "date": { + "description": "The date the message was created.", + "type": "string", + "format": "date-time", + "x-go-name": "Date" + }, + "extras": { + "description": "The extra data sent along the message.\n\nThe extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.\n\nThe keys should be in the following format: <top-namespace>::[<sub-namespace>::]<action>\n\nThese namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.", + "type": "object", + "additionalProperties": { + "type": "object" + }, + "x-go-name": "Extras" + }, + "id": { + "description": "The message id.", + "type": "integer", + "format": "int64", + "x-go-name": "ID", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "message": { + "description": "The message. Markdown (excluding html) is allowed.", + "type": "string", + "x-go-name": "Message" + }, + "priority": { + "description": "The priority of the message.", + "type": "integer", + "format": "int64", + "x-go-name": "Priority", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "title": { + "description": "The title of the message.", + "type": "string", + "x-go-name": "Title" + } + }, + "x-go-name": "MessageExternal", + "x-go-package": "github.com/gotify/server/v2/model" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/graphql_apis.json b/toolbench/toolenv/tools/Communication/graphql_apis.json new file mode 100644 index 0000000000000000000000000000000000000000..e6a795efc7f029fc91be7a39d0d1b9bde761c4b2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/graphql_apis.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_188477be-d1a8-487a-9235-22e78f1da400", + "tool_description": "Test graphql APIs", + "home_url": "https://rapidapi.com/senithdilitha/api/graphql-apis/", + "name": "Graphql APIs", + "title": "Graphql APIs", + "pricing": "FREE", + "tool_name": "Graphql APIs", + "score": { + "avgServiceLevel": 100, + "avgLatency": 275, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "graphql-apis.p.rapidapi.com", + "api_list": [ + { + "name": "graphQL", + "url": "https://graphql-apis.p.rapidapi.com/", + "description": "graphQL endpoint", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://graphql-apis.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"graphql-apis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://graphql-apis.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"graphql-apis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/green_api.json b/toolbench/toolenv/tools/Communication/green_api.json new file mode 100644 index 0000000000000000000000000000000000000000..cc36efb330b4b65618e74fc619d77d0af800cdb8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/green_api.json @@ -0,0 +1,2699 @@ +{ + "product_id": "api_9ef42eea-1ed9-41d1-9998-a193e71f5944", + "tool_description": "Send and receive messages throue your own WhtasApp number for free.\nUse for CRM, Chat-Bots and etc.....", + "home_url": "https://rapidapi.com/Slikman/api/green-api2/", + "name": "GREEN-API", + "title": "GREEN-API", + "pricing": "FREE", + "tool_name": "GREEN-API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 260, + "avgSuccessRate": 0, + "popularityScore": 0.3, + "__typename": "Score" + }, + "host": "green-api2.p.rapidapi.com", + "api_list": [ + { + "name": "Getoutgoingmessagesjournal", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/lastOutgoingMessages/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [LastOutgoingMessages](https://green-api.com/docs/api/journals/LastOutgoingMessages/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/lastOutgoingMessages/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/lastOutgoingMessages/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + } + }, + { + "name": "Logoutaccount", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/logout/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [Logout](https://green-api.com/docs/api/account/Logout/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/logout/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/logout/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Downloadfilefromincomingmessage", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/downloadFile/idMessage", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [DownloadFile](https://green-api.com/docs/api/receiving/files/DownloadFile/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "idMessage", + "type": "STRING", + "description": "", + "default": "idMessage" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/downloadFile/idMessage\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/downloadFile/{idmessage}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "GetQRcode", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/qr/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [QR](https://green-api.com/docs/api/account/QR/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/qr/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/qr/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getchats", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/getChats/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetContacts](https://green-api.com/docs/api/service/GetContacts/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getChats/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getChats/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + } + }, + { + "name": "Rebootaccount", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/reboot/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [Reboot](https://green-api.com/docs/api/account/Reboot/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/reboot/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/reboot/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Receivenotification", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/receiveNotification/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [ReceiveNotification](https://green-api.com/docs/api/receiving/technology-http-api/ReceiveNotification/)", + "method": "GET", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/receiveNotification/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/receiveNotification/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Markmessageasread", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/readChat/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [ReadChat](https://green-api.com/docs/api/marks/ReadChat/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/readChat/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/readChat/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Getavatarcontact", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/getAvatar/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetAvatar](https://green-api.com/docs/api/service/GetAvatar/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getAvatar/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getAvatar/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Sendtext", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendMessage/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendMessage](https://green-api.com/docs/api/sending/SendMessage/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendMessage/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendMessage/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Setgrouppicture", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/setGroupPicture/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SetGroupPicture](https://green-api.com/docs/api/account/SetGroupPicture/)", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "groupId", + "type": "STRING", + "description": "", + "default": "120363022730913588@g.us" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setGroupPicture/apiTokenInstance\"\nquerystring = {\"file\": \"\", \"groupId\": \"120363022730913588@g.us\", \"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setGroupPicture/{apitokeninstance}\"\nquerystring = {\"file\": \"\", \"groupId\": \"120363022730913588@g.us\", \"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "SetDisappearingChat", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/setDisappearingChat/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetContacts](https://green-api.com/docs/api/service/GetContacts/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setDisappearingChat/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setDisappearingChat/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Sendlink", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendLink/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendLink](https://green-api.com/docs/api/sending/SendLink/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendLink/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendLink/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Deletegroupparticipant", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/removeGroupParticipant/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [RemoveGroupParticipant](https://green-api.com/docs/api/groups/RemoveGroupParticipant/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/removeGroupParticipant/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/removeGroupParticipant/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Getgroupdata", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/getGroupData/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetGroupData](https://green-api.com/docs/api/groups/GetGroupData/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getGroupData/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getGroupData/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "CheckWhatsAppavailability", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/checkWhatsapp/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [CheckWhatsapp](https://green-api.com/docs/api/service/CheckWhatsapp/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/checkWhatsapp/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/checkWhatsapp/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Changegroupname", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/updateGroupName/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [UpdateGroupName](https://green-api.com/docs/api/groups/UpdateGroupName/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/updateGroupName/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/updateGroupName/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Archivechat", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/archiveChat/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetAvatar](https://green-api.com/docs/api/service/GetAvatar/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/archiveChat/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/archiveChat/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Getchathistory", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/getChatHistory/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetChatHistory](https://green-api.com/docs/api/journals/GetChatHistory/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getChatHistory/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/getChatHistory/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + } + }, + { + "name": "Setgroupadminrights", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/setGroupAdmin/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SetGroupAdmin](https://green-api.com/docs/api/groups/SetGroupAdmin/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setGroupAdmin/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setGroupAdmin/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Setaccountsettings", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/setSettings/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SetSettings](https://green-api.com/docs/api/account/SetSettings/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setSettings/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setSettings/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Deletemessage", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/deleteMessage/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetAvatar](https://green-api.com/docs/api/service/GetAvatar/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/deleteMessage/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/deleteMessage/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Leavegroup", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/leaveGroup/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [LeaveGroup](https://green-api.com/docs/api/groups/LeaveGroup/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/leaveGroup/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/leaveGroup/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Removegroupadminrights", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/removeAdmin/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [RemoveAdmin](https://green-api.com/docs/api/groups/RemoveAdmin/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/removeAdmin/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/removeAdmin/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Addgroupparticipant", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/addGroupParticipant/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [AddGroupParticipant](https://green-api.com/docs/api/groups/AddGroupParticipant/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/addGroupParticipant/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/addGroupParticipant/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Unarchivechat", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/unarchiveChat/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [GetAvatar](https://green-api.com/docs/api/service/GetAvatar/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/unarchiveChat/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/unarchiveChat/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Setprofilepicture", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/setProfilePicture/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SetProfilePicture](https://green-api.com/docs/api/account/SetProfilePicture/)", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setProfilePicture/apiTokenInstance\"\nquerystring = {\"file\": \"\", \"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/setProfilePicture/{apitokeninstance}\"\nquerystring = {\"file\": \"\", \"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Creategroup", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/createGroup/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [CreateGroup](https://green-api.com/docs/api/groups/CreateGroup/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/createGroup/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/createGroup/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Sendvideo,audio,image,documentviaURL", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendFileByUrl/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendFileByUrl](https://green-api.com/docs/api/sending/SendFileByUrl/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendFileByUrl/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendFileByUrl/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "SendListMessage", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendListMessage/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendMessage](https://green-api.com/docs/api/sending/SendMessage/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendListMessage/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendListMessage/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Sendlocation", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendLocation/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendLocation](https://green-api.com/docs/api/sending/SendLocation/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendLocation/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendLocation/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "SendTemplateButtons", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendTemplateButtons/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendMessage](https://green-api.com/docs/api/sending/SendMessage/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendTemplateButtons/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendTemplateButtons/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Sendvideo,audio,image,document", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendFileByUpload/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendFileByUpload](https://green-api.com/docs/api/sending/SendFileByUpload/)", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "fileName", + "type": "STRING", + "description": "", + "default": "window.jpg" + }, + { + "name": "chatId", + "type": "STRING", + "description": "", + "default": "790012345673442@c.us" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [ + { + "name": "caption", + "type": "STRING", + "description": "", + "default": "Description" + }, + { + "name": "quotedMessageId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendFileByUpload/apiTokenInstance\"\nquerystring = {\"caption\": \"Description\", \"file\": \"\", \"quotedMessageId\": \"\", \"fileName\": \"window.jpg\", \"chatId\": \"790012345673442@c.us\", \"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendFileByUpload/{apitokeninstance}\"\nquerystring = {\"caption\": \"Description\", \"file\": \"\", \"quotedMessageId\": \"\", \"fileName\": \"window.jpg\", \"chatId\": \"790012345673442@c.us\", \"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "SendButtons", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendButtons/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendMessage](https://green-api.com/docs/api/sending/SendMessage/)", + "method": "POST", + "required_parameters": [ + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + }, + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendButtons/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/SendButtons/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + }, + { + "name": "Sendcontact", + "url": "https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendContact/apiTokenInstance", + "description": "\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f [SendContact](https://green-api.com/docs/api/sending/SendContact/)", + "method": "POST", + "required_parameters": [ + { + "name": "apiTokenInstance", + "type": "STRING", + "description": "", + "default": "apiTokenInstance" + }, + { + "name": "waInstanceidInstance", + "type": "STRING", + "description": "", + "default": "waInstanceidInstance" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendContact/apiTokenInstance\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://green-api2.p.rapidapi.com/waInstance{idInstance}/sendContact/{apitokeninstance}\"\nquerystring = {\"waInstanceidInstance\": \"waInstanceidInstance\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"green-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "wid": { + "type": "string", + "description": "", + "default": "79001234567@c.us" + }, + "countryInstance": { + "type": "string", + "description": "", + "default": "ru" + }, + "typeAccount": { + "type": "string", + "description": "", + "default": "vip" + }, + "webhookUrl": { + "type": "string", + "description": "", + "default": "https://mysite.com/webhook/green-api/" + }, + "delaySendMessagesMilliseconds": { + "type": "integer", + "description": "", + "default": 3000 + }, + "markIncomingMessagesReaded": { + "type": "string", + "description": "", + "default": "yes" + }, + "proxyInstance": { + "type": "string", + "description": "", + "default": "100.100.100.100:3535:login:password" + }, + "outgoingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "stateWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "incomingWebhook": { + "type": "string", + "description": "", + "default": "yes" + }, + "deviceWebhook": { + "type": "string", + "description": "", + "default": "no" + } + } + } + } + ], + "standardized_name": "green_api" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/green_api/api.py b/toolbench/toolenv/tools/Communication/green_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..38203db642d570511698b66a9dbd0838aaebd876 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/green_api/api.py @@ -0,0 +1,155 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getoutgoingmessagesjournal(wainstanceidinstance: str, apitokeninstance: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [LastOutgoingMessages](https://green-api.com/docs/api/journals/LastOutgoingMessages/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/lastoutgoingmessages/{apitokeninstance}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def logoutaccount(wainstanceidinstance: str, apitokeninstance: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [Logout](https://green-api.com/docs/api/account/Logout/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/logout/{apitokeninstance}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def downloadfilefromincomingmessage(wainstanceidinstance: str, idmessage: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [DownloadFile](https://green-api.com/docs/api/receiving/files/DownloadFile/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/downloadfile/{idmessage}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getqrcode(wainstanceidinstance: str, apitokeninstance: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [QR](https://green-api.com/docs/api/account/QR/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/qr/{apitokeninstance}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getchats(wainstanceidinstance: str, apitokeninstance: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [GetContacts](https://green-api.com/docs/api/service/GetContacts/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/getchats/{apitokeninstance}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rebootaccount(wainstanceidinstance: str, apitokeninstance: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [Reboot](https://green-api.com/docs/api/account/Reboot/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/reboot/{apitokeninstance}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def receivenotification(wainstanceidinstance: str, apitokeninstance: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Документация [ReceiveNotification](https://green-api.com/docs/api/receiving/technology-http-api/ReceiveNotification/)" + + """ + url = f"https://green-api2.p.rapidapi.com/wainstance{idinstance}/receivenotification/{apitokeninstance}" + querystring = {'waInstanceidInstance': wainstanceidinstance, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "green-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/grup_terbuka.json b/toolbench/toolenv/tools/Communication/grup_terbuka.json new file mode 100644 index 0000000000000000000000000000000000000000..217eb58e3cfa1eb755f091c72018b1de16233a89 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/grup_terbuka.json @@ -0,0 +1,63 @@ +{ + "tool_name":"Grup Terbuka", + "tool_description":"open api group chat", + "title":"Grup Terbuka", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":545, + "avgSuccessRate":100, + "popularityScore":9.1, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/cas8398/api/grup-terbuka/", + "host":"grup-terbuka.p.rapidapi.com", + "api_list":[ + { + "name":"Dapat Pesan", + "url":"https://grup-terbuka.p.rapidapi.com/api.php", + "description":"untuk mendapatkan pesan", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"", + "default":"61b55575437aee6762d402de86d64f30" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://grup-terbuka.p.rapidapi.com/api.php\"\nquerystring = {\"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"grup-terbuka.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Kirim Pesan", + "url":"https://grup-terbuka.p.rapidapi.com/sendapi.php", + "description":"api untuk kirim pesan", + "method":"GET", + "required_parameters":[ + { + "name":"pesan", + "type":"STRING", + "description":"", + "default":"pesan baru" + }, + { + "name":"key", + "type":"STRING", + "description":"", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://grup-terbuka.p.rapidapi.com/sendapi.php\"\nquerystring = {\"pesan\": pesan, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"grup-terbuka.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/grup_terbuka/api.py b/toolbench/toolenv/tools/Communication/grup_terbuka/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a384a95f66b1dfa5057dd1c85eec06d9a0eb4f23 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/grup_terbuka/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def dapat_pesan(key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "untuk mendapatkan pesan" + + """ + url = f"https://grup-terbuka.p.rapidapi.com/api.php" + querystring = {'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "grup-terbuka.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def kirim_pesan(pesan: str, key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "api untuk kirim pesan" + + """ + url = f"https://grup-terbuka.p.rapidapi.com/sendapi.php" + querystring = {'pesan': pesan, 'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "grup-terbuka.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/gsend.json b/toolbench/toolenv/tools/Communication/gsend.json new file mode 100644 index 0000000000000000000000000000000000000000..0f3045746afd690975b624fe8b565c057bb245b0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/gsend.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_5acccdf9-6d2e-4105-b067-4f3ea16c3581", + "tool_description": "Transactional emails for Gmail and Google Analytics", + "home_url": "https://rapidapi.com/alexahu/api/gsend/", + "name": "Gsend", + "title": "Gsend", + "pricing": "FREEMIUM", + "tool_name": "Gsend", + "score": null, + "host": "gsend.p.rapidapi.com", + "api_list": [ + { + "name": "Send Mail", + "url": "https://gsend.p.rapidapi.com/", + "description": "Send eMail though Gmail/Gsuite with Google Analytics opening tracking (optional)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://gsend.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gsend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://gsend.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"gsend.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hellosalut.json b/toolbench/toolenv/tools/Communication/hellosalut.json new file mode 100644 index 0000000000000000000000000000000000000000..265c1199eb97b4ca1d9cc4891845a663eb0c7ef8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hellosalut.json @@ -0,0 +1,55 @@ +{ + "product_id": "53aa593ce4b0596140341005", + "tool_description": "Say hello to your visitors in their native language!", + "home_url": "https://rapidapi.com/fourtonfish/api/hellosalut/", + "name": "HelloSalut", + "title": "HelloSalut", + "pricing": "FREE", + "tool_name": "HelloSalut", + "score": { + "avgServiceLevel": 100, + "avgLatency": 82, + "avgSuccessRate": 100, + "popularityScore": 6.7, + "__typename": "Score" + }, + "host": "fourtonfish-hellosalut.p.rapidapi.com", + "api_list": [ + { + "name": "HelloSalut", + "url": "https://fourtonfish-hellosalut.p.rapidapi.com/", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "lang", + "type": "STRING", + "description": "Language code (note, currently supported only cs, de, en-gb, en-us, es, fr, is, ja and sk)", + "default": "en-us, ja, es" + }, + { + "name": "ip", + "type": "STRING", + "description": "An IPv4 IP address", + "default": "2.222.222.222" + }, + { + "name": "mode", + "type": "STRING", + "description": "Use built in IP and language detection", + "default": "auto" + } + ], + "code": "import requests\n\nurl = \"https://fourtonfish-hellosalut.p.rapidapi.com/\"\nquerystring = {\"lang\": \"en-us, ja, es\", \"ip\": \"2.222.222.222\", \"mode\": \"auto\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fourtonfish-hellosalut.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://fourtonfish-hellosalut.p.rapidapi.com/\"\nquerystring = {\"lang\": \"en-us, ja, es\", \"ip\": \"2.222.222.222\", \"mode\": \"auto\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fourtonfish-hellosalut.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "code": "en", + "hello": "Hello" + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "hellosalut" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hellosalut/api.py b/toolbench/toolenv/tools/Communication/hellosalut/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8a951a58f94dd4b0f6b0af439ff6d8864bb75a97 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hellosalut/api.py @@ -0,0 +1,38 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def hellosalut(lang: str='en-us, ja, es', ip: str='2.222.222.222', mode: str='auto', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + lang: Language code (note, currently supported only cs, de, en-gb, en-us, es, fr, is, ja and sk) + ip: An IPv4 IP address + mode: Use built in IP and language detection + + """ + url = f"https://fourtonfish-hellosalut.p.rapidapi.com/" + querystring = {} + if lang: + querystring['lang'] = lang + if ip: + querystring['ip'] = ip + if mode: + querystring['mode'] = mode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "fourtonfish-hellosalut.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/hesab.json b/toolbench/toolenv/tools/Communication/hesab.json new file mode 100644 index 0000000000000000000000000000000000000000..33a405773d211f94aa1121c2a56c0ebca7a59822 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hesab.json @@ -0,0 +1,50 @@ +{ + "tool_name":"Hesab", + "tool_description":"Hesab", + "title":"Hesab", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/ulvi.1999rufet/api/hesab/", + "host":"hesab.p.rapidapi.com", + "api_list":[ + { + "name":"Hesab Yarat", + "url":"https://hesab.p.rapidapi.com/user.ru", + "description":"Yoxdur", + "method":"GET", + "required_parameters":[ + { + "name":"Mail", + "type":"STRING", + "description":"", + "default":"mAs72@mail.ru" + }, + { + "name":"Password", + "type":"STRING", + "description":"", + "default":"bwiw8ugw8" + }, + { + "name":"Name", + "type":"STRING", + "description":"", + "default":"Masi" + } + ], + "optional_parameters":[ + { + "name":"Birthday", + "type":"NUMBER", + "description":"", + "default":"23" + } + ], + "code":"import requests\n\nurl = \"https://hesab.p.rapidapi.com/user.ru\"\nquerystring = {\"Mail\": mail, \"Password\": password, \"Name\": name, \"Birthday\": birthday}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hesab.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hesab/api.py b/toolbench/toolenv/tools/Communication/hesab/api.py new file mode 100644 index 0000000000000000000000000000000000000000..de332d017273f988962ffe1c8442ec08c76f796f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hesab/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def hesab_yarat(mail: str, password: str, name: str, birthday: int=23, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Yoxdur" + + """ + url = f"https://hesab.p.rapidapi.com/user.ru" + querystring = {'Mail': mail, 'Password': password, 'Name': name, } + if birthday: + querystring['Birthday'] = birthday + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "hesab.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/hlr_lookup.json b/toolbench/toolenv/tools/Communication/hlr_lookup.json new file mode 100644 index 0000000000000000000000000000000000000000..4634c786ab0ffb778ee5afd8700a048c8b9820b4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hlr_lookup.json @@ -0,0 +1,142 @@ +{ + "product_id": "api_0270b42d-543e-4f16-8fe1-086b775878ee", + "tool_description": "Home Location Register lookup to check the validity and availability of a mobile number worldwide. Cleanup databases or check plausibility synchronously online. ", + "home_url": "https://rapidapi.com/stromdao-stromdao-default/api/hlr-lookup/", + "name": "HLR Lookup", + "title": "HLR Lookup", + "pricing": "FREEMIUM", + "tool_name": "HLR Lookup", + "score": { + "avgServiceLevel": 100, + "avgLatency": 325, + "avgSuccessRate": 100, + "popularityScore": 8.1, + "__typename": "Score" + }, + "host": "hlr-lookup.p.rapidapi.com", + "api_list": [ + { + "name": "lookup", + "url": "https://hlr-lookup.p.rapidapi.com/hlr", + "description": "Invokes a realtime Home-Location-Record lookup and provides live mobile phone connectivity and portability data from network operators directly and in real-time. \nThis endpoint is suitable for live traffic in time-critical applications and if your primary goal is to identify phone numbers that are currently reachable (connected) or absent (phone switched off) and distinguish them from invalid, unknown, or fake phone numbers. \n\nThis endpoint is also suitable to extract the live portability status (MCCMNC) alongside live connectivity information.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "msisdn", + "type": "STRING", + "description": "A mobile phone number (MSISDN) in international format (e.g. +14156226819 or 0014156226819).", + "default": "+491742972060" + } + ], + "code": "import requests\n\nurl = \"https://hlr-lookup.p.rapidapi.com/hlr\"\nquerystring = {\"msisdn\": \"+491742972060\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hlr-lookup.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hlr-lookup.p.rapidapi.com/hlr\"\nquerystring = {\"msisdn\": \"+491742972060\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hlr-lookup.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "A unique identifier for this lookup." + }, + "msisdn": { + "type": "string", + "description": "The mobile phone number inspected in this lookup request." + }, + "connectivity_status": { + "type": "string", + "description": "Indicates whether number type information was successfully obtained. Can be either CONNECTED, ABSENT, INVALID_MSISDN, or UNDETERMINED." + }, + "mccmnc": { + "type": "string", + "description": "A five or six character MCCMNC (mobile country code + mobile network code tuple) identifying the network the mobile phone number currently belongs to." + }, + "mcc": { + "type": "string", + "description": "A three character MCC (mobile country code) identifying the country the mobile phone number currently belongs to." + }, + "mnc": { + "type": "string", + "description": "A two or three character MNC (mobile network code) identifying the network the mobile phone number currently belongs to." + }, + "imsi": { + "type": "string", + "description": "International Mobile Subscriber Identity (IMSI). Unique identification number associated with the SIM card. The availability of the IMSI depends on the mobile network operator." + }, + "msin": { + "type": "string", + "description": "The Mobile Subscription Identification Number (MSIN) within the mobile network operator database. The availability of the MSIN depends on the mobile network operator." + }, + "msc": { + "type": "string", + "description": "The Mobile Switching Center (MSC) currently serving the subscriber. The availability of the MSC depends on the mobile network operator." + }, + "original_network_name": { + "type": "string", + "description": "An arbitrary string in English plain text specifying the original (native) network operator name of the inspected mobile phone number." + }, + "original_country_name": { + "type": "string", + "description": "An arbitrary string in English plain text specifying the original country of the inspected mobile phone number." + }, + "original_country_code": { + "type": "string", + "description": "A two character ISO country code specifying the original country of the inspected mobile phone number." + }, + "original_country_prefix": { + "type": "string", + "description": "The dialling code of the original country of the inspected mobile phone number." + }, + "is_ported": { + "type": "boolean", + "description": "Indicates whether the number was ported from its native network to a new operator." + }, + "ported_network_name": { + "type": "string", + "description": "Indicates the network operator to which the inspected mobile phone number was ported (if any)." + }, + "ported_country_name": { + "type": "string", + "description": "Indicates the country to which the inspected mobile phone number was ported (if any)." + }, + "ported_country_code": { + "type": "string", + "description": "A two character ISO country code specifying the country to which the inspected mobile phone number was ported (if any)." + }, + "ported_country_prefix": { + "type": "The dialling code of the country to which the inspected mobile phone number was ported (if any)." + }, + "is_roaming": { + "type": "boolean", + "description": "Indicates whether the number is currently roaming. The availability of roaming information depends on the mobile network operator." + }, + "roaming_network_name": { + "type": "string", + "description": "Indicates the network in which the mobile phone is currently roaming (if any)." + }, + "roaming_country_name": { + "type": "string", + "description": "Indicates the country in which the mobile phone is currently roaming (if any)." + }, + "roaming_country_code": { + "type": "string", + "description": "A two character ISO country code specifying the country in which the mobile phone is currently roaming (if any)." + }, + "roaming_country_prefix": { + "type": "string", + "description": "The dialling code of the country in which the inspected mobile phone number is currently roaming (if any)." + }, + "route": { + "type": "string", + "description": "A three character identifier indicating the route used for this lookup request." + }, + "data_source": { + "type": "string", + "description": "Indicates the data source used for this request. Can be either LIVE_HLR (live HLR query) or MNP_DB (static mobile number portability database). The latter can only happen on hybrid routes, which fall back to MNP when no HLR connection can be established (IP1 and IP4), or exclusive MNP routes (PTX)." + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hog.json b/toolbench/toolenv/tools/Communication/hog.json new file mode 100644 index 0000000000000000000000000000000000000000..d8efbf56577153b2d22ec0a688aeb81b6bad3755 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hog.json @@ -0,0 +1,2750 @@ +{ + "tool_name": "HoG", + "tool_description": "\u8ad6\u58c7\u5c08\u7528", + "title": "HoG", + "pricing": "FREE", + "score": { + "avgServiceLevel": 100, + "avgLatency": 257, + "avgSuccessRate": 100, + "popularityScore": 8.7, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/hog-developer-team-hog-developer-team-default/api/hog/", + "host": "hog.p.rapidapi.com", + "api_list": [ + { + "name": "15.2 \u53d6\u5f97\u6587\u7ae0\u8207\u8a0e\u8ad6\u5340\u5167\u5bb9", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/getPost", + "description": "\u53d6\u5f97\u8a0e\u8ad6\u5340\u5217\u8868\u5167\u5bb9", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/getPost\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"msg\":\"Success\",\"code\":\"RC_200\",\"resultData\":{\"controlBtn\":[2,4,5],\"forum_type\":\"B\",\"mem_url\":\"\",\"allow_reply\":\"Y\",\"forum_banner\":null,\"total_reply_count\":123,\"replyList\":[{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u5225\u554f\u6211\u662f\u8ab0\",\"mem_url\":\"\",\"mem_uid\":652677,\"reply_count\":0,\"post_info\":\"\u5225\u554f\u6211\u662f\u8ab0.3\u5929\u524d\",\"like_on_flag\":\"U\",\"mem_photo\":\"\",\"forum_uid\":3006,\"reply_list\":[],\"forum_content\":\"444\",\"unlike_count\":0,\"sort_order\":1}],\"userMsg\":\"\u6210\u529f\",\"like_on_flag\":\"U\",\"article_status\":\"N\",\"replyMsg\":\"null\",\"forumTopic_title\":\"\u554f\u984c\",\"forum_content\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaa\u6625\u5b63\u51a0\u8ecd\u8cfd\u8cfd\u5f8c\u5fc3\u5f97\u5206\u4eab\",\"share_img\":\"null\",\"like_count\":2,\"mem_nickname\":\"\u6953\u8449\u9f20\u611b\u5927\u7c73\",\"mem_uid\":\"653038\",\"forum_title\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaa\u6625\u5b63\u51a0\u8ecd\u8cfd\",\"forumList_uid\":\"1\",\"reply_count\":41,\"postMsg\":\"null\",\"mem_photo\":\"null\",\"post_info\":\"\u6953\u8449\u9f20\u611b\u5927\u7c73.52\u5929\u524d\",\"share_link\":\"null\",\"forum_uid\":161,\"time\":\"2021-06-14 12:36:26\"}}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Mon, 14 Jun 2021 04:36:26 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "960", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": { + "type": "object", + "required": [ + "total_reply_count", + "controlBtn", + "like_count", + "mem_nickname", + "forum_type", + "mem_url", + "allow_reply", + "replyList", + "mem_uid", + "forum_title", + "userMsg", + "reply_count", + "postMsg", + "mem_photo", + "post_info", + "like_on_flag", + "share_link", + "forum_uid", + "article_status", + "replyMsg", + "forumTopic_title", + "forum_content", + "share_img", + "time", + "forum_banner" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "forum_type": { + "type": "string" + }, + "like_count": { + "type": "integer" + }, + "allow_reply": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "like_on_flag", + "forum_uid", + "forum_content" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "reply_list", + "forum_content", + "unlike_count", + "sort_order" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "reply_list": { + "type": "array" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "total_reply_count": { + "type": "integer" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "userMsg": { + "type": "string" + }, + "postMsg": { + "type": "string" + }, + "forum_banner": { + "type": "string" + }, + "share_link": { + "type": "string" + }, + "forumList_uid": { + "type": "string" + }, + "article_status": { + "type": "string" + }, + "replyMsg": { + "type": "string" + }, + "forumTopic_title": { + "type": "string" + }, + "forum_content": { + "type": "string" + }, + "share_img": { + "type": "string" + }, + "time": { + "type": "string" + } + } + } + } + } + } + }, + { + "name": "18.1 App Config", + "url": "https://hog.p.rapidapi.com/hogApp/v1/sys/getHoGConfig/seanTest1", + "description": "\u53d6\u5f97\u7cfb\u7d71\u53c3\u6578", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/sys/getHoGConfig/seanTest1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"pageCnt\":[{\"replyLayer1_pageCnt\":\"5\",\"article_pageCnt\":\"10\",\"replyLayer2_pageCnt\":\"5\"}],\"msg\":\"Success\",\"index_config\":[{\"pageCnt\":\"10\",\"sort_uid\":\"1\"}],\"emoji_version\":\"1\",\"code\":\"RC_200\",\"forumTopicList\":[{\"end_date\":\"2023-12-01 12:54:00\",\"forumTopic_title\":\"\u5168\u90e8\",\"on_select_list\":\"N\",\"on_Menu\":\"Y\",\"forumTopic_uid\":\"0\",\"sort_order\":\"1\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumTopic_title\":\"\u9592\u804a\",\"on_select_list\":\"Y\",\"on_Menu\":\"Y\",\"forumTopic_uid\":\"1\",\"sort_order\":\"1\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumTopic_title\":\"\u554f\u984c\",\"on_select_list\":\"Y\",\"on_Menu\":\"Y\",\"forumTopic_uid\":\"2\",\"sort_order\":\"2\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumTopic_title\":\"\u60c5\u5831\",\"on_select_list\":\"Y\",\"on_Menu\":\"Y\",\"forumTopic_uid\":\"3\",\"sort_order\":\"3\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumTopic_title\":\"\u5fc3\u60c5\",\"on_select_list\":\"Y\",\"on_Menu\":\"Y\",\"forumTopic_uid\":\"4\",\"sort_order\":\"4\",\"start_date\":\"2099-03-12 12:54:00\"}],\"emojiList\":[{\"pic\":\"http://aaa/1.jpg\",\"sort_uid\":\"0\"},{\"pic\":\"http://aaa/1.jpb\",\"sort_uid\":\"2\"},{\"pic\":\"http://aaa/1.jpb\",\"sort_uid\":\"3\"}],\"problemTypeList\":[{\"type_title\":\"\u5e73\u53f0\u64cd\u4f5c\",\"type_uid\":\"1\"},{\"type_title\":\"\u8cfd\u4e8b\u76f8\u95dc\",\"type_uid\":\"2\"},{\"type_title\":\"\u5176\u4ed6\u554f\u984c\",\"type_uid\":\"3\"}],\"forumList\":[{\"end_date\":\"\",\"forumList_title\":\"\u71b1\u9580\u8a71\u984c\",\"forumTitleUid\":\"1\",\"is_should_login\":null,\"forumList_descr\":\"\",\"app_banner\":\"/HoG/img/forum-sort-wr.png\",\"forumList_uid\":\"0\",\"web_banner\":\"/HoG/img/forum-sort-wr.png\",\"type\":\"1\",\"sort_order\":\"\",\"type_order\":\"2\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2099-12-01 12:54:00\",\"forumList_title\":\"\u82f1\u96c4\u806f\u76df\uff1a\u6fc0\u9b25\u5cfd\u8c37Wild Rift\",\"is_should_login\":null,\"forumList_descr\":\"\",\"app_banner\":\"/HoG/img/forum-sort-wr.png\",\"forumList_uid\":\"1\",\"web_banner\":\"/HoG/img/forum-sort-wr.png\",\"type\":\"2\",\"sort_order\":\"1\",\"type_order\":null,\"start_date\":\"2001-03-12 12:54:00\"},{\"end_date\":\"2099-12-01 12:54:00\",\"forumList_title\":\"\u7279\u6230\u82f1\u8c6aVALORANT\",\"is_should_login\":null,\"forumList_descr\":\"\",\"app_banner\":\"/HoG/img/forum-sort-vlr.png\",\"forumList_uid\":\"2\",\"web_banner\":\"/HoG/img/forum-sort-vlr.png\",\"type\":\"2\",\"sort_order\":\"2\",\"type_order\":null,\"start_date\":\"2001-03-12 12:54:00\"},{\"end_date\":\"2099-12-01 12:54:00\",\"forumList_title\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaaLegends of Runeterra\",\"is_should_login\":null,\"forumList_descr\":\"\",\"app_banner\":\"/HoG/img/forum-sort-lor.png\",\"forumList_uid\":\"3\",\"web_banner\":\"/HoG/img/forum-sort-lor.png\",\"type\":\"2\",\"sort_order\":\"3\",\"type_order\":\"2\",\"start_date\":\"2001-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumList_title\":\"\u500b\u4eba\u6536\u85cf\",\"forumTitleUid\":\"2\",\"is_should_login\":\"1\",\"forumList_descr\":\"\",\"app_banner\":\"\",\"forumList_uid\":null,\"web_banner\":\"\",\"type\":\"3\",\"sort_order\":\"0\",\"type_order\":\"3\",\"start_date\":\"2099-03-12 12:54:00\"}],\"expire_time\":\"2021-06-16 22:37:37\",\"userMsg\":\"\",\"android_config\":[{\"forced_update\":\"N\",\"pageCnt\":[{\"replyLayer1_pageCnt\":\"5\",\"article_pageCnt\":\"10\",\"replyLayer2_pageCnt\":\"5\"}],\"store_version\":\"1.001.023\",\"versionInfo\":[{\"version\":\"1.001.024 (202104003)\",\"desc\":\"\u25cf \u5168\u65b0\u8ad6\u58c7\u529f\u80fd\u4e0a\u7dda\uff0c\u8acb\u4e0d\u8981\u932f\u904e\uff01\"},{\"version\":\"1.001.023 (202103009)\",\"desc\":\"\u3010\u82f1\u96c4\u806f\u76df\uff1a\u6fc0\u9b25\u5cfd\u8c37Wild Rift\u3011\u3001\u3010\u7279\u6230\u82f1\u8c6aVALORANT\u3011\u3001\u3010\u7b26\u6587\u5927\u5730\u50b3\u8aaaLegends of Runeterra\u3011 \u8cfd\u4e8b\u5b98\u65b9\u5c08\u7528\u5e73\u53f0\u6b63\u5f0f\u4e0a\u7dda\uff01\\n\u25cf \u5831\u540d\u5b98\u65b9\u96fb\u7af6\u8cfd\u4e8b\\n\u25cf \u6700\u65b0\u904a\u6232\u516c\u544a\u4e0d\u932f\u904e\"}]}],\"ios_config\":[{\"forced_update\":\"N\",\"pageCnt\":[{\"replyLayer1_pageCnt\":\"5\",\"article_pageCnt\":\"10\",\"replyLayer2_pageCnt\":\"5\"}],\"store_version\":\"1.001.032\",\"versionInfo\":[{\"version\":\"1.001.035 (1.1.35.3)\",\"desc\":\"\u25cf \u5168\u65b0\u8ad6\u58c7\u529f\u80fd\u4e0a\u7dda\uff0c\u8acb\u4e0d\u8981\u932f\u904e88888\uff01\"},{\"version\":\"1.001.031 (1.1.31.4)\",\"desc\":\"\u3010\u82f1\u96c4\u806f\u76df\uff1a\u6fc0\u9b25\u5cfd\u8c37Wild Rift\u3011\u3001\u3010\u7279\u6230\u82f1\u8c6aVALORANT\u3011\u3001\u3010\u7b26\u6587\u5927\u5730\u50b3\u8aaaLegends of Runeterra\u3011 \u8cfd\u4e8b\u5b98\u65b9\u5c08\u7528\u5e73\u53f0\u6b63\u5f0f\u4e0a\u7dda\uff01\\n\u25cf \u5831\u540d\u5b98\u65b9\u96fb\u7af6\u8cfd\u4e8b\\n\u25cf \u6700\u65b0\u904a\u6232\u516c\u544a\u4e0d\u932f\u904e\"}]}],\"gameList\":[{\"game_name\":\"\u82f1\u96c4\u806f\u76df\uff1a\u6fc0\u9b25\u5cfd\u8c37 Wild Rift\",\"game_uid\":\"1\",\"riotID_link_desc\":\"\u82f1\u96c4\u806f\u76df\uff1a\u6fc0\u9b25\u5cfd\u8c37- RIOT ID \u7bc4\u4f8b\u5716\",\"pic\":\"/assets/official/805249/805249352_officialPic_official_ck.jpg\",\"riotID_desc\":\"\u78ba\u8a8d RIOT ID \u6b65\u9a5f\uff1a\u9032\u5165\u3010\u82f1\u96c4\u806f\u76df\uff1a\u6fc0\u9b25\u5cfd\u8c37\u3011\u904a\u6232\uff0c\u9ede\u64ca\u53f3\u4e0a\u65b9\u500b\u4eba\u982d\u50cf\uff0c\u9032\u5165\u9801\u9762\u5373\u53ef\u770b\u5230\u81ea\u5df1\u7684 RIOT ID\u3002\",\"sort_order\":\"1\"},{\"game_name\":\"\u7279\u6230\u82f1\u8c6a VALORANT\",\"game_uid\":\"2\",\"riotID_link_desc\":\"\u7279\u6230\u82f1\u8c6a- RIOT ID \u7bc4\u4f8b\u5716\",\"pic\":\"/assets/official/521301/521301494_officialPic_official_ck.jpg\",\"riotID_desc\":\"\u78ba\u8a8d RIOT ID \u6b65\u9a5f\uff1a\u9032\u5165\u3010\u7279\u6230\u82f1\u8c6a\u3011\u904a\u6232\uff0c\u9ede\u64ca\u53f3\u4e0a\u65b9\u500b\u4eba\u982d\u50cf\uff0c\u9032\u5165\u9801\u9762\u5373\u53ef\u770b\u5230\u81ea\u5df1\u7684 RIOT ID\u3002\",\"sort_order\":\"2\"},{\"game_name\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaa Legends of Runeterra\",\"game_uid\":\"3\",\"riotID_link_desc\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaa- RIOT ID \u7bc4\u4f8b\u5716\",\"pic\":\"/assets/official/985163/985163473_officialPic_official_ck.jpg\",\"riotID_desc\":\"\u78ba\u8a8d RIOT ID \u6b65\u9a5f\uff1a\u9032\u5165\u3010\u7b26\u6587\u5927\u5730\u50b3\u8aaa\u3011\u904a\u6232\uff0c\u9ede\u64ca\u53f3\u4e0a\u65b9\u500b\u4eba\u982d\u50cf\uff0c\u9032\u5165\u9801\u9762\u5373\u53ef\u770b\u5230\u81ea\u5df1\u7684 RIOT ID\u3002\",\"sort_order\":\"3\"}],\"time\":\"2021-06-16 21:37:37\",\"server_url\":\"https://sit.game.taiwanmobile.com\",\"sortByList\":[{\"sort_title\":\"\u7531\u65b0\u5230\u820a\",\"sort_uid\":\"1\"},{\"sort_title\":\"\u7531\u820a\u5230\u65b0\",\"sort_uid\":\"2\"},{\"sort_title\":\"\u6700\u591a\u4eba\u56de\u8986\",\"sort_uid\":\"3\"}],\"forumReportList\":[{\"end_date\":\"2023-12-01 12:54:00\",\"forumReport_uid\":\"0\",\"forumReport_title\":\"\u5176\u4ed6\",\"sort_order\":\"99\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumReport_uid\":\"1\",\"forumReport_title\":\"\u6d17\u7248\",\"sort_order\":\"1\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumReport_uid\":\"1\",\"forumReport_title\":\"\u8b3e\u7f75\",\"sort_order\":\"2\",\"start_date\":\"2099-03-12 12:54:00\"},{\"end_date\":\"2023-12-01 12:54:00\",\"forumReport_uid\":\"2\",\"forumReport_title\":\"\u76dc\u7248\",\"sort_order\":\"3\",\"start_date\":\"2099-03-12 12:54:00\"}]}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Wed, 16 Jun 2021 13:37:37 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "5926", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "15.\uff14 \u6587\u7ae0\u5167\u5bb9\u66f4\u65b0\u8207\u72c0\u614b\u8b8a\u66f4", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/publishPost", + "description": "\u65b0\u589e\u3001\u66f4\u6539\u6587\u7ae0", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/publishPost\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"msg\":\"Success\",\"code\":\"RC_200\",\"resultData\":{\"controlBtn\":[1],\"replyList\":[{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":6,\"forum_uid\":1637,\"unlike_count\":0,\"reply_content\":\"0607test\"},{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":7,\"forum_uid\":1703,\"unlike_count\":0,\"reply_content\":\"weqeqew\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":8,\"forum_uid\":1673,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":9,\"forum_uid\":1672,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":10,\"forum_uid\":1670,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"}],\"time\":\"2021-06-14 17:14:43\",\"userMsg\":\"\u6210\u529f\"}}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Mon, 14 Jun 2021 09:14:43 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "1700", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "alantest", + "url": "https://hog.p.rapidapi.com/hogApp/v1/myRace/getMyRace", + "description": "\u8b9a/\u5012\u8b9a", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/myRace/getMyRace\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"msg\":\"Success\",\"code\":\"RC_200\",\"resultData\":{\"controlBtn\":[1],\"replyList\":[{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":6,\"forum_uid\":1637,\"unlike_count\":0,\"reply_content\":\"0607test\"},{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":7,\"forum_uid\":1703,\"unlike_count\":0,\"reply_content\":\"weqeqew\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":8,\"forum_uid\":1673,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":9,\"forum_uid\":1672,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":10,\"forum_uid\":1670,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"}],\"time\":\"2021-06-14 17:14:43\",\"userMsg\":\"\u6210\u529f\"}}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Mon, 14 Jun 2021 09:14:43 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "1700", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "\b15.1\u53d6\u5f97\u8ad6\u58c7\u5217\u8868", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/listPosts", + "description": "\u53d6\u5f97\u8ad6\u58c7\u5217\u8868\n\u5982\u904a\u6232\u5340", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/listPosts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"msg\":\"Success\",\"code\":\"RC_200\",\"resultData\":{\"total\":77,\"forumList\":[{\"post_info\":\"\u6953\u8449\u9f20\u611b\u5927\u7c73.52\u5929\u524d\",\"like_on_flag\":\"U\",\"forum_uid\":161,\"article_status\":\"N\",\"like_count\":2,\"mem_role\":\"U\",\"forum_content\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaa\u6625\u5b63\u51a0\u8ecd\u8cfd\u8cfd\u5f8c\u5fc3\u5f97\u5206\u4eab\",\"forum_topic_list\":[{\"forumTopic_title\":\"\u554f\u984c\",\"sortOrder\":\"2\"}],\"forum_banner\":\"null\",\"forum_title\":\"\u7b26\u6587\u5927\u5730\u50b3\u8aaa\u6625\u5b63\u51a0\u8ecd\u8cfd\",\"reply_count\":41,\"sort_order\":1}],\"start\":1,\"end\":1,\"time\":\"2021-06-14 11:27:25\",\"userMsg\":\"\u6210\u529f\",\"postMsg\":\"\"}}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Mon, 14 Jun 2021 03:27:25 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "523", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "total", + "forumList", + "start", + "end", + "time", + "userMsg", + "postMsg" + ], + "properties": { + "total": { + "type": "integer" + }, + "forumList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "post_info", + "like_on_flag", + "forum_uid", + "article_status", + "like_count", + "mem_role", + "forum_content", + "forum_topic_list", + "forum_banner", + "forum_title", + "reply_count", + "sort_order" + ], + "properties": { + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "article_status": { + "type": "string" + }, + "like_count": { + "type": "integer" + }, + "mem_role": { + "type": "string" + }, + "forum_content": { + "type": "string" + }, + "forum_topic_list": { + "type": "array", + "items": { + "type": "object", + "required": [ + "forumTopic_title", + "sortOrder" + ], + "properties": { + "forumTopic_title": { + "type": "string" + }, + "sortOrder": { + "type": "integer" + } + } + } + }, + "forum_banner": { + "type": "string" + }, + "forum_title": { + "type": "string" + }, + "reply_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + }, + "start": { + "type": "integer", + "minimum": 1 + }, + "end": { + "type": "integer", + "minimum": 1 + }, + "time": { + "type": "string" + }, + "userMsg": { + "type": "string" + }, + "postMsg": { + "type": "string" + } + } + } + } + }, + { + "name": "15.3 \u53d6\u5f97\u6307\u5b9a\u6587\u7ae0\u8a0e\u8ad6\u5340\u5167\u5bb9", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/getCommentList", + "description": "\u7528\u65bc\u6587\u7ae0\u5167\u5c55\u958b\u4f7f\u7528", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/getCommentList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"msg\":\"Success\",\"code\":\"RC_200\",\"resultData\":{\"controlBtn\":[1],\"replyList\":[{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":6,\"forum_uid\":1637,\"unlike_count\":0,\"reply_content\":\"0607test\"},{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":7,\"forum_uid\":1703,\"unlike_count\":0,\"reply_content\":\"weqeqew\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":8,\"forum_uid\":1673,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":9,\"forum_uid\":1672,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":10,\"forum_uid\":1670,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"}],\"time\":\"2021-06-14 17:14:43\",\"userMsg\":\"\u6210\u529f\"}}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Mon, 14 Jun 2021 09:14:43 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "1700", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "15.5 \u6587\u7ae0\u8b9a/\u5012\u8b9a", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/likeOrDislike", + "description": "\u8b9a/\u5012\u8b9a", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/likeOrDislike\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": "{\"msg\":\"Success\",\"code\":\"RC_200\",\"resultData\":{\"controlBtn\":[1],\"replyList\":[{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":6,\"forum_uid\":1637,\"unlike_count\":0,\"reply_content\":\"0607test\"},{\"controlBtn\":[1],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":496831,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"\u795e\u5947\u5bf6\u8c9d\u5b97\u5e2b.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":7,\"forum_uid\":1703,\"unlike_count\":0,\"reply_content\":\"weqeqew\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":8,\"forum_uid\":1673,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":9,\"forum_uid\":1672,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"},{\"controlBtn\":[2],\"like_count\":0,\"reply_status\":\"N\",\"mem_nickname\":\"XiangYun\",\"mem_url\":\"\",\"replyList\":[],\"mem_uid\":652356,\"reply_count\":0,\"mem_photo\":\"null\",\"post_info\":\"XiangYun.7\u5929\u524d\",\"like_on_flag\":\"U\",\"sort_no\":10,\"forum_uid\":1670,\"unlike_count\":0,\"reply_content\":\"0526/10\u6e2c\u8a66\u5c0d\u7559\u8a00\u7684\u7559\u8a00\u529f\u80fd~~~~!!!!!!!!\"}],\"time\":\"2021-06-14 17:14:43\",\"userMsg\":\"\u6210\u529f\"}}", + "headers": { + "content-type": "text/plain;charset=UTF-8", + "date": "Mon, 14 Jun 2021 09:14:43 GMT", + "server": "RapidAPI-1.2.8", + "strict-transport-security": "max-age=157680000; includeSubDomains", + "x-rapidapi-region": "AWS - ap-northeast-1", + "x-rapidapi-version": "1.2.8", + "content-length": "1700", + "connection": "Close" + }, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "15.2 \u53d6\u5f97\u6587\u7ae0\u8207\u8a0e\u8ad6\u5340\u5167\u5bb9", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/getPost", + "description": "\u53d6\u5f97\u8a0e\u8ad6\u5340\u5217\u8868\u5167\u5bb9", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/getPost\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/getPost\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": { + "type": "object", + "required": [ + "total_reply_count", + "controlBtn", + "like_count", + "mem_nickname", + "forum_type", + "mem_url", + "allow_reply", + "replyList", + "mem_uid", + "forum_title", + "userMsg", + "reply_count", + "postMsg", + "mem_photo", + "post_info", + "like_on_flag", + "share_link", + "forum_uid", + "article_status", + "replyMsg", + "forumTopic_title", + "forum_content", + "share_img", + "time", + "forum_banner" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "forum_type": { + "type": "string" + }, + "like_count": { + "type": "integer" + }, + "allow_reply": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "like_on_flag", + "forum_uid", + "forum_content" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "reply_list", + "forum_content", + "unlike_count", + "sort_order" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "reply_list": { + "type": "array" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "total_reply_count": { + "type": "integer" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "userMsg": { + "type": "string" + }, + "postMsg": { + "type": "string" + }, + "forum_banner": { + "type": "string" + }, + "share_link": { + "type": "string" + }, + "forumList_uid": { + "type": "string" + }, + "article_status": { + "type": "string" + }, + "replyMsg": { + "type": "string" + }, + "forumTopic_title": { + "type": "string" + }, + "forum_content": { + "type": "string" + }, + "share_img": { + "type": "string" + }, + "time": { + "type": "string" + } + } + } + } + } + } + }, + { + "name": "15.\uff14 \u6587\u7ae0\u5167\u5bb9\u66f4\u65b0\u8207\u72c0\u614b\u8b8a\u66f4", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/publishPost", + "description": "\u65b0\u589e\u3001\u66f4\u6539\u6587\u7ae0", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/publishPost\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/publishPost\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "alantest", + "url": "https://hog.p.rapidapi.com/hogApp/v1/myRace/getMyRace", + "description": "\u8b9a/\u5012\u8b9a", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/myRace/getMyRace\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/myRace/getMyRace\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "\b15.1\u53d6\u5f97\u8ad6\u58c7\u5217\u8868", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/listPosts", + "description": "\u53d6\u5f97\u8ad6\u58c7\u5217\u8868\n\u5982\u904a\u6232\u5340", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/listPosts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/listPosts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "total", + "forumList", + "start", + "end", + "time", + "userMsg", + "postMsg" + ], + "properties": { + "total": { + "type": "integer" + }, + "forumList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "post_info", + "like_on_flag", + "forum_uid", + "article_status", + "like_count", + "mem_role", + "forum_content", + "forum_topic_list", + "forum_banner", + "forum_title", + "reply_count", + "sort_order" + ], + "properties": { + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "article_status": { + "type": "string" + }, + "like_count": { + "type": "integer" + }, + "mem_role": { + "type": "string" + }, + "forum_content": { + "type": "string" + }, + "forum_topic_list": { + "type": "array", + "items": { + "type": "object", + "required": [ + "forumTopic_title", + "sortOrder" + ], + "properties": { + "forumTopic_title": { + "type": "string" + }, + "sortOrder": { + "type": "integer" + } + } + } + }, + "forum_banner": { + "type": "string" + }, + "forum_title": { + "type": "string" + }, + "reply_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + }, + "start": { + "type": "integer", + "minimum": 1 + }, + "end": { + "type": "integer", + "minimum": 1 + }, + "time": { + "type": "string" + }, + "userMsg": { + "type": "string" + }, + "postMsg": { + "type": "string" + } + } + } + } + }, + { + "name": "15.3 \u53d6\u5f97\u6307\u5b9a\u6587\u7ae0\u8a0e\u8ad6\u5340\u5167\u5bb9", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/getCommentList", + "description": "\u7528\u65bc\u6587\u7ae0\u5167\u5c55\u958b\u4f7f\u7528", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/getCommentList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/getCommentList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + { + "name": "15.5 \u6587\u7ae0\u8b9a/\u5012\u8b9a", + "url": "https://hog.p.rapidapi.com/hogApp/v1/forum/likeOrDislike", + "description": "\u8b9a/\u5012\u8b9a", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/likeOrDislike\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hog.p.rapidapi.com/hogApp/v1/forum/likeOrDislike\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hog.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "required": [ + "msg", + "code", + "resultData" + ], + "properties": { + "msg": { + "type": "string" + }, + "code": { + "type": "string" + }, + "resultData": { + "type": "object", + "required": [ + "controlBtn", + "userMsg", + "time", + "replyList" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "userMsg": { + "type": "string" + }, + "time": { + "type": "string" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "reply_count", + "mem_photo", + "post_info", + "replyList", + "like_on_flag", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string", + "enum": [ + "N", + "L" + ] + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "reply_count": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "replyList": { + "type": "array", + "items": { + "type": "object", + "required": [ + "controlBtn", + "like_count", + "reply_status", + "mem_nickname", + "mem_url", + "mem_uid", + "post_info", + "like_on_flag", + "mem_photo", + "forum_uid", + "forum_content", + "unlike_count", + "sort_order", + "floor_uid" + ], + "properties": { + "controlBtn": { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1, + "uniqueItems": true + }, + "like_count": { + "type": "integer" + }, + "floor_uid": { + "type": "integer" + }, + "reply_status": { + "type": "string" + }, + "mem_nickname": { + "type": "string" + }, + "mem_url": { + "type": "string" + }, + "mem_uid": { + "type": "integer" + }, + "post_info": { + "type": "string" + }, + "like_on_flag": { + "type": "string" + }, + "mem_photo": { + "type": "string" + }, + "forum_uid": { + "type": "integer" + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + }, + "forum_content": { + "type": "string" + }, + "unlike_count": { + "type": "integer" + }, + "sort_order": { + "type": "integer" + } + } + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hog/api.py b/toolbench/toolenv/tools/Communication/hog/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1998c7447c50bcabd606e83d3b27b0d19f321462 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hog/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_18_1_app_config(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "取得系統參數" + + """ + url = f"https://hog.p.rapidapi.com/hogapp/v1/sys/gethogconfig/seantest1" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "hog.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/hotspot_social_1.json b/toolbench/toolenv/tools/Communication/hotspot_social_1.json new file mode 100644 index 0000000000000000000000000000000000000000..d49ab433f4dfc9fb1158914e043be7f6aa816984 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hotspot_social_1.json @@ -0,0 +1,162 @@ +{ + "tool_name": "Hotspot Social 1", + "tool_description": "Uma api para data", + "title": "Hotspot Social 1", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/blogcsa/api/hotspot-social-1/", + "host": "hotspot-social-1.p.rapidapi.com", + "api_list": [ + { + "name": "cadastro de usu\u00e1rios", + "url": "https://hotspot-social-1.p.rapidapi.com/", + "description": "cadastro de usu\u00e1rios", + "method": "POST", + "required_parameters": [ + { + "name": "whatsapp", + "type": "STRING", + "description": "", + "default": "87981335544" + }, + { + "name": "password", + "type": "STRING", + "description": "", + "default": "123456" + }, + { + "name": "email", + "type": "STRING", + "description": "", + "default": "email@email.com" + } + ], + "optional_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "Jo\u00e3o Miguel" + }, + { + "name": "cpf", + "type": "STRING", + "description": "", + "default": "12345678900" + } + ], + "code": "import requests\n\nurl = \"https://hotspot-social-1.p.rapidapi.com/\"\nquerystring = {\"whatsapp\": whatsapp, \"name\": name, \"cpf\": cpf, \"password\": password, \"email\": email}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hotspot-social-1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "usuarios", + "url": "https://hotspot-social-1.p.rapidapi.com/users", + "description": "banco para usuarios", + "method": "GET", + "required_parameters": [ + { + "name": "whatsapp", + "type": "STRING", + "description": "", + "default": "87988888888" + }, + { + "name": "password", + "type": "STRING", + "description": "", + "default": "senha" + }, + { + "name": "email", + "type": "STRING", + "description": "Campo destinado para armazenar o email", + "default": "email@email.com" + } + ], + "optional_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "Jo\u00e3o" + }, + { + "name": "cpf", + "type": "STRING", + "description": "Campo reservado para armazenar o CPF", + "default": "12345678900" + } + ], + "code": "import requests\n\nurl = \"https://hotspot-social-1.p.rapidapi.com/users\"\nquerystring = {\"name\": name, \"cpf\": cpf, \"whatsapp\": whatsapp, \"password\": password, \"email\": email}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hotspot-social-1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "key1": { + "type": "string" + }, + "key2": { + "type": "string" + } + } + } + }, + { + "name": "cadastro de usu\u00e1rios", + "url": "https://hotspot-social-1.p.rapidapi.com/", + "description": "cadastro de usu\u00e1rios", + "method": "POST", + "required_parameters": [ + { + "name": "whatsapp", + "type": "STRING", + "description": "", + "default": "87981335544" + }, + { + "name": "password", + "type": "STRING", + "description": "", + "default": "123456" + }, + { + "name": "email", + "type": "STRING", + "description": "", + "default": "email@email.com" + } + ], + "optional_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "Jo\u00e3o Miguel" + }, + { + "name": "cpf", + "type": "STRING", + "description": "", + "default": "12345678900" + } + ], + "code": "import requests\n\nurl = \"https://hotspot-social-1.p.rapidapi.com/\"\nquerystring = {\"whatsapp\": \"87981335544\", \"name\": \"Jo\u00e3o Miguel\", \"cpf\": \"12345678900\", \"password\": \"123456\", \"email\": \"email@email.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hotspot-social-1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hotspot-social-1.p.rapidapi.com/\"\nquerystring = {\"whatsapp\": \"87981335544\", \"name\": \"Jo\u00e3o Miguel\", \"cpf\": \"12345678900\", \"password\": \"123456\", \"email\": \"email@email.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hotspot-social-1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hotspot_social_1/api.py b/toolbench/toolenv/tools/Communication/hotspot_social_1/api.py new file mode 100644 index 0000000000000000000000000000000000000000..636f2cd6828ba08e2e1bccd8e3ab70a53da49c7c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hotspot_social_1/api.py @@ -0,0 +1,35 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def usuarios(whatsapp: str, password: str, email: str, name: str='João', cpf: str='12345678900', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "banco para usuarios" + email: Campo destinado para armazenar o email + cpf: Campo reservado para armazenar o CPF + + """ + url = f"https://hotspot-social-1.p.rapidapi.com/users" + querystring = {'whatsapp': whatsapp, 'password': password, 'email': email, } + if name: + querystring['name'] = name + if cpf: + querystring['cpf'] = cpf + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "hotspot-social-1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/howtospeak.json b/toolbench/toolenv/tools/Communication/howtospeak.json new file mode 100644 index 0000000000000000000000000000000000000000..2c3f413db1466e18c03511a42d93a4ad61b19d72 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/howtospeak.json @@ -0,0 +1,65 @@ +{ + "tool_name":"HowToSpeak", + "tool_description":"We provide phonetical translation to Chinese. \r\n我们提供中文谐音翻译", + "title":"HowToSpeak", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/shixing/api/howtospeak/", + "host":"howtospeak.p.rapidapi.com", + "api_list":[ + { + "name":"English2Chinese", + "url":"https://howtospeak.p.rapidapi.com/api/e2c", + "description":"Translate your English into Chinese character phonetically.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"The text you want to translate. The value should be Chinese (when notrans=0) or English (when notrans=1)", + "default":"你好" + } + ], + "optional_parameters":[ + { + "name":"notrans", + "type":"NUMBER", + "description":"Whether translate input text into Chinese first: Translate it (notrans = 0) or Don't translate it (notrans = 1)", + "default":"0" + } + ], + "code":"import requests\n\nurl = \"https://howtospeak.p.rapidapi.com/api/e2c\"\nquerystring = {\"text\": text, \"notrans\": notrans}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"howtospeak.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Japanese2Chinese", + "url":"https://howtospeak.p.rapidapi.com/api/j2c", + "description":"Translate Japanese into Chinese character phonetically.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"The text you want to translate. The value should be Chinese (when notrans=0) or Japanese (when notrans=1)", + "default":"你好" + } + ], + "optional_parameters":[ + { + "name":"notrans", + "type":"NUMBER", + "description":"Whether translate input text into Chinese first: Translate it (notrans = 0) or Don't translate it (notrans = 1)", + "default":"0" + } + ], + "code":"import requests\n\nurl = \"https://howtospeak.p.rapidapi.com/api/j2c\"\nquerystring = {\"notrans\": notrans, \"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"howtospeak.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/howtospeak/api.py b/toolbench/toolenv/tools/Communication/howtospeak/api.py new file mode 100644 index 0000000000000000000000000000000000000000..728cbffda9d67de6a2cb585c28efeb149c097abd --- /dev/null +++ b/toolbench/toolenv/tools/Communication/howtospeak/api.py @@ -0,0 +1,58 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def english2chinese(text: str, notrans: int=0, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Translate your English into Chinese character phonetically." + text: The text you want to translate. The value should be Chinese (when notrans=0) or English (when notrans=1) + notrans: Whether translate input text into Chinese first: Translate it (notrans = 0) or Don't translate it (notrans = 1) + + """ + url = f"https://howtospeak.p.rapidapi.com/api/e2c" + querystring = {'text': text, } + if notrans: + querystring['notrans'] = notrans + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "howtospeak.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def japanese2chinese(text: str, notrans: int=0, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Translate Japanese into Chinese character phonetically." + text: The text you want to translate. The value should be Chinese (when notrans=0) or Japanese (when notrans=1) + notrans: Whether translate input text into Chinese first: Translate it (notrans = 0) or Don't translate it (notrans = 1) + + """ + url = f"https://howtospeak.p.rapidapi.com/api/j2c" + querystring = {'text': text, } + if notrans: + querystring['notrans'] = notrans + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "howtospeak.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/hqsms.json b/toolbench/toolenv/tools/Communication/hqsms.json new file mode 100644 index 0000000000000000000000000000000000000000..82bfec1910940dcc15a650423050222cc4dc0485 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hqsms.json @@ -0,0 +1,52 @@ +{ + "product_id": "53aa589be4b0a798dbd1af0a", + "tool_description": "HQSMS is a global SMS provider offering SMS gateway and specializing in SMS text messaging solutions : SMS notices, bulk SMS and HLR lookup service. HTTPS API interface allows you to inegrate most of on-line applications.", + "home_url": "https://rapidapi.com/community/api/hqsms/", + "name": "HQSMS", + "title": "HQSMS", + "pricing": "FREE", + "tool_name": "HQSMS", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1268, + "avgSuccessRate": 100, + "popularityScore": 5.9, + "__typename": "Score" + }, + "host": "community-hqsms.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://community-hqsms.p.rapidapi.com/sms.do", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "Destination number", + "default": "" + }, + { + "name": "from", + "type": "STRING", + "description": "Sender name have to be activated", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Content of message", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-hqsms.p.rapidapi.com/sms.do\"\nquerystring = {\"to\": \"\", \"from\": \"\", \"message\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-hqsms.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-hqsms.p.rapidapi.com/sms.do\"\nquerystring = {\"to\": \"\", \"from\": \"\", \"message\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-hqsms.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "hqsms" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/hqsms/api.py b/toolbench/toolenv/tools/Communication/hqsms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bedd0b09596b72ac01c975205981fe9eae7a7544 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/hqsms/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def send_sms(to: str, is_from: str, message: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + to: Destination number + from: Sender name have to be activated + message: Content of message + + """ + url = f"https://community-hqsms.p.rapidapi.com/sms.do" + querystring = {'to': to, 'from': is_from, 'message': message, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-hqsms.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/http_messaging.json b/toolbench/toolenv/tools/Communication/http_messaging.json new file mode 100644 index 0000000000000000000000000000000000000000..85e3baf9b1c13ff50e027c1a70fe13869c971d7f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/http_messaging.json @@ -0,0 +1,51 @@ +{ + "product_id": "54fd9685e4b0295635714b1e", + "tool_description": "The HTTP API is used to send simple SMS text messages by posting the message content and recipient information in a long URL.", + "home_url": "https://rapidapi.com/talya.mizrahi/api/http-messaging/", + "name": "HTTP Messaging", + "title": "HTTP Messaging", + "pricing": "FREE", + "tool_name": "HTTP Messaging", + "score": null, + "host": "talya-mizrahi-http-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/jsp/receiveSMS.jsp", + "url": "https://talya-mizrahi-http-v1.p.rapidapi.com/jsp/receiveSMS.jsp", + "description": "The HTTP API is used to send simple SMS text messages by posting the message content and recipient information in a long URL", + "method": "POST", + "required_parameters": [ + { + "name": "userid", + "type": "STRING", + "description": "TeleMessage Account username", + "default": "" + }, + { + "name": "password", + "type": "STRING", + "description": "TeleMessage Account password", + "default": "" + }, + { + "name": "to", + "type": "STRING", + "description": "mobile destination number in international format", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "message body", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://talya-mizrahi-http-v1.p.rapidapi.com/jsp/receiveSMS.jsp\"\nquerystring = {\"userid\": \"\", \"password\": \"\", \"to\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"talya-mizrahi-http-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://talya-mizrahi-http-v1.p.rapidapi.com/jsp/receiveSMS.jsp\"\nquerystring = {\"userid\": \"\", \"password\": \"\", \"to\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"talya-mizrahi-http-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/httpbl/api.py b/toolbench/toolenv/tools/Communication/httpbl/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1820fe878d536f75732e5209829764e80a28bf34 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/httpbl/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ip(ip: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Lookup IP in Project Honeypot" + ip: IP address + + """ + url = f"https://httpbl.p.rapidapi.com/ip/{ip}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "httpbl.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/https_i_imgur_com_jm9tesv_jpg.json b/toolbench/toolenv/tools/Communication/https_i_imgur_com_jm9tesv_jpg.json new file mode 100644 index 0000000000000000000000000000000000000000..94c44677b7472c09ae359064cc20acd52776606d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/https_i_imgur_com_jm9tesv_jpg.json @@ -0,0 +1,31 @@ +{ + "product_id": "api_fe779b80-15a0-43e5-a183-4e8ec53c8d58", + "tool_description": "https://i.imgur.com/JM9TESV.jpg/", + "home_url": "https://rapidapi.com/seoseong/api/https-i-imgur-com-jm9tesv-jpg/", + "name": "https://i.imgur.com/JM9TESV.jpg/", + "title": "https://i.imgur.com/JM9TESV.jpg/", + "pricing": "FREE", + "tool_name": "https://i.imgur.com/JM9TESV.jpg/", + "score": { + "avgServiceLevel": 100, + "avgLatency": 967, + "avgSuccessRate": 100, + "popularityScore": 5.9, + "__typename": "Score" + }, + "host": "https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com", + "api_list": [ + { + "name": "https://i.imgur.com/JM9TESV.jpg/", + "url": "https://https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com/JM9TESV.jpg/", + "description": "https://i.imgur.com/JM9TESV.jpg/", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com/JM9TESV.jpg/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com/JM9TESV.jpg/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "https_i_imgur_comjm9tesv_jpg" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/https_i_imgur_com_jm9tesv_jpg/api.py b/toolbench/toolenv/tools/Communication/https_i_imgur_com_jm9tesv_jpg/api.py new file mode 100644 index 0000000000000000000000000000000000000000..34071a58875ee32e4f1b8c2d7921109410d75f01 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/https_i_imgur_com_jm9tesv_jpg/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def https_i_imgur_com_jm9tesv_jpg(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "https://i.imgur.com/JM9TESV.jpg/" + + """ + url = f"https://https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com/jm9tesv.jpg/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/https_i_imgur_comjm9tesv_jpg/api.py b/toolbench/toolenv/tools/Communication/https_i_imgur_comjm9tesv_jpg/api.py new file mode 100644 index 0000000000000000000000000000000000000000..34071a58875ee32e4f1b8c2d7921109410d75f01 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/https_i_imgur_comjm9tesv_jpg/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def https_i_imgur_com_jm9tesv_jpg(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "https://i.imgur.com/JM9TESV.jpg/" + + """ + url = f"https://https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com/jm9tesv.jpg/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "https-i-imgur-com-jm9tesv-jpg.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/icsms_global.json b/toolbench/toolenv/tools/Communication/icsms_global.json new file mode 100644 index 0000000000000000000000000000000000000000..0cfe1a44f2974a91dc3a1677e3651d7213b5c782 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/icsms_global.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_66774804-06e4-4fc4-aada-8300d8c9d0bc", + "tool_description": "API allows you to send OTP SMS to Ghana numbers", + "home_url": "https://rapidapi.com/dariosman/api/icsms-global/", + "name": "ICSMS-GLOBAL", + "title": "ICSMS-GLOBAL", + "pricing": "FREEMIUM", + "tool_name": "ICSMS-GLOBAL", + "score": null, + "host": "icsms-global.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://icsms-global.p.rapidapi.com/sendsms", + "description": "This endpoint is for sending the SMS", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://icsms-global.p.rapidapi.com/sendsms\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"icsms-global.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://icsms-global.p.rapidapi.com/sendsms\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"icsms-global.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/icsms_global/api.py b/toolbench/toolenv/tools/Communication/icsms_global/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1a49fd4cda4e660939e2659d53bfe5d04a985bfc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/icsms_global/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def retrieve_sms_report(messageid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is to get the report of SMS sent. The messageId is returned during the sending of SMS." + + """ + url = f"https://icsms-global.p.rapidapi.com/report/{messageid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "icsms-global.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/informacion_de_cualquier_numero_fijo_y_movil_de_mexico.json b/toolbench/toolenv/tools/Communication/informacion_de_cualquier_numero_fijo_y_movil_de_mexico.json new file mode 100644 index 0000000000000000000000000000000000000000..6dea7c35b1da888c307175976ed339b4a522b4cb --- /dev/null +++ b/toolbench/toolenv/tools/Communication/informacion_de_cualquier_numero_fijo_y_movil_de_mexico.json @@ -0,0 +1,40 @@ +{ + "tool_name":"Informacion de cualquier numero fijo y movil de Mexico", + "tool_description":"Obtén información sobre cualquier teléfono fijo o móvil (celular) dentro de México. La información ofrecida por la aplicación en la siguiente:\n - Operadora: Compañía con la que esta registrado el número.\n - Estado: Estado al que esta asignado el número de teléfono fijo o movil(celular).\n - Municipio: Municipio al que esta asignado el número de teléfono fijo o movil (celular).\n - Es portado: Verificar si el número de teléfono es portado de una compañía a otra.\n- Número en uso.", + "title":"Informacion de cualquier numero fijo y movil de Mexico", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":529, + "avgSuccessRate":100, + "popularityScore":8.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/edgarfur-HNbCEGamI5C/api/informacion-de-cualquier-numero-fijo-y-movil-de-mexico/", + "host":"informacion-de-cualquier-numero-fijo-y-movil-de-mexico.p.rapidapi.com", + "api_list":[ + { + "name":"Información de número", + "url":"https://informacion-de-cualquier-numero-fijo-y-movil-de-mexico.p.rapidapi.com/api/v11/telefono/{numero}/", + "description":"Obtener información de un número en partiocular.", + "method":"GET", + "required_parameters":[ + { + "name":"numero", + "type":"string", + "description":"", + "default":"4434424737" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://informacion-de-cualquier-numero-fijo-y-movil-de-mexico.p.rapidapi.com/api/v11/telefono/{numero}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"informacion-de-cualquier-numero-fijo-y-movil-de-mexico.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/informacion_de_cualquier_numero_fijo_y_movil_de_mexico/api.py b/toolbench/toolenv/tools/Communication/informacion_de_cualquier_numero_fijo_y_movil_de_mexico/api.py new file mode 100644 index 0000000000000000000000000000000000000000..179e45d4de9068b8ae3c3824165ddbf5b1194584 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/informacion_de_cualquier_numero_fijo_y_movil_de_mexico/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def informaci_n_de_n_mero(numero: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Obtener información de un número en partiocular." + + """ + url = f"https://informacion-de-cualquier-numero-fijo-y-movil-de-mexico.p.rapidapi.com/api/v11/telefono/{numero}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "informacion-de-cualquier-numero-fijo-y-movil-de-mexico.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/instamsg.json b/toolbench/toolenv/tools/Communication/instamsg.json new file mode 100644 index 0000000000000000000000000000000000000000..09de13f2cb132c78b3687f6387a1c7dd25cb903c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/instamsg.json @@ -0,0 +1,1230 @@ +{ + "product_id": "102", + "tool_description": "Develop two way push messaging between IoT devices.", + "home_url": "https://rapidapi.com/stefan.skliarov/api/InstaMsg/", + "name": "InstaMsg", + "title": "InstaMsg", + "pricing": "FREE", + "tool_name": "InstaMsg", + "score": null, + "host": "InstaMsgstefan-skliarovV1.p.rapidapi.com", + "api_list": [ + { + "name": "createClient", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/createClient", + "description": "Create a Client", + "method": "POST", + "required_parameters": [ + { + "name": "type", + "type": "SELECT", + "description": "The Client type. Takes any of the two values - `device` or `user`. `device` represents a IoT device client, and `user` represents a user client.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Name of the tenant. For example, `Company 1`", + "default": "" + }, + { + "name": "provisioningId", + "type": "STRING", + "description": "Usually IMEI-Number for GPRS devices; MAC-ID for LAN and Wifi devices. But this can be any globally unique alpha-numeric string. For example, the device's UUID/Serial-Number.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "description", + "type": "STRING", + "description": "A short description of the Client.", + "default": "" + }, + { + "name": "secureCertEnabled", + "type": "BOOLEAN", + "description": "Will client-certificate-authentication take place when client connects to server. Can take values `true` or `false`.", + "default": "" + }, + { + "name": "gsmApn", + "type": "STRING", + "description": "This is the Access Point Name (APN) of the mobile network.", + "default": "" + }, + { + "name": "provisioningKey", + "type": "STRING", + "description": "An alphanumeric (0-9 and A-Z) key of length greater than 5 and less than 13. The key is case sensitive, therefore `KEY01` and `key01` are two different keys.", + "default": "" + }, + { + "name": "gsmPassword", + "type": "STRING", + "description": "The password for your APN.", + "default": "" + }, + { + "name": "gsmSendSms", + "type": "STRING", + "description": "If this field is `1`, the sms is sent to the GSM-device with the provisioning parameters.", + "default": "" + }, + { + "name": "gsmSimPin", + "type": "STRING", + "description": "The PIN for your SIM.", + "default": "" + }, + { + "name": "gsmMsisdn", + "type": "STRING", + "description": "The mobile phone number of the SIM that is used in the device, entered by the user in your app during provisioning process. Please note that here just the mobile-number should be entered, without any country-code or anything.", + "default": "" + }, + { + "name": "gsmUsername", + "type": "STRING", + "description": "The user name for your APN.", + "default": "" + }, + { + "name": "gsmIsdCode", + "type": "STRING", + "description": "Country-Code. For example, for India the code would be `+91`", + "default": "" + }, + { + "name": "pubTopics", + "type": "LIST", + "description": "List of pub topics to which the Client can publish messages to.", + "default": "" + }, + { + "name": "subTopics", + "type": "LIST", + "description": "List of sub topics to which the Client can subscribe.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/createClient\"\nquerystring = {\"type\": \"\", \"accessToken\": \"\", \"description\": \"\", \"tenantId\": \"\", \"name\": \"\", \"secureCertEnabled\": \"\", \"gsmApn\": \"\", \"provisioningKey\": \"\", \"gsmPassword\": \"\", \"gsmSendSms\": \"\", \"gsmSimPin\": \"\", \"gsmMsisdn\": \"\", \"provisioningId\": \"\", \"gsmUsername\": \"\", \"gsmIsdCode\": \"\", \"pubTopics\": \"\", \"subTopics\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/createClient\"\nquerystring = {\"type\": \"\", \"accessToken\": \"\", \"description\": \"\", \"tenantId\": \"\", \"name\": \"\", \"secureCertEnabled\": \"\", \"gsmApn\": \"\", \"provisioningKey\": \"\", \"gsmPassword\": \"\", \"gsmSendSms\": \"\", \"gsmSimPin\": \"\", \"gsmMsisdn\": \"\", \"provisioningId\": \"\", \"gsmUsername\": \"\", \"gsmIsdCode\": \"\", \"pubTopics\": \"\", \"subTopics\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createTenant", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/createTenant", + "description": "Creates a Single Tenant.", + "method": "POST", + "required_parameters": [ + { + "name": "maxMessages", + "type": "NUMBER", + "description": "Max no of messages, which can be send by all clients of this tenant. This can be used to prevent abuse of messages by a tenant. Example from your purchase 1 million messages and you want to allot 10000 messages to this Tenant.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "maxClients", + "type": "NUMBER", + "description": "Max no of clients, which can be created in this Tenant. This can be used effectively to ration clients for a tenant.", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Name of the tenant example `Company 1`", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "description", + "type": "STRING", + "description": "A short description of your tenant.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/createTenant\"\nquerystring = {\"maxMessages\": \"\", \"description\": \"\", \"accessToken\": \"\", \"maxClients\": \"\", \"name\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/createTenant\"\nquerystring = {\"maxMessages\": \"\", \"description\": \"\", \"accessToken\": \"\", \"maxClients\": \"\", \"name\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteClient", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteClient", + "description": "Delete a client", + "method": "POST", + "required_parameters": [ + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteClient\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteClient\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteClientConfig", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteClientConfig", + "description": "Delete Client-Config", + "method": "POST", + "required_parameters": [ + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant id.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteClientConfig\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteClientConfig\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteFile", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteFile", + "description": "Delete a File", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "filename", + "type": "STRING", + "description": "File Name to delete.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant id.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteFile\"\nquerystring = {\"accessToken\": \"\", \"clientId\": \"\", \"filename\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteFile\"\nquerystring = {\"accessToken\": \"\", \"clientId\": \"\", \"filename\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteTenant", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteTenant", + "description": "Delete a Tenant", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "Tenant ID to delete.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteTenant\"\nquerystring = {\"id\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/deleteTenant\"\nquerystring = {\"id\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "downloadFile", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/downloadFile", + "description": "Download a File", + "method": "POST", + "required_parameters": [ + { + "name": "filename", + "type": "STRING", + "description": "File Name to download.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/downloadFile\"\nquerystring = {\"filename\": \"\", \"tenantId\": \"\", \"clientId\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/downloadFile\"\nquerystring = {\"filename\": \"\", \"tenantId\": \"\", \"clientId\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getAccessToken", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getAccessToken", + "description": "Requests an access token.", + "method": "POST", + "required_parameters": [ + { + "name": "clientSecret", + "type": "CREDENTIALS", + "description": "InstaMsg Client Secret.", + "default": "" + }, + { + "name": "clientKey", + "type": "CREDENTIALS", + "description": "InstaMsg Client Key.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getAccessToken\"\nquerystring = {\"clientSecret\": \"\", \"clientKey\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getAccessToken\"\nquerystring = {\"clientSecret\": \"\", \"clientKey\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientAuthToken", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientAuthToken", + "description": "Get Client Auth Token. You can get the auth token of Clients of type `user`.", + "method": "POST", + "required_parameters": [ + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientAuthToken\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientAuthToken\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientConfig", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientConfig", + "description": "View Client Config", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant id.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientConfig\"\nquerystring = {\"tenantId\": \"\", \"clientId\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientConfig\"\nquerystring = {\"tenantId\": \"\", \"clientId\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientInfo", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientInfo", + "description": "List Client Info", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientInfo\"\nquerystring = {\"accessToken\": \"\", \"clientId\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientInfo\"\nquerystring = {\"accessToken\": \"\", \"clientId\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientLogs", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientLogs", + "description": "Client Logs are important to if you want to know what is happening at the client end (e.x. the client embedded in the IoT device) and the InstaMsg server end. You can use these logs to troubleshoot your clients.", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "start", + "type": "DATEPICKER", + "description": "The start date time (in unix-time in milliseconds)", + "default": "" + }, + { + "name": "level", + "type": "SELECT", + "description": "Level of logs `DEBUG` , `INFO`, `WARN`, `ERROR`, `FATAL`.", + "default": "" + }, + { + "name": "creator", + "type": "SELECT", + "description": "The creator of the logs. It can have two valid values `InstaMsg` and `client`.", + "default": "" + }, + { + "name": "end", + "type": "DATEPICKER", + "description": "The end date time (in unix-time in milliseconds)", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientLogs\"\nquerystring = {\"start\": \"\", \"tenantId\": \"\", \"level\": \"\", \"clientId\": \"\", \"accessToken\": \"\", \"creator\": \"\", \"end\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientLogs\"\nquerystring = {\"start\": \"\", \"tenantId\": \"\", \"level\": \"\", \"clientId\": \"\", \"accessToken\": \"\", \"creator\": \"\", \"end\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientMetrics", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientMetrics", + "description": "List Client Metrics", + "method": "POST", + "required_parameters": [ + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "interval", + "type": "STRING", + "description": "The interval over which the metrics should be aggregated. Valid value are `day` and `month`. `day` aggregates the metrics over last 24 hours while month over the last 30 days. The default is last 24 hours.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientMetrics\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"interval\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientMetrics\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"interval\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientNetworkLogs", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientNetworkLogs", + "description": "InstaMsg Client libraries also push network information to the InstaMsg server. Network logs are very important to troubleshoot IoT device sites that have a poor network.", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "end", + "type": "DATEPICKER", + "description": "The end date time (in unix-time in milliseconds)", + "default": "" + }, + { + "name": "iccid", + "type": "STRING", + "description": "The sim number if the device has multiple sim cards.", + "default": "" + }, + { + "name": "imei", + "type": "STRING", + "description": "The imei of the network interface.", + "default": "" + }, + { + "name": "start", + "type": "DATEPICKER", + "description": "The start date time (in unix-time in milliseconds)", + "default": "" + }, + { + "name": "macId", + "type": "STRING", + "description": "Hexified-MAC-Id of the network interface.", + "default": "" + }, + { + "name": "msisdn", + "type": "STRING", + "description": "The mobile phone number if the device has multiple sim cards.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientNetworkLogs\"\nquerystring = {\"accessToken\": \"\", \"clientId\": \"\", \"end\": \"\", \"iccid\": \"\", \"imei\": \"\", \"start\": \"\", \"tenantId\": \"\", \"macId\": \"\", \"msisdn\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientNetworkLogs\"\nquerystring = {\"accessToken\": \"\", \"clientId\": \"\", \"end\": \"\", \"iccid\": \"\", \"imei\": \"\", \"start\": \"\", \"tenantId\": \"\", \"macId\": \"\", \"msisdn\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClientSessions", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientSessions", + "description": "You can get the client session details using the Client Sessions API.", + "method": "POST", + "required_parameters": [ + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "end", + "type": "DATEPICKER", + "description": "The end date time, (in unix-time in milliseconds)", + "default": "" + }, + { + "name": "start", + "type": "DATEPICKER", + "description": "The start date time, (in unix-time in milliseconds)", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientSessions\"\nquerystring = {\"end\": \"\", \"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\", \"start\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClientSessions\"\nquerystring = {\"end\": \"\", \"clientId\": \"\", \"accessToken\": \"\", \"tenantId\": \"\", \"start\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getClients", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClients", + "description": "List all Clients", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClients\"\nquerystring = {\"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getClients\"\nquerystring = {\"accessToken\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getFiles", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getFiles", + "description": "List all client's Files", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getFiles\"\nquerystring = {\"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getFiles\"\nquerystring = {\"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getMessages", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getMessages", + "description": "You can list all messages exchanged by a client.", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "start", + "type": "DATEPICKER", + "description": "The start date time.", + "default": "" + }, + { + "name": "type", + "type": "SELECT", + "description": "The message type. Takes any of the two values `pub` or `p2p`.", + "default": "" + }, + { + "name": "end", + "type": "DATEPICKER", + "description": "The end date time.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getMessages\"\nquerystring = {\"start\": \"\", \"tenantId\": \"\", \"type\": \"\", \"accessToken\": \"\", \"end\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getMessages\"\nquerystring = {\"start\": \"\", \"tenantId\": \"\", \"type\": \"\", \"accessToken\": \"\", \"end\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleClient", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getSingleClient", + "description": "View a Client", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getSingleClient\"\nquerystring = {\"accessToken\": \"\", \"tenantId\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getSingleClient\"\nquerystring = {\"accessToken\": \"\", \"tenantId\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleTenant", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getSingleTenant", + "description": "View a Tenant", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getSingleTenant\"\nquerystring = {\"id\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getSingleTenant\"\nquerystring = {\"id\": \"\", \"accessToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getTenants", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getTenants", + "description": "List all Tenants", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "active", + "type": "BOOLEAN", + "description": "Possible values: 0, 1. Will list active or inactive tenants. If the filter is omitted it will return both active and inactive tenants.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getTenants\"\nquerystring = {\"accessToken\": \"\", \"active\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/getTenants\"\nquerystring = {\"accessToken\": \"\", \"active\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "invalidateAccessToken", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/invalidateAccessToken", + "description": "Invalidating an access token.", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "STRING", + "description": "Access Token to invalidate.", + "default": "" + }, + { + "name": "clientKey", + "type": "CREDENTIALS", + "description": "InstaMsg Client Key.", + "default": "" + }, + { + "name": "clientSecret", + "type": "CREDENTIALS", + "description": "InstaMsg Client Secret.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/invalidateAccessToken\"\nquerystring = {\"token\": \"\", \"clientKey\": \"\", \"clientSecret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/invalidateAccessToken\"\nquerystring = {\"token\": \"\", \"clientKey\": \"\", \"clientSecret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "publishMessage", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/publishMessage", + "description": "Publish A Message", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "payload", + "type": "STRING", + "description": "This is a UTF-8 encoded string. If your message contains characters not represented in UTF-8 encode your message in base64 or hex.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "type", + "type": "SELECT", + "description": "The message type. Values can be `pub`, `p2p`. To publish a message set it to `pub`.", + "default": "" + }, + { + "name": "id", + "type": "STRING", + "description": "The Message ID is a 16-bit unsigned integer that must be unique among the set of `in flight` messages in a particular direction of communication with a client. On your server side code you should maintain an map of client id, message id and reply handler or callback. When you receive a reply for a message. Set it to `null` for QOS 0 messages.", + "default": "" + }, + { + "name": "topic", + "type": "STRING", + "description": "Topic string can be any valid UTF-8 string of length limited to 64k. Topic string are case sensitive. So `TOPIC` and `topic` are two different topic. ", + "default": "" + }, + { + "name": "qos", + "type": "SELECT", + "description": "This is the Quality of Service (QOS) level for message delivery. Valid values are: `1`: AT MOST ONCE; `2`: AT LEAST ONCE; `3`: EXACTLY ONCE", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant id.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "duplicate", + "type": "BOOLEAN", + "description": "If you are re-sending this message set this to False i.e. 0.", + "default": "" + }, + { + "name": "save", + "type": "BOOLEAN", + "description": "If you want the message to be stored on InstaMsg cloud.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/publishMessage\"\nquerystring = {\"accessToken\": \"\", \"duplicate\": \"\", \"payload\": \"\", \"clientId\": \"\", \"type\": \"\", \"id\": \"\", \"topic\": \"\", \"qos\": \"\", \"tenantId\": \"\", \"save\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/publishMessage\"\nquerystring = {\"accessToken\": \"\", \"duplicate\": \"\", \"payload\": \"\", \"clientId\": \"\", \"type\": \"\", \"id\": \"\", \"topic\": \"\", \"qos\": \"\", \"tenantId\": \"\", \"save\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "releaseMessage", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/releaseMessage", + "description": "Request InstaMsg to release (publish to subscribers) the message.", + "method": "POST", + "required_parameters": [ + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "messageId", + "type": "STRING", + "description": "Message ID.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/releaseMessage\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"messageId\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/releaseMessage\"\nquerystring = {\"clientId\": \"\", \"accessToken\": \"\", \"messageId\": \"\", \"tenantId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateClient", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClient", + "description": "Update a Client", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "description", + "type": "STRING", + "description": "A short description of the Client.", + "default": "" + }, + { + "name": "type", + "type": "SELECT", + "description": "The Client type. Takes any of the two values - `device` or `user`. `device` represents a IoT device client, and `user` represents a user client.", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Name of the tenant. For example, `Company 1`", + "default": "" + }, + { + "name": "gsmPassword", + "type": "STRING", + "description": "The password for your APN.", + "default": "" + }, + { + "name": "secureCertEnabled", + "type": "BOOLEAN", + "description": "Will client-certificate-authentication take place when client connects to server. Can take values `true` or `false`.", + "default": "" + }, + { + "name": "gsmSendSms", + "type": "STRING", + "description": "If this field is `1`, the sms is sent to the GSM-device with the provisioning parameters.", + "default": "" + }, + { + "name": "provisioningKey", + "type": "STRING", + "description": "An alphanumeric (0-9 and A-Z) key of length greater than 5 and less than 13. The key is case sensitive, therefore `KEY01` and `key01` are two different keys.", + "default": "" + }, + { + "name": "gsmApn", + "type": "STRING", + "description": "This is the Access Point Name (APN) of the mobile network.", + "default": "" + }, + { + "name": "gsmUsername", + "type": "STRING", + "description": "The user name for your APN.", + "default": "" + }, + { + "name": "provisioningId", + "type": "STRING", + "description": "Usually IMEI-Number for GPRS devices; MAC-ID for LAN and Wifi devices. But this can be any globally unique alpha-numeric string. For example, the device's UUID/Serial-Number.", + "default": "" + }, + { + "name": "gsmSimPin", + "type": "STRING", + "description": "The PIN for your SIM.", + "default": "" + }, + { + "name": "gsmMsisdn", + "type": "STRING", + "description": "The mobile phone number of the SIM that is used in the device, entered by the user in your app during provisioning process. Please note that here just the mobile-number should be entered, without any country-code or anything.", + "default": "" + }, + { + "name": "gsmIsdCode", + "type": "STRING", + "description": "Country-Code. For example, for India the code would be `+91`", + "default": "" + }, + { + "name": "subTopics", + "type": "LIST", + "description": "List of sub topics to which the Client can subscribe.", + "default": "" + }, + { + "name": "pubTopics", + "type": "LIST", + "description": "List of pub topics to which the Client can publish messages to.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClient\"\nquerystring = {\"tenantId\": \"\", \"description\": \"\", \"type\": \"\", \"clientId\": \"\", \"accessToken\": \"\", \"name\": \"\", \"gsmPassword\": \"\", \"secureCertEnabled\": \"\", \"gsmSendSms\": \"\", \"provisioningKey\": \"\", \"gsmApn\": \"\", \"gsmUsername\": \"\", \"provisioningId\": \"\", \"gsmSimPin\": \"\", \"gsmMsisdn\": \"\", \"gsmIsdCode\": \"\", \"subTopics\": \"\", \"pubTopics\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClient\"\nquerystring = {\"tenantId\": \"\", \"description\": \"\", \"type\": \"\", \"clientId\": \"\", \"accessToken\": \"\", \"name\": \"\", \"gsmPassword\": \"\", \"secureCertEnabled\": \"\", \"gsmSendSms\": \"\", \"provisioningKey\": \"\", \"gsmApn\": \"\", \"gsmUsername\": \"\", \"provisioningId\": \"\", \"gsmSimPin\": \"\", \"gsmMsisdn\": \"\", \"gsmIsdCode\": \"\", \"subTopics\": \"\", \"pubTopics\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateClientAuthToken", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientAuthToken", + "description": "Client Update Auth-Token", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientAuthToken\"\nquerystring = {\"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientAuthToken\"\nquerystring = {\"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateClientCertificate", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientCertificate", + "description": "Client Update certificate", + "method": "POST", + "required_parameters": [ + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientCertificate\"\nquerystring = {\"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientCertificate\"\nquerystring = {\"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateClientConfig", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientConfig", + "description": "Update Client-Config", + "method": "POST", + "required_parameters": [ + { + "name": "config", + "type": "JSON", + "description": "This is a Json Object of the Config key and values. Each config is represented as a Key and Value in the Json. The JSON is defined by Client side application and InstaMsg only assumes it to be a valid Json.", + "default": "" + }, + { + "name": "tenantId", + "type": "STRING", + "description": "Tenant id.", + "default": "" + }, + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "clientId", + "type": "STRING", + "description": "Client ID.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientConfig\"\nquerystring = {\"config\": \"\", \"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateClientConfig\"\nquerystring = {\"config\": \"\", \"tenantId\": \"\", \"accessToken\": \"\", \"clientId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateTenant", + "url": "https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateTenant", + "description": "Update a Tenant", + "method": "POST", + "required_parameters": [ + { + "name": "accessToken", + "type": "STRING", + "description": "OAuth2 Access Token from `getAccessToken` method.", + "default": "" + }, + { + "name": "id", + "type": "STRING", + "description": "Tenant ID.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "Name of the tenant example `Company 1`", + "default": "" + }, + { + "name": "maxClients", + "type": "NUMBER", + "description": "Max no of clients, which can be created in this Tenant. This can be used effectively to ration clients for a tenant.", + "default": "" + }, + { + "name": "description", + "type": "STRING", + "description": "A short description of your tenant.", + "default": "" + }, + { + "name": "maxMessages", + "type": "NUMBER", + "description": "Max no of messages, which can be send by all clients of this tenant. This can be used to prevent abuse of messages by a tenant. Example from your purchase 1 million messages and you want to allot 10000 messages to this Tenant.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateTenant\"\nquerystring = {\"accessToken\": \"\", \"name\": \"\", \"maxClients\": \"\", \"description\": \"\", \"maxMessages\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://InstaMsgstefan-skliarovV1.p.rapidapi.com/updateTenant\"\nquerystring = {\"accessToken\": \"\", \"name\": \"\", \"maxClients\": \"\", \"description\": \"\", \"maxMessages\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"InstaMsgstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/inteltech_sms.json b/toolbench/toolenv/tools/Communication/inteltech_sms.json new file mode 100644 index 0000000000000000000000000000000000000000..656f4e94a79a2aca54110771b0b017dc9447f4ff --- /dev/null +++ b/toolbench/toolenv/tools/Communication/inteltech_sms.json @@ -0,0 +1,102 @@ +{ + "product_id": "53aa513be4b0a705fcc3195c", + "tool_description": "Intelligent Technologies SMS API. Allows sending and receiving of SMS messages. An account is required. Sign up for free at http://inteltech.com.au\r\n\r\nSend messages to any country in the world.", + "home_url": "https://rapidapi.com/inteltech/api/inteltech-sms/", + "name": "Inteltech SMS", + "title": "Inteltech SMS", + "pricing": "FREE", + "tool_name": "Inteltech SMS", + "score": { + "avgServiceLevel": 100, + "avgLatency": 895, + "avgSuccessRate": 100, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "inteltech.p.rapidapi.com", + "api_list": [ + { + "name": "Check Credit", + "url": "https://inteltech.p.rapidapi.com/credit.php", + "description": "Returns Prepaid Account Balance", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "STRING", + "description": "Your API Username (from user dashboard)", + "default": "temp-idk-test-dynamic" + }, + { + "name": "key", + "type": "STRING", + "description": "Your API Key (from user dashboard)", + "default": "1B490066-EA03-E39A-A18C-C4868E45CFAE" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://inteltech.p.rapidapi.com/credit.php\"\nquerystring = {\"username\": \"temp-idk-test-dynamic\", \"key\": \"1B490066-EA03-E39A-A18C-C4868E45CFAE\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"inteltech.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://inteltech.p.rapidapi.com/credit.php\"\nquerystring = {\"username\": \"temp-idk-test-dynamic\", \"key\": \"1B490066-EA03-E39A-A18C-C4868E45CFAE\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"inteltech.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Send SMS", + "url": "https://inteltech.p.rapidapi.com/send.php", + "description": "Send an SMS with the Inteltech API", + "method": "POST", + "required_parameters": [ + { + "name": "sms", + "type": "STRING", + "description": "Recipient Mobile Number in international format. Separate multiple recipients with a comma (,) .", + "default": "+61411111111" + }, + { + "name": "message", + "type": "STRING", + "description": "The message body to be sent.", + "default": "Test message here." + }, + { + "name": "key", + "type": "STRING", + "description": "Your API Key (from user dashboard)", + "default": "1B490066-EA03-E39A-A18C-C4868E45CFAE" + }, + { + "name": "username", + "type": "STRING", + "description": "Your API Username (from user dashboard)", + "default": "temp-idk-test-dynamic" + } + ], + "optional_parameters": [ + { + "name": "senderid", + "type": "STRING", + "description": "11 character custom sender ID. Leave blank for two-way SMS.", + "default": "MyCompany" + }, + { + "name": "schedule", + "type": "STRING", + "description": "Allows you to schedule message delivery. Must be in unix format.", + "default": "1377959755" + }, + { + "name": "return", + "type": "STRING", + "description": "Redirect to a URL after delivering the message(s).", + "default": "http://yourwebsite.com" + } + ], + "code": "import requests\n\nurl = \"https://inteltech.p.rapidapi.com/send.php\"\nquerystring = {\"sms\": \"+61411111111\", \"message\": \"Test message here.\", \"senderid\": \"MyCompany\", \"schedule\": \"1377959755\", \"return\": \"http://yourwebsite.com\", \"key\": \"1B490066-EA03-E39A-A18C-C4868E45CFAE\", \"username\": \"temp-idk-test-dynamic\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"inteltech.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://inteltech.p.rapidapi.com/send.php\"\nquerystring = {\"sms\": \"+61411111111\", \"message\": \"Test message here.\", \"senderid\": \"MyCompany\", \"schedule\": \"1377959755\", \"return\": \"http://yourwebsite.com\", \"key\": \"1B490066-EA03-E39A-A18C-C4868E45CFAE\", \"username\": \"temp-idk-test-dynamic\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"inteltech.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/intobo_whatsapp_api.json b/toolbench/toolenv/tools/Communication/intobo_whatsapp_api.json new file mode 100644 index 0000000000000000000000000000000000000000..22a77ceed44ed227c5a71cc6f0b0b7463bdffa86 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/intobo_whatsapp_api.json @@ -0,0 +1,553 @@ +{ + "tool_name": "Intobo WhatsApp API", + "tool_description": "This api is used to send messages to WhatsApp chat platform via API. see details www.intobo.com", + "title": "Intobo WhatsApp API", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 684, + "avgSuccessRate": 100, + "popularityScore": 9.1, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/root-h1mkMNR1x/api/intobo-whatsapp-api1/", + "host": "intobo-whatsapp-api1.p.rapidapi.com", + "api_list": [ + { + "name": "startInstance", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/startInstance/{number_id}", + "description": "Start instance node", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/startInstance/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "message": "Instance started successfully" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": {} + }, + { + "name": "stopInstance", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/stopInstance/{number_id}", + "description": "Stop instance node", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/stopInstance/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "message": "Instance Stopped" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": {} + }, + { + "name": "CaptureScreenShot", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/CaptureScreenShot/{number_id}", + "description": "Capture instance screenshot", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/CaptureScreenShot/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "base64_image_data": "iVBORw0KGgoAAAANSUhEUgAABUYAAAJ7CAYAAAAvAkucAAAAAXNSR0IArs4c6QAAIABJREFUeJzs3Xd81dX9x/H3zSIDkhsIISRAEgJhQ5iCogYHQpWKVqtWa7FasdUKjipqW7VaR60/odWqrVVcFVdFxYobcTEEwgohEkIChDBCBmQAubm/P0Iu9+aO3Jkbcl/Px8Ny7/3OO3K/Pe97zvkYtOhBswAAAAAAAACgE/osaZzDx8Pa+TwAAAAAAAAAIOgIRgEAAAAAAACEHIJRAAAAAAAAACGHYBQAAAAAAABAyCEYBQAAAAAAABByCEYBAAAAAAAAhByCUQAAAAAAAAAhh2AUAAAAAAAAQMghGAUAAAAAAAAQcghGAQAAAAAAAIQcglEAAAAAAAAAIYdgFAAAAAAAAEDIIRgFAAAAAAAAEHIIRgEAAAAAAACEHIJRAAAAAAAAACGHYBQAAAAAAABAyCEYBQAAAAAAABByCEYBAAAAAAAAhByCUQAAAAAAAAAhh2AUAAAAAAAAQMghGAUAAAAAAAAQcghGAQAAAAAAAIQcglEAAAAAAAAAIYdgFAAAAAAAAEDIIRgFAAAAAAAAEHIIRgEAAAAAAACEHIJRAAAAAAAAACEnItgnAOQk9tIvMkYqx9jLct8YGa2qYw3Kq9wrScqr2qsXd2yw3AcAAAAAAAB8YdCiB83BPgmEnow4o+4ddrpm9smWMTLa7e121FZr2b4S3b/5K+2orQrgGQIAAAAAAKAz+CxpnMPH6TGKdmWMitac7Am6b9jpXm2fEZegWZkjNbNPtuYXrtaCwlWqOtrg57MEAAAAAABAZ0ePUbSb3OR0vTP5Eoc9RL88ul3LjmxXXmOZqswngk6jIVo5EamaGT1MoyJ7221XdaxBU754hSH2AAAAAAAAcMhZj1GCUbSLWZmj9MKEC2weK2ms1Py6r7Wwfo2qmurb3EdGeKJmxYzT3LjJSgg7Ea5WHWvQLes+1cLi9X4/bwAAAAAAAJzcCEYRNC9MmKFZmSNtHrv/0Ke67/AnXu3PGBaj+7qeozlxk20ev2bVEsJRAAAAAAAA2HAWjIa183kgxMzKHGUTipY0Vmr0gQVeh6KSVNVUr7k172v0gQWqbjox7P6FCRdoZp9BPp0vAAAAAAAAQgPBKAImJ7GXzfD59cf2KKdigfKOlfll/3nHypR78Fm7cDQnsZdf9g8AAAAAAIDOi2AUAWGMitY7p11qub/+6B7lHnzWrblEPdE6HDVG2h4XAAAAAAAAcIRgFAExd+B4ZcQlSJKqmxo0q+YNu1A0JzJVZ0b1V0Z4ok/HyjtWplnVb1juZ8QlaFbmKJ/2CQAAAAAAgM6NYBR+Z4yK1pxBEyz359d+bTd8/oWES7UuaY6W9ZitdxKv9vmYixs2692GzZb79w473ed9AgAAAAAAoPMiGIXfzcocKWNktKTmYkutCy3ldsnSrNgT1cByIlM1M3qYz8edW/O+5Ta9RgEAAAAAAOAKwSj87hcZJ6rQ31f7qd3yubGn2T02J26yz8fdYarUi3VrLPdnpmX7vE8AAAAAAAB0TgSj8KuMOKNyjCeqwi+2Gt7e4syo/naP5fphrlFJWnzkxPHOTO7n8/4AAAAAAADQOUUE+wTQueQmp1tuv9uw2WEVemNYjMNtMyK6a4ep0qfjWwexxsho5Sana9m+Ei/3lqAXpt+kWfGHtfTbBZq+8/jDPS9R8VmDlGHarUfeWqi7jj985mk3almfrlqx5VFNip4tc2aSCor/rCGrrPd5gbZcNkop+z5W4herbY5259l36pGkCKlmvTI+XKISSXOm3Kb5ydGOT+9oiea+84oW9z1XC0eN1MS4aDWv2agdu95X5jf5VitP0neXnKWJ4VJB8ZMasqraatl4fXHRVOVGWe/7sPLKl2vmd+ucnEeDyiuLdN/Xi/Vsne1ppU+YrR2ZSSrf8456L285h35654Kfa2ZcY/Prs8H2tUw58K1iPovTlstGaXCrp9n8Gjo4R1ODCnZ/rmnHzxEAAAAAAMAT9BiFX2XExltu5x3b43CdL49ud/jYsiNFfjkH6/3n9vSl12i1FtZUSeqqjN4JlkfTM3soQ5LCe2ii1Wj9WfFGSVUq2CAvTNHMxAiV1x+W4tP1SM/mR/N252tR6WYtKt2sFfWSdFgrjt9fVLpVebHnavEpE5QbJ+3Y0/z44n1VagiPs939yEHKCT+s8nppcPIUnenoFEwHtLR0sxaVFqlAXZXTb6oW5yRYrdCoguPHWFojpSQO0/zJ5yq91W5Kiiu0Q1JKXP8Ty2JHanCcJEVocI/xJ1Y+/lruOPTFicfqd1uec/PzcXKOpmgN7jdVi1onqQAAAAAAAG6gxyj8KiPOaLm9o8lx78/FDZtthtOXmCo1s/Ilv53DsiPbHQ7X98aXpRUq72NURrcxkprDu7nGJMnUqIbwaGX07CcVlkqa0hz81VZooRfHSR/bXxPDD2tpwW4NHj1IE7P7SftL9WXhh/ry+DovTB+miTENKvhusa5p2TD7KmWESzt2vakh35Q62XuCnk5JU3R9kR6paNT8Pmma21P6cn+r1Uy1WvrdYi2QLD05c5InSGopntWo8vLFuqJQsvQATeynuZJusd7P/nwV1A9SRlySbpCae9Rm99JgNarBFCFjXLrO1Gp9KenhbsfD5GKr7Y8d0BXfLXH8VKzPcUJzr1xjvONVAQAAAAAAXKHHKPwqI+5ED0Nnw+Ln136tEqtlCQYnQ8X9cj7GtldyZWeRCo5K0fFpmi1JmqKJ8VJDZYnyTFJG/MjmXpF9eykjXCqvybcEme5L0LweKVL9Xi0szFdBvZTR41Rd5s6m9Y1qkJSRfIbudPZUY0/VxESpvGqDFpRWqFxGTRwy1PV+axvbOHC1Gpwuy9fSQw3NPWqzmh95uEeSZNqrZZWNUlwPzYqVpKHKiYuQ6iu0qHVI2xbjSL3WwyiZyrV0k4fbAgAAAAAAiGAUQTKr+k3LbWNYjN5JvDogx7EOar2zWitqGqWoBE3rKUsAWlCxSCtqJB3vFZnep4dS1KCC8nybrQdn3iPzZdb/2c+hqZ5TNC1RKq/K1+vK18Kqw1JML83KcOP0dn6oR/ZUqSEqXY+cd6f2TJ2p2a0C0jNH9VeODiuvNF/auUF59VKKcaR+4WyfxpF6elKWMiTlVaxysEIv/WLsRZoWJ6myTPMdrLGgokINilZGSj9ZAtCa3ZpecUCSUYMHSIrN1uAYqepQkV633jh+lNXrdZu+sJquQFHpmn/ZPTKfN0OXRx/W0k1LdEurOU4BAAAAAADcQTCKoFh2pEgv1q2x3M+N6q8XEi71/3G8Lrx0wjOHqiQZlZEmndmvh1J0QHmF0vyqA5Z5Rud2M0qmCq0otN22/MBmm/kyF5XuVnmr/Z85IE0ZalBBefPkpK+X7lW5umpi5ni1rVoLlj+lid+v14ra5nk/nzlnjj7MbgmE++mGHkbpaIWW7pCkfC2qOizFpGlWdqtdWYWONyRFq/zAKs1bY12kKVq5o++R+bLrtHBAmoz1uzV/w4eOCx9tO6AdkjLiBkk9h2pwjFRQtUoq3KuClnlGs3soQ40qqLAtQmU7x2i+Flt3PLbMMbpVK4511bRRs7Rlgi/zyAIAAAAAgFDFHKPwq6pjRyy3M8ITXa47q/oNZUQkWuYDnRU7TpJ0jVVv0hbGsBhlhCcq71hZm+fQ1nE9VVJcoR2ZSRrc41zNijJKtVu1sM7q8ZRzpThJtQcsFepbVB1arCtaV6Xvl6YUy/2hmtezuYtn7uh7ZB5ttWqPYbpTq/WoG+e4vmiJJhUt0aisS7R43CBNGzxdlxUu0ut9T1VunCQ1h57WvTsn9p0kFX534gHTAS3dvVdVR/dqUWm+3t1f3eoojSrYs1V5x44or3SzFu0udV4Nvm6DCmpHaXB8mp7I7KIMVWlxcfWJx7tl6Qk5KVbl7hyjsdO1bsYY5fQYKcnZ/KoAAAAAAACOEYzCr/Iqy3VhWnNXxJyI3m2uP7PyJS3rPlujIpvXnRU7ThkR3XVN1RuWOUqNYTH6ovv1yolM1bKj2zW/9mu927DZ6T4zIk4Eozvqanx5Os0sxYSylRsjle85Po/o/iLtODpIufHZaoiSduzzohx9xkjlxEgNNUVaXHVi1k6jcZCmxffSzJHSox7sdn3RJ1oxZJAy4hI0TVJ0Zi+lWALNlrWilZOWpcGJg/SwvjsR5lqHjg5ZF19qS6kW1RzWzLgEzUzuKtUXHZ9HtFRLaxs0M7mHZjZFS7UlXhWrAgAAAAAA8BXBKPxq2f5S3Xv89oVdhmmu3ne5flVTvXIPPmsTjuZG9Vdx8jzNr/1aL9av0QsJlyonMtWyLDeqv3aYKnVN9ZtadqTIZn/GsBibivT+GErfXExouqYlG5WhRq2oaplHdJ1W1ExVbpJRGTqspaWe91r8Rb/m4HJF8SJdUWC1IPsqVY5O18SUc6UNnzjdXhOuVWWySSsqqlQlKTo2XdPipIaa3VqokZpn7CqZdmvh8sU2PU/nTLlN85PTNC1HuivP49N2y+vlFXqmd7oy4qSGA3st84g+W1Gh+clpyoizCpmtRSbptUkzT9yv3a4rLOFwhDL6DtWdyUM1s3eWctSoggovAmkAAAAAABDymGMUfpVXtddyOyMi0a1h7S3haOteoHPjJmtd0hxLKGotIzxRuZH97R6fGT3Mcruktlo7aqs8OX2nmosJSdIBrbDK4e6qONB842iFlu70dK+TdENyV8m0V4sLWi0q3Kq8o5IS++npWBe7qKlVQ2QvTes3TJf3G6aZSRGqqtysuV8u0ZeDxyg3Rmqo3Go3HH/B7r2qkpSTPF3pnp62uwp3q8DUfLOg4osTj2/Yreana1+sSpIUk6bLjz+fy/sN0+VpVnOIRqVp7qkX6ZEBgzQxulEFpR9r2iqG0QMAAAAAAM8ZtOhBc7BPAp3L4smXWobTv1i3RrOq33B721mx4zS/2wwlhEW3ue5FlS9pcaswdXHi1brweDi6oHCV5q5z0dsSAAAAAAAAnd5nSeMcPk6PUfjd4t0nJqG8sMswGcNi3N52Yd33ytj/iO4/9Kmqmxqcrvdi3Rq7UDS3S5YlFJWkhTsYYg0AAAAAAADHCEbhdwuL16uktrmiuTE8Wvd1Pcej7aua6nXf4U9k3HuvLqp8SS/WrVGJqVLVTQ16t2GzLqp8yWEv1HvjThzn3d2Fyqvca7cOAAAAAAAAIFF8CQGysHi97h1+hiQpJyzN6/0sbths1zPUkblxk5Xb5cScowyhBwAAAAAAgCv0GEVA5CSmWG4vayxysabvZsWO0xPxMyz3FxSu8lvRJQAAAAAAAHROBKMIiDOTT1QSX3Zse8COMzN6mF5IuNRyf33VXnqLAgAAAAAAoE0MpYff5ST2kjHyRFX5ZUcC02P0ifgZmhs32XK/+tgR5X7xSkCOBQAAAAAAgM6FYBR+NzM123L73cP5ltsZ4Yk6s0t/5UZkSQaz7j/8qXaYKj3ef26XLD3R9QLlRKVaHmsORV9W1VHnlewBAAAAAACAFgSj8Lvc5HTLbXOEWU/EztDMmGHKiEq0WW9W7DgtrPtei4/k6103CixdGD1Ms2LGamb0MJvH11ftVe4XrxCKAgAAAAAAwG0GLXrQHOyTQOdhjIpW5UW3ebxdVVOD8hrLtOyo/bD73Kgs5Ub1d7BVc6El5hQFAAAAAACAM58ljXP4OD1G4VfWvUUdWV+1V8v2lWhm2iClxyVYHjeGRSs3qr/TALS1L/eVaNaqJVSfBwAAAAAAgFcIRuFXuT372dxvCUKX7S/Vsn0lluHuc9d9olmZozQzLVsXpmU72pWdktpqLd69VQt3bFBe5V6/n3unZqZjOAAAAAA4ZDAE+wwABAnBKPwqx9hLLxZvsAShrnp0Lixer4XF62WMilaOsZclVM1JTJExsouW7SuRJO2oq1FeVTlhqDWCTgAAAADwD0/bVwSpQKfBHKNAR0YACgAAAAAnBwJToMNijlGgIyMABQAAAICTm7N2HYEp0GERjALBQBAKAAAAAKGhdfuPoBToMAhGgfZAEAoAAAAAkAhKgQ6EYBQIlJMpDD2ZzhUAAAAAPNHRg0fr9lhHP1egkyEYBfwp2AFjsI8PAAAAAB2Nt+2kYISUhKRAuyIYBfyhPQNJwk8AAAAACDxXba/2CC1bjk9ACgQMwSjgi0CHlISgAAAAANDxOGqrBSrAJCAFAoZgFPBGoAJLglAAAAAAODkFuqgSASngdwSjgCf8HVwShAIAAABA5xSooJSAFPAbglHAHf4MMAlDAQAAACD0+LuwEgEp4DOCUcAVf4WYhKEAAAAAgBb+DEkJSAGvEYwCzvgjzOysgWhnfV4AAAAAOr7OFgD6K9g0mzvfawMEGMEo4IgvwV9HDQ076nkBAAAAgCf82bbpSEGiP3qREo4CHiEYBaydzIFosI8PAAAAACebttpRwQoZfelFytB6wG0Eo0ALb4PF9g4k2+t45KwAAAAATjb+zgKdtb/aK3T0NSAlHAVcIhgFpI4divp6DAJOAAAAAKHC2/aPp/lh63ZaoANIb0NOwlHAJYJRwJvgMZCBqFfn4//TAAAAAICQ4apN5U6u2B5Bqbe9RwlHAacIRhHaOkoo6sk+/XZ40lQAAAAAocabXpde7MYfhZRc7ZtwFPALglGELk8DzmAFol4dltATAAAAAOy501ZyI0BsvRtXmwSiGJI3+yQcBewQjCI0BTMU9WsY2h5znAb+EAAAAADgE7/mfc4aQS4OYr2Js9UC0YvU07CTcBSwQTCK0BOsULSt/bh1GB/OhYATAAAAQGfVLkWX3Owm6klI6o+QknAU8BrBKEJLMEJRV/toc/eenq9nq7u3TxJVAAAAAB2ct0GfT0WX3AhK2wpJ/RWQEo4CXiEYRejwqMBRMANRN4/t6SkScAIAAADorLxt77gKBz0uutRGCmp2vsgvAamn+yAcBQhGESLaMxQNVCDq7mkRgAIAAACAe5y1n5wFhm4XXXKRgrZHQEo4CriFYBSwFqhQ1OlufQxD2z0E5YIJAAAAoKMIYHvIUVvLUYDY5nyiLlZoKyBtr3AUCGEEo+j83A0PfQkZvQlEPd7GxXE81sYF0ulx6I0KAAAAoINrMxD0sl3Tup3U+jjuhKQGg/1CZwGpr71H3Q1HCVERwghG0bm1R49KdwJOyzpeDLP36jk4+iXT5oS82CcAAAAAnAQ8aUM5DAS96FzjLCR1GHa2WtiyrdnB+i3bBDq4JBxFiCIYBSTvA1RH25kdLXO0ntlPYWjrC7D1hbYN5KMAAAAAQoWrOT3t1rVLNF3v21lI2roXqc1+zQ52bbD5x2b/3gSXBJ6ASwSj6LwCOYTeVS9Ru2VmpcR01V9Gn6upqVnqFd3V8+MBAAAAADqNvQ2H9XFZke5Y94nK6w/LkoSarXqT+mtoPUPqAacIRtE5tXco6qyX6PH7T4w9T5dnjPD8WAAAAACATqdXdFf9vP8oRYaF6Yqv3pLd/KNmq3H1/ug9SjgKOBQW7BMAgsafoai5VTElc5PN/elpAz0/FgAAAACgU7NpK5rNzW1Jm/tOpmDz58hHIIQRjKLzcefL3t+hqPUD1hey4xIioz0/HgAAAACgU3PYVjQ3ySYNbe9wlAAVIYRgFJ1Le36BOwxFWx2/ydz8HwAAAAAAjjhqN7YuquuqeG8gEI4iRBCMIvT441c1u104CUU9KBAPAAAAAAhBLe3GtsJR2d9lSD3gG4JRoC3OQlHL463nF9WJUNTR9gAAAAAAtGhpM7ZuS1qWme3Xc7Q9AI8RjKLzCMRcKd6EopYhDmb7ixoAAAAAANYsvUXNrdqULcsDEI4y1yggiWAUcM7T4fN2oWjLfS4mAAAAAAAnWtqNTZJb4ajlMQf7AeARglF0Dv7+tcvVus4uSGarC1hLKOrpcQEAAAAAocW67WjpYCP7cLR5JTfaqx4e19d1gJMYwShCg69f5mYHd6yHMLS+cFlf2LiQAAAAAACcsW43OmpbOprSTfY3vT42EMIIRnHy8/cXucsh9C6W2Wxntrq4Gfx6egAAAACAzsRg1X60Dj1dBaAulgW6jQx0IgSjgCuuvv+tf7Wz/uHO3HT8X0kyHJ9EGwAAAAAAB5qOd6hpaUe2tCnVct9JwSVrNDsBrxCMovPz2xwrrYY3ONrO3GRZVdLxqvRcoQAAAAAATpjNJzrUWALRphPLWq9r+bcd5xoFOimCUZzc2voC9+Vi4OkQeutf9Aw6EYpykQEAAAAAOGOpSm9ubku2nkq0PYbU+7NtDZxECEYBR9wdotBkNcTBUpTJ0FxJUCIYBQAAAAC4Zt1ubFJzm7J5wYl/mpqs1ne1L/+fHtCZEYwCUttD6B3cdFxsyWrS7JahDVyYAAAAAADOmI//j3VbsqVt6VYxJj8NqQdCEMEoTl6B6urv7AJjPZeLw2H3hhPD6C3r+XAeAAAAAIDOr3Xb0TKc3uB4eLzD2heuhtt7cB6+LAdOQgSjgLtf7o5Wa/llz6aCoE7caGM+bAAAAABAiHPWjmwJR52NRHS3rUmgCThFMIrOyd+9RR3t22YYg/Wvdk0nfvFztR8AAAAAAKznEjWbbSvSt253Wv/rbD+tbnp2KrRfEVoIRgF3OKoGaGE48UueocnB+lxYAAAAAADOWHe0Of6QoUk2bU27TVqtD8ArBKM4OfnrVyxvJq+2YVWBvvU2ll/7uFIBAAAAAJywFFyyW9D8T5PkMBx1vDOHNwPShgY6AYJRoC2ueos6LMLUcoMLBgAAAADAXVbtSEdFl+xWp9co4CuCUXQ+bhdT8nVeFutf7JxMhu30cQAAAAAAZFV4qa3HXfQa9aReRpvnQyMWoYNgFJC8CC8Nzi8WzCsKAAAAAPCKi+nYzGa5P6T+xO4AOEcwitDk6S9grta3G05/vJdok/nEPKMAAAAAADjSVhvSk/aoO8cCYEEwipOPPy8KkvMhB053ZdVb1J15XwAAAAAA8ISzehaueo163Lb14PjuLgNOMgSjQFtcfuk7+SXP7GQ5AAAAAAB2WrUl7dqhBJVAIBCMAo540lvU2RQvlvW4SAEAAAAAnGir7djS5vS41yiAthCMIvSYnQ0pcFQF0IOrCgEoAAAAAMBffG6POmn70nYFLAhGAU846y3qbHJsCtQDAAAAAFyxbjc6a1s67DUKwFcEo0BrrobRu7U9FygAAAAAgJfcblMynB7wFcEoOg93Lh7+HEZv4GoDAAAAAGgnbbVB/T2cnk4/CAEEo4C77CrOt3q89W1H9wEAAAAAaM1VW9JumZPHAXiMYBQnD7M58F/8vg6jd7hPLlYAAAAAACd8ajMGaTh9e7TPgXZAMIrQ5O0wekvRJbPr9dpaBgAAAACANXfalwYnIxld7sPZlHIACEYBdzD/CgAAAACgPdEOBQKOYBSdQ0AvGF4MTeDiBAAAAADwlMteo84WeDn1G8ErQDAKuK31MHqbZd5cvAAAAAAAIc/TTjdtDacH4DaCUaCFs8p+nv5CZre+D4WbAAAAAACdXKs2o69tUDPBKeAuglGEuLauFD6GmlyIAAAAAABt8bnt2FbblcYp4AjBKOAJj4cs0FsUAAAAANAWN9uOrqZ4A+AxglGEHn9fP6yHLTgc8sAFCwAAAADgTBt1LPxdAIkmKmBBMIrQ4O2FxNXcLG3tk+p9AAAAAAB3edPGdFYrw1/HBDo5glGc/PzxRe7zxcTRbYP4KQ4AAAAA0DazLMPpHbYvPd2dHwswEZ6iEyMYRQjz8Mvd0fyiXCAAAAAAAIFmM7T++L8ezzNK+xVojWAUcMrDwknOQlKuPQAAAAAAZ5y1GT3uiEPxX8BTBKOAN5hfFAAAAADgb7Q1gXZFMIqTQzC//D05tPX8olyvAAAAAADuMksO5xl1a7sgIajFSY5gFKElEN/ZXAcAAAAAAIFCOxYIGIJRIJC/xHGxAQAAAAC0JZBtTdqlgFMEo0CL1kMAPBoSYHZyGwAAAAAAT3jZvvSpTQuEJoJRhCguEAAAAACAUENbGLBGMIrOz6tfyQyt7rqxD6eFl7jwAAAAAACcMbe66UEBJru2qsHhaq4PT5sVoYtgFPAF1w8AAAAAQKDR9gQCgmAUcMXRxcftX9O4cgEAAAAA3OVmG9JRm5TmJ+AVglGc3OjyDwAAAABAYNH2RidFMAoAAAAAAAAg5BCMAn7Fr2gAAAAAAF/RtgTaA8Eo4DMXFyyGGwAAAAAA2uKy7Ui7EggUglHAXW5diwxcswAAAAAA3jNLksHN9QD4gmAUAAAAAAAAQMghGAUc8XQIPKMeAAAAAADe8Gd7kuncAI8QjKJz88dFwcCFBQAAAADQQfmjzUqgihAVEewTAE4qbl8suKgAAAC4svijj/XwU09rW0lJUM+jYv1au8d6jBrj1/UcCdYxHPH3/oJ1DHeP2x6vqbvnEqxj+Pu4/jIgPV133fhrzTxvarBPJYjMcm9+UbNkcGM9AC7RYxShw99ZJb+oAQAAeK0jhKIAOpZtJSV6+Kmng30aHZe/26A0aQGCUQAAAADtj1AUgCN8NwBoTwSjCG38QgYAAAAA6Oxo+wIOMccoIDEsHgAAIMh8mRvRXf6ec9MX7s59GSz+nofT3/Nmuru/9piz1N3j+vKauvsa+HIMd4/rbx3pc98pMRcp4BI9RgE7XDQAAAAAACcr2rSAuwhGAQAAAAAAAIQcglEAAAAAAAAAIYdgFPAJc5MCAAAAAAKNticQCBRfAvyGCxVOPpVV1Zr7x4d00y+v0vicEcE+HQAAbPi7YE97HNeXY/hS2MfRtv7eX3u8H74UbgpWYaRgFQ8KVgGvYP1dhiazmC8UCCyCUSBQQjgnXZ23UXc+8JhH2zz6h98RzB1nNpv1t+deUvm+A7r3tpsUHd3F5fpFO0r12jtLdPuvr3W5rslk0mNPPSdJ+t2N1yk8PNyv592RlO4u0233PqKLz5+qKy66INinAwAAALQthNuQQLCrm7VAAAAgAElEQVQQjALwu5xhg/X2v/9u9/izL78uSZr988vslnWNiw34eZ0sDAaDcoYP0T9e+I8OVFaqT+8Ul+tvLSrWxi2Fba5bfeiwthYV6/KZ53fqUFSSvlm1VhWVVfo+b5N+fN7ZiouNCfYpAQAAAAA6GOYYBeB3kZGRSjQm2P3XJSpKXaKiHC6LjIwM9ml3KFkZ/SQ19wZ15dixY1q9bqP2Vxxsc92dZXtUW1evAZnpfjtPb7295CN98OmygOy7tq7+eCB6lvbs26/SXWUBOQ4A7xRu36H/e+Z5NTQcCfapAAAAIMQRjAJAB9QrqYeGZg9Q3qYtMpudj6k5WFWt8v37ldG3T5vrbsjfqtSUZKUkJwXilD1SunuPjhw5GpB9b9tRoj379uu83NPVO7mnlq9Y7fJ1AdC+qmsOaX9FZbBPAwAAAGAoPQB0RJGRkRoxJFufLP9Gh2prFd+1q8P1CrZtV5eoKJ02fqy+Wb3G6boNDUeUv3Wbxo4arrjYzjttgdls1orv8zQoK1MDMvvptAlj9NEXX6n60CEZ4+ODfXoAgJOYu4VufCni4wtfChS5+9w6UuEcX875ZCyq5IgvRbM60nsJAMFEj1EA6KCGDMzSgYpK7S7b63C52WxW3qYtGpo9QGNHDnO57oHKSu3cvUcjhw4K5CkHXWV1jVasydPEsaMUGRmpUcMG68DBSm3cUhjsUwMAAAAAdDD0GAXQIRw9ekwr1uRp8dJPtaWwSEeOHlWXqCgNyc7SJRdM04TRIxUR4VnBoMqqav3xLws09/pZljk7HfnvBx9rdd5GuwrwTU1mfff9Or369nv6obhEJpNJKck9dcbEcbps5vlKTLDtgWg2m5VfWKSFi97WpoIfdOToURnj43XW5Im6/KLzldQ90aPzT0vtpaQeidryQ5GGZGfZP7/qGm0q+EG/ueZn6tent9J693K67q6yckVGRqhvam+nx2s5/+dfe0sb8rfKZDIpNSVZV1x0gc494zRFRTmeB/bQ4Vp9/vV3+uiLry2vk6PtinaU6rb7HlHNocOWbZ98/hXL7Uf/8DuNzxkhqfnz8Mnyb/TW+0u1s2yPJKlvam+dN+V0zZx+jqK7dJEjm7f+oPqGIxo2eKBlm+GDs7VizXqdOm6006JT1p+BsLAwfbN6jd58b6nN+37elMm6dMZ0xcZE22zb0HBE9z/+pMbnjNDF509VZVW13vnwE326/DuV79uv8PBwDcxM15U/+bEmjRutsDCD0/fAlbr6Bn3y5dc2r3NcbIzGjBimS2ZM07BBA+32bX1uF/3oXLvPZ49Eo2ZMPUs/vXC609e0NbPZrH++/Loqq6r1uxuvc1nIa+u2Yj30t2f0wJ1z1C8t1fK4N3/vvvw9W78OM6efq29WrdGzLy9SWfk+TTlton5347VuP3+p+b1Y+sVyffDJMpXu3iOTySRjfLwmjcvR1T+dqV49baer8Ob5tj7n775fpxffeEfbS0oVGRGpiWNz9KurfqrUlGTLOb35/oda8vEXqqisUlxsjM7LPd3pd48vn/miHaWa/8+F+tMdc5RoTHD6Oj3x7EJJ0i2zZ1mez8q16y3Lf3Tlryy3Z0w9S7fMnmWz/c6ycr3w2ltanbdRtXX1iouN0ficEbrmikvUN9W+0Jz1c9p/sFJP/vtlrd2Yr6TuRj3y+98pvc+Jz+D7H3+uf778uv5w642aMHqk0+cAAACAzo1gFEDQVVRW6YH/e0qV1TX62UUX6K6bZysiPFyNJpPWbtisZ19epA8+Xabbf3OtXRgZKI2NJv3rlde1at0G/fJnl2ho9gCFGQzasWu33l7ysYp2lGrcqOGW9Y8ePabnXn1DX3yzUr+84ie646ZfKSI8XHsPVOjN95bqt3f/SQ/Ou8VloNNafNeuGj18qDZuKdSMqVPsClS1BIbpfdIUFxurodkDnK67IX+rBmVlKqGb4yH5jY2NWrjov/p29Vpde+Wl+v3cX6vJbNa6jfl6+sXXVFy6SzdcfYVdePPVyu/113/8WyOGDNKvfv5TZfRJkyRtLSrW0wv/Y7Ndep80LfzbIzI3mfXsy6+rb2qKfnT2mZZ9dY1rHuJfW1evvzz1L1VWVevmX12tjD5pajKbtXXbdi35ZJnG54xw+DqaTCZ9s3KNcoYNVu/knpKkqKhInTJ2lF59+z0dOFhpF1i1drC6Wn9/7mV1jYvVzb+6Wr2SeqjJbFZ+4TYtXPRffb1yjR66+1b17NHd4fbr8wu04J8v6twzT9Nf77tTMV26qP7IES37ZqUe+fuzOm/K6Q5fx7YUl+7SfY/9TQnx3XTVJT/WoAH9FWYwqP7IEX27ep3+9PiTmnzKWM2++nKHAZ/ZbNZ7H32md5d+rqsu+bHm3TxbYQaD5X3aWlSsu+fcoLjYmDbPxWAwaMKYkXrsqX9rd/lem8Cz9TGXfbtSwwdnKy2ll+XxYP69m81mLV76ib5ZuVb3/+5mdTcm6GBVtcLD3B9As3FLoR5a8LSyMtJ107VXWT7zew9U6MPPlqts7z6bz5mvz7fRZNKzL72m/Qcrdfec2Uro1k3Vhw7p5Tff09w//Fl/vvtWGeO76b6//l0pPXvqsXvvsKzz4uuLddefH3f5mfX1M++uLl2idNec2TI1mpS3eYuWfLJMv/vNteoSFSVJijr+r9T8o9TipZ/opdcX66cXTtd1V/1UMV266FBtrd5b+rl+e9efNO/m6zVxbI7DYxVu36G/P/eSrrzkQs377fU6XFtn+X4BAAAArBGMAgiq6ppD+sMj8zUgs58e+f3tdqHOeVNO12kTxuqhBc/o7/9+WfNuut5pz0V/KtpRqm9WrdUfb79J2f0zLI8nGhOUM2yIrGv5mM1mvfn+h1q3aYv+8eh9NgFCojFBd908W8+89Jqee/VNu16pbckZPkTLv1utg1XVdqHeyjXrNXzwQEuY4mzd2ro65Rdu0/SzznDau++9jz5XclIP/f3hP9q8B+eccar69UnV7x9+QqdNGKPRw4fabNfU1KQH592i4YMHymA40Vtx4tgcpaX00l0PPW7ZLiIi3DLPZ5eoKMVERzvsbbZ242aV7dmrP999q5KTelgeP3X8GE0aN1rO6ijtLt+rNRs266Zrr7J5nsMHD9TRo8e0ZsNmmyC2tbr6ev3jhVd1wblTdOr40TbP5/RTxmn08KF6aMEzWvCvl/T7ub+2ex+LSnZq1boNeujuW5VyPJiVpERJP7t4hsaMHKY/PrpAfVNTdOG0c5yeR2s7d+/RPQ8/oRlTp+jSGdNtQtVESZdccJ4mTxijPzy6QK+89Z6u/dklNucuSd+tyVN0ly56/P55NuHbxLE5yuibpjv+9Ji+Wvm9pk053a1zyu6fqd7JPfV93ianwei+Awe1cu0G/fa6E+9HsP/ei3aUSpL+dOccSwjsqsdjaz8Ul+iRvz+rX111maacdorN65xoTNDgAf1t1vfH8/1s+bcaPWKo7r75Bst73/K98tQLr+iNd/8nSTrrtIm66EdTLb2GE40JuvOmX+n+x5/Up8u/1RUXXWD3fHz9zHvCYDBY5j/uGhenqMhIGePjHe5z+YrVWvTOB3rsvjs1MDPd8niiMUE3/vJKpfZO1r//85YGZKQrqYdtb9i6+nq9879PdMdvr7ds6+g9njH1LM2YepbXzwcAAACdA8EogKD632dfSpKu/dmlToeydo2L1c3X/Vx3/flxrd242WkvIX8q2LZdqSnJDodrGgwGWedO20t26sPPluvuuTc47FUVERGuS2dM111/flxbthXZhYuutAz9LNlVZhd2biks0sUXTLWEGc7WLd93QJVV1RpgFTC0dqDioG674ZcO34Os9L4aM2Kovl65xu7cz5w0wek+U1OSNXzQQG0q+MGj55y3aYsGD8xy+Fq2fu2tbSr4QVFRkXbhVErPnhqaPUAr16zXOaef6jRo27ilUD+7eIZdQNSia1ysrv3ZJU7fx8+/+k6P/P52m1DU2uAB/XX5zPP1v0+/1JmnTnCrGJTJZNKid/+nwQP76yfnn+e0p2lKck/dMnuWHpr/jKacdopdj9ptxSV6/L55DnskpiT31ORTxmrlmvU6e/JEu97GjsTFxujsMybps+Xf6bwppzvsabpmwyYlJsQru3+m5bFg/72vXLteD8yb61bP2NZq6+r1zMLX9KOzz7QLRZ3xx/OtravXzOnn2L33ERHhmnrmZN1+/6PK7p+hqddNtptKITq6i3JPnaAPP1+uH593ll3hNV8/84FwoKJSr779nn5zzZU2oWgLg8Gg83JP1zcr12pV3ga7Hzu2/FCkWZddrAEe9M4HfOFLAZtgbetLQSFfiv20B3+/Lu3xOrdHYSQKLQGAcxRfAhA0tXV1Wrl2vS6YOkUJ8d1crturZ5Jyhg/RyrXrZXbWZdCP+qamqKx8n818mM58+/06ZWX004AM58FjUnejsvuna1PBDx6dR3djggb2z9B336+zed7l+w6ovqHBpjdry7p5m7bY7GNbcYlSU3rZDGdubfzokXY9r1qEh4crOytTZeX71NBwxO1zDw8PV1Zmug5UVLq9jST1S0vVzrI9qquvd3ub2rp6fbb8O+UMH2o3n2JUVKROHT9a6/MLLNMPONIj0aipuae5DLz6pvbWkIFZDt/HCaNHashA+/ldrY3LGa76hiPaU76/jWfU7MDBSm0qaJ4eoa2ek/379VXftN5av7nAbtnEMaOU0TfN6bYjhw5Sya4y1Xrwmo8cOkh79x9Q4fZiu2Ut78fZZ0yyhJAd4e89K6OfMvv18Wrbwu3Fqqyu0TlnuP6MtPDX8x0+eKDTYewpyUlK6pGoUyeMUbeucQ7X6ZeWqoaGIzp69JjdMl8/84GwufAHhRkMyhk+2Ok6cbExyhkxRBs2F8hkMtksi42O0YTRI916jwAAAACCUQBBs7/ioCqra2zCPWcMBoMGD+iv4tJdHgVm3ho0oL/S+6bpb8+9rAMHnQd7DUeOqOCH7Ro+JNtlcBUeHq601BTt21/hUdATGRmpiWNHqWDbdh2qrbU8vn5zgXr3SlZ3qyGiLevmF25TbV2dpOYeh+s25mvooAEuh8EOGpDpdJk7GhtN2rN3v75dvU4LX/+v7nn4CV1xwy169qXXPN7XqeNHq76+Qf98+Q3V1Te4tc2usnIV7SjVxLGjHE4XMGzwQHWJitKqdRuc7iOtdy/1SDS6PE5UVKTSevdy+D4O6J/eZnhpTIhXXFyMqg8dcrlei9179kqS0+Hq1qKjuyizXx8VFhXbhUVZmekuiySFh4fL1GSSucn9z2bv5J4aNXyIVq3dYPdabNtRosrqGo0deWIe3o7w9943rbdioqPbXtGB1es2Krt/upK6u/6MtPDX823rvZPkMvSOiopUZKTjAUK+fuYDYUP+VmVnZSqhm+swuV9abx2sqtbRY7aBb/dEo9MfeQAAAIDWGEoPIGhMpibFdOnitKdTa90TjaqsrtHRo8cU6DoacbExx+fwe1VX/uZ2nTdlsi778Y+U1rtVr0tz8zybTy/8j55e+J8293vKmFE6cuSoR3P1DchMV3XNYe0u26v47K46duyYNm4p1MSxo+yGPQ/ITFdlVbXK9x1QVkY/VR86rKKSnZp+jvO5NSUpNsbzocVSczD8xrsf6r8ffKywsDBl9uujQQMyNTX3NGX2u0xfrfhe+w4c9GifPXt01wPz5uovTz2ny66fo5nTz9XFPzrX5VyQq/I2KL5bV5th29Z6J/fU6OM98hwNKZakmOhohYe1XRQpqXuiikt32b2PcW68hlERzfMqlpXva3NdSTI1NSkxIV7RXaLaXtnq3I4da7QJ0zwpLuSu8PBwnXPGJP39uVc0c/q56tWzeT5Ys9msFd/n6ZQxI5WcdKKnY0f4e3fVa7ottXX16p5obDOkbOGv5xuI966Fr5/5QGhsNOmDT5fpg0+Xtblu37Teamg4YhN29+rZQ9FRgT1HAAAAdB4EowCCKjw8XBERHfOrqGtcrO648Tr97OIZevP9D/XLW+7WGRPHafbVl9sN1/7NNVfq7MkT29xneES4urgZcrVISU5SclJ3bfmhSEOys7T3QIXKyvdqSLb9sO2U5CQlGhO0rbhEWRn9LEPH+6b29uiY7qitq9dDC55RdJcuevavD1iCMWve9s5LTuqhv/zhDhVuL9Yrb72ny2+4VT85f6quuuRCxcbY7rOqpkZfr/heu/aU64obbnG538jISG3bUapRQ50P021LbX29kronevw+SpKpyaT6hgalpiS7vU1UZKTCAhiO+SK7f4biu8WpYFuR5f3fd+Cg1m7YrFtv+KXdcOaO/PfuDk8KNUkn//Nt4ctn3hsXTjtbV186s831wsLC1O14QScAAADAGyf//1sHcNIKDw/T4bo6VVZVtzmcU5IOVlYpMSHeoyrVTU3mNod/mpqanC4zGAzqm5qiW2dfo6svnamnF76mu/78uB66+1abef/CDAaPQxN3xcXGamj2AG3c0jzXZNGOUnVPNCq5h30Q2bLuuo35OueMU7Uhf6uy0vsqoZv/w4Mvv1ulurp6zfvt9U57xbmahqAtYWHNw4sfnDdXO8vK9dhT/9Kf5z+tu+fcYFM8p7h0l8r27tOD8+a6nOOzorJK9z32d634Pk8jhwyyC+1MJpPMauOzYjJpd1m5uica7bd38Tlqcbi2TpXVNYqJcS8wDg8L094DFaqrb3ArZD5wsFIJ3bo6HTrtb3GxsTplzCh9/tUKTRo7WlFRkVqzYZNSknvazeXpj793X/+efVW6q0xms9mt+Svb4/vNV7585puazGpy8V6YzWY1NTV5Feo3NZkD9n2Kk0+wisa4e1xfihH5sp4v5+Lv83NXRy8Y5cvr7IuOVLzKXRRzAtCZdMwuKABCQvdEo2JjolW4fUeb65rNZhVs267Mfn3cHvZtCDOovuGIy3DOZDKpqLjErf0ldU/U3Ot/oa6xsfpqxfeSXM/r6E+njB2l7aU7tb+iUqvWbdTIoYOcDmkdP3qEikp2au+BChX8sF2jRwx1e/ivJ7ZuK1a/PqlOQ9GGhiMqLt3ll2P1TU3R3XNu0M7de7R564kiMCaTSZ8u/07Z/TM1atgQJRoTnP6XldFPp08cpxVr8lRZXWN3jN3le9sstlV96LAKt5c47K1bVFzS5megZFeZZDYrpafjyvWtJffsIVOjSaW7y9pct+X1zs7KDMj77cxpE8ZoZ1m5dpbtUW1dvT7/eoXOOfNUu4DP1793f/89e2podpa27SixmevXlUB/v/mDt59569DXmbr6epfFzpwZmp2lkl27LfMkAwAAAIFEMAogaOK7dtUZE8drycdfqLrGdTGaXWXlWrths3JPPcXtasNxMTFK75OqDflbna5TVr5PeQ6qeDvTrWuc+vVJbQ64jhs/eoTWbszXjp273d6Pp/qm9lZ4WLg2FRRqe0mpcoYNcbpuep/mQiwb8req5tAhDRs8MGDn5crWomLlF25zutzT3qTG+Hil9e6lXWXlVvuo0sb8rTptwhibXqSOGAwG5Z56iiqramzC1RZ79u7X1yvXuOyRuOyblYqMCNeIIdl2y1asXa+ikp1Ot21oOKJ3/veJTh0/xmbuTVdaChy9//EXDquKW9taVKyy8r0anzPCrX37S1pKLw3JztKqdRtUuL1Y9Q0NDl8fX//eA/H37Imh2QNUXXNYazfku7V+oL/f/MHbz3xL6Fu0o9TpdtuKS7V1W7HT5VU1NTraaP+ZHpKdpX0HDmrjlkI3nwUAAADgPYJRAEE1NXeyTCaT/v2fN9Vw5IjDdSqra/Tk869o/OiRGjbI/ZAvMjJSZ50+UV+vXKPyffvtltfW1ev5195Wn9QUu2WHDteqyUGF7qqaGhX8UKShVr2nRgwepLGjhuufL7/usCeiJB09ekxffrdKhw6719ustYRuXZXdP11vL/lIcbGx6tfH+ZyhCd26Kiu9rz787Et1jYtTUmJgKjQPGpCpjVsKte9Ahd2y8n379cZ7H+osJ/OuxsXG6GBllcMeljWHDzsMavZVVKhkV5myMvtZHsvblK/6hgaNyxlut74jfVJTlJXRT9+sXGN37NReyfrsq++0YYvj4K1g23a9teQjXf3Ti2SMj7dbnpbSSy+9sdjhZ6CpyawPPl2mAxUHddGPznU7/AoPD9dPzp+qTVsK9fYHH6mx0XGP1F17yvW3517ShdPPcfh5DqTw8HBNHDtKy1es1uL/farJE8Y6fH0k3/7effl79oc+qSm6ZMZ5+scLr6pg23aH6zQ1mW3eo0B+v/mDt5/5ltB36edfOfxO219xUK+9s0T90hx/T0VFRaquvkH19Q12y/qm9tb555ypf778hnbtKXewdfPrvDpvo9tFzAAAAABnCEYBBFWPRKPuv+NmbSsu1ezf/VEfffGV9lccVGVVtcr27tNbSz7Sdbfeo0Rjgq65/CeKiPBsiPCYEcOUmd5Ht933iD7/eoUqKqtUWVWtVes26I4//UUjhmZr0tgcu+0++fIb3XTX/fp0+beW81m3KV/3P/akknp01+RTxlnWjYgI1/U/v0ySdN2t9+jDz760ew6/uPkOLf38K6+L6ISHh2v0iKH6obhE2f0zHFZVb73uxi2FGjpoQMCqSJ85aYJ69+qpB5/4h9ZtyldlVbX2VxzUf//3sf7wyHz99MLpTos+nTJmlFasXa9Pl3+ryqpq5Rdus4QgL7z2tu5+6P/07eq1qqisUkVllb5a+b3u/+uTOnX8aA3Lbg6Pjh49pm9Xr9OEMaPcrjYeFxujs8+YpHWbtmhPq3Ctb1pv3fCLK/Twgmf15L9fUenuMst7+O//vKV5D/xVl8w4T5PGjXa477MmT9SYkUN1/W2/t/kM5Bdu0x//skBvLVmq239znZKT7OeGdaV/el89cOdcvbv0M91670OW16Wyqlqlu8v0z5df143z7tfkCWP146lnt2uPwxYjhmSrydSk/MJtOm2C83nRfP179/bv2R8MBoN+PPVsTT/rDN1678N66oVXLZ+Risoqfbt6reb+4UGt23SiR2mgv9985ctn/pwzTtWRo0d15wOPadW6DZbX4fOvV+jOBx7ThdPO1mAnc/5m9ElTXEyMXnnrPe2vOKiyvfu0dsNmSc2v808uOE/DBw/Qr++4V//57/sq27vP8v3y0Rdf6Ve33aN/v/qmwsK8/6y///HnmvHz2Vq1boPX+wAAAMDJj+JLAIIuJbmn5j9wj75ZvUZvvrdUf336eZlMJsXFxmjIwCzddfNsjRkxzKtGcFxsjO6Z82t9svwbPf/aWyor36fw8HCNHDpIv7nmSg3NztI7//vEbrtpZ52hQ7W1ev61t1W+b7/Cwgzqm9pbl8yYpnPPOM1u/sTEhHg9cOdcy3P4v2cXymQyyRgfr0njcnTv7b9Vdv9MnxrywwYPVGqvZI0f3fZQ6QGZ6UrqnqiRQwd5fby2xMXG6J65v9ab73+oh+Y/o4rKKsXFxui83NP18O9vV1L3RBUVOx5qO3LoIM2++nI99+qbevTJfyk1JVl/vO0mSdKVP/mxFr3zgf76j+dVVVOj8PBwDcxM1y+vuESTxo22vIY7y/Zoyw9FumvObI/m1Bw7crgWvfOBNuRvVZ/etr0Ls/tn6MmH/6hF73ygG+fdr9q6esXFxmh8zgj95d47NDAz3WnwaDAYdNH0czUoq7+ef+0ty2cgJbmnzjljkm674RqvC8oMGpCp5+c/rKVfLNe/XnlDO8v2qKnJLGN8vHKGD9Zj997p8twCzRgfr9EjhupQbV2bIbUvf+/e/j37S0REuGZdfrFOO2WsFr2zxPIZafmMXvrjaRo1dLDfnm978PYz37NHd/31vnl68/0P9dhTz6miskpdoqI0cWyO7r9jjvqmpmjFmvUOj5kQ302/u/E6PfbUc7rihlsUEx2tWZddrDEjh0mSort00dzrr9EZkybo9cUf6OU339WRo0cVFxujMSOG6YZfXKHRw4e2e5CMwOtIBWd8KYLUHtqjmFN78Pf5BasYVrCKV7m7P38X9QKAzsSgRQ+6LkcKdATO5j9rozqxzXKbVc22j9nsx3DivlmS4fjtJnPz4y3LmpqO3z++rGV5k7l5men4fVOTzHcsaOsZAgii/37wsVbnbdS9t93kcQ/bhoYjuv/xJzU+Z4QuPn9qgM6wY6uqqdE9Dz+h6668VKOHDw326cANvnzmAX/pKIFLRw/OWI/1grlesHSkAL89GP4yRwoPkwwGKdwghYVJYYbm+2HH/zPo+P3jI9AMVsslyXx8nZZl1g3glh85Lb91Wv3oaf37Z1s/sjtbHqQf5wFPfJY0zuHjDKUHAAA+WbFmvWKio5XdPzPYpwIAAAAAbiMYBQAAXqutq9cny77RWZMnKi42JtinAwAAAABuIxgFAABeW523UTWHD2tCzshgnwoAAAAAeITiSwAAwCPFpbsUHh6mr1eu0dsffKzbf/1LJfVIDPZpATjJdOQ5BIM1/2J7FNjx9/Pwd0EhX3T0AlTuHtff67mrI/9NAkCgEIwCAACPfPjZl3pryUdKTUnWrbOv0cSxOcE+JQAAAADwGMEoACDkXXz+VK8rykdHd9HD99zm5zPq2H5zzZX6zTVXBvs04ANfPvMAAABAZ8EcowAAAAAAAABCDsEoAAAAAAAAgJDDUHoAAAAA7c6fRYDcLRrjS4Eid9fzpdiPv8/PXb4UafLldfGFL+fn7v58KYLUHsW6HHF0Lv7+DPm74FZHKpAFIPTQYxQAAAAAAABAyCEYBQAAAAAAABByCEYBAAAAAAAAhByCUQAAAAAAAAAhh+JLAAAAANpd6+Iq7VG0yJeCLv4u9uPvbYNVkClYhXPcfT/8/dloj6JPvuhIhYw6UlEqAHCGHqMAAAAAAAAAQg7BKAAAAAAAAICQQzAKAAAAAAAAIOQQjAIAAAAAAAAIORRfAgAAADrkHrIAACAASURBVNDuWhdh8XexGl+K5LRH4ZxgFclxtyBOexSqcpe771F7fDbc5ctrGqzXPliFkYJVHAoAJHqMAgAAAAAAAAhBBKMAAAAAAAAAQg7BKAAAAAAAAICQQzAKAAAAAAAAIORQfAkAAABAhxSsAkW+FOdpj+I3HakwkiPtcX7t8R65+/kL1nru6ujnBwDBRI9RAAAAAAAAACGHYBQAAAAAAABAyCEYBQAAAAAAABByCEYBAAAAAAAAhByKLwEAAAAIOl8KvzgSrKI27p6LL8fw92vl7nHdfR6+bOvLeu3x2fDlNfX3a+Dutu1RECxYnxcA8BU9RgEAAAAAAACEHIJRAAAAAAAAACGHYBQAAAAAAABAyCEYBQAAAAAAABByIqp+dEuwzwFok9lsdutxV/cd3Xb8r8HmvllWt1v+a2pSk7lJJpNJZrNZJlPz7aYms5pMJjWaGtXYaFKTuUmNxxp9eOYAAAChwd/FVnwpptMeRWPao0CRu9v6UmDHl2P4+/3wd+Ehd4/hSHsU5vLluMH6+4BjyydfqYjICIUZwhQREa6I8AiFhYcrLMyg8PBwhYeHyWBovh1mCJMhrPl+y3+SZJDVbYNBkrnVfft/Xd12535bjwMdyZpVXzl8nB6jAAAAAAAAAEIOwSgAAAAAAACAkEMwCgAAAAAAACDkEIwCAAAAAAAACDkRwT4BAAAAAKHHn0Vn3C0a0x7FYHwpVuOILwWF2qOYkyO+FPZxd3+OODqGvwsKuauzFCjqLM8DAJyhxygAAAAAAACAkEMwCgAAAAAAACDkEIwCAAAAAAAACDkEowAAAAAAAABCDsWXAAAAALS71sVafCmS4+9iRI74ci7+Lkzj70JBjvi7QJEvr58vr7MvBZnc5e8CT/4ueNQe75svx6VwE4BgoscoAAAAAAAAgJBDMAoAAAAAAAAg5BCMAgAAAAAAAAg5BKMAAAAAAAAAQg7FlwAAAAB0SP4uauPvAju+6OhFpHzh72JJ7fGet8dr4Atfnkd7FDdqj4JgABAI9BgFAAAAAAAAEHIIRgEAAAAAAACEHIJRAAAAAAAAACGHYBQAAAAAAABAyKH4EgAAAICThi/FeTp6YRpfCgr5+xju8ndRIHf35+/XoCMV5vJ3waj2KPQVrCJXAOAreowCAAAAAAAACDkEowAAAAAAAABCDsEoAAAAAAAAgJBDMAoAAP6fvbuPq/nu/wD+6v5Gpzs31ZGkRSZRitxebjZMaHZtdo3dsd8mNtM1shkT2hgTxjDMxmWmGdssZJi5DaUjFFYqCclN99SJ6vz+yPmuc1OdOqdzsl7Px8ND53s+3+/n8705x/bu83m/iYiIiIiImh0WXyIiIiIiIr1TLsKij+Itui60pE2hIHUMVUBJU/q4R7q+v/ootKSPwk36eNa0KYaljwJPRESNgTNGiYiIiIiIiIiIqNlhYJSIiIiIiIiIiIiaHQZGiYiIiIiIiIiIqNlhYJSIiIiIiIiIiIiaHRZfIiIiIiIig9NH8RZN+2jqRZDU0eY8tNlXU7oufKWOoYo+aXOdm/p903WRJn2MmYioPjhjlIiIiIiIiIiIiJodBkaJiJ5QaRmZGD8pFGkZmYYeCv0DRK7egMjVGww9DCIiIiIiIr1hYJSIDCZOck7rQExefgHGh4Si/8ixwp+R495q0sHCOMk59B85FnGScyrvyc8nbN4ilEqlCu+VSqUIm7dI7XtNgXx8Tf36ExEREREREQEMjBKRgUSu3oAZ4Qu1OsaO6BgEv/YOXhg5HCf27hD+hIdNw4T3ZzbZ2W8dPdzh5irG8VPxKu/l5RegsKgY2Tm3UVqqFBgtlSI75zYC/X1hZWmp83HtiI7RKuh6MzsH2bduw04kQmLyJR2PjoiIiIiIiEi3WHyJiPRqR3QMVq7fpPVx4iTnsHL9JiyLmINAf1+F9wL9fbH5q6UInROB9m6uGBscpHV/uuToYI8ePt7IuXsPpVKpQpAzMfkSCouKUVhUjCsZmQrndiUjE1k3suHWVmyIYdcpMfkSenTzRns3V8RJzmHUsCGNEsAlIqLmQ9fFkjTdV9eFgppScRlDFfsxVDEndf1q81zp4xnSpg9dXxdN99WmXxZkIiJD4oxRItKra1k3MGbEUJzYuwNjRgxt0DFKpVLsiI7BmBFDVYKicp4e7pgw7iX8unc/8vILtBlyo2jv5orLqWm4mZ0jbCuVShEnOYfeAX5wcxUj62a2wj5ZN7Ph5ipGRw93fQ+3Tnn5Bfh1734M6NMLfl27IPvWbYVzIyIiIiIiImpqGBglIr0KmzoJYVMnaXWMm9k5uJyahgF9etXazq9rF2HmJaBYrChy9QaFvKTq8n2mZWRi5Li3hDbKy8xrOt74kNA6g7F+XbsAgMKSc/lS+bHBQejh4404yTmhP3nQtIePNxwd7FWOV1f/O6JjaszDKj/Ples34XRCIoa++LrC+/KcqLUdX36NO3q4o63YGWIXJ+yKOaB2nJGrN9R5beW5VuMk51TGviM6ptZrK1zPxzlPq++rnF6hpn7qypMqH7+652ZHdIzKNVI+B+X35WNVl/4hcvUGhesjT3mQdDkFI8e9VetY6/vMVz+32q53Y1zbup4JIiIiIiIiXWNglIieOLmPA0ot1QQIq3N0sIedrUhl5mX44hUY0KeXkJM0NGQiZoQvVAgUxUnOYcL7MxEeNg0n9u7AwZ+/BwDM/Xy5QrCmsLgYE96fKRzv4M/fQ+zshEVfrq01qNNW7IynO3niWtYNYVv14OKAPr0UZpTKg6bt3VwVjqNJ/3n5BbiWdQMHf/5eOOfB/XojfMkK5OUXwNPDHXujvkNoyET0DvDDwZ+/x96o7+Dp4Y44yTlERK7C5q+WCvs+N2SgyvkcPxUvBG2tLC0R6O+Ls0kX1QaIz164iK07d2HnprU4sXcHord+g+yc2yrXFgC+++EnABD6XhYxByvXb6ozOJqWkYmXJr4L59athH2jt36Ds0kX1Qbc5Plu1V0fdeT3TzlPrHzm7Asjh8PRwV4IIP66dz+it34jHL+Hjzdef3d6g4tUZd+6jZ9378POTWuFe1UbTZ55ANi17yDW/W+bcG/k17t6u8a4tpp+3oiIiIiIiHSJgVEialYKi4vxwqjhCkvwxwYHYcyIodgRHYNSqVTtUn0rS0tMfnM8Lqem4cLFvxSOGRoyUaHd2OAglWXyytQFD4+fiofY2QlWVpZC0FceBL6SkYnComJhpml9+nd0sEfY1EkK+T7HBA0DZKhzZmvWzWw83ckTbcXOwrY3/vNvhVmrefkFOJt0UWEGr/JsXQVGwLR3JgjjcXSwR8RHH6i9th093BVyxAb6+yI0ZGKdKRJ2xRzA4H69FWYn19bPmBFDFfoZEzSs5vHj7+t8OPa0QnBT+T5duPgXsnNuY/XiBQrX7L2338DTnTzVzqrVRGFxMV57aYxGOVw1eebl3FzFmP3fd4XjdvPujN4BfgoBYF1f2/p+3oiIiABg0vhxsLAwN/QwiIjoCcfiS0T0j1e9WJGdSKQ2uNjezRVnky6itFSKvPwCZN+6jclvjldoU30GqjyAo+541YOannWMq7CoGHn5BbCyskTO3XtCxfnqMxID/X3VBijr23+c5Jwwe09OkzGuXL8JazZuqTEFwqHjJwFAIfep8virU5cOQN21BaA2XUL166YurYA8UBs6aaLKezWNS7mfmsZTXUcPd9jZipCYfEmYsXn8VDwG9+ut8Frd+coD4/IAr5VV/YpU2dmK1J672rYaPPPyQKjyWK0sLeHcupVQKKy0VKrza3szO0fjzxsR/bPossCRrgu/aLpvU2Ko8SlfPwc7O6QdO9zo/X7+0Ux8/tHMWsdSH9pcP308Q7o+N10X4dJHv0REjYGBUSJ64mgaeMzLLwBkdS+5V5abX4Csm9mY8P7MuhtroXpgDahaHi0PYMkDZ3GSc8jLL0Cc5BycW7dqUJX3tIxMhM6JgJ2tCNFbv4Gjg72wrS6B/r7Y/NVShM6JwK59B+HmKlaY/SjPfZp1IxvBr72jsr+drQhjgobVudRbl/LyC1BYVNzo/Tg62Au5YEcNG6ISNCyVSpFz9x6cW7fSed/ymcX61hjXVl+fNyIianzjng/Ggun/rfd+sRKJwut+/v66GhIREVGtGBgloidObbMRq0tMvgSxi5PKLMuaVF/G7tZWjIhZHzRqQK96YK2kpBQwgsJsPbe2YmyO2onTkkRcTk1TWI6sqVKpFOv+t01l6XN9yHOQlkqlmPv5crz+7nSsXBgOTw93oRDWsog5KvdCHnytPqOyLtVn99amthmT8pmG+jAmaBjCF6/AzewcIe2BfOasfLalJurTVpfqG2BtjGurr88bERE1nlYODtj4xWIM6NWz1naFxcWIlUgQmyBBUkoqYhMktbbvF+APN7EL+gUEoJ9/D7iJa//vhC0rlmHq3Hkoun+/3udARETNE3OMEtETR57fcde+g7VW1t4ctRNjg4MUZlkWFhcrVIIH/p71KJ+R6ehgDxhBpV1jaO/miuyc20i6nKKyjFk+o/TSX1dgZytSWKqurcTkS/We+WdlaYnZ/30XdrYiIQiYmHypxrF5erhjcL/eiJOcU8hjqa4okzw3p/LsXuXiRvJttQX0rKwsIXZ2UruvPJCrbol+Q7QVO0Ps4oTYeAl2RMcIRZfk5MvVlc9X/swp33P5knU5eVoAbWjyzGuqMa6tPj9vRESke718u+P4zp9qDYrGHDmC16eHweNfg/H6B2FY90NUnUFRAIhNkCAqeg+mhs+H38hgvD49DFG799TYfuSQwTi+8yd069y5QedCRETNDwOjRNSk5OUXYHxIKCJXb6i1nbwIz4zwhSoVyuUVrieMe0ntjNLNUTsVCuas2bgFl1PTqgoSoSpQ88LI4SrVuEulUvzvx591WiVbXqTodEKi2lyMPXy8sWvfwQYvnZbPRKwenJMHjZW5tRWrFI2K+eOw2uJCLR3shQrs6nJoyg3o00vlmFk3soVq8/LxRESuUsjNKacc/N4RHYNd+w6qBLyVz3nym+NxOPa0wnOUl1+A8CUrMLhfb53lrJSnPNj/5zGFVAhyo4YNgdjZCVNnzVMIjq7ZuAXZObfx1qsvC9sG9OmF0wmJ2HPgT2Hbdz/8hKwb2VqPs65nXlONcW31+XkjIiLden7YUOz73ya0adVS7ftRu/fAd+RovP5BGGIOH9G6v5jDRzA1fD58R47GF+s3oLBY9Ze8ri7OOLx9G0Y9M0Tr/oiI6J+PS+mJ6Ik1NjgIzwzoi6mz5mHl+k3CdjdXsZBLU5mdSITQkIkIX7JCCDi5uYrx/drlCu3HBgfBra1YpVjRsog5DcrzWRN5WoDLqWlqc6G2d3MFAKEoU0O89/YbmPv5ciEHaO8APywO/wizIpYotOvm3RlPd/LEhPdnws5WhJULw/GgpFQh96N8u6eHu5BbVF0hHjn5rNddMQeEpfxjRgxFezdX9B85VmgXGjJRbaqAz2bPwI7oGOE+2NmKsPmrpXUuufb0cMf3a5dj6qx5GvWjjWcG9MWve/dD7KyatsHK0hKRC2YjcvUGhRysvQP88O3KJQr3VB7sX7l+k/A8L4uYA6BqJmlDafrMa6oxrq2+Pm9E1LTpuvCLofbV5jx0XYRGlwWulL065nmsWjBP7XsnEhIwJ3I5klNSG6Xv69m3sGTdBmyL3o3VC+ahf0CASpv/LY/EBxGfqd1fH4WMNNWUihFpMxZdXxciIn0xKih6IDP0IIjqIpOpf0yVt9f2Wt3P6v82UngtQ7Wf5X8qK1Epq0RFRQVkMhkqKqp+rqyUobKiAuUV5Sgvr0ClrBLlj8oxoK9ulu2SdtIyMhG+eAVzGRqQfJZhXflO8/ILMHXWPIROmtjkK5I35bHymSeipkw5aKKPwKg+PImB0fqO+eVRI/H1wk/VtpkTuQzrfoiq9TjenTpi5OBB6OrlBTexC3y8vIT3klJShJmgsQkS7D18BBdTr9R6vHHBo7AwbAbsRJrlwTZUYFSbKu3/5DGzKj1w/GQ8TM1MYWxkDFNTE5iamMLYxATGxkYwMTGBiYkxjIyqfjY2MoaRcdVr+R8AMEK1n42MAMiUXqv+XdvPmryuaztRUyKJP652O2eMEhERaeHQ8ZMAoNMcsERERE3VC8OHqQ2KFhYXI/idkBpnibq6OGPyq+MxcvCgWosoVQ+S9g8IwEeTQ1BYXIy9h48gKno3TkpUg2hR0XuQlJKK1QvmKexPRERUF+YYJSIiaiB5nlXloktERET/RL18u2PjF4tVtielpNQYFHV1ccZXC+bhfMweTHl1fJ2V5dWxE4kwPng0dm/cgC3LI+Hq4qzSJjklFcHvhCApJaXexyciouaLgVEiIqJ6khcJC37tHbwwcrjO85YSERE1Rd8tXaKyLSs7u8ag6Ich7+DY9iiMDx6tszGMHDwI52P24LOw6SrvFRXfZ3CUiIjqhTlG6YnAHKNERERE/2y6zh3alPJ16iM/pCFym9a0fF5kY4OtKyLVFkXSpaSUFIx+OwTF9+8rbLcV2SD6m/U1Lqs31L3UtA9tNJVnoz6aUgEqQ2GOUaLGV1OOUc4YJSIiIiIionp7fXqYSlDUu1NH7N64vtGDokBVPtJj27fBu1NHhe1Fxfcxdd4CoYgTERFRTRgYJSIiIiIionpZsm49YhMkCtuqgqIb9FoAyU0sxu6NG1SCo8kpqZgTuUxv4yAioicTA6NERERERESksaSUFHyx/huFbSIbG6yJmA87kUjv47ETibB1xTKIbGwUtkdF78GJhASV9i8FjdDX0IiIqIljYJSIiIiIiIg0Nidyucq2NRHz9TpTVFnVzNH1Ktunzlugsu2jKSH6GBIRET0BTA09ACIiIiIiInW0KX6j6yI56jSlwjS6Pt+W3Xvg5VEj8fXCTxW2n0hIUFlCHzL+FYwcPKjGY32xfgNOPN4nZPy4Wttqw8fLC5+FTccn1QK317NvYVv0bowPHi1s83BzU7mGT+Lzoo9noykVDiMiagycMUpEREREREQqXhk9SmWbuiX0H02ueQbm1HnzsWTdBsQmSBCbIMEb08OQlZ2t87HKTXl1PFxdnBW2fbF+Q6P1R0RETzYGRomIiIiIiEiBc+vWGNg7UGFbUkqKymzRRTNn1JhX9ERCAqKi96hsj4rerbuBqqEcqL2efQt7Dx9p1D6JiOjJxMAoERERERERKQhSs9x93Q9RCq9FNja1LotXl98TANZti1K7XVfGB49WqVLf2MFYIiJ6MjEwSkRERERERAqUZ4sCQMwRxVmX44NH1ThbNCklBdezb6l9r6j4PrY1cqByXLWcogCw78hRFBYXN2qfRET05GHxJSIiIiIiapK0KS6jTUEXbQo8adqvPgpLadqHum1Zp04ovE5KSUFR8X2FbcrBx+rqCkKu3xalUBBJ10YOHqRQhAkATiRIFGa4pmVmIvD5fwNo+oW01LXTZsz6+HxoczwWZCIifeGMUSIiIiIiIhK4icVoYW2tsO2EUm5RkY0NfLy8ajxGVg2zReWSU1IbPkANuInFKsvpYxMSFF57urs36hiIiKjpY2CUiIiIiIiIBE+1b6+yTbnoUm25RQHATexS6/vKQcvG0D/AX+F1kppgbJeOno0+DiIiaroYGCUiIiIiIiLBU+5uKtuUl8bXFfisbTapyMYGayLmN2xw9dBOLFZ4ff2W6ixWDzfVcyUiouaDgVEiIiIiIiISiFrYqGw7KVHM+di1lsAnANiJRBgxaKDa99ZEzK81cKorPl6dFF6rKwbl3KZ1o4+DiIiaLhZfIiIiIiIivdOkgIuuC7AYqliSpvRREEdX19ROpBo8VTb51XHYd+Rog/bVlyWzPsKSWR9pVfBIm+dKm2dIH0XHdP0Z1MfniIioPjhjlIiIiIiIiHSuf0CA2lmjcyKX11m1XhfclJbSA0BWdnaj90tERE8OBkaJiIiIiIioUayJmA+RjeIM0eSUVMyJXGaQ8diJRAbpl4iImiYGRomIiIiIiKhe1FV4V8dOJMKimTNUtkdF78G26N26HpYCdbNDGRglIqLqGBglIiIiIiKiWinP+iyqx1L48cGjETL+FZXt789b0OjBUSIiotqw+BIRERERERmcrou86LoPXReI0XXBnsa+fj5enRQq059IkOCjeuy/aGYYsrJvqRRjen/eAlxMTcXCMNVZpQBQWFyM4HdCUFhcjI8mhyBo0ECNZ33GJkgUXnt36qjS5r258/Bj9G6trp8+7ps+ChTp4zNoiGeXiKg2nDFKREREREREtfLx6qT1MdZEzFcbnFz3QxQGvjIeSSkpCtvlQdHklFRcz76FqeHz4TtyNL5Yv0GjIkpZ2bcUXqsLqKZfu1bPsyAion8SBkaJiIiIiIioVl29vBReV589qik7kQi7N25QGxxNTknFoFdexdR584Wg55zIZUhWymVaVHwfS9ZtgN/IYEydN7/W/mIlijNG+wf4q7RJy2RglIioOeNSeiIiglQqxaNHj3R6TDMzM1haWur0mKQd3mciImoodTNGt0Xvxvjg0fU6jjw4+l74fJVl9UBVUaao6D2wFdmgqPh+rceKit6DkPHj4KMUtAWApJQUXFeaMRo0eJDC6+zbt5FfWFiv8RMR0T8LZ4wSETVzpaWlOg+WAcCjR48glUp1flxqGN5nIiLSho+Xl8pMz/Xbohp0LDuRCFtXLMOW5ZEqRZ3k6gqKVh+XOlFKRZ1ENjYqbQ8cP6FRH0RE9M/FGaNERM1ceXl5ox370aNHnE3YRPA+E1FTp2lxmaZerEabfnV9DTTtQ93xxL16I+3oYVhbWQnbxgWPxieRy4XXySmpOJGQgP4BAQ0ay8jBg+CzfRveC5/foKX56pbkA1W5SaN271HYNj54lEq7I6dO13p8fRRL0qaPplRMTB9jJiJqDJwxSkRERILo/X9AWlYGaVkZ9h8+bujhEBGRgZSVPVRZ6j5SaSk6AHyx/hut+nETi7F74wZ8FjYdri7O9dp30Uz1lezX/bBNZcbpOKUl/yWlpThwnP/OERE1dwyMEhERNXOnJYk4m3QRl1LTkJ6ZhZ27f8fO3b/jUuoVXEpNw/XsWzgtSTT0MImISM92HTio8NpNLMYroxVnXsYmSDSqEF+XKa+Ox/mYPdiyPBIjBg2sta2rizOO/PiD2pmqhcXFWKe0xL+vfw+VZfTRB/9AWdlDrcdNRERPNgZGiYhIYxdTqgJlVLOS0lKkpl9FZWWloYeiMam0DEdPxuHshWT0CfBDb39f9Pb3RZ8AP5y9kIydu/dBKi0z9DBrFCc5h5Hj3kJaRmaj9pOXX4DxIaHYER3TqP1oSyaTIfP6DeTlF9R731KpFGHzFjXq9ZRfx/EhoQ0ao77k5Rcg8/oNyGQyQw+FyGBi/jyMByUlCts+mjxJpd3spct01ufIwYOwdcUyZBw7jM/CpqOvfw+FP18tmIfzMXtqzC06dd4Cldmi6sa87bdonY2ZiIieXMwxSkR6lZaRidA5ESgsKgYAuLmKsXrxAjg62Gu0f6lUirmfL8fphJpnr/UO8MOnH0+HVSPmPIxcvQG79lXNonhh5HBMn/J/MDIyUml37fpNhM5egHt5+XoZV2O6mHIFB45ULTmTyWTw9lKf18vQHj58iP2Hj2PHbzG4duMmKioq0MLaGoP6BWLapAloYW3deH0/eoTPv/wah0+cwox338YLI4c3Wl+6sHXnLlhYWODuvVy0bumI3v5+8OzQXnjfs0N79Pb3w/XsW9i9/xDKHj5CUXExxgYHGXDUJP/+CQ2ZqPZenL94GdM/+Qxtxc746vP5sLezNcAotaf87wUAGBsbw8WpDfoF+mNM0DC0E7uo/e7VVlHxfXy4YDFS069i+aefIMDXR+d9ED0pfj96DC+OeE547SYWo69/jwblBK0PO5EIU14djymvjtd4n23RuxFz+IjCthGDBqrMLE24kITYBIlOxklERE82BkaJSG/SMjIRvngFVi4Mh6eHuxDknDprnsbBUStLS0QumK1wzNA5EQgPm4ZAf9/GHH6NEs5dwJ27uXBq00rlveOnz+BeXr4BRtU8PSgpwaIv1+JobBxMTEzg1LoVTE1MkJtfgKTLKSgre1ivwGjx/Qf4de9+nL94GXM+eE/hGT174SJ2/LYXgQF+GDNiKADAxNgYLk6tIbKxgdjZSefnp2uuLs64lJqGl0aPQNnDhzhw5Dhcxc6wtLBQaNdO7IKXRo/Azt370KWTp4FG+88m/36MmPUBPD3ctTqWnUgEB3s7tHdtCwsLcx2N0HCqf5ZlkOHOvVz8tGsvdkbvw0vBIzD5zfEwN9fteZqZmcK5TWvkFxSipYa/uKP606QIiz6KEWnarzZ9aFqkSdN2uh6fOrUdTzkoGqQm96i+JaWkYE6k4sxVkY2N2jykC1evUdlmqKJZui6CpOtnQ5vnVJt2RET6wsAoEemNtbUVIiNmCwEjK0tLTH5zPELnROBKRqbBApva6NC+Ha5eu45LqVdUAqMPSkoQf/Y8Wjk6oKS01EAj1J3qM0Sb6mzRhHNJOH7qDDq0b4cl4bMgdm4DoGoW6aHjp2BsXL8MMrfv3MX2XXtgZytSee/PY7E4fvoMenTvKmwzMTHBu2+9jnffel27E2lkhUXFKL7/AJeupKN3gB/atGoJAGjd0hHnki+ht7+fyj5tWrXEwL6BOC05B88O7mjV0kElgEpNQ4f27fDz5q8NPQydaevipPDLs/Lychw7dQbL1n6Dn3bthXOb1hgbHKTTmaNWlpb4bLb6oi5Ezd1epRmZANA/wN8AI/lbUkoKgt8JUVlCv2jmDLiJxSrtj8XF62toRETUxDHHKBHpjdjZSWUWnaODPexsRci6qX3SfkNwayuGTQtr/HE0Fg8fKibwT0nLQPLlFPj6dIGZmZmBRqhb3l4dm2xQFADukhNJ4AAAIABJREFU3MtFZWUlunbuBBen1sJ2c3NzjHhm4BO7pFjXyh4+RPT+P2BhboYePt7C9oF9AnEx5YrC0uXqqu69DNH7/1D5n08ifTE1NcWQAX0wK3QKzM3M8Ove/bhzN9fQwyJqNmITEhReu7o4qw0+6ktNQdFXRo/CeKVK9ERERMo4Y5SI/nHU5SFVzu9ZfdnqrpgDQr5QAFgWMUfj2atPP15WfC75ErJuZAtLYGUyGQ6fOA1bkQ36BQbgTOIFlX3Ly8vx+6Gj+H7HLty8lYMW1tYY3L833n7tP2jV0hHA37kEIxfMxr3cPGzcuh15BYXw8vTAx/+dAo/2bgCqis/MCF+ocp7y7WNGDEXYVNXCA/V1MeUKjIyMdLacOi+/AFNnzUPWjb8D48p5E+VtQidNxPFT8di172CN59OurQuMjY1x6sxZ/HUlXbg/6tR1/avnkS0sKkbwa+/AzlaEGVPexrKvNwrBw5XrN2Hl+k3CmOT7yZ8j+fN4OTUNS+fPRvzZc4j6ZTekZWXo1aM7Ppo2Ga0cHYRx3cvNw4YtP+LQ8ViUl1dgYN9ABD07CJ8u+wpPd/IU7u+93Dxs3bkL+/44igclJWhhbY3/e+1lvPz8yDqve5tWLfGUuxsslJYf29mK4OrijO+idsDCwgID+/RSCYQ/1d4NZQ8fCrNM66LuHivfv8jVG6q2Bw1TyCmpLoem8vHcXMV4bewYjcYi/zzIqctxXP2+A5p9H6gbk7r0IDuiY7By/SaF/pfO/xgr1n0nfF9NeH9mjeeuKXmKkerPS/XvgueDhuGLr9YjJS0DjvZ2eOeNcQh6dlCNMy4flJQgYukqnEpIxNjngzBlwqswNTXFpZQ0rP/fNpxLvgQA6NLJE1MmvgafLl7CsUpKS/H9T7/ilz37USqVwsvTA5PeeKVB56XMz8cbT3t54nzyZaRnXhNm7d+8lYN1m7fh5BkJHj0qh1tbMd55/RUM6NMT9x+UYPrcz5CRmYXln30C365dhOMdPnEKcz9fjlHDhmDq229g/hcrcTk1TUj/AgCVlZWIjZdgy/ZfkJp+FRUVFXBxaoP5H4bCu3OnOvs3NjYWjvHdDz8hPTMLANC1cyfMDXsfLk5tdHJtiBpTrNIy+pEGXEa/blsU5qgp/OTdqSPWRMw3wIiIiOhJw8AoERnUlYxMFBYVw6/a/5xq68LFvxDo7yvkIpUHLdZs3KISTAtfvAKhIROF7TuiYzAjfKHGwVELC3P0CfDD0ZNxVUuMH//P8527uUg4dwEBvt3Qrq3qLIry8nKs+fZ7/Lznd/h390Hfnj2Qm5+PfYeOIj0zC0sXfAx7279nN2756RcUFd1H/8AAnE26iMupafj8y69V2jUmXRdfkgdqqgeA5AGda1k3VO7Vdz/8hLdefbnWAG9376fxrz69cCT2NCaHfYJnBvTFW6++DFexs0I7Ta5/N++n8aCkFEdPxsHc3AyD+/eBna0ITk6tMHr4M4iNS8DVrBvo5t0ZXk951BqEBYBHjx5h2dpvYGxsjKED++HY6TM4deYsVm3YjE+mvwdzc3PcuZeLDxcsRlpGJpzatEIffz+kZ2Zh0ZdrUVoqFY5VUFSEjz9bipS0DPh394F7u7a4nn0LN7JvaXTtzyZdRPq16+jho/q5S8/MwqsvPg8A2Ll7n8oMnLt5+bibm4fEpEvwU7O/skPHTyJ00kTh8yS/x+3dXBUCf7v2HUTO3XvYuWmtQiDPra1YZd8J414S9pW3U5fuoLo4yTlERK7C5q+WCp/TLdt/Ed6XB7AB4ODP3yuMobbvA3Vjily9QSV3cuTqDTgce1qlf3neZF3mGK3NueTLkFxIRtfOnWDTogUk55Ow/OuNEDs7qb2f5eXl2Pj9dsTGSzA2+O+gaGy8BOGLl8OpdSuMGTEUFRUVOHb6DD6Y+ykiF8yBn08XlEqliIj8CidOn4GtyAbPDRmIvIICfLpsNR6UlMCptWpe5vpoYW0Ft7ZinE++jJs5twEAqelX8eH8z1Epk2HEkIEwMTHBmXMXMHfxcswKnYygZwdjUL/e+OtKOk6dOSsERisqKhAbJ4G5mRmGDR4AExMTtdfi680/YMdvMTAyMkJPv25o6+yES6lpKHn8+dSk/9//PIrFK9fB3s4WwcOfAVD1/frgQYlKn0RNTVZ2NpJTUhW29VMqbAQAhcXFiJVIkJySildGj9L5jNKs7GxMnbdAbQEl704dsXvjBp32R0RE/1wMjBKRwaRlZCIichUmjHtJp4GAQH9fhSCGo4M9Xhg5HHGScyiVSoXZlIXFxZgw7iWFtmODg3At6wZ2RMegm3dnjSrI9/TrjnZtXXAq4SzGBA2DTQtrnL2QjJu3bmPyhFdhqiavZfzZ8/ht30FMffsNITeeTCbD15u2YtvP0Ui8cBGD+/cR2ltZWmLp/I/RwtoaBYVFmD73M6RfvYbMrBsKM56eFKVSKXZEx6jMivP0cEd42DRERK7CmKBhCs9FRw/3OoPVVpaWCA97H75du+Cb73/EgSPHcej4SbzywihMHD9WyImpyfUfNngAPNq3Q3ziedjZivDO668IQS5vr064f/8BrmbdwOD+fTSa2VdSKkUXr44InTQBpqamGPv8SITOXoDkyym4fTcX7dq64MDh40jLyMRzQwbiw/cnwdzcHJWVldiy/Rds3LpdONa9e3nIzrkN/+4+WDgnDNZWlpDJZCi+/0DzmyCTadRMZRKhTAbIZJBBs/2Vr42nhzsG9+uNa1k3FLa7uYox+7/vCp+5bt6d0TvAD8dPxQv3fVfMAQzu11vhmIH+vggNmYjNUTtrHUfWzWw83ckTbasFyd/4z7+Fny9c/EuYHSgfQ6C/L8aMGCp8H6izK+YAnu7kiVHDhgjb3nr1ZZydNQ+Hjp/E2OAgxEnO4XDsaYWZh8r960t+YSGWf/oJvDw9FJ750wln1QZGd8UcxM97fke/Xv54+/X/wNTUFHdz8/DNlij4du2CiFkfCAXNhvyrL8LCF2HvgT/RrYsX4s+ex8l4Cbo+3QmfzQ5DK0cHyGQyHDsZjwVLV2p9LkZGRjCp9v1aKpViw5YoiEQ2iFwwWwi8Xrt+E6GzF2DvwcP4V59ABPj6wKaFNZL/SsX9ByWwaWGNu7l5uHDpMjzc3eDZQf2/R0mXU7Er5gCc27TGok9mwrNDe4X3Ne3/0l9XUFlZiVnTJqNvr6q8jGVlDzX+TJF6+ij8ousiOZr2q834dF3U5oSaQKQ8v2isRIKYw0dwIkGiEDxdsm4D+gX4Y/Kr4xA0SLvZpVnZ2Vi/LQrrfohS+748KGonqv2XZZrSR1Gvpo4FlIjon46BUSIyCPmS0jEjhjZ4uWhdlJfEurmKUVr6d2DUTiRSO1O1vZsrziZdVGhbmzatWyLAtxv2HvgTqekZ6Nq5E07EJcCzQ3t0934a93LzVPaJO3seDx89wqoNm7Fqw2aV95Ur2Y8aNkQIPtjZiuDl6YHU9KsoK3uosm9j0WXxpZvZOci+dVvt9e/o4Q47WxESky8pBJHau7lqdGxzc3O8FDwCQwb0QdQv0fhl7378sPM3ZGbdQPjMaWhhbV3v668L1laWeO6ZgTA1rfqnt3WrlujQ3g2p6RkoKyuDtKwMSZf+grmZGUYNHyJU2TY2Nka/wAD89Nte4VgiGxvYimxw9kIy1ny7Bf95YRTaiV1gK7LRaCw9fLxxI/sWpNIylfeecnfDDz//BgtzcwzsG6hyr6XSMtiKbBRyk9alpvQW1X9R0cPHW2HpuZWlJZxbt0LO3XsolUpRWirF2aSLCJ00UeX4bmpmZatrs3L9JrUzxwHg+Kl4DO7XW+WXNNW/D5Tl5RcIY6r+XWFlZQmxs5MQ/D1+Kl4lKGsofQJ6CAE9IyMj+Hbtgm0/R6udrXgiXoLvf/oFHu5umPHeO8J30LXrN5Fx7TrSrl7D8LFvquxXUFSEh48e4eyFi6isrMTzzw0V0kUYGRnBp4sXnKvlAG6oiooKSB9/B9pYWyPn9l2kpGUgv6AQL06YotLe2toKDx8+hEf7dvDv7oMziedx7cZNeHt1xOXUNGTn3EHwc0NhK7JBqVT1fp9OOIuysod44+UXVIKiADTu3/nxcvnV325BSakU/XsHsJAZPTGUZ2i2E7vg9elhamduKu8XmyBBO7ELJr86HuNGj6pX8DLmyBFERe9BjJrCT3KvjB7F5fNERFRvDIwSkd4p52DUtepB1xN7dwjbft27X+d9AVX/oz+4f2/sPfAnDp84DStLS0jOJ+H5EUNhb2erNjBaUV4OoGpmWaenOqi83961rcJraysrhf5M6lldXVd0VXgpN78AhcXqC/zURJPgV3WODvZ47//ewOjhz2LWp0twKiERCeeSMLBvYL2vvy6YmZnBoloRLiMjwMTk7/sok8lQUVkJKytL2DwOQAltAYX8j05tWmH2B+9hxdff4rd9B/HbvoPo9FQHfPzfd9FRg9nXd+7l4sat27Awz8egfr2F7YVFxUi/dh1vjRtb49L09GtZKHv4CHfu5WqUZ1T+eQ8NmSikt4hcvQE5d+/VuW91efkFNRaF0kSgvy82f7UUoXMisGvfQYU8oKVSKXLu3sPphESFX6bIubmqf/bkY6qet7S6MSOGCsd2bt1Ko1+0NDZLC3OFZeLqlowDgLSsDLtiDqCs7CGGDRqA1o/zHgNVAcnKykoE+vvihZHDVfa1sxXB3MxM+Jwp51rVlYKiYvx1JR3WVpZwa9dWGFdHD3e8/vK/YW6uWPTO0sICNi2sYW7+dwqUM4kX0NnTA7FxErRydMCA3j1r7E8ePG5dw3Ovaf8vBY/Ag5IS/PTbXsz/4ktYWJjj1ZfG4LWXnhd+IULUVMUcUQxMXs++hesapnGRt5+zdBnmLF2GdmIXuInF8PHqBDuRCF0f/w1UBVILi4uRlJJaZ9BVZGODRTNnsNASERE1CAOjRKQ31YvQVM+zp0tpGZnYHLVT66Cr2NkJVlaaBzG8PD3Q9WkvJF64iPLHwYDqS+Fr0qalI/oHqubm0pWS0lKdHk9XxZdaOtjrbJlbXdxcxejh442sG9m4c0+xcnVjX/+GePToEcoePVLYVvboER4pbfN52gvfrlyC7Jzb2L5rD3bFHMTC5auxdMFshSCWOhbm5hg9bAh27z+Es0kXhdmfR0/FoYdPlxqDohdTrqCs7CFGD39GpXCTOvIl5Lr4vDs62NeZR7Qunh7u2Bv1nfBd9Pq704Xl7c6Pc2XWlsM2L79A7ZjCw6bV+n3jrGUuTUOwtLBAyBvjsP5/2/DtD9vRvl1b9Hu87Lt6m15+3eoM5il/Dz189Ajl5eXC7OmGkMlkOHQsFpnXb6B3gB882rfDzewcAFW/ROjRzRv2djXnXw7w6waxcxucPZ+M/oEBuHDpMrw7d4KLBjNZlZ8DZZr0H/LmeLz5youIk5zD+s3b8N0PP0Fk06LRVlAQ6UJSSopK3mltyIOqdQU+a/PK6FFYNHOG3v6bgoiI/nkMM+WIiJql6jn8GrO4iLJSqRRxknMq2wuLi5H4uJqyctv6zu5qYW2NAX16IutmNvYdOoquT3uhfbuaZx3Kqxfv3PO7QrDu4cOHOH76DKRlqkuca+PoYA9bkQ2ybmSjoLAIQFUl6d8PHa3XcWojL760//AxXEy5otWxHB3sASOoXH9Au4Jch0+cQmLSJVRWVgrb7tzLRfLj8cpnYtb3+stkMlTWkJOzsqJS7fb6srSwgItTG5SUSvH7oaNCgL28vBy/HzoqFHcBqpb6F99/ACMjI7R1cUbIm+Ph5+ONu7l5KHx8/2tjZytCO7ELunTyxGnJOdy5l4vr2bdwNzevxpy1d+7l4uipeHTp5Il2YpcGBynly8/rS748/fipeJX31G2r9ViWlpj933dhZytC7uMgl3zJfF1BL03HVF1Djt0UdPRwx8z3QwAAS79aj9T0qwCqfnHUplVLnJYk4sy5JKG9TCbDhUt/4eatqgClPP3FngN/4kFJidDmxOkE5Nyp34zh6qRlZdj2czTWfPs9Wjk6YNIb42BlaYk2rVvBxakN0q5ewx9HYyGr9pm9kpGJtIxM4XXrlo7o0a0r0jOv4cDhY8i5cw/DBg+oNcjbs0d3GBsbY/tve3Hr9h2V9zXp/+GjR8jOuQOZTAZLCwsM7BuIKW+9BgAqeXeJmhp1+UWVubo4I2T8K9iyPBIZxw4jcW80Pgx5B64uuk0l8sroUUjcG401EfMZFCUiIq1wxigR6U1NOfyqk1eQ7+HjXevMrZrIZ3BVL9iy58CfOJ2QqHY57OaonfDr2kUY05qNW3A5NQ2T3xxf7757+XWHo70d7uXlY1DfwFoDq//qW1U5PTZegglTw9A/sCfMzUxxSpKIDm7tEODrU6++xc5t4NnBHWcvJGPqrHno5dcdlx8vMW2KHB3sETpporAEuXpVem0Kct3Ly8fcz5ejhbU1WjrYQwYZ7tzLRVnZQ3h7dUTPHt0BaH79HRzs4WBnh8zrN/Dxp1/As0N7vPz8SHRo304I+ny3bQdS0jLg7uaqVTEdIyMjjB7+DI6fiseve/fjfPJldOvihQuXUmBmZqpwL9OvXsOCpSvRP7AnWlhbIfP6TSQmXUS3Lp3h1Ebz2Yk3buXA1cUJO3fvg4WFBYYNGqA212Ha1Ws4cPQEWjs64MbjoJcmWj5eQl09X+x3P/yErBvZEDs7aXwcoCqYOTY4CDPCFypUtI+TnMOufQfrDNTG/HEYnTw6COOQB+DlY3xmQF/8unc/Fn25Fp9+PF34/Mp/qaJuRmhNYwKqKs6PGjYEjg72GDVsCOIk51Qq1VdvU/2XBZo++//78Wf8ukcxRciH00JUUjFoo2/PHpgy4TWs+mYzFn25Fl/MmwVXsTPGv/g8Vn2zGbM/W4qeft3QTuyCv66k48atHKz49BMAVbPm9/1xBHGSc3jjvRno4++H9MwslJaVQWTTQuMx3Lx1G5PDPoGpiQnKKypw++49VFRUwKl1K8ybGSqkw7AV2WDi+LEIX7wcq77ZjEPHYtG541O4nn0LZxIv4It5syCf625iYoI+PXsg5o8jiPnjiJATujYBvj4Y0KcnjsbG4bUpH8C/uw9c2rTGpdQ0THpjHHr6dauz/7ZiZ6xY9y3u33+Azh2fwqNHj3Ds9BkYGxujR/f6fe//E2lamEabwi/aFIjRtAiNOvoo3NTYxW/U5fd0dXFG/4AA9AvwR/8Af5Xq83YiET6aHIKPJodg7+EjiDl8BD/u3tOg/r07dcS44NEYOXhQrVXuj56Ow/99OAv5hYU1ttH1vdTmeE2pD23o43yJiBoDA6NEpFe79h2sMYff6sULtD6+o4M9Ij76QMgjCAChIRMRGjJRJceonUiE0JCJCF+yAlk3soVxfL92eYNy4rmKndE7wA9nLyQjwK9brW1bWFtj3oeh+P6nX7F7/yHE/HEYFhbm6NalMya88lK9C3G0sLbGR9NC8MVXG5CYdBF/Hj+FcS8Go6OHOy5cXFzvc1FHl8WXAMWcjyvXbxK2a5MGIaC7D0YOHYy4s+eRdTMbxsbGcGsrxvAh/8KLo58TcrVqev1bOtjjv5Pfwucr1+JyahruP3iA/7wwCgAQ9OwgZGRmIeaPIzh0/CTG/Vv73GadnuqAT2fPwKoNm5GSloHbd+/h36OGo28vf8yKWCK0Ezs7wcvTA4eOx6Ks7CHs7Wzx71HD8eZ/XoTIRrMCTADw2ktjAAD7Dx/DpdQ0HDhyAl06ecLOVgQLc3PcuZeL9Mws3M3NhV/XLgr5SDXh6eGO8LBpmBG+ULjHyyLmAEC9c4wCVc/Msog5CscbM2IolkXMQUTkqlr3fVBSignvzxRe29mKFGavOzrY49uVSzD38+UY+uLrQrveAX749OPptY5J3XMcGjJR+B6xsrRE5ILZiFy9AcGvvSO0GTNiqNDG0cEeL4wcjpXrN2Hl+k0IDZlY57LqgsIiYYa4XFnZQ50GRo2MjDAmaChu3srBjugYLFvzDcJnTsO/Rw1H65aO+Ob7HxF/9jziz56HW1sxJr0xTvglVCtHB3z68XQs//pbJJxLwr4/j+KZAf3w8piRCF+8XOMxVFRUIDvnNgDAwsIcXp4dEDz8WTw7qL/Kd2Xfnj2w4tO5+HrTVlxKTUPS5RS4OLXBm6+8CJ8uXgptu3s/Dc8O7ZGafhVBzw6qM7jewtoa88KmYbfPIfz46x6cjJfAxMQEnZ7qAIfHy+br6t/czAz+3bvi592/Y0d0jLD/R9Mmo2/PJ69aNTUvJyVnIbKxQf8Af/QL8K8zQKls5OBBGDl4EBbNnIGklBQkpaSi6HEeUXk+0eL79yGysYGPV9XKjv4B/mgnFqsNuqqzeO06LF2/ocHnSEREzY9RQdED9WsDiZoQWQ1LWJW31/Za3c/q/zZSeC1DtZ/lfyorUSmrREVFRVXBlIrKx0UXZKisqEB5RTnKyytQKatE+aNyDOjbS4uzp8aQlpGJ8MUrEDHrA70u62+KiutZBKm+RFziprXTkkR8OH8xBvYNxNyw92FuZlb3Tkpqu89HYk8LBWUOHDku5Ci9m5uHYYMGoOzhQxQVFdcaGOV9JiJtaTPjTNezy/QxY08b2pxvQ2bnFRYXIys7Gz5eXrW2MzRN74em91LX7bShTR9N6dnVVHObMXr8ZDxMzUxhbGQMU1MTmJqYwtjEBMbGRjAxMYGJiXFVAVYTExgbGcPIuOq1/A8AGKHaz0ZGAGRKr1X/ru1nTV7XtZ2oKZHEH1e7nTNGiYiImrDi+w/wy579VVXAe3RvUFC0LtUDnjeyb2Fg30AAVUFSXcwOJiKiJ5udSNTkg6JEREQNwcAoERFRE5GemYWFy1fDzVUMBzs75BcW4tSZRDwoKUG/Xv4YPKBPo49h+OB/CT8HD3+20fsjIqJ/hqSUFBw5dRonziRg+5qvDD0cIiIijTAwSkTUzJmamgoV0HXNrBFmN/6T2bSwRquWjkIwVJ4j9bWxYxRypDYE7zMRNXXaLFvWlK6PZ6gl2bouQFX9eDu+XoMhfev+RVxGVhYOnzqNY3HxiE2QKBQ7Ujc+lzZt8MJzwzBm2DD4+3TVaKy10UfBHn2kd2hKRZ/UaW5L+Imo+WFglIiaJU8Pd2zbsNLQw2gSrKysUFpaqvOgmZmZGSwtLetuSAKn1q3wxbxZjXJs3mciIqqLhYV5jUHRnLt3cSwuHkfj4nHk1Gnk3L1br2PfunMHa7dsxdotWwFUVbQ//3uMSrsv1q0HUJXn+q/0dFxMvYKME0freSZERESaYWCUiIhgpcVMRHpy8D4TEVFt+vT4ezZffmEhYhMkQjA0LTNTp33duJWjdvuSr9frtB8iIqLaMDBKREREREREcLC1RcTKVThyOg7nL1029HCIiIgaHQOjREREREREhF/3HzD0EIiIiPSKgVEiIiIiItI75SIsui6qpI4+iiWpY6iCOE39PBqziFR9aXMNtHn+tKGPAlT68CSOmYj+OYwNPQAiIiIiIiIiIiIifWNglIiIiIiIiIiIiJodBkaJiIiIiIiIiIio2WFglIiIiIiIiIiIiJodFl8iIiIiIiKD06Z4kDq6Ls6jTlMqZKRpH039muqapmPW9Fo1pSJhmvahTUErbdo19WeDiAjgjFEiIiIiIiIiIiJqhhgYJSIiIiIiIiIiomaHgVEiIiIiIiIiIiJqdhgYJSIiIiIiIiIiomaHxZeIiIiIiMjgNC04o03hl6ZUkEmb89WmiI827bTZVx/3Q9fH0+b5U0fXhaDU0fR4mu6rKV0XqiIi0hfOGCUiIiIiIiIiIqJmh4FRIiIiIiIiIiIianYYGCUiIiIiIiIiIqJmh4FRIiIiIiIiIiIianZYfImIiIiIiPROuTBLUyq0ZKjiN7ouVmOoYk7aaOrXWZs+dF3MSR/9avMMGeoaEBHVB2eMEhERERERERERUbPDwCgRERERERERERE1OwyMEhERERERERERUbPDwCgRERERERERERE1Oyy+REREREREeqdpERtN9tO0eIs2BWe0GYuu2+m6D03p49rrul9Nj6eONtdem+usjaZ0fw11DYiI6oMzRomIiIiIiIiIiKjZYWCUiIiIiIiIiIiImh0GRomIiIiIiIiIiKjZYWCUiOgJVllZidT0qygpLa33vmkZmRg57i2EzVuEUqm0EUbX9OTlFyDz+g3IZDJDD4WIiIiIiIgMjMWXiEhvSqVSzP18OU4nJArbegf44dOPp8PK0rLBx1BW32M2VXn5BZg6ax4Ki4qxcmE4PD3cVdrs//MYFq5Yg369/LFg1gewtLAwwEg1l5aRidA5ESgsKha2GRsbw8WpDfoF+mNM0DC0E7vAyMhI530XFd/HhwsWIzX9KpZ/+gkCfH103gcRETWcoQoK6Zo+CgVpU0RK1wWo9EGb66cNQxX60uYZ13VxKH0UZNL1Z4aIqD4YGCUivbmZnYMhA/ogcsFsAH8H/uZ+vlzjQKaVpaWwP/B3oC08bBoC/X0bbexNlaODPUQ2Nmjfri3MTJ+cr3QTExM4tW4FUxMTyCDDnXu5+GnXXuyM3oeXgkdg8pvjYW5urtM+zcxM4dymNfILCtHSwV6nxyYiIiIiIqInz5Pzf9FE9MTz9HBXmPXo6GCP0EkTERG5Cjezc9TOiKTaBfr7Yt/2TYYeRr21dXHC6sUL4Pg4QFleXo5jp85g2dpv8NOuvXBu0xpjg4N0OnPUytISn82eobPjERERERER0ZONOUaJyKBaOtjDTiQy9DDIwExNTTFkQB/MCp0CczMz/Lp3P+7czTX0sIiIiIiIiOgfjDNGicigcvMLACMIMwd1QZNcpmkZmQhfvAIRsz7ArpgD2LXvoNB2WcQcjZbly1MBZN3IFraFhkzE2OAg4XVN/bi5ihVmTDZUnOQcZoQvxJgRQxE2dRIAIHL1BuzadxCRC2bjXm4eNm7djrxWWTv9AAAgAElEQVSCQnh5euDj/06BR3u3Go+Xmn4VH87/HKXSMsybOQ19e/mrbZd1Mxs/7NiF2HgJCgqLYGFhjmcG9MOUia/Cwd6uwefj5+ONp708cT75MtIzr8GpTSsAwM1bOVi3eRtOnpHg0aNyuLUV453XX8GAPj1x/0EJps/9DBmZWVj+2Sfw7dpFON7hE6cw9/PlGDVsCKa+/Qbmf7ESl1PTFHK2VlZWIjZegi3bf0Fq+lVUVFTAxakN5n8YCu/Oners39iYv2MkIiIiIiJ6EjEwSkQGk5aRiYjIVQgPm6bTwOiFi38h0N9XJZfpmo1bhOChXPjiFQgNmShs3xEdgxnhC+sMjsoDktUDofJ8p9eybij0U1hcjAnvz8SyiDkImzpJCNwu+nJtoxaJ2vLTLygquo/+gQE4m3QRl1PT8PmXX2Ppgo9hb2ur0v7OvVws+nItih88QMSs6TUGRQHgp1/3IOF8Egb1DYSZmRmS/0pFzB+HIS0rwyfT32twftAW1lZwayvG+eTLuJlzG8DfwdpKmQwjhgyEiYkJzpy7gLmLl2NW6GQEPTsYg/r1xl9X0nHqzFkhMFpRUYHYOAnMzcwwbPAAmJiYqPRXXl6Orzf/gB2/xcDIyAg9/bqhrbMTLqWmoaRUqnH/RERUf4YorqKPwkP6OC9DFUbSR+ErQxWqMlSxpCeRNoWgWFSJiJoaBkaJSK/kAUWgatbk92uX6zQoClTl3awe1HR0sMcLI4cjTnIOpVKpEIgsLC7GhHEvKbQdGxyEa1k3sCM6Bt28O6sNWpZKpdgRHaMyO9TTwx3hYdMQEbkKY4KGKeRMDQ2ZKPRjZWmJscFBjZ5b1crSEkvnf4wW1tYoKCzC9LmfIf3qNWRm3VCYVQkAD0pKsWzNN8jIzMK0dyagb8/a/4N3TNAwTJs0QQiA3svLx/uz5iH5cgpu381Fu7YuDRqzkZERTKrNwCyVSrFhSxREIhtELpgNp9ZVM0ivXb+J0NkLsPfgYfyrTyACfH1g08IayX+l4v6DEti0sMbd3DxcuHQZHu5u8Oyg/honXU7FrpgDcG7TGos+mQnPDu0V3te0f5sW1g06XyIiIiIiIjIcBkaJSK8C/X1xYu8OAH/P5ASgk2XlyuRLyuXcXMUoLf07MGonEsFPKUAIAO3dXHE26aJC2+puZucg+9Zttft29HCHna0IicmXhICnun7kVdFz8wvg2fBTrNWoYUPQwroqYGdnK4KXpwdS06+irOyhQrvy8nJs3LodsfESjA0OwpigoXUWPXJzFSM+8QLOnD2PC5f+QnbOHTwoKYGdrQhlZWUNHnNFRQWkj8dnY22NnNt3kZKWgfyCQrw4YYpKe2trKzx8+BAe7dvBv7sPziSex7UbN+Ht1RGXU9OQnXMHwc8Nha3IBqVSqcr+pxPOoqzsId54+QWVoCgAjfsHA6NERERERERPHAZGichgHB3ssXrxAkydNQ+Hjp9UmH2pjR3RMVi5fhPGjBgqBGF3RMfg1737dXL83PwCFBYX6+RYjcnaykr4WXkmZnVpV6/hcmo6bEU2GDZ4AExNa/+n4UFJCSKWrsKphEQ85e6GAF8fuLm2xbdbt+NReblWYy4oKsZfV9JhbWUJt3ZtUVFRgcrKSnT0cMfrL/8b5uZmCu0tLSxg08Ia5ubm6BPgh6Mn43Am8QI6e3ogNk6CVo4OGNC7Z83n8qAEANC6VUu172vaPxERERERET15GBglIoOysrKE2NkJ17Ju6OR4aRmZ2By1U+MCSjUROzvBykp97s+WDvawE4kafOympnPHp+DbtQs2bInCkq/W44t5s9CmhkAhAMSfPY/YeAmGDuyPOdPfg6mpKfLyCxD1SzQKixoeMJbJZDh0LBaZ12+gd4AfPNq3w83sHABVgd0e3bxhb6eaG1UuwK8bxM5tcPZ8MvoHBuDCpcvw7twJLk6t6+w7L7+g1vc16Z+IiIiIiIieLAyMEpFBlZZKkZ1zW6sgZp19SKWIk5xT2V5YXKyw5L16W+fWrWosiuToYA8YQWVfALiSkYnComK1y+ybsudHPIvcvHzsiI7BsjXfIHzmNGEZvrJ7efkAAEtLC6Gg0eUr6bh99x4sLSwa1L+0rAw/7/4dG7ZEoZWjAya9MQ5WlpZo07oVXJzaIDX9Kv44GosXRz8nLPO/kpEJI0C4B61bOqJHt644fvoMDhw+hpw79/De/71RayGonj26I3r/IWz/bS98fbrAxamNwvv16Z+IiLSjaUEXbYraaFo4x1AFlAxVeEgfxaYMdd903a+mdD0WbY6n6+dZ14WldP1ZICKqDwZGiUhv1n63FcMG9RcCSaVSKRZ9uRZiZyeMGjYEwN95R3v4eKtUkNeEo4M97GxFOH4qXgi27jnwJ04nJMLNVazSfnPUTvh17SKMac3GLbicmobJb46vtY/QSROFIlLVq9JHRK7ChHEv6TRYVnz/AT76dAkszP4O8Dm1aY15H07TWR+mpqZ4+/X/IDvnNmLjJdj4/Xa893+vq11W37njU7CwMEfMH0fwoKQEFubmOH/xcr36u3nrNiaHfQJTExOUV1Tg9t17qKiogFPrVpg3MxSdnuoAALAV2WDi+LEIX7wcq77ZjEPHYtG541O4nn0LZxIv4It5s4QcrSYmJujTswdi/jiCmD+OwLNDe3T3frrWcQT4+mBAn544GhuH16Z8AP/uPnBp0xqXUtMw6Y1x6OnXTeP+iYiIiIiI6MnCwCgR6Y1/966Y8P5MhW1jRgxtUAC0Jo4O9oj46AOEzokQCi+FhkxEaMhElRyjdiIRQkMmInzJCmTdyAZQVVTo+7XL6ywEFejvi81fLUXonAisXL9J2K7tEn51KisrcfvOPcWNRkBlRaVO+2lhbY0Z772D2/dy8fOe39HWxVlhhqRc186dMH3K2/hmSxSOxMbBz8cbc8Om4fMv12q8lL6iogLZObcBABYW5vDy7IDg4c/i2UH9VWad9u3ZAys+nYuvN23FpdQ0JF1OgYtTG7z5yovw6eKl0La799Pw7NAeqelXEfTsINjZ1p7yoIW1NeaFTcNun0P48dc9OBkvgYmJCTo91QEOj5fN16d/IiIiIiIienIYFRQ9kBl6EER1kcnUP6bK22t7re5n9X8bKbyWodrP8j+VlaiUVaKiogIymQwVFZWPi7TIUFlRgfKKcpSXV6BSVonyR+UY0LeXFmdPjSEtIxPhi1cgYtYHXApNRETUBOh6ea6mmtLy9aY0FnV0PT5N+zDUuen6uujjeIZKA6FOUz+PpuT4yXiYmpnC2MgYpqYmMDUxhbGJCYyNjWBiYgITE+OqYqomJjA2MoaRcdVr+R8AMEK1n42MAMiUXqv+XdvPmryuaztRUyKJP652u/oSxURERERERERERET/YFxKT0REREREeqc8S0wfBWIMVShIG/ooGGWoa6+PgkzaHE8dQ13npjTDuCmdBxGRtjhjlIiIiIiIiIiIiJodzhglombJ08Md2zasNPQwiIiIiIiIiMhAOGOUiIiIiIiIiIiImh0GRomIiIiIiIiIiKjZ4VJ6IiIiIiIyuKZUsEcfxWAMVeCpKRW60cf91abfpvQcaHOtmnpRKiIiQ+KMUSIiIiIiIiIiImp2GBglIiIiIiIiIiKiZoeBUSIiIiIiIiIiImp2GBglIiIiIiIiIiKiZofFl4iIiIiISO+Ui7WoK/LSlAri6KOAja6LKhmqkJE2x9O0D13fI12fh6bH08f105Q211Qf4yMiagwMjBIR0f+3d+dhdpaF3fi/syQzSZhJwhJCEsIioiFSCVASFn8WLSDgyw8LaOvSilRpLZYXxF9puYqX8a1LQRCltqKodUUDlfJKbECkyhZQCEUgCiGEEMISsk1IZiaz/f4Yz2H2TDKTmYTn87muuXKeM89yP/dznwP55l4AAADgNevww97Q5/uG0gMAAAAAhSMYBQAAAAAKRzAKAAAAABSOOUYBAIBRN5RFXob72JE430gsbjQSC1WNhMHe23DX6WANZXGokWgHo7UI12u5TQKvHXqMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHIsvAQAAu42hLN6yqy/SNBTDvbDPSJRvsIZ7QaGhGEo9D8WutAjSYJ+HBZmA3YEeowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACsfiSwAAwIgbrcVzehrswkPDvZDRaC2mM5QFo4ZyvsFeYyj3MZQ2NdztcbgXCRuJRYtGol0B7Gr0GAUAAAAACkcwCgAAAAAUjmAUAAAAACgcwSgAAAAAUDgWXwJgu61bvyEXXPrJXPiRczP3qCNGuzi7pGXLV+Tyz12d+ZdelEMOPnC0iwPb5bXSfhfcsjA/vnVRrv3cp7Ln5EmjXRy2YSQWbxnKAjvDvdjPcC/OM1pGqw5GYjGiwRrKgla7Uh2MRP3tSm0XINFjFBhF69ZvyHvPvzCXfPIzaWxq2q5jF9yyMCecfk6vn/sffHiHynLltdftUDlgqEqfgwW3LBztogAAABSKYBQYNXfcdW9Wrlq9w8fPnDEtt3z3a7n71gW5+9YF+cL8y/Lxy/9pxAOmK6+9Lldee92IXpMds2z5irz3Ixdm2fIVw3pebWDn21nPbqTtim1lVywTAACMBEPpgVGxbv2G/PjWRcN6zrlHHZEzTz0p9z/4cN558tsyrrZ20MdecsFHhrUsMFh7Tp6U73/1mtEuBgAAQOHoMQqMijvuujdHHj47Z5560rCe9y3HHpPVL7yYxkZD4gEAAID+6TEKjLhly1fkxz9ZlPmXXpSbF962U6/V2NSUf/zsVVn86yXl98489aRePUSvvPa6vLDm5Xz67y/OuNraLLhlYe5/8OFc/Nfn5ZJPfqY85L/rsfc/+HA+fvk/lc9x809vz8wZ0/pc5OP+Bx/O/Cu/lGv+6fJeC5n0vPZgytzf+ZYtX5ELL5ufyy/52/KiSKUhsm859ph8/PJ/6reMXfc987STc+Fl87OxYVOSZN7Rc8rl62nBLQtzzVe/mSSZWF/X5z32rKu+9uu62MvNC2/LzT+9PUn6Le+V115X3idJvjD/sn4XgupZpx/82CeSJBeef27OOeO0JK8uKNV1eoeuv+/LQG2gv7L2vJ/Sdd91+inla/XVBra3LD2vM1C76rqY1l33PZCbf3p7tzZXalcDtYee9dfffV74kXOz8rnV22wzJTvr2XXVtQ33LHvPek16t7XBfG4Gait33HVvnwsE9fycD8dz6mo42m9/dTjY+t/Wsxvsd3h/93/4rDf0ed3t+f5gdI3Wwj59GUpZhnKN4V7YZyTqtK9rDHf9DeXeRqttjMTCSIMty3A/j13pswqwPfQYBUZUY1NT/u3fv593vfOUnbLS8V33PZBpU/fNuHG1WbZ8Rc4+96OZus/e5XlIb/nu1/LQbx4b1EJLi3+9JJd88jO59nOfyt23Lsi3vnxF7rxncXkO07lHHZG7b12QM089KWeeelLuvnVBvv/Va/oMHF9/8IGZWF+XJY8+3u39ZctX5M57FuecM07LuNqhl7k/Dz3yWB78n0cHLGPXfb9748258ZtfKV9/9Qsv5h8/e1Wv65dClVJZTzx+Xi7//NVZt35DeZ8rr70u86/8Ur715SvK+33wz87OBz/2iV6LZW3ctCkf/Ngn8pZjj8ndty7I7Td9J9Om7pvPfPEr5Ws3NjXlkk9+Ji+seTm33/SdbvPL9rf41rja2lz5qX/It758RWZOn1YuSyl8uf/Bh3PG+z+cd51+SrmM3/ryFfnWD24ccO7FbbWBwdxPT6UgqGsb+NaXr8iE8eP6LUcpQOtax+9421vLv1+3fkPOu/DvkqRcZ7d892uZss/e3c7zje/9qFzWrv8A8MGPfSKXX/K35XtI0q09LFu+Ih/46MXd6u/Iw2fngks/2a0tJINrM13trGdXcuW11+VbP7ixz7prbGrKXfc90G0u4wvPPzfzr/xSr7lOt/W52Z7vi23Z0efU03C13yuvvS4/vnVRuZ5K9b+t+Z5L7ebIw2f32da35/uw5/3ffeuCzD3qiHztOzd0u+aOfH8AAPDaJRgFRtRPbvt5kuSdJ79t2M+94JaFufOexfmrv3hvxtXW5uaFt+XE4+d161m05+RJmf93F2XpE8vyyGO/HfB8E+vrMv/vLiqHBIccfGBOPH5e7n/w4e0OKPecPCnvOv2U/PjWRd0CoCWPPp6J9XV5/e9D4qGWuV8VyZ++652D3vdvP/zBci+zga5/5qkndesVduZpJ2djw6Y8+fvQaNnyFXnokcd69Qg854zTcuapJ2XBLQt71eWF559b7rk1rrY255xxWpY+sSzPrX4hSfLIY7/N0ieWlZ9z8ur8sn2db1sam5qy4JaFvXq4HXLwgbn8kr/NnfcsHtKCP9u6n17laWzK6hdezFuOPaZbWU774xP7vcbK51Zn1qGHZPq0qeX3/vw9f1Juu9/43o8ybeq+3XoP7jl5Uv78PX/S7TyvP/jAbr3mSnVz5qkndbuHv/qL93ZrDzcvvC2zDj2k2+f6Q+97d5LOaTO62lab2R5DfXb3P/hw7rxnca/2Waq7cbW1ueSCj3QLL9/+luMysb4ua3sGudvxuRmqHX1OO2Jb7bf0jzsXfuTcbt+VH/yzs3t933VV+keynt93Xdv6YL8Pu7aDrvVS+p7pari/PwAA2L0JRoERc/+DD+dbP7ix219Ih2LlqtU54/0fzgmnn5MTTj8nP751Ub7zlavKQ04f+s1j3cKlkunTpmbWoYfkrvseGPD8PYOmJDlg5owdnsN0zpsO6xYANTY15f4HH867Tj8le06eNCxl7k+pF+1gHHn47F692PacPCkT6+uy8rnV3d7vWdae+y159PFM22/fXvVYOrZnQDixri5z3nRYt/32+n1ZSkHUXfc9kBOPn9erx/GOPpvnVr+Q1c+/2Ou6Sf89fQdrMPfT07hxtZk2dd8+eyX2Z+b0aVn86yX5l69/u9fvSu1q7lFHbPNzd8DMGd22S3Vz5mknd3u/63Munb/U67nnfTyzclW3Y7fVZrbHUJ/dXfc90OfnvKdly1fk9D/7UE44/Zyc8f4PZ+Wq1b3Kuz2fm6Hakee0IwbTfpc8+nhmHXpI/mD2G7vtN3P6tGxs2NRvMPrc6hey9IllfX7fJdmu78OB2kHPuhru7w8AAHZv5hgFRsS69RtyzXXfzAf/7OxhG0I/0FyZ69ZvKM8zt6vo+pf5uUcd0esv8zuzzFP32XtYwujt1TMUG6rGpqa8sOblLP71km7zA5bMnDFtu8+5dv2GbNy067SV0tDxK6+9rs/5NPsy96gj8q0vX5ELL5vfa67bUruaOX3bddNzn7XrN2Tlc6vL5ehL6fw95+EsGe4F1roayrMrtaWBPhul+S83NmzqNc/naNqR57SzPLNyVRb/eklOOusDvX43sb6u3+NKwepe/UwlsD3fh4NtBzvj+wMAgN2bYBQYEXfcdW9WrupccKXrAh0lJ531ge1aLGVbSj2ldiWlYajXXPfNrFu/oVdvyu0p816TJ2Vi3cjf32DCta4OmDkjL6x5ediuP662NlP32bvfxVd2xGjV5bZccsFHcskFHykvkPPMylUD3vMhBx+YW3/wjfIcpR/46MW55p8uH9JnYa/JkzJz+rTMv/Sifv9BY936DZlYX9dtwa+RMpRnV2pLAylNQXD9NZ8f0j8sbOtzs72fq54G85x2lgNmztjmIk992daz2xnfhzvj+4PXruFeTGcoiyrtSnb1+xjuBYqGcm/DvQDVYMsy3GXeHRcxA9gehtIDI+KcM04rL4jR9efMU0/KvKPn5PabvjNsoWjy6jDevoaeb2sI585Umkt08YNL8uNbF3Ubfry9Zd64aVOv4dhLHn18yL1OH/rNY72Gvz65fEU2Nmzqt3dXf2ZOn9bvfJqDHcbc0wEzZ/RZxh215+RJSUX6HHJduu++huiOlLlHHZELzz83L6x5eVDzH46rrc0//O+PlufBHKhdbctAdVO+3hDOP1RDfXY70paeXL6i2wrqJUP93PQ17HywdTqY57SzDPQZH8i2yrw934f9nas0XUlXw/39AQDA7k0wCuxS1q3fkPeef+GgVpMeSGnhkTvvWdztXOvWb8jln786Jx4/b9h6t23PX7T3nDwpRx4+O9/90c2pr9ujHJRub5lLw/JLvU+TznkQv/WDG4d8PytXrc43vvej8vay5Ssy/8ov9Tkv37bMPeqInHj8vFx42fxu82X2XChre7z9LcclSa+Vse9/8OFtrirdV4Cy5+RJufAj5+aar36z2yrapfsezPQPwxm2rFu/Id/+4X+Ut0vhzkBDvhf+7M5u9ds1kBuoXXW9Tl9Ki4Zd89Vvdqvbxqam/PsNN6WxqancE/rmn97eaxXyb//wP3ZqgD3UZ/fOk9+WaVP3zQWXfrJbOUvlPmDmjG6hX2lKkL4M9nPTV1spzYf6b//+/XKbvv/Bh/sc7t1f3WzrOQ1kKO33D2a/MbMOPSSXf/7qbscvW74iC39254Bl7u/ZLfzZndv1fdjf/f/ktp9n8a+XdLvuUL4/AAB47TGUHnjNOuTgA/Odr1yVCy79ZE44/Zzy+8M5ZD/p/Iv2j29dlDPe/+EB5z0tOfO0k3PnPYtz5B/0XqxlsGUu9Qq84NJP5oz3fzhJMu/oOfnc5X+XS+d/fkj3c+apJ+WAmTOGrc4uueAjOWDmjG7zH86cMS3f+cpVA9ZTf/acPCnXX/P5/ONnr+o2r2FpOO+2ji0FKNd89Zvl++o6R2fXqR6+MP+yQQXofbWBofivn/8i1337B+XtbQ393bylsVv9Tqyv67bSen/t6gvzL9tmWc4547TMnD6t1xyiX5h/WbdVvfuqvwvPP3eHnnFfdsaz6zqfa+lzlHTW956TJ+WcM07LMytXlet25oxpmX/pxbn8c1f1OtdgPzf9fV/M/7uLcuFl88tt+sxTT8oX5l+W+Vd+aVD1M5jn1J+htN/+6nAw5+nr2ZXabrJ93+Gl7a73f+H55+bC88/Nj29dVH5vKN8fAAC89lRsaNjcMdqFgG3p6Oi7mfZ8f6Dtvl73/WdFt+2OdHld+mlvT3tHe9ra2tLR0ZG2ts7X7e0daW9rS2tba1pb29Le0Z7Wlta85biRH7LNrmvZ8hW5/HNXj8p8gNtS6pll/j0YPJ8b2DE95xrsay7D4Z6TcbBzKI7WHKNDmeNxuO9tsEbiGoO97mCN1hyjQzESc7mO1hyju9I8taPlrnsfSPWY6lRWVKa6uirVVdWprKpKZWVFqqqqUlVVmYqKzteVFZWpqOzcLv0kSUW6vK6oSNLRY7v3nwO9Hsz2tt6HXcnWV17q8309RgFG2M0Lb+u26BIAsHsa7oBtJELawRqtwHiwRiIIHokgfbDHjkS4PtzXBdgdmGMUYAQtW74id96zuNuiSwAAAMDI02MUYAQsW74iF142PxsbNg163koAAABg5xGMAoyAQw4+MLf+4BujXYxtMkcibD+fGwAA2D0ZSg8AAAAAFI4eowAAwC5pV1+terRWLR/KdUdrlfu+jh2tsvRluMsy2GMHayQWWhrsNUZisSmAkaLHKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwrH4EgAAMOp2x0VZRmLxm+G+7miVebBlGco1hlIHI9H+hrKA0mh9PkZrgTGAkaLHKAAAAABQOIJRAAAAAKBwBKMAAMCIO+SAA0a7CABAwQlGAQCAEff3f/PXwlEAYFRVbGjY3DHahYBt6ejou5n2fH+g7b5e9/1nRbftjnR5Xfppb097R3va2trS0dGRtrbO1+3tHWlva0trW2taW9vS3tGe1pbWvOW4Y4Zw9wAAALxW3XXvA6keU53KispUV1eluqo6lVVVqaysSFVVVaqqKlNR0fm6sqIyFZWd26WfJKlIl9cVFUk6emz3/nOg14PZ3tb7sCvZ+spLfb6vxygAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQAAAAAKBzBKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACkcwCgAAAAAUjmAUAAAAACgcwSgAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQYdg3NTTnhG1fmgC9eluc2bej2u/ufezqH/+une70/HAY693ObNuTwf/107n/u6e0+b+l+blq6ZDiKyQ740xuvz/xfLEyS3LR0SSo+9dHyj+cCAADAjhCMAjtFfc24dHQk1z9072gXZdQNJZQdLvN/sTB/euP1233ccJR9uMPwVQ3rs/HSq9Lxya/kxnd/OBcvunGnBO0AAAC8tglGgZ2iobkx7559ZL7+0D2jGgjy2nPh3LelvqY2STJvxkGpr6nNqob1o1wqAAAAdjfVo10A4LXr2P0PTn3NuHx80U1Z+L4LymFWT/N/sTCf/O+fJElmTpyce8/7RKbXTUrSOWz67B99LUkysaY2iz7wscydflCSzt6Mx11/RVZu7AzFPn7s27dZpsWrns4p3/lyNjY39bpWz/N96o/emcvfelqvc9y0dEmuvu+OnHfk8fnQf34nSXL8/gf3eY/3P/fq9eZ9/Ypu+3W974Gu11c9vWf2UUmSw/bZr3xMf3X1pzdenx8+9mCS5IePPZgb3/3hnDVrTrdz93Xvpxwyq8+yb9ra1G3fnve0eNXTaWhuzKMvrc6lJ5ycv7/jliTJjKv+Ie+ZfVRuOPu8NDQ35bTvXZt7nl1evp8bzj6vz7tVL78AABfYSURBVHs9/vftqC8fX3RTZu8zrdwmAAAAYLAEo8BO9b/nvS23PfV4vrj4532GfvN/sTC3PfV4Nl56VTlY+/iim3LD2eflpqVLcvGiG7Pq4s9ket2k3LR0STlkLYVzV51yds6aNacctDU0N/Vblobmpix47KGsvOgzSZLTvndt+VqlYLB0vuc2bcg7vvvlnHLIrMzae79e57rn2eWZUT85HZ/8SpLOOTA/8n+/1y3cS5K50w/KY39zed7x3S/n62e8vxzgzf/Fwly/5J7yvZWuP3vKfr1Cy77qqRSCfuqP3pkkA9bVDWefl8P22S+Pr3m+V/lKPr7oppw35/hc/tbT0tDclPufe7rfst++fGm3ejru+ity+/Kl5XLf++xT3QLsEw96Q/7ylu/mv97/sUyvm1R+Vie/7rDc/aFLyts3LV2Ss2bN6fde583oHn6Wpgbo754AAABgIIbSAztVfU1tvnDKWVnw+IO95oFsaG7KbU89nouOfXu5p+V5Rx6XVQ3r89ymDVnw2EM5b87x5R6dJx08K/U147L05eezeNXT2b9+ck46eFa36/TXK7XnPvU1tbno2LdnVcP6NDQ39Trf9LpJOeewo7Jo2dI+z3X8/gfnuv/1vvL2Rce+LY+tWT2ouS5L933VKWeX72163aScN+f4LHjsoX7371pPZ82aU+41mmTAuhqsx9d07ltfU1uuh76cNWtOOQSdXjcpx844OI+99Op13nHI7AF7cC59+flsbG7MeUceV77eRce+PQsee2hQ95p0BsGrGtZ3ewYAAACwPfQYBXa6udMPyux9puXji27KRce+rfz+pq1NebZhfXn4d8nEmto8sfbFrGpYnx8+9mC34eZJZ3j62EvPZ0b95AGD0O3x2EvP555nl2fi5y7u9n7PQK4/M+onZ2I/w7172rS1KRubGzOjflK392dP2S+3PfV4Gpqbut1Xf/uXNDQ3DVhXc6dvu0w3nH1e/vTG61PxqY/2Oy1A1+t1HQafpNxzdTBWNWzIoy89nxlX/UO394/f/+A8/8rGAe+1q+F8/gAAABSPYBQYEV845awcd/0VmfHYq4FX3djazN5nWn50zl/22cNwRv3dfc6HWdIzRFzVsGHAofQDmT1lv17zXJYM5pyrGtZnY3PjoK5VN7Y2E2vGZVXDhl6hZX9hX2f4+er+pTD0sH32S31NbWbUTx6wrgbjhrPPyw1nn5f5v1iY0753bRa+74I+y3Ha967NRce+PXd/6JIk2e7V7mfUT8qph8zODWef1+teG5qbetVN13st6dprFQAAAHaEofTAiJheNylXnXJ2vnDfHeWgsb6mNvNmHJSPL7qpz/DxnNlH5uJFN/Y5PH1G/aQ8+tLq3L68c6h7Q3NTrr7vjh0u37wZB+W+Vctz09Ilg9r/nmeXd7v2xxfdlHMOO6o8lH0g9TW1Ofl1h3W7t+c2bcjFi27MObOP7LV/abj61V3q7vblS7v12Byorralobkpl9z26jOYPaX3nKolPXuvPrdpQ+5btbzf/fsya+/90tDcmC8u/nmv35VC3oHuNekcSn/AFy/bofsFAACARI9RYASV5orsGqRd/tbT8via57sNYS/13Dxr1pzOIfNdhlyXhnnPnX5QFn3gYznlO1/O2T/6WibW1OZTJ74zX3/onh0q2/S6SfnROX9ZPl/y6srufS2+dPz+B+f6h+4t7/ue2Uf1u6J8ab7Sriu7l/btem8D9fi87n+9L6d979pyPb1n9lHdhvkPVFf1NbU578jjctz1V6TiUx/tdZ36mtqsathQPvfMiZNz73mfKM/F2rPspe3SvvvXTx6wbktTKXRdlf6H5/xljrv+im5D/0vlKg3r7+9eAQAAYDhUbGjY3DHahYBt6ejou5n2fH+g7b5e9/1nRbftjnR5Xfppb097R3va2trS0dGRtrbO1+3tHWlva0trW2taW9vS3tGe1pbWvOW4Y4Zw9+xqblq6JFffd8eA83DubF2HtBtSDgAAu6+77n0g1WOqU1lRmerqqlRXVaeyqiqVlRWpqqpKVVVlKio6X1dWVKaisnO79JMkFenyuqIiSUeP7d5/DvR6MNvbeh92JVtfeanP9w2lB9gNfXHxz/Nsw/rMm9H/6u8AAABA/wylB9gNzP/Fwm7DzkvD3QczpykAAADQm6H07BYMpQcAAOC1yFB62PkMpQcAAAAA+D3BKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACkcwCgAAAAAUjmAUAAAAACgcwSgAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQAAAAAKBzBKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACkcwCgAAAAAUjmAUAAAAACgcwSgAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQAAAAAKBzBKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACkcwCgAAAAAUTvVoFwCKYOvWraNdBAAAAAC60GMUAAAAACgcwSgAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQAAAAAKBzBKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACkcwCgAAAAAUjmAUAAAAACgcwSgAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQAAAAAKBzBKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACkcwCgAAAAAUjmAUAAAAACgcwSgAAAAAUDiCUQAAAACgcASjAAAAAEDhCEYBAAAAgMIRjAIAAAAAhSMYBQAAAAAKRzAKAAAAABSOYBQAAAAAKBzBKAAAAABQOIJRAAAAAKBwBKMAAAAAQOEIRgEAAACAwhGMAgAAAACFIxgFAAAAAApHMAoAAAAAFI5gFAAAAAAoHMEoAAAAAFA4glEAAAAAoHAEowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAAAAACqd6tAsAwK5pU3vraBcBAGC71FX6Ky4Ag+e/GgAA7NY6OjrSsGFjNjVsyvr16/PK5s1pa9qcrY1b09zRPtrFe02rG1+bqtoJ2WPChEyePDl19XXZo74ulZWVqaioGO3iAQAMSDAKAMBuqbmpOU8/tTw//+ltWbx4cZ5f/WzWb2jI1q3No120XU5bW9tOO3dVVVXGjq3JnpMnZv+ZB+aYY+flrW9/Ww48+MCMGTtWSAoA7LIEowAA7FY6Ojry6P/8Jl+/9l9z53//PI2NWzJu3PiMHVuTysrOkC5Jtra3Ja1dpgWprk5aWzN2bE22bm3e5p+l/ftTVz8xb3zDG1JdtWuHfhsaXsnSJ3434L0MhxfWrstzq5/PL3/53/mXL30pp5xyas776Pk56HUHp3pMtYAUANjlCEYBANhtNDU25off/n6+cPVVadzUkLFja1JROSZr125IS0tjKqvGpLKiKhUVFan6fWBZWVmV9vYd6zFZOravPxsbt6S5qanbe7uK0v1WVlalqWlLGhpe6fc+drRuSra2tHRes60lY8aMy/jxY9PW1pYFCxbk7rt/mb/66N/kjHf9vxlfXycgBQB2KYJRAAB2C02Njfm3q67JV/7tuiTJxImT89JLL6WpaUvGj6/LpElTMm7c+CSdgWBVVUUqq0bqf3fHjNB1BuvV8owZOzF19ROH/Qrtba1pa+vofN3elsbGLdm06ZVs3Lgx1dW1mTZtal5+eU3++XOfzcZ1a/OB8z6UcXUTDK8HAHYZglEAAHYL3/63r+dfvvIvSZI3HHpo9p06Lb/61QNJ9V5Ja2tmzJ6dlXtNSJJ0jBs3mkUtjIrGxvLrA9Zuzqrf/S5pnZi2trYcffTRWfXsM/ndE0/kqquvyT77Tcs7TntHUhfhKACwSxCMAgCwSyvNKfqZz34uY2tqMm/u3Ow/Y3qeXrEylRMmpPWo2amdd1SWNfe96JLobfh19PHesiQVfzw3Y5Y8mvGPLktDwyt585vnZM+9pmTx/ffns//n09l72tQcfcQRwlEAYJdQOdoFAACAgWxqaMgXPvPPSZKjjzo6Bx10UNrb29M8vjbT3vnHaZnzpjT0E4omnSGen+H9Gaiut855UzZ+4Mw8smdNtra0ZubMA3L0UUenoeGV3PDNf8+La9akcdPmtLa0pr29fYCzAQDsXIJRAAB2afff/6vce9+9ef0hB+UNbzg0bW3taRtXm2f+6Mgsm7rXgEEdnSqS1NfUlH/G9FgoqrRdX1OTWftMSX1NTbeetmMqq8rvdT2+9H7pvf3q6su/a5nzpjw2aWw62ltz+OGzc/DBB+ZXv3ogv3nkN9nc2Jim5qYknT2CAQBGg2AUAIBdVltbW37yo5uSJHPnnZCxY8dk65jK/Px1U9LQ3GyY/CDV1dTkh2d/IE9e8Hd55PyLc/7R88q/26+uPqcfOisVSf78zUfnP87583z6xHekrqamvM/ph87KJ479o0ytq8+nT3xHDtlrr9TX1OTPDp+TP3/z0XnTlP1y/tHzctasw3P6obOSdPYefWrqXlkyofOvHHPmHJVUV+fuO+7MK6+8kqbNjWnZulWvUQBg1AhGAQDYZT2/anWeeGJpDpw5PXvvNSlJ8uTUieWh8/oaDk5jS2t+8czyJEnDls254+knkySz9pmSb5zx7hw1dXqSZN/xe2TKhLpM77GK/c+ffjKbW1vy8ubNuXPFU0mS6fUT09DclD3G1mTKhD2SJN/+n19nRo9jn5k2Jeu3Nmf/GdMyfco+Wbr00WzasjktLS1pbvr9c9RrFAAYBYJRAAB2Wc+uWpXNW5qz/8wDkyQvTB6fJ8ZWbeMoemppb8tXfnVP7np2Ra781b357ZqXMmufKbnq5DNyzLT9t3l8Y0tr+TwlzzVszO/WvpT//N2jeePeU5IkE8bWdDuuI0lre1uenNoZlk6bvn+amluzYf2GvPLKK2lvaU3L1q3DdJcAANvHqvQAAOyyNqxbm+rqytTXT0xLy9asHF+TFiOvd8im5uZ86D9/mMaW1nQkmVw7Pj949OH84NGHs2zdy0mSnz71uzy5fm0ampvKYWjJb19+KUny0uZXkiRvmrJfkuTI/abnl7/vjXrWrMPLvVG7erw6mdfRkan77ptnV67Ik089nalTpmRra2uqtm7NmLFjU1Ul8AYARpZgFACAXdYrr2xJzdgxGT+uNpmwR54Y25506bXI4HWkMxyt/v3iSPc+uyL3PrsiFXl1SoLSez21tLfl5t8+Wt6nq9L2mMqq8vm6nrPj99urx1dnal1dxo0bn5fXrU1Ty9a0tLRkXMYN850CAAyOofQAAOyymrdsSVVVVcaNmzDaRXlN6Ej34fCl94ZD6bwdPc5ZWiBrZUVnV9/a8RPS1vr7ofnNLelo79zbPKMAwEjTYxQAgF3W1paWVFVVp6amKquq2pJUWIl+N1ZdVZGasTVpb2lJ69aWtLe0pb2lNa0trRlbM3a0iwcAFIxgFACAXVZpYZ4xYzpDs3FjqtPYMpolYsd19igdM+bVv4K0pDVbW1szfrSKBAAUmmAUAIBdWlVVZSorO2eAamxp7TUUnN1LdZU+vwDArsEcowAAAABA4QhGAQAAAIDCEYwCAAAAAIUjGAUAgF1QVYX/VQcA2JksvgQAwG5tTGVlWtrbt/u4PcbUZMLYMUmSdY1bdugcSVJdUZm9xneuq76lpSWbtjZnn/ETUlnRucjQ5q0teaWlebvP+ZYDDspDz6/KxubtOxYAgMERjAIAsNvae/z4nDDz4Nz820e367j6mppcevzbstf48Rk/ZmxuWvqb/OdvH01Ndef/Hm9ta0tFKjKmqrPXZnNra8ZUVaUiFamsSJrb2tLe0ZEkOeGAg/KXR87NpuambG1ry6U/W5i/PeaEvG6vvbKxqSnrtmzJP997ZzngHFNZlerKirS2d6S1vS1jqqpSVVGR1vb2tLS3p6aqOhUVyd8cc3z+8c7/ypa1a8v7t7S3DWPtAQAUm2AUAIDd0pQJE/LhI+fl8TUvZmxVVZKktb29HFgOZNyYsXnz/jNz2aL/m/aOjrxpyn7Zf+LknHfEH6a9oyP/8bvfpH5sbf74oNdnTFVVvvrQ4pw16/CMrarOfnvU5RsPP5DfvPhCxlRW5UNH/GG+/MDdefylF/KpPzol7zjkDamvrc2Plz6aXzzzVP7ltD/J1Lr6bGxek9qq6rz3D47MrL2n5PE1L+ZnTz+Zd73xTZlRNzG/fn5Vfrb8ifz10celMkn9HnuksqIif3HE0Xnj3vtk6Zo1+e4jD6a5rXUn1ywAQDGYuAgAgN3S/3f8iTli6rTsu0ddzj3iD3PuEX+Y1++196COXbdlS77/0K9y/lHzctYbD8/ja17I+w6fk+c3b8qvn1+VY2cckH33qMuja17I/hMn5cQDD8nx+x+Y5xo2ZvWmhpz++sOSJLXVVdl7/IQ8u3FDNm3dmuUb1mVaXX2S5JTXvSGfOO7ENLa05PlNDUmSo6bNyP8z86AsePyRvGGvfXLigYfkwImT8/Ul9+fcI/4wbz3gdXnz1Gn54eP/k9am5rx+z33yoSOOyX3PPpMz33hYDpo8eedUJgBAAQlGAQDYLd359FNZ39iYx9e8mDtXLMudK5ZldcPGQR07bkx1Vm/amH+887+ytmlLLpx7QvYaPz6/ffml/PKZ5fmPpb/JG/eekiP2nZakc+j9lpaWPL1hXZ5c93ImVHfOTdrY0poNzY2ZMmGPjKuuzqTacVnX2Jgk+cUzy7Pg8Uey9/gJ2WNsTZJk8rjxaWhuyiMvrM7Vi3+Z8WPGZGXDhjyzYUPaOzqy7x51efGVTXlmw4Y0trZkwpixGV9ZkTdP2S93r1yR9U1NO6EmAQCKyVB6AAB2S7c+uTRrtmzOyQe9Pv/n7ju269hxY8bm3DnH5JEXV2ffCXVZtnZtHn5xdd77pjk5/fWzsnpTQ2bWT8rqho2prKjI1ra2NLW2pK29Pa3t7Wlu7RzO3trRnu89siR/ffSxWd3QkLcffGjOeOD6zJk6Lesat+SB51ZmbeOW1NXUJJuSX61+Nu+e/eZcMPf4/MG+03LtA/fkY8ccn4/NPT7PbtyQh55/LicffGg+Nvf4TKwZl2XrXs4ja9ekoaU5m5qbs27Llp1RlQAAhSQYBQBgt/XAcyvzzMb1233ci69syidu/0kOmNg5NH3pmhfS2NKaNVs2l7fHj63JARMn54bHH87G5ub894pleX5TQ8ZvrMmvVj9bPteiZb/Lk+vW5PV77pNxY8bk0L2m5OtL7i8Pn//0L28vv+563e888lDWbt6cT//y9kyqHV/evvSOWzOpdnxu+d1jeX5TQ3n/DU1b0jGI+VMBABgcwSgAALu1F1/ZtMPH9Tz2gedWll9v2rq12+9Lrzdt3drtmNaO9jyx9uU8sfbl/PKZp9LY0prWjvby759Y+3Kv667dvLm8T8/f99zuWQ4AAIbH/w8gbZjDc5w6uAAAAABJRU5ErkJggg==" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": {} + }, + { + "name": "GetQrCode", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/GetQrCode/{number_id}", + "description": "Get QR code from instance", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/GetQrCode/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "base64_image_data": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAF8CAIAAABDhZedAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAW6ElEQVR4nO3dfXBc1XnH8etO/yiwi4qB1traclqwRMZ2edGGNEgFiQSKrRfIQAa9DGlpYyQPZkpsOW4wIIshTgDZzgxxYimetri2BG3TIZIQDaRINtq80N3MEJkZVpipXzISgUkz8jom5h/1j23Wh7vS9V7dc5577+7385dWunvvlW1+nH322ecsmZubswBAyu/5fQMASguhA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNAFKEDQBShA0AUoQNA1O/7fQMuvPiDV76+9zvHTpwwepVfvfkz9eHl196w6Oc6s51Z43Nd3bMXzves8TZc/YLm/jS8/B2ZcPXKlV99cONdf3W76QvpFaaVjkDiACFy7MSJr+/9jt934VqYQofEAWzC+B9FmEIHQBEIU01H5erVtTMvr701lg9clWmcf31Xz3V1ZtvBXspSNq6uq7HE4+pUXn7fgPyLDQJWOgBEEToARBE6AEQROgBEhbWQbGOuhc/5ua5KmM6ca7SunuvqYHO/kcaatJeCvavasI25PkOxf7EBxEoHgChCB4AoQgeAKEIHgKgiKSSLMdfPKtbO6+qnXu4qmL+vxr8yjQ3ZJYWVDgBRhA4AUYQOAFGEDgBRFJIvICCDMoN5XY2n0jiAwvlgjZNeqRwvDisdAKIIHQCiCB0AoggdAKKKpJBsrqTn11hcjZObvVxXbDcusSnIARHMu5LBSgeAKEIHgChCB4AoQgeAqLAWkgOy35iX0Qca98/TeFfOzO2u56UV2Nzfgsa99wLyLzYIWOkAEEXoABBF6AAQRegAELVkbm7O73soUV7KkGK1UrEyc0B6js1NjEYOKx0AoggdAKIIHQCiCB0AosJUSHYo8mlsBjU3j0Ks3ulMrHHWXH+2uZt0vpC5mSF+TTLxBSsdAKIIHQCiCB0AoggdAKLCVEh2oLEOp7FR2PlgL8xdSGwosivBbNd25tc9Bx8rHQCiCB0AoggdAKIIHQCiwjoj2ZnYRGFzNTy/Rgibm9xsriHb1U2KcfUvp6QmKLPSASCK0AEgitABIIrQASCqOAvJYk2owewrNbdFnJeSrcZauJczOxPbmc9Z6JqMXWGlA0AUoQNAFKEDQBShA0BUmArJhZfizO02F4oStbkxz84HB7M/29WZ/RKQPngZrHQAiCJ0AIgidACIInQAiApTIVnlaj6Dq1N5YW7csl+jfM21IGucsOHqzObu2flgVxfyclfBx0oHgChCB4AoQgeAKEIHgKgwFZLVgpnG0pqXmqVYZ7C5SqqXgQzmSrauiNXvXd2Gqwu5OnPYByqz0gEgitABIIrQASCK0AEgasnc3Jzf96CBX/OGbTSWEs1d19Wp/CrKOtM4nMTLhcz9WRU3VjoARBE6AEQROgBEEToARIW1kGxu7LHzwV6Y223OXH3Xrw0CzVV/nQ92Zm6WhVgPfRCw0gEgitABIIrQASCK0AEgKqyFZBuxacTOp3KmsSjr18jkou/9DciM5NDVhl1hpQNAFKEDQBShA0AUoQNAVJhmJC+auSHBNn6NtnC+Db9K484Hu7quq5+a6+718peisfObjmQAcIHQASCK0AEgitABICpMHclq/cxcu6e5dt5gXkhsLIYrwZw34nwb5lqfiwwrHQCiCB0AoggdAKIIHQCiirMj2UvPsV81PL/6pJ3P7Pxc53s21+wbkIki5i7k5brBx0oHgChCB9os/cMyv28BIVCcL6+gxaevu87V8e8cHjuanvphIvH9H7z687ffNnRXCDtCB3aXRiJ/13LvF+/+fEUs5va5a6oq11RVPvy397/zP8f/8V//7bnvfe/cuY9M3CTCK0wdyaqAbKcnNjXClUV32V5WVnbsyNiir+vMXO9vQA42N+U6dKViZ6x08P9a72zu2fxwIUcmUqnc1zXV1cbuCMWJ0IF1xWWX7X/6G39546fm/elsJpNIpRLJ1GR6KpFMzXtMTby6IlZeE4/XVN+w0IuyA3t2bXqs+/SZM9ruG+FE6JS6G6+79rldvX90xeX5PxodHx8cGhkdG7/gSRLJVMKyBodGLMtaX1+3vr6utanRdkzDrfXXfvKT9z28mRpzieMt85J25+23vfzcP+UnzuDwyHUNTfd9uauQxLEZHRvf9PiO6xqanu7rn81k1B8tL1829sJA42dv9XLPCLswFZIdRluIbQLnipfSqfNtmBuLMZFMbu/dfTQ9tejzq1bEyr/V010bj9u+/+Unntzz+KNaLmGZnOvsilghOexlZl5e4bztvbv2HRqc90erK1c11NetqaqqiJWvrarKfnMync6uZRLJ1Etj429NvWN71qnpmTs3dLY2N36ta0tZNJr7vsbEQegQOrAsy5rNZJo3dOQvcJaXL+tsb2uor5u3PJxLn9p4fFtnx2wm89LY+ODQ8I9SH/t/7+DQyGR66ls93bnjUcqo6cCaTKfzE2d5+bJne7rfHB3Z2N5WYJdgWTTa1tw0vL//wO7e5eXL1B8dTU81b+iYTKd13jfCidApLfkfjzo5PZ2fOF/p2HDkhcG25qbFXaWhvu7N0ZEnuzar3zydOUPuwApXIdmBX5/996uEueia5b/s2bX+1vrcw/xXVdFI5OCe3vzS7+JMptNNX+rIKL05l0YjQ9/tU19nDbw49FD3Di2XyxIbIO18Ko1vXzDaAmF186dvVBPHsqz7NnepibO6ctXw/j5diWNZ1tqqqiMvDKyuXJX7zunMmU3dPepb6W13NVevXaPrigg+QqeE7Hn8MfXhU/v61A7j1ZWrhvf3a6/1VsRiw/v71dw5mp7a3rtLPab30Uf0XhRBRuiUir+55+5PLP+T3MPJdPrpvu/mHkYjkb1P7FDf1daoLBo9uGdXNBLJfWdwaGQimcw9/PNrrrln/ToTl0YAETql4iudHerD7b271Yd7n9hh9P3silhseH+f+p1N3T3qw20bOyyUhuLs0xHrOhXbUM3V+OELdqxOJJPqC6uOtpaG+rr8iz7d1z+RTFmW1dHWOu8Brqytqnqya/Ojvwu7U9MzA0PDuTfI/qyiYl193cu/+9SFlw5dZ15OZW6Qs/NzQ1cqdsZKpxTZXlht65xnlbGpe8dT+/oTyVQimfri5q6T09Per7uxvU3t33m6r1/96b2NDd4vgeAjdErOZDqtLnN2bt2SX8qZSCazHxnPGRwa1nJ1NeBOTc+8pHygtOlzn41ccomWqyDICJ2So366KhqJzPu6yVZwsSxr38D8n8lyq625SX0ny5Zlt9XWaLkKgozQKTmj4+O5r9uaG/OXOZPp9KnpGds3T2fODGha7LQqjc4vjx9We3ZqPqWtRQiBFaZCssNoC1c0VnBdXUhsSLDNb86eveTii7NfT6bTpzPn+4Nb5/ugg20ITk7fwOI/GKFqqK97VHnvbCKZyq227v/CPfd/4R5LcKe6UGxqqPG5QcBKp8hVxGK5xLEsa0Kp5kQjkXnfJj+Zt8zJ0jVkpyIWU19hJZSGHZQCQqfIXbVypfpQLSEv9C54Rax83u+rSeFRbfz8OPdJTVmGsCB0itxVn6hQH6ovnRYKl3mXP9mWZV13tUKZlXFqZv6FFYoVoVPkopdE1IfqeK01C7Qgl0Wj6+pusX1Tb8vy2qrK3Nf5RWsUtzAVktWCmViLauG3lH8qczu3aRmaWxaNLPSjzvbWl8cPF3iw71z9WdmY2y4x7OVec1jpYB618bhtsbO9d/dC72otgm0UoZZ2Z4QFoYP57X1ih/q58Px5FBoZ+nQ7gonQKV3ObxuVRaM7t25RvzM4NKKrP9C2tCF0SgqhU1rUxcvpC71camtu6mhrUb/zUHePrtxByQpTIblwYiNmNW7yJzMlY21VZe4NrIlkatuFjt+5tevk9IxaVH6ou+etqamvdW2xHZkdtzybyWzr7Fhfd4vz4sU2sVD90YOPdT8/NGxuwLDGXvZgzlcOPlY6pUV9r7pAe5/YYcuFfYcGb2lpU/d1yA14PzU9k9tT2KE8rDY92+Lp3RMn3N4hwoXQKS1qb45tS7yFlEWjtiHHlmUdTU/VtbRv6t6RTZbtvbvUD0mczpx5al//9Q3NmxbY5iGROr/SUbuTLcs6dpzQKXKETmmxrXQKLNBkcye/Y3BwaOT6huY/vbnONnxHPSB/oyvbp9jXK5/GmP7lL389O1vILSG8CJ3SsraqSl2z9BU8JSc7XP3A7l61FJ2lfmx93ivavqPO0LF96PSV1ycKvB+EV3EWkjXOK7BxVe71Uh3U2MAau/Evjh0eu/iii7IPW5ubcpMljqanJpLJwje6aqivW/vCwIOP7yjwpVn+Z0RnM5nB4fPLorbmRvWn4z/+SYF3smheWpA19iu7UmTdzKx0it+5cx+pbz/ZPlyuzksuRHYfqye7Ntt2K5+XrdPHsqx9hwYWGuhz9sMPX3n9dVc3gzAidErCi6+8mvu6IhZraTq/vkgkU4v4FMLG9rY3R0cO7O7NL/RkLS9fNv78IdsaajaTUcee3lR9g/raaujVH54795HbO0HoFOfLK9iMvjamzg/c1vnA88prnEee2XVwz2I+4tBQX9dQXzebyQwMDY8qI9Zbm5vmnTG4qbtHXeZs63xA/enA94cWcQ8IHUKnVPzn4SN3r7sj+3VFLHZT9Q0F1mUuqCwa3djetrG9zfkwWzCtq7tFXQclfz6pdgyiiC2Zm5vz+x4Cza9WUY01y3lPdfn15/+Df7anW8vwYweT6XTzho7cMicaiRx5YcD2WfOP3Z6+EcLmaLwrsV0bg4CaTilSd5uy8trztLMljmVZO7ducUgcFDdCpxSps9CXly8z+t9/fuK0NDWaXlghyAidUpRQqjneNyl3sG9gsK6lXU2c1ZWrNM5aRhhRSC45J6en1c9J1eS9q51IpY6mp1qaGr2sgE5OT2/q7rHVhldXrhre37/QU1AiwhQ6hW+259fgW7FZB86cD574eBBkCzqJVGp0bHwimcrl0VP7+mvi1Z3trevr6gq/tGVZJ6en+wYG1c2Ls7KJs9DICy9N5BorqV7GYmgsFYeuNuxKmEIHWqirjxWx8vs2dy30XnUimUokUyti5Z3tba1N82xAbDM6Pj44NDL68Sp1VktTI6+qkEXolBx1L/NT0zMX3AHm1PTM9md2bX9m14pYeUUstraqsiwaXVNVmc2gRDI1m8lMpqcWSq5oJLJz6xYqx8ghdEqLbS9zV7IJ5aqFr6WpcefWLbYl0oe//e2Gf3jk4Dd3L/QsFDdCp7RMLBwZy8uXNdTX1cTjtfHq2UxmcGh4YGj4FzPvLe5CLU2N2zofyC9Fz7z/fuumv88fsoPSEdaOZL+G5roqJGusSi66hHn3ujv6v7Ez97DpSw+on35YXr6sNh6viVfXxqvnfa/qpbHx0bFx9YNazlZXrmptbmqor3P7zpfGzm9zf+zmuopdnSrsWOkUuVtv+oz68Eepn0Ujkdp4dU28upBoyH6kc+fWLZPp9GR66nQmM5meyhZxMmfORCOR7CjC2nj1ilhsoeQCVIROkftcbU3u69lMZvz5Q4vYkrwsGq2Nxwuf9QU4oCO5mF1z1VVXLF2ae1gWjS4icQC9CJ1idmvNZy58kGVZljWZTj/7z8/d++BDWq77m7Nnn/v3/9ByKhSfMBWSC+9Idnhi/nODOUVBrIH1rzd3JZKp3B4MtlOtue2Oz99x+1233169ds0FT3Xs+PGxH//kyBv/PfraWP6pxIaEaNw9UWM929V1NZ45gKjplJb3Pvhg2ZVXqt8Z+a/XHI6fef/9bx84+O0DBy3LWl6+7IqlSy+7tOyPr7ziyqVLL77oD7LHfPCr/3373Xffmnpn9kL7FAMWoVMKfj07m0imjvz0jcM/fePY8eOL/v/kL2beW3TbDpBD6BS/q2+u9/sWgPMoJAMQFdZCso25gp+54Qah2PVNrH/Xr4M10tieXtyTLljpABBF6AAQRegAEEXoABAV1kJyQLqKzW23FpDmV+cLhbEaaq5i7Xwhjb9+MP9gC8dKB4AoQgeAKEIHgChCB4CoMBWSHYhtxuZ8XXONwho7g8Vq8ObGjzhfSKyJ3MttmPuNgo+VDgBRhA4AUYQOAFGEDgBRYSok65pRILZDnqvraiRWOHe+bkCmVYhttajxuUVWObZhpQNAFKEDQBShA0AUoQNAVFh3g/BS0PVr17eA9O96YW4+gxd+Tbl25uofofOFiqyuzEoHgChCB4AoQgeAKEIHgKiwFpI1ltZcFWXFdm5zxa+2aVfXNdeCrLH66+Vv38s/Qi9/dKGrK7PSASCK0AEgitABIIrQASAqrIVkv3Z9M1ej9VKUdSZW/jS3jZ+Xg8UmbPjVJh46rHQAiCJ0AIgidACIInQAiAprIdmZq6Kdlzqrl4ZdjV3UrmgcAm2uCB3MLluxdySKGysdAKIIHQCiCB0AoggdAKLCVEguvPamsffXxkvrs8bqr/NPNfZnm5sL4aVi7demhmJ7/hV3+zIrHQCiCB0AoggdAKIIHQCilszNzfl9D4VyqK6JlWydiW0g54W5SRdi19X4VoAzjdVfc/+uQtfczEoHgChCB4AoQgeAKEIHgKgwFZJVoSitealZujqzxmkVzjSOiPZyG8786kg2t+Ojl4MDiJUOAFGEDgBRhA4AUYQOAFFhLSQ701hJNbe7npeDNV7IRqyp2q/xFM4XshEbMSHWkB0ErHQAiCJ0AIgidACIInQAiCrOQrJGYq3Pfo0Q9nIbzs91JnbPYtOI/eopDx1WOgBEEToARBE6AEQROgBEhWmzPZn2UFvRTqySao5f1W5Xe+85P9f5NszxchteisGMtgAAbQgdAKIIHQCiCB0AosJUSFaZK466+qmNuW5XjTVLcwVO5wu5OpW5LfFc3YbGu3J15uJuUGalA0AUoQNAFKEDQBShA0BUWAvJNmKtwGJjj13dhrnnerlnV7++lwuZK9iL/Vk5C3vl2IaVDgBRhA4AUYQOAFGEDgBRRVJINsfLwF2NncFic381TiMW6yp2Zq5EbW6OtatThQ4rHQCiCB0AoggdAKIIHQCiKCS7IzZzQGyTPy+34deZNdZo/dqnsLinIDtjpQNAFKEDQBShA0AUoQNAVJEUks1V2rw0GXu5kKuDnTcI9DJ/w8sEZS/lXo2N4Ob6s50P1tieHpB3FXRhpQNAFKEDQBShA0AUoQNAVFgLyeY6ZV1dV+OGas4Ha6RxxoLzmV0918vBzs8V6znW+PdbZJVjG1Y6AEQROgBEhSl0rl650u9bAOBVmELnqw9uJHeAsFsyNzfn9z0AKCFhWukAKAKEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUYQOAFGEDgBRhA4AUf8Hvt3RbjK8AWoAAAAASUVORK5CYII=" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": {} + }, + { + "name": "CreateWaAccount", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/CreateWaAccount", + "description": "Create new WhatsApp account", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/CreateWaAccount\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "message": "WhatsApp account added successfully.", + "phone_id": "14585" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": {} + }, + { + "name": "DeleteAccount", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/DeleteAccount/{number_id}", + "description": "It completely deletes the WhatsApp account, this includes statistics data.", + "method": "DELETE", + "required_parameters": [ + { + "name": "number_id", + "type": "STRING", + "description": "", + "default": "14585" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/DeleteAccount/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "message": "Account has been deleted successfully" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "GetMessage", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/GetMessage/{message_id}", + "description": "contains the sending information of a message", + "method": "GET", + "required_parameters": [ + { + "name": "message_id", + "type": "string", + "description": "", + "default": "145861670527682" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/GetMessage/{message_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "data": [ + { + "message_id": "145861670527682", + "number_id": "14586", + "sender_phone": "919677713222", + "to_phone": "9196737135629", + "date": "2022-12-08 19:28:02", + "sendDate": "2022-12-08 19:28:02", + "updateDate": "2022-12-08 19:28:25", + "status": "sended" + } + ] + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "MessageQueue", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/MessageQueue/{number_id}", + "description": "Returns the message queue for the phone number", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/MessageQueue/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "total_records": 0, + "message": "Message queue is empty." + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "SendMessage", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/SendMessage/{number_id}", + "description": "Function used to send messages. Recipient phone number must contain country code", + "method": "POST", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/SendMessage/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "message": "Message queued successfully.", + "message_id": "145861670527682" + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "MessageHistory", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/MessageHistory/{number_id}", + "description": "Returns the message HISTORY of the phone number", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/MessageHistory/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "total_records": 1, + "data": [ + { + "message_id": "145861670527682", + "number_id": "14586", + "sender_phone": "919677713222", + "to_phone": "9196737135629", + "date": "2022-12-08 19:28:02", + "sendDate": "2022-12-08 19:28:02", + "updateDate": "2022-12-08 19:28:25", + "status": "sended" + } + ] + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "GetStatus", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/GetStatus/{number_id}", + "description": "Check sync status of Whatsapp account", + "method": "GET", + "required_parameters": [ + { + "name": "number_id", + "type": "STRING", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/GetStatus/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "data": [ + { + "number_id": "14586", + "name": "ACCOUNT_NAME", + "phone_number": "919677713222", + "status": "not synced" + } + ] + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "AccountList", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/AccountList", + "description": "Returns a list of all WhatsApp accounts added in your account", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/AccountList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "status": "success", + "total_records": 1, + "data": [ + { + "number_id": "14586", + "name": "ACCOUNT_NAME", + "phone_number": "919677713222", + "status": "synced" + } + ] + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "CreateWaAccount", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/CreateWaAccount", + "description": "Create new WhatsApp account", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/CreateWaAccount\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/CreateWaAccount\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "SendMessage", + "url": "https://intobo-whatsapp-api1.p.rapidapi.com/SendMessage/14586", + "description": "Function used to send messages. Recipient phone number must contain country code", + "method": "POST", + "required_parameters": [ + { + "name": "number_id", + "type": "string", + "description": "", + "default": "14586" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/SendMessage/14586\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://intobo-whatsapp-api1.p.rapidapi.com/SendMessage/{number_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"intobo-whatsapp-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/intobo_whatsapp_api/api.py b/toolbench/toolenv/tools/Communication/intobo_whatsapp_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6bb29fecb8a7e2a62ef40be8a1cb94da5f8168de --- /dev/null +++ b/toolbench/toolenv/tools/Communication/intobo_whatsapp_api/api.py @@ -0,0 +1,197 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def startinstance(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Start instance node" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/startinstance/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def stopinstance(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Stop instance node" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/stopinstance/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def capturescreenshot(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Capture instance screenshot" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/capturescreenshot/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getqrcode(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get QR code from instance" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/getqrcode/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getmessage(message_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "contains the sending information of a message" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/getmessage/{message_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messagequeue(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the message queue for the phone number" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/messagequeue/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messagehistory(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the message HISTORY of the phone number" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/messagehistory/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getstatus(number_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check sync status of Whatsapp account" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/getstatus/{number_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def accountlist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a list of all WhatsApp accounts added in your account" + + """ + url = f"https://intobo-whatsapp-api1.p.rapidapi.com/accountlist" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "intobo-whatsapp-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/iss_location.json b/toolbench/toolenv/tools/Communication/iss_location.json new file mode 100644 index 0000000000000000000000000000000000000000..47612144c4944ada321862be9c96be2a021456c6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/iss_location.json @@ -0,0 +1,24 @@ +{ + "tool_name":"ISS Location", + "tool_description":"Sends geographical location of NASA", + "title":"ISS Location", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/ClumsyClover/api/iss-location/", + "host":"iss-location.p.rapidapi.com", + "api_list":[ + { + "name":"get", + "url":"https://iss-location.p.rapidapi.com/get", + "description":"gets you the data", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://iss-location.p.rapidapi.com/get\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"iss-location.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/iss_location/api.py b/toolbench/toolenv/tools/Communication/iss_location/api.py new file mode 100644 index 0000000000000000000000000000000000000000..00cab75b23b6b20aa15f528a7a6d037d33d1a0ce --- /dev/null +++ b/toolbench/toolenv/tools/Communication/iss_location/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "gets you the data" + + """ + url = f"https://iss-location.p.rapidapi.com/get" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "iss-location.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/jeannie.json b/toolbench/toolenv/tools/Communication/jeannie.json new file mode 100644 index 0000000000000000000000000000000000000000..776f0ec0b4ec6e5a142078c438b99df90e22ed1c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/jeannie.json @@ -0,0 +1,46 @@ +{ + "product_id": "53aa324be4b051a76d23f20a", + "tool_description": "Jeannie (Voice Actions) is a virtual assistant with over three million downloads, now also available via API.\r\n\r\nThe objective of this service is to provide you and your robot with the smartest response to any natural language question, just like Siri. \r\nJeannie API provides an interface to the standard functions that users demand of modern voice assistants, like chatting, controlling your devices, looking up information, creating messages and much much more.\r\nYou can extend this API to your own needs.\r\n\r\nIt also provides useful metadata such as sentence analysis and entity extraction that goes beyond simple chatting and voice commands.\r\n\r\nSeveral million users have already been in contact with this API: http://www.voice-actions.com/\r\n\r\nExamples:\r\nhttps://weannie.pannous.com/api?input=hi&login=test-user\r\nhttps://ask.pannous.com/?input=hi\r\n\r\nComplete documentation:\r\nhttps://docs.google.com/document/d/1dVG_B5Sc2x-fi1pN6iJJjfF1bJY6KEFzUqjOb8NsntI/edit", + "home_url": "https://rapidapi.com/pannous/api/jeannie/", + "name": "Jeannie", + "title": "Jeannie", + "pricing": "FREEMIUM", + "tool_name": "Jeannie", + "score": null, + "host": "jeannie.p.rapidapi.com", + "api_list": [ + { + "name": "teach", + "url": "https://jeannie.p.rapidapi.com/teach", + "description": "Teach your bot new actions and responses", + "method": "POST", + "required_parameters": [ + { + "name": "request", + "type": "STRING", + "description": "Question or command to your bot", + "default": "" + }, + { + "name": "response", + "type": "STRING", + "description": "Verbal response to request", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "action", + "type": "STRING", + "description": "Action performed if request is matching. May be url, intent, custom json etc", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://jeannie.p.rapidapi.com/teach\"\nquerystring = {\"request\": \"\", \"response\": \"\", \"action\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"jeannie.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://jeannie.p.rapidapi.com/teach\"\nquerystring = {\"request\": \"\", \"response\": \"\", \"action\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"jeannie.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/jeannie/api.py b/toolbench/toolenv/tools/Communication/jeannie/api.py new file mode 100644 index 0000000000000000000000000000000000000000..585e07fd24f22727c88ce47fe48e24c91a22634f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/jeannie/api.py @@ -0,0 +1,76 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def text(input: str, locale: str='en', location: str='50.3,9.0', clientfeatures: str='all', timezone: str='+120', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Plaintext response" + input: Just about any phrase, query or command in any language + locale: Language you want to communicate in. 30 languages supported! + location: Append longitude and latitude to get more location aware responses. Otherwise the IP will used to guess the location. + clientfeatures: see documentation + timezone: offset to CET + + """ + url = f"https://jeannie.p.rapidapi.com/text/" + querystring = {'input': input, } + if locale: + querystring['locale'] = locale + if location: + querystring['location'] = location + if clientfeatures: + querystring['clientFeatures'] = clientfeatures + if timezone: + querystring['timeZone'] = timezone + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "jeannie.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def json(input: str, timezone: str='+120', locale: str='en', location: str='53.0,9.0', page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Http request" + input: Any free text, question or command + timezone: Specify the timezone offset of your client compared to UTC in minutes. E.g. +120 for Germany + locale: Specify language (de, en, fr, en_US, ...) optional: auto-detected if omitted + location: Append longitude and latitude to get more location aware responses. Otherwise the IP will used to guess the location. + page: Sometimes you may page through lists of links, images, pages etc + + """ + url = f"https://jeannie.p.rapidapi.com/api" + querystring = {'input': input, } + if timezone: + querystring['timeZone'] = timezone + if locale: + querystring['locale'] = locale + if location: + querystring['location'] = location + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "jeannie.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/kampung_baru_padusunan.json b/toolbench/toolenv/tools/Communication/kampung_baru_padusunan.json new file mode 100644 index 0000000000000000000000000000000000000000..7b88d51057819a12a7ce8d94774ca3a2f0839bea --- /dev/null +++ b/toolbench/toolenv/tools/Communication/kampung_baru_padusunan.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_1b2db094-9223-4e39-ab53-e4580ae71787", + "tool_description": "sebuah desa yang terletak di Sumatera Barat, Pariaman Timur", + "home_url": "https://rapidapi.com/kpbarupadusunan2019/api/kampung-baru-padusunan/", + "name": "Kampung Baru Padusunan", + "title": "Kampung Baru Padusunan", + "pricing": "FREE", + "tool_name": "Kampung Baru Padusunan", + "score": null, + "host": "kampung-baru-padusunan.p.rapidapi.com", + "api_list": [ + { + "name": "http://kampungbarupadusunan.desa.id/", + "url": "https://kampung-baru-padusunan.p.rapidapi.com/mapdesakampungbarupadusunan", + "description": "a village In Indonesia", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kampung-baru-padusunan.p.rapidapi.com/mapdesakampungbarupadusunan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kampung-baru-padusunan.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kampung-baru-padusunan.p.rapidapi.com/mapdesakampungbarupadusunan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kampung-baru-padusunan.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/kiara_content_detection_v1.json b/toolbench/toolenv/tools/Communication/kiara_content_detection_v1.json new file mode 100644 index 0000000000000000000000000000000000000000..85710ef819df536ccc4e8c7841a67b0ed4a8bedf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/kiara_content_detection_v1.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_a2f1b785-fdf7-4542-aeb1-a015f9a9e50c", + "tool_description": "A powerful AI algorithm API when given text content detects if the content has strong words or not.", + "home_url": "https://rapidapi.com/kiara-inc-kiara-inc-default/api/kiara-content-detection-v1/", + "name": "Kiara Content Detection v1", + "title": "Kiara Content Detection v1", + "pricing": "FREEMIUM", + "tool_name": "Kiara Content Detection v1", + "score": null, + "host": "kiara-content-detection-v1.p.rapidapi.com", + "api_list": [ + { + "name": "kiara.spam", + "url": "https://kiara-content-detection-v1.p.rapidapi.com/v1/content-detect", + "description": "Given text content, gives return a content entered if not rude with a status 'Successful' and returns a status 'Unsucessful' only for rude words", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kiara-content-detection-v1.p.rapidapi.com/v1/content-detect\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiara-content-detection-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kiara-content-detection-v1.p.rapidapi.com/v1/content-detect\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiara-content-detection-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/kiara_spam_detector_v1.json b/toolbench/toolenv/tools/Communication/kiara_spam_detector_v1.json new file mode 100644 index 0000000000000000000000000000000000000000..92ca20e5b34b9a7bf597285136f88ae0dc6755c5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/kiara_spam_detector_v1.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_72a3b859-a854-457f-9847-d83847b86825", + "tool_description": "Kiara Spam Detector classifies a given text and predicts if the text is spam or not.", + "home_url": "https://rapidapi.com/kiara-inc-kiara-inc-default/api/kiara-spam-detector-v1/", + "name": "Kiara Spam Detector v1", + "title": "Kiara Spam Detector v1", + "pricing": "FREEMIUM", + "tool_name": "Kiara Spam Detector v1", + "score": { + "avgServiceLevel": 100, + "avgLatency": 407, + "avgSuccessRate": 55, + "popularityScore": 8.9, + "__typename": "Score" + }, + "host": "kiara-spam-detector-v1.p.rapidapi.com", + "api_list": [ + { + "name": "predict v1", + "url": "https://kiara-spam-detector-v1.p.rapidapi.com/predict", + "description": "When given a text, the end result is a number in [0, 1] where 1 is spam and 0 is no spam", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kiara-spam-detector-v1.p.rapidapi.com/predict\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiara-spam-detector-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kiara-spam-detector-v1.p.rapidapi.com/predict\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiara-spam-detector-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/kiara_translate_v2.json b/toolbench/toolenv/tools/Communication/kiara_translate_v2.json new file mode 100644 index 0000000000000000000000000000000000000000..7754130e9e3fcbe3a19aeff6644b1f36053592ba --- /dev/null +++ b/toolbench/toolenv/tools/Communication/kiara_translate_v2.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_afaadd3c-24e0-449d-90f5-1402aaf684d3", + "tool_description": "Kiara Translation v.2 is a high quality translation API. This same up powers our trusted partners. Try out more features in the demo https://api.kiara-demo.app/ ", + "home_url": "https://rapidapi.com/kiara-inc-kiara-inc-default/api/kiara-translate-v2/", + "name": "Kiara Translate v2", + "title": "Kiara Translate v2", + "pricing": "FREEMIUM", + "tool_name": "Kiara Translate v2", + "score": { + "avgServiceLevel": 100, + "avgLatency": 702, + "avgSuccessRate": 100, + "popularityScore": 8.4, + "__typename": "Score" + }, + "host": "kiara-translate-v2.p.rapidapi.com", + "api_list": [ + { + "name": "kiara.translate", + "url": "https://kiara-translate-v2.p.rapidapi.com/v2/translate", + "description": "Kiara Translate v.2 comes as an upgrade of Kiara Translate API.\n input text to a target language. \nIt is build up as integration of powerful machine translation . \nThe API takes in an input text from desired source language and translate it to a desired target language entered by the user. \nThe API supports more than 110 languages as listed here: \nCodes: Language = BG: BULGARIAN,CS: CZECH, DA: DANISH, DE: GERMAN,EL: GREEK,EN: ENGLISH, ES: SPANISH, ET: ESTONIAN, FI: FINNISH, FR: FRENCH, HU: HUNGARIAN, IT: ITALIAN, JA: JAPANESE, LT: LITHUANIAN, LV: LATVIAN, NL: DUTCH, PL: POLISH, PT: PORTUGUESE, RO: ROMANIAN, RU: RUSSIAN, SK: SLOVAK, SL: SLOVENIAN, SV: SWEDISH, ZH: CHINESE, EN-GB: ENGLISH (BRITISH), EN-US: ENGLISH (AMERICAN), PT-BR: PORTUGUESE (BRAZILIAN), PT-PT: PORTUGUESE (EUROPEAN), AF: AFRIKAANS, SQ: ALBANIAN, AM: AMHARIC, AR: ARABIC, HY: ARMENIAN, AZ: AZERBAIJANI, EU: BASQUE, BE: BELARUSIAN, BN: BENGALI, BS: BOSNIAN, CA: CATALAN, CEB: CEBUANO, NY: CHICHEWA, ZH-CN: CHINESE (SIMPLIFIED), ZH-TW: CHINESE (TRADITIONAL), CO: CORSICAN, HR: CROATIAN, EO: ESPERANTO, TL: FILIPINO, FY: FRISIAN, GL: GALICIAN, KA: GEORGIAN, GU: GUJARATI, HT: HAITIAN CREOLE, HA: HAUSA, HAW: HAWAIIAN, IW: HEBREW, HE: HEBREW, HI: HINDI, HMN: HMONG, IS: ICELANDIC, IG: IGBO, ID: INDONESIAN, GA: IRISH, JW: JAVANESE, KN: KANNADA, KK: KAZAKH, KM: KHMER, KO: KOREAN, KU: KURDISH (KURMANJI), KY: KYRGYZ, LO: LAO, LA: LATIN, LB: LUXEMBOURGISH, MK: MACEDONIAN, MG: MALAGASY, MS: MALAY, ML: MALAYALAM, MT: MALTESE, MI: MAORI, MR: MARATHI, MN: MONGOLIAN, MY: MYANMAR (BURMESE), NE: NEPALI, NO: NORWEGIAN, OR: ODIA, PS: PASHTO, FA: PERSIAN, PA: PUNJABI, SM: SAMOAN, GD: SCOTS GAELIC, SR: SERBIAN, ST: SESOTHO, SN: SHONA, SD: SINDHI, SI: SINHALA, SO: SOMALI, SU: SUNDANESE, SW: SWAHILI, TG: TAJIK, TA: TAMIL, TE: TELUGU, TH: THAI, TR: TURKISH, UK: UKRAINIAN, UR: URDU, UG: UYGHUR, UZ: UZBEK, VI: VIETNAMESE, CY: WELSH, XH: XHOSA, YI: YIDDISH, YO: YORUBA, ZU: ZULU", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kiara-translate-v2.p.rapidapi.com/v2/translate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiara-translate-v2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kiara-translate-v2.p.rapidapi.com/v2/translate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiara-translate-v2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/kiss_my_world.json b/toolbench/toolenv/tools/Communication/kiss_my_world.json new file mode 100644 index 0000000000000000000000000000000000000000..154e660c1fb01a6e89b178091aeb5f68d38aa5ba --- /dev/null +++ b/toolbench/toolenv/tools/Communication/kiss_my_world.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_e4d83180-723d-41f5-94a7-f841f4532a09", + "tool_description": "kiss my world community", + "home_url": "https://rapidapi.com/kissmyworlds-B6Z3vCMaCzQ/api/kiss-my-world/", + "name": "kiss my world", + "title": "kiss my world", + "pricing": "FREE", + "tool_name": "kiss my world", + "score": null, + "host": "kiss-my-world.p.rapidapi.com", + "api_list": [ + { + "name": "kiss my world", + "url": "https://kiss-my-world.p.rapidapi.com/", + "description": "community", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://kiss-my-world.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiss-my-world.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://kiss-my-world.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"kiss-my-world.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/koreanslangsearch.json b/toolbench/toolenv/tools/Communication/koreanslangsearch.json new file mode 100644 index 0000000000000000000000000000000000000000..edb5568c41d539842cc4fff3077c7804f8b265fe --- /dev/null +++ b/toolbench/toolenv/tools/Communication/koreanslangsearch.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_b4e8f19e-ab1e-4dfc-8b6e-4039653ba63a", + "tool_description": "Korean Slang(Profanity) Search API\n\ud55c\uad6d\uc5b4 \uc695\uc124(\ube44\uc18d\uc5b4) \uac80\uc0c9 API\nYou can use chatting or a user response platform", + "home_url": "https://rapidapi.com/hadxit/api/koreanslangsearch/", + "name": "koreanslangsearch", + "title": "koreanslangsearch", + "pricing": "FREEMIUM", + "tool_name": "koreanslangsearch", + "score": null, + "host": "koreanslangsearch.p.rapidapi.com", + "api_list": [ + { + "name": "chkKoreanSlang", + "url": "https://koreanslangsearch.p.rapidapi.com/chkKoreanSlang", + "description": "Please pass \"content\" parameter in korean slang", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://koreanslangsearch.p.rapidapi.com/chkKoreanSlang\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"koreanslangsearch.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://koreanslangsearch.p.rapidapi.com/chkKoreanSlang\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"koreanslangsearch.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/language_detection/api.py b/toolbench/toolenv/tools/Communication/language_detection/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c76c866d4c72dc54ed0cc2c9b929b2a251b8aca5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/language_detection/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def language_detection(text: str, mode: str='json', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Detects the language of a piece of text" + text: The text encoded with UTF-8. A sample of text. Longer text will give a more accurate result, but only the first 1000 characters are considered. + mode: The response mode desired. Default: "iso2", other values: "json", "xml", "iso3" + + """ + url = f"https://langdetect.p.rapidapi.com/language" + querystring = {'text': text, } + if mode: + querystring['mode'] = mode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "langdetect.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/languagetool.json b/toolbench/toolenv/tools/Communication/languagetool.json new file mode 100644 index 0000000000000000000000000000000000000000..acce27e74cf7ea2b5f01767062ff9d1079771fda --- /dev/null +++ b/toolbench/toolenv/tools/Communication/languagetool.json @@ -0,0 +1,414 @@ +{ + "product_id": "53aa3796e4b07e1f4ebea52c", + "tool_description": "Style and grammar checking / proofreading for more than 25 languages, including English, French, Polish, Spanish and German. Based on languagetool.org.", + "home_url": "https://rapidapi.com/dnaber/api/languagetool/", + "name": "LanguageTool", + "title": "LanguageTool", + "pricing": "FREEMIUM", + "tool_name": "LanguageTool", + "score": { + "avgServiceLevel": 100, + "avgLatency": 389, + "avgSuccessRate": 12, + "popularityScore": 2.5, + "__typename": "Score" + }, + "host": "dnaber-languagetool.p.rapidapi.com", + "api_list": [ + { + "name": "List of Languages", + "url": "https://dnaber-languagetool.p.rapidapi.com/v2/languages", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dnaber-languagetool.p.rapidapi.com/v2/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dnaber-languagetool.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dnaber-languagetool.p.rapidapi.com/v2/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dnaber-languagetool.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": [ + { + "name": "Arabic", + "code": "ar", + "longCode": "ar" + }, + { + "name": "Asturian", + "code": "ast", + "longCode": "ast-ES" + }, + { + "name": "Belarusian", + "code": "be", + "longCode": "be-BY" + }, + { + "name": "Breton", + "code": "br", + "longCode": "br-FR" + }, + { + "name": "Catalan", + "code": "ca", + "longCode": "ca-ES" + }, + { + "name": "Catalan (Valencian)", + "code": "ca", + "longCode": "ca-ES-valencia" + }, + { + "name": "Catalan (Balearic)", + "code": "ca", + "longCode": "ca-ES-balear" + }, + { + "name": "Danish", + "code": "da", + "longCode": "da-DK" + }, + { + "name": "German", + "code": "de", + "longCode": "de" + }, + { + "name": "German (Germany)", + "code": "de", + "longCode": "de-DE" + }, + { + "name": "German (Austria)", + "code": "de", + "longCode": "de-AT" + }, + { + "name": "German (Swiss)", + "code": "de", + "longCode": "de-CH" + }, + { + "name": "Simple German", + "code": "de-DE-x-simple-language", + "longCode": "de-DE-x-simple-language" + }, + { + "name": "Greek", + "code": "el", + "longCode": "el-GR" + }, + { + "name": "English", + "code": "en", + "longCode": "en" + }, + { + "name": "English (US)", + "code": "en", + "longCode": "en-US" + }, + { + "name": "English (GB)", + "code": "en", + "longCode": "en-GB" + }, + { + "name": "English (Australian)", + "code": "en", + "longCode": "en-AU" + }, + { + "name": "English (Canadian)", + "code": "en", + "longCode": "en-CA" + }, + { + "name": "English (New Zealand)", + "code": "en", + "longCode": "en-NZ" + }, + { + "name": "English (South African)", + "code": "en", + "longCode": "en-ZA" + }, + { + "name": "Esperanto", + "code": "eo", + "longCode": "eo" + }, + { + "name": "Spanish", + "code": "es", + "longCode": "es" + }, + { + "name": "Spanish (voseo)", + "code": "es", + "longCode": "es-AR" + }, + { + "name": "Persian", + "code": "fa", + "longCode": "fa" + }, + { + "name": "French", + "code": "fr", + "longCode": "fr" + }, + { + "name": "Irish", + "code": "ga", + "longCode": "ga-IE" + }, + { + "name": "Galician", + "code": "gl", + "longCode": "gl-ES" + }, + { + "name": "Italian", + "code": "it", + "longCode": "it" + }, + { + "name": "Japanese", + "code": "ja", + "longCode": "ja-JP" + }, + { + "name": "Khmer", + "code": "km", + "longCode": "km-KH" + }, + { + "name": "Dutch", + "code": "nl", + "longCode": "nl" + }, + { + "name": "Dutch (Belgium)", + "code": "nl", + "longCode": "nl-BE" + }, + { + "name": "Polish", + "code": "pl", + "longCode": "pl-PL" + }, + { + "name": "Portuguese", + "code": "pt", + "longCode": "pt" + }, + { + "name": "Portuguese (Portugal)", + "code": "pt", + "longCode": "pt-PT" + }, + { + "name": "Portuguese (Brazil)", + "code": "pt", + "longCode": "pt-BR" + }, + { + "name": "Portuguese (Angola preAO)", + "code": "pt", + "longCode": "pt-AO" + }, + { + "name": "Portuguese (Mo\u00e7ambique preAO)", + "code": "pt", + "longCode": "pt-MZ" + }, + { + "name": "Romanian", + "code": "ro", + "longCode": "ro-RO" + }, + { + "name": "Russian", + "code": "ru", + "longCode": "ru-RU" + }, + { + "name": "Slovak", + "code": "sk", + "longCode": "sk-SK" + }, + { + "name": "Slovenian", + "code": "sl", + "longCode": "sl-SI" + }, + { + "name": "Swedish", + "code": "sv", + "longCode": "sv" + }, + { + "name": "Tamil", + "code": "ta", + "longCode": "ta-IN" + }, + { + "name": "Tagalog", + "code": "tl", + "longCode": "tl-PH" + }, + { + "name": "Ukrainian", + "code": "uk", + "longCode": "uk-UA" + }, + { + "name": "Chinese", + "code": "zh", + "longCode": "zh-CN" + }, + { + "name": "English", + "code": "en", + "longCode": "en" + }, + { + "name": "English (US)", + "code": "en", + "longCode": "en-US" + }, + { + "name": "English (Australian)", + "code": "en", + "longCode": "en-AU" + }, + { + "name": "English (GB)", + "code": "en", + "longCode": "en-GB" + }, + { + "name": "English (Canadian)", + "code": "en", + "longCode": "en-CA" + }, + { + "name": "English (New Zealand)", + "code": "en", + "longCode": "en-NZ" + }, + { + "name": "English (South African)", + "code": "en", + "longCode": "en-ZA" + }, + { + "name": "Portuguese (Angola preAO)", + "code": "pt", + "longCode": "pt-AO" + }, + { + "name": "Portuguese (Brazil)", + "code": "pt", + "longCode": "pt-BR" + }, + { + "name": "Portuguese (Mo\u00e7ambique preAO)", + "code": "pt", + "longCode": "pt-MZ" + }, + { + "name": "Portuguese (Portugal)", + "code": "pt", + "longCode": "pt-PT" + }, + { + "name": "French", + "code": "fr", + "longCode": "fr" + }, + { + "name": "Spanish", + "code": "es", + "longCode": "es" + }, + { + "name": "Dutch", + "code": "nl", + "longCode": "nl" + }, + { + "name": "German", + "code": "de", + "longCode": "de" + }, + { + "name": "German (Germany)", + "code": "de", + "longCode": "de-DE" + }, + { + "name": "German (Austria)", + "code": "de", + "longCode": "de-AT" + }, + { + "name": "German (Swiss)", + "code": "de", + "longCode": "de-CH" + }, + { + "name": "Norwegian (Bokm\u00e5l)", + "code": "nb", + "longCode": "nb" + }, + { + "name": "Norwegian (Bokm\u00e5l)", + "code": "no", + "longCode": "no" + }, + { + "name": "Dutch", + "code": "nl", + "longCode": "nl-NL" + }, + { + "name": "Simple German", + "code": "de-DE-x-simple-language", + "longCode": "de-DE-x-simple-language-DE" + }, + { + "name": "Spanish", + "code": "es", + "longCode": "es-ES" + }, + { + "name": "Italian", + "code": "it", + "longCode": "it-IT" + }, + { + "name": "Persian", + "code": "fa", + "longCode": "fa-IR" + }, + { + "name": "Swedish", + "code": "sv", + "longCode": "sv-SE" + }, + { + "name": "German", + "code": "de", + "longCode": "de-LU" + }, + { + "name": "French", + "code": "fr", + "longCode": "fr-FR" + } + ], + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "languagetool" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/languagetool/api.py b/toolbench/toolenv/tools/Communication/languagetool/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5e0d4e4f85e8861159b0f090e4f6032a0fadc4b8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/languagetool/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def list_of_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://dnaber-languagetool.p.rapidapi.com/v2/languages" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "dnaber-languagetool.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/line_messaging.json b/toolbench/toolenv/tools/Communication/line_messaging.json new file mode 100644 index 0000000000000000000000000000000000000000..8a3f52edc55e4a6e6ad30a4923b64f32b6c93db3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/line_messaging.json @@ -0,0 +1,342 @@ +{ + "product_id": "api_1d2b876e-ba55-46d6-bd85-c387554b8d7f", + "tool_description": "LINE Messaging API lets you develop two-way communication between your service and LINE users. Push and reply messages Push messages are messages that your bot can send to users at any time. Reply messages are messages that your bot sends in response to users' messages. 1-on-1 and group chats Send messages not only to users who have added your bot as a friend but also in group chats that your bot has been added to.", + "home_url": "https://rapidapi.com/devrel_line/api/line-messaging1/", + "name": "LINE Messaging", + "title": "LINE Messaging", + "pricing": "FREE", + "tool_name": "LINE Messaging", + "score": { + "avgServiceLevel": 100, + "avgLatency": 139, + "avgSuccessRate": 0, + "popularityScore": 0.2, + "__typename": "Score" + }, + "host": "line-messaging1.p.rapidapi.com", + "api_list": [ + { + "name": "Get content", + "url": "https://line-messaging1.p.rapidapi.com/bot/message/{messageId}/content", + "description": "Gets image, video, and audio data sent by users.", + "method": "GET", + "required_parameters": [ + { + "name": "messageId", + "type": "STRING", + "description": "Message ID", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/message/{messageId}/content\"\nquerystring = {\"messageId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/message/{messageId}/content\"\nquerystring = {\"messageId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Get rich menu ID of user", + "url": "https://line-messaging1.p.rapidapi.com/bot/user/{userId}/richmenu", + "description": "Gets the ID of the rich menu linked to a user.", + "method": "GET", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "User ID. Found in the source object of webhook event objects. Do not use the LINE ID used in LINE.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/{userId}/richmenu\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/{userId}/richmenu\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Download rich menu image", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}/content", + "description": "Downloads an image associated with a rich menu.", + "method": "GET", + "required_parameters": [ + { + "name": "richMenuId", + "type": "STRING", + "description": "ID of the rich menu with the image to be downloaded", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}/content\"\nquerystring = {\"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}/content\"\nquerystring = {\"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Get rich menu list", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu/list", + "description": "Gets a list of all uploaded rich menus.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Get rich menu", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}", + "description": "Gets a rich menu via a rich menu ID.", + "method": "GET", + "required_parameters": [ + { + "name": "richMenuId", + "type": "STRING", + "description": "ID of an uploaded rich menu", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}\"\nquerystring = {\"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}\"\nquerystring = {\"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Get profile", + "url": "https://line-messaging1.p.rapidapi.com/bot/profile/{userId}", + "description": "Gets user profile information.", + "method": "GET", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "User ID that is returned in a webhook event object. Do not use the LINE ID found on LINE.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/profile/{userId}\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/profile/{userId}\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Get default rich menu ID", + "url": "https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu", + "description": "Gets the ID of the default rich menu set with the Messaging API.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Get number of sent reply messages", + "url": "https://line-messaging1.p.rapidapi.com/bot/message/delivery/reply", + "description": "Gets the number of messages sent with the /bot/message/reply endpoint.", + "method": "GET", + "required_parameters": [ + { + "name": "date\t", + "type": "STRING", + "description": "Date the messages were sent. Format: yyyyMMdd (Example: 20191231) Timezone: UTC+9", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/message/delivery/reply\"\nquerystring = {\"date\\t\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/message/delivery/reply\"\nquerystring = {\"date\\t\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Authorization header required. Must follow the scheme, 'Authorization: Bearer '" + } + }, + { + "name": "Issue channel access token", + "url": "https://line-messaging1.p.rapidapi.com/oauth/accessToken", + "description": "Issues a short-lived channel access token.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "grant_type", + "type": "STRING", + "description": "client_credentials", + "default": "" + }, + { + "name": "client_id", + "type": "STRING", + "description": "Channel ID.", + "default": "" + }, + { + "name": "client_secret", + "type": "STRING", + "description": "Channel secret.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/oauth/accessToken\"\nquerystring = {\"grant_type\": \"\", \"client_id\": \"\", \"client_secret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/oauth/accessToken\"\nquerystring = {\"grant_type\": \"\", \"client_id\": \"\", \"client_secret\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Send reply message", + "url": "https://line-messaging1.p.rapidapi.com/message/reply", + "description": "Sends a reply message in response to an event from a user, group, or room.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/message/reply\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/message/reply\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Revoke channel access token", + "url": "https://line-messaging1.p.rapidapi.com/oauth/revoke", + "description": "Revokes a channel access token.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "access_token", + "type": "STRING", + "description": "Channel access token", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/oauth/revoke\"\nquerystring = {\"access_token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/oauth/revoke\"\nquerystring = {\"access_token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Create rich menu", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu", + "description": "Creates a rich menu. You must upload a rich menu image, and set the rich menu as the default rich menu or link the rich menu to a user for the rich menu to be displayed. You can create up to 1000 rich menus for one bot.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Link rich menu to user", + "url": "https://line-messaging1.p.rapidapi.com/bot/user/{userId}/richmenu/{richMenuId}", + "description": "Links a rich menu to a user. Only one rich menu can be linked to a user at one time. The rich menu is displayed in the following order of priority (highest to lowest): The per-user rich menu set with the Messaging API, the default rich menu set with the Messaging API, and the default rich menu set with LINE@ Manager.", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "ID of an uploaded rich menu", + "default": "" + }, + { + "name": "richMenuId", + "type": "STRING", + "description": "User ID. Found in the source object of webhook event objects. Do not use the LINE ID used in LINE.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/{userId}/richmenu/{richMenuId}\"\nquerystring = {\"userId\": \"\", \"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/{userId}/richmenu/{richMenuId}\"\nquerystring = {\"userId\": \"\", \"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Upload rich menu image", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}/content", + "description": "Uploads and attaches an image to a rich menu. You can use rich menu images with the following specifications: Image format: JPEG or PNG Image size: 2500x1686 or 2500x843 pixels Maximum file size: 1 MB Note: You cannot replace an image attached to a rich menu. To update your rich menu image, create a new rich menu object and upload another image.", + "method": "POST", + "required_parameters": [ + { + "name": "image", + "type": "BINARY", + "description": "Upload and attache an image to a rich menu.", + "default": "" + }, + { + "name": "richMenuId", + "type": "STRING", + "description": "The ID of the rich menu to attach the image to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}/content\"\nquerystring = {\"image\": \"\", \"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richMenuId}/content\"\nquerystring = {\"image\": \"\", \"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Unlink rich menus from multiple users", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu/bulk/unlink", + "description": "Unlinks rich menus from multiple users.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/bulk/unlink\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/bulk/unlink\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Set default rich menu", + "url": "https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu/{richMenuId}", + "description": "Sets the default rich menu. The default rich menu is displayed to all users who have added your LINE official account as a friend and are not linked to any per-user rich menu.", + "method": "POST", + "required_parameters": [ + { + "name": "richMenuId", + "type": "STRING", + "description": "ID of an uploaded rich menu", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu/{richMenuId}\"\nquerystring = {\"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu/{richMenuId}\"\nquerystring = {\"richMenuId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Link rich menu to multiple users", + "url": "https://line-messaging1.p.rapidapi.com/bot/richmenu/bulk/link", + "description": "Links a rich menu to multiple users.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/bulk/link\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/richmenu/bulk/link\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Issue link token", + "url": "https://line-messaging1.p.rapidapi.com/bot/user/{userId}/linkToken", + "description": "Issues a link token used for the account link feature.", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "User ID for the LINE account to be linked. Found in the source object of account link event objects. Do not use the LINE ID used in LINE.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/{userId}/linkToken\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://line-messaging1.p.rapidapi.com/bot/user/{userId}/linkToken\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"line-messaging1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "line_messaging" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/line_messaging/api.py b/toolbench/toolenv/tools/Communication/line_messaging/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6f20b7a4e8d31f1d7a33bdf2c7fcb0fa26b9b624 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/line_messaging/api.py @@ -0,0 +1,182 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_content(messageid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets image, video, and audio data sent by users." + messageid: Message ID + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/message/{messageid}/content" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_rich_menu_id_of_user(userid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the ID of the rich menu linked to a user." + userid: User ID. Found in the source object of webhook event objects. Do not use the LINE ID used in LINE. + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/user/{userid}/richmenu" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def download_rich_menu_image(richmenuid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Downloads an image associated with a rich menu." + richmenuid: ID of the rich menu with the image to be downloaded + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richmenuid}/content" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_rich_menu_list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets a list of all uploaded rich menus." + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/richmenu/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_rich_menu(richmenuid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets a rich menu via a rich menu ID." + richmenuid: ID of an uploaded rich menu + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/richmenu/{richmenuid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_profile(userid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets user profile information." + userid: User ID that is returned in a webhook event object. Do not use the LINE ID found on LINE. + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/profile/{userid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_default_rich_menu_id(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the ID of the default rich menu set with the Messaging API." + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/user/all/richmenu" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_number_of_sent_reply_messages(date: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the number of messages sent with the /bot/message/reply endpoint." + date: Date the messages were sent. Format: yyyyMMdd (Example: 20191231) Timezone: UTC+9 + + """ + url = f"https://line-messaging1.p.rapidapi.com/bot/message/delivery/reply" + querystring = {'date ': date, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "line-messaging1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/linguakit_natural_language_processing_in_the_cloud.json b/toolbench/toolenv/tools/Communication/linguakit_natural_language_processing_in_the_cloud.json new file mode 100644 index 0000000000000000000000000000000000000000..f7d7a8eaf3b2c208aa5dde97092d92b906748121 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/linguakit_natural_language_processing_in_the_cloud.json @@ -0,0 +1,44 @@ +{ + "tool_name":"Linguakit - Natural Language Processing in the cloud", + "tool_description":"Linguakit API (formerly CilenisAPI) helps you to analyze and extract information from texts. Add language technology to your software in a few minutes using our cloud solution. We offer you technology based on years of research in Natural Language Processing in a very easy and scalable SaaS model trough a RESTful API.", + "title":"Linguakit - Natural Language Processing in the cloud", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":72, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/linguakit/api/linguakit-natural-language-processing-in-the-cloud/", + "host":"cilenisapi.p.rapidapi.com", + "api_list":[ + { + "name":"Triples Extractor", + "url":"https://cilenisapi.p.rapidapi.com/triples_extractor", + "description":"It extracts triples relations: OBJECT1 RELATION OBJECT2", + "method":"GET", + "required_parameters":[ + { + "name":"lang_input", + "type":"STRING", + "description":"Language in wich the text is written. Code: en - english, es - spanish, pt - portuguese and gl - galician", + "default":"en" + } + ], + "optional_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"This is the text you are goint to analyze or extract information.", + "default":"Type or paste here the text you want to analyze" + } + ], + "code":"import requests\n\nurl = \"https://cilenisapi.p.rapidapi.com/triples_extractor\"\nquerystring = {\"lang_input\": lang_input, \"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cilenisapi.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/linguakit_natural_language_processing_in_the_cloud/api.py b/toolbench/toolenv/tools/Communication/linguakit_natural_language_processing_in_the_cloud/api.py new file mode 100644 index 0000000000000000000000000000000000000000..038bfd0350a0646ac48c93f7271be9f92af81da9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/linguakit_natural_language_processing_in_the_cloud/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def triples_extractor(lang_input: str, text: str='Type or paste here the text you want to analyze', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "It extracts triples relations: OBJECT1 RELATION OBJECT2" + lang_input: Language in wich the text is written. Code: en - english, es - spanish, pt - portuguese and gl - galician + text: This is the text you are goint to analyze or extract information. + + """ + url = f"https://cilenisapi.p.rapidapi.com/triples_extractor" + querystring = {'lang_input': lang_input, } + if text: + querystring['text'] = text + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cilenisapi.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/linguatools_diacritizator.json b/toolbench/toolenv/tools/Communication/linguatools_diacritizator.json new file mode 100644 index 0000000000000000000000000000000000000000..0f51f15681df91b7a41e77d0e8ab51813da16345 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/linguatools_diacritizator.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Linguatools Diacritizator", + "tool_description":"The diacritizator uses AI techniques to add diacritical marks to Slavic texts.", + "title":"Linguatools Diacritizator", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/linguatools/api/linguatools-diacritizator/", + "host":"linguatools-diacritizator.p.rapidapi.com", + "api_list":[ + { + "name":"diacritizator", + "url":"https://linguatools-diacritizator.p.rapidapi.com/diacritizator/{lang}", + "description":"Adds diacritical marks to the text (provided with `q` query parameter) for the language given in `lang` path parameter.", + "method":"GET", + "required_parameters":[ + { + "name":"q", + "type":"STRING", + "description":"", + "default":"Uspesnost naseho diakritizatora je 99%." + }, + { + "name":"lang", + "type":"string", + "description":"Currently supported values for the `lang` path parameter are:\n\n- `cs` (Czech)\n- `pl` (Polish)", + "default":"cs" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://linguatools-diacritizator.p.rapidapi.com/diacritizator/{lang}\"\nquerystring = {\"q\": q}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"linguatools-diacritizator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/linguatools_diacritizator/api.py b/toolbench/toolenv/tools/Communication/linguatools_diacritizator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..544fc82541951bbcf55978e2b83cda385c0792bf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/linguatools_diacritizator/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def diacritizator(q: str, lang: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Adds diacritical marks to the text (provided with `q` query parameter) for the language given in `lang` path parameter." + lang: Currently supported values for the `lang` path parameter are: + +- `cs` (Czech) +- `pl` (Polish) + + """ + url = f"https://linguatools-diacritizator.p.rapidapi.com/diacritizator/{lang}" + querystring = {'q': q, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "linguatools-diacritizator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/machuqr.json b/toolbench/toolenv/tools/Communication/machuqr.json new file mode 100644 index 0000000000000000000000000000000000000000..7b3386f55c8947fe0ef50ba0ef758940ed2b3372 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/machuqr.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_b5ce00a9-56d6-490e-bbbf-a14c187f018a", + "tool_description": "test", + "home_url": "https://rapidapi.com/thanatwat.crusad/api/machuqr/", + "name": "machuqr", + "title": "machuqr", + "pricing": "FREE", + "tool_name": "machuqr", + "score": null, + "host": "machuqr.p.rapidapi.com", + "api_list": [ + { + "name": "qr", + "url": "https://machuqr.p.rapidapi.comtest", + "description": "test", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://machuqr.p.rapidapi.comtest\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"machuqr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://machuqr.p.rapidapi.comtest\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"machuqr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mailer.json b/toolbench/toolenv/tools/Communication/mailer.json new file mode 100644 index 0000000000000000000000000000000000000000..32b984a26dd86038fe9a49e94dfe5cba943d1e67 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailer.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_2c34ef7e-b893-4bb5-926b-e477037117d9", + "tool_description": "Create a no-hassle mailing utility without putting much effort", + "home_url": "https://rapidapi.com/brahmesh1996/api/mailer6/", + "name": "Mailer", + "title": "Mailer", + "pricing": "FREEMIUM", + "tool_name": "Mailer", + "score": null, + "host": "mailer6.p.rapidapi.com", + "api_list": [ + { + "name": "NewRequest", + "url": "https://mailer6.p.rapidapi.com/v1/mailer", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailer6.p.rapidapi.com/v1/mailer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailer6.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mailer6.p.rapidapi.com/v1/mailer\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailer6.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mailgun.json b/toolbench/toolenv/tools/Communication/mailgun.json new file mode 100644 index 0000000000000000000000000000000000000000..1a73f1b670437b280fe1dbfb3c327e337325251a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailgun.json @@ -0,0 +1,224 @@ +{ + "product_id": "53aa61ade4b0a9b1348dc002", + "tool_description": "Mailgun is a programmable email platform. It allows your application to become a fully featured email server. Send, receive and track messages with ease using your favorite programming language.", + "home_url": "https://rapidapi.com/orliesaurus/api/mailgun-1/", + "name": "Mailgun", + "title": "Mailgun", + "pricing": "FREE", + "tool_name": "Mailgun", + "score": { + "avgServiceLevel": 100, + "avgLatency": 453, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "mailgun.p.rapidapi.com", + "api_list": [ + { + "name": "Create domain", + "url": "https://mailgun.p.rapidapi.com/domains", + "description": "Create a domain", + "method": "POST", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "Name of the domain (ex. domain.com)", + "default": "www.mysite.com" + }, + { + "name": "smtp_password", + "type": "STRING", + "description": "Password for SMTP authentication", + "default": "mypa$$w@rd" + }, + { + "name": "spam_action", + "type": "STRING", + "description": "One of: \"Disable\",\"Tag\". Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged wtih a spam header", + "default": "Disable" + }, + { + "name": "wildcard", + "type": "STRING", + "description": "One of \"true\" or \"false\" . Determines whether the domain will accept email for sub-domains.", + "default": true + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailgun.p.rapidapi.com/domains\"\nquerystring = {\"name\": \"www.mysite.com\", \"smtp_password\": \"mypa$$w@rd\", \"spam_action\": \"Disable\", \"wildcard\": true}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailgun.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mailgun.p.rapidapi.com/domains\"\nquerystring = {\"name\": \"www.mysite.com\", \"smtp_password\": \"mypa$$w@rd\", \"spam_action\": \"Disable\", \"wildcard\": true}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailgun.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Domain Credentials", + "url": "https://mailgun.p.rapidapi.com/domains/sample.com/credentials", + "description": "Creating domain credentials", + "method": "POST", + "required_parameters": [ + { + "name": "login", + "type": "STRING", + "description": "The user name, for example", + "default": "myuser" + }, + { + "name": "password", + "type": "STRING", + "description": "A password for the SMTP credentials. (Length Min 5, Max 32)", + "default": "mypassword" + }, + { + "name": "domain", + "type": "STRING", + "description": "Your site", + "default": "sample.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailgun.p.rapidapi.com/domains/sample.com/credentials\"\nquerystring = {\"login\": \"myuser\", \"password\": \"mypassword\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailgun.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mailgun.p.rapidapi.com/domains/{domain}/credentials\"\nquerystring = {\"login\": \"myuser\", \"password\": \"mypassword\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailgun.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Send an Email", + "url": "https://mailgun.p.rapidapi.com/mysite.com/messages", + "description": "Allows you to send messages", + "method": "POST", + "required_parameters": [ + { + "name": "from", + "type": "STRING", + "description": "Email address for From header", + "default": "me@myemail.com" + }, + { + "name": "to", + "type": "STRING", + "description": "Email address of the recipient(s). Example: \"Bob \". You can use commas to separate multiple recipients.", + "default": "you@youemail.com" + }, + { + "name": "text", + "type": "STRING", + "description": "Body of the message. (text version)", + "default": "Plain text lines are pretty" + }, + { + "name": "domain", + "type": "STRING", + "description": "The hostname of your site as specified in the control panel", + "default": "mysite.com" + } + ], + "optional_parameters": [ + { + "name": "cc", + "type": "STRING", + "description": "Same as To but for Cc", + "default": "him@email.com" + }, + { + "name": "bcc", + "type": "STRING", + "description": "Same as To but for Bcc", + "default": "another@email.com" + }, + { + "name": "subject", + "type": "STRING", + "description": "Message subject", + "default": "My subject line" + }, + { + "name": "html", + "type": "STRING", + "description": "Body of the message. (HTML version)", + "default": "Mailgun rocks" + }, + { + "name": "attachment", + "type": "STRING", + "description": "File attachment. You can post multiple attachment values. Important: You must use multipart/form-data encoding when sending attachments.", + "default": "" + }, + { + "name": "inline", + "type": "STRING", + "description": "Attachment with inline disposition. Can be used to send inline images (see example). You can post multiple inline values.", + "default": "@files/awesome.gif" + }, + { + "name": "o:tag", + "type": "STRING", + "description": "Sometimes it\u2019s helpful to categorize your outgoing email traffic based on some criteria. Mailgun lets you tag each outgoing message with a custom value. When you access stats on you messages, they will be aggregated by these tags.", + "default": "newsletter" + }, + { + "name": "o:campaign", + "type": "STRING", + "description": "Id of the campaign the message belongs to", + "default": "some_campaign_id" + }, + { + "name": "o:dkim", + "type": "STRING", + "description": "One of \"Yes\", \"No\" to enable or disable DKIM signature on messages sent", + "default": "yes" + }, + { + "name": "o:deliverytime", + "type": "STRING", + "description": "Desired time of delivery; max 3 days", + "default": "'Thu, 12 April 2018 15:11:30 GMT'" + }, + { + "name": "o:testmode", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "o:tracking", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "o:tracking-clicks", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "o:tracking-opens", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "h:", + "type": "STRING", + "description": "", + "default": "h:X-My-Header" + }, + { + "name": "v:", + "type": "STRING", + "description": "", + "default": "v:my-var" + } + ], + "code": "import requests\n\nurl = \"https://mailgun.p.rapidapi.com/mysite.com/messages\"\nquerystring = {\"from\": \"me@myemail.com\", \"to\": \"you@youemail.com\", \"cc\": \"him@email.com\", \"bcc\": \"another@email.com\", \"subject\": \"My subject line\", \"text\": \"Plain text lines are pretty\", \"html\": \"Mailgun rocks\", \"attachment\": \"\", \"inline\": \"@files/awesome.gif\", \"o:tag\": \"newsletter\", \"o:campaign\": \"some_campaign_id\", \"o:dkim\": \"yes\", \"o:deliverytime\": \"'Thu, 12 April 2018 15:11:30 GMT'\", \"o:testmode\": \"\", \"o:tracking\": \"\", \"o:tracking-clicks\": \"\", \"o:tracking-opens\": \"\", \"h:\": \"h:X-My-Header\", \"v:\": \"v:my-var\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailgun.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mailgun.p.rapidapi.com/{domain}/messages\"\nquerystring = {\"from\": \"me@myemail.com\", \"to\": \"you@youemail.com\", \"cc\": \"him@email.com\", \"bcc\": \"another@email.com\", \"subject\": \"My subject line\", \"text\": \"Plain text lines are pretty\", \"html\": \"Mailgun rocks\", \"attachment\": \"\", \"inline\": \"@files/awesome.gif\", \"o:tag\": \"newsletter\", \"o:campaign\": \"some_campaign_id\", \"o:dkim\": \"yes\", \"o:deliverytime\": \"'Thu, 12 April 2018 15:11:30 GMT'\", \"o:testmode\": \"\", \"o:tracking\": \"\", \"o:tracking-clicks\": \"\", \"o:tracking-opens\": \"\", \"h:\": \"h:X-My-Header\", \"v:\": \"v:my-var\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailgun.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mailparser.json b/toolbench/toolenv/tools/Communication/mailparser.json new file mode 100644 index 0000000000000000000000000000000000000000..3d24950523e68ebd0b63cf1f6c130379c6544347 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailparser.json @@ -0,0 +1,26 @@ +{ + "product_id": "5474e30ae4b0d7eaed28681e", + "tool_description": "MIME Mail Parser API", + "home_url": "https://rapidapi.com/activecom/api/mailparser/", + "name": "Mailparser", + "title": "Mailparser", + "pricing": "FREEMIUM", + "tool_name": "Mailparser", + "score": null, + "host": "activecom-smtpio-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/messages", + "url": "https://activecom-smtpio-v1.p.rapidapi.com/messages", + "description": "Create a new message resource", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://activecom-smtpio-v1.p.rapidapi.com/messages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"activecom-smtpio-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://activecom-smtpio-v1.p.rapidapi.com/messages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"activecom-smtpio-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mailparser/api.py b/toolbench/toolenv/tools/Communication/mailparser/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ad21b5bdbb5f70bb7b07e0afb4486d77f3762338 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailparser/api.py @@ -0,0 +1,140 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def messages_id_parts_partid(is_id: str, partid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve individual message part" + + """ + url = f"https://activecom-smtpio-v1.p.rapidapi.com/messages/{is_id}/parts/{partid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "activecom-smtpio-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_id_structure(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Succesfully retrieved resource" + + """ + url = f"https://activecom-smtpio-v1.p.rapidapi.com/messages/{is_id}/structure" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "activecom-smtpio-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_id_parts(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve message parts information" + + """ + url = f"https://activecom-smtpio-v1.p.rapidapi.com/messages/{is_id}/parts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "activecom-smtpio-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_id_subject(is_id: str, raw: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve message subject" + raw: Return without formatting. Default: false + + """ + url = f"https://activecom-smtpio-v1.p.rapidapi.com/messages/{is_id}/subject" + querystring = {} + if raw: + querystring['raw'] = raw + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "activecom-smtpio-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_id_headers(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve message headers" + + """ + url = f"https://activecom-smtpio-v1.p.rapidapi.com/messages/{is_id}/headers" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "activecom-smtpio-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_id(is_id: str, replace_inline_url_path: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve message body. If it is a multipart message and if html type is available, html version will be returned." + replace_inline_url_path: Replace cid:content_id of inline attachments with the correct url to get them through this api. Default: true + + """ + url = f"https://activecom-smtpio-v1.p.rapidapi.com/messages/{is_id}" + querystring = {} + if replace_inline_url_path: + querystring['replace_inline_url_path'] = replace_inline_url_path + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "activecom-smtpio-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/mailvalid.json b/toolbench/toolenv/tools/Communication/mailvalid.json new file mode 100644 index 0000000000000000000000000000000000000000..f4892dd2749f34c2ea5f6bd7b3a6a3ba61e7c5bb --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailvalid.json @@ -0,0 +1,48 @@ +{ + "tool_name": "MailValid", + "tool_description": "A REST API that checks for disposable and invalid emails", + "title": "MailValid", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/iftiin-koox-iftiin-koox-default/api/mailvalid1/", + "host": "mailvalid1.p.rapidapi.com", + "api_list": [ + { + "name": "Check lists", + "url": "https://mailvalid1.p.rapidapi.com/api/lists", + "description": "The route for checking the lists of disposable or non disposable emails", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailvalid1.p.rapidapi.com/api/lists\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailvalid1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Email Validation", + "url": "https://mailvalid1.p.rapidapi.com/api/validate", + "description": "The route for validating an email", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailvalid1.p.rapidapi.com/api/validate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailvalid1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Email Validation", + "url": "https://mailvalid1.p.rapidapi.com/api/validate", + "description": "The route for validating an email", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailvalid1.p.rapidapi.com/api/validate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailvalid1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mailvalid1.p.rapidapi.com/api/validate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailvalid1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mailvalid/api.py b/toolbench/toolenv/tools/Communication/mailvalid/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2059255fbf40c5c545bd8bd0c8a6aa7ed09de133 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailvalid/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check_lists(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The route for checking the lists of disposable or non disposable emails" + + """ + url = f"https://mailvalid1.p.rapidapi.com/api/lists" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "mailvalid1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/mailverify.json b/toolbench/toolenv/tools/Communication/mailverify.json new file mode 100644 index 0000000000000000000000000000000000000000..387e0c0acb8814a9a46e923962ef661a23831f7d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mailverify.json @@ -0,0 +1,85 @@ +{ + "product_id": "api_cc15a986-bac2-4651-87c2-a485ea4eab89", + "tool_description": "An API that verifies if an email address is valid or not", + "home_url": "https://rapidapi.com/neznidalibor/api/mailverify/", + "name": "MailVerify", + "title": "MailVerify", + "pricing": "FREEMIUM", + "tool_name": "MailVerify", + "score": null, + "host": "mailverify.p.rapidapi.com", + "api_list": [ + { + "name": "Verify", + "url": "https://mailverify.p.rapidapi.com/verify", + "description": "End point to verify a given email.\nIt responds with the JSON of all the mail exchange servers found for a given domain and the status of the mail and the server itself.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mailverify.p.rapidapi.com/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailverify.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mailverify.p.rapidapi.com/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mailverify.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "alt4.gmail-smtp-in.l.google.com": { + "type": "object", + "properties": { + "mail_valid": { + "type": "boolean" + }, + "mail_server_reachable": { + "type": "boolean" + } + } + }, + "alt3.gmail-smtp-in.l.google.com": { + "type": "object", + "properties": { + "mail_valid": { + "type": "boolean" + }, + "mail_server_reachable": { + "type": "boolean" + } + } + }, + "alt1.gmail-smtp-in.l.google.com": { + "type": "object", + "properties": { + "mail_valid": { + "type": "boolean" + }, + "mail_server_reachable": { + "type": "boolean" + } + } + }, + "gmail-smtp-in.l.google.com": { + "type": "object", + "properties": { + "mail_valid": { + "type": "boolean" + }, + "mail_server_reachable": { + "type": "boolean" + } + } + }, + "alt2.gmail-smtp-in.l.google.com": { + "type": "object", + "properties": { + "mail_valid": { + "type": "boolean" + }, + "mail_server_reachable": { + "type": "boolean" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/manga.json b/toolbench/toolenv/tools/Communication/manga.json new file mode 100644 index 0000000000000000000000000000000000000000..834bee3bf0837d7135724095b83bf15132efbcc2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/manga.json @@ -0,0 +1,47 @@ +{ + "tool_name":"manga", + "tool_description":"for read manga chapter", + "title":"manga", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/issadeveloper/api/manga11/", + "host":"manga11.p.rapidapi.com", + "api_list":[ + { + "name":"get details", + "url":"https://manga11.p.rapidapi.com/news/{id}", + "description":"get details", + "method":"GET", + "required_parameters":[ + { + "name":"Id", + "type":"string", + "description":"", + "default":"It_Starts_With_A_Kingpin_Account" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://manga11.p.rapidapi.com/news/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"manga11.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Get All manga list", + "url":"https://manga11.p.rapidapi.com/news", + "description":"Get All manga list", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://manga11.p.rapidapi.com/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"manga11.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/manga/api.py b/toolbench/toolenv/tools/Communication/manga/api.py new file mode 100644 index 0000000000000000000000000000000000000000..904d561e0702b9f5504202f18969eb8ec16daacc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/manga/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_details(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get details" + + """ + url = f"https://manga11.p.rapidapi.com/news/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga11.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_all_manga_list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get All manga list" + + """ + url = f"https://manga11.p.rapidapi.com/news" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga11.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/manga_api/api.py b/toolbench/toolenv/tools/Communication/manga_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9e85685ca5fb139e363052438a1d80f5672f099b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/manga_api/api.py @@ -0,0 +1,134 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def read_chapter(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Read Chapter lis images" + + """ + url = f"https://manga-api.p.rapidapi.com/read-chapter/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def lastall(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "last All" + + """ + url = f"https://manga-api.p.rapidapi.com/lastall" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def last_manga(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "last manga" + + """ + url = f"https://manga-api.p.rapidapi.com/last" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def slider_manga(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "slider manga" + + """ + url = f"https://manga-api.p.rapidapi.com/slider" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_details(manga: str, is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get details manga" + + """ + url = f"https://manga-api.p.rapidapi.com/{manga}/{id}" + querystring = {'Id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_all_list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all List manga" + + """ + url = f"https://manga-api.p.rapidapi.com/list" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "manga-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/marvel.json b/toolbench/toolenv/tools/Communication/marvel.json new file mode 100644 index 0000000000000000000000000000000000000000..c933cf6c8c6c134991563b71b258fbc26e0b9c86 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/marvel.json @@ -0,0 +1,24 @@ +{ + "tool_name":"marvel", + "tool_description":"for website visitors", + "title":"marvel", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/mytbc01/api/marvel2/", + "host":"marvel2.p.rapidapi.com", + "api_list":[ + { + "name":"endp", + "url":"https://marvel2.p.rapidapi.com/", + "description":"for website", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://marvel2.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"marvel2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/marvel/api.py b/toolbench/toolenv/tools/Communication/marvel/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7ea5ddd99511dace7dad4567642024e53568d6a7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/marvel/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def endp(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "for website" + + """ + url = f"https://marvel2.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "marvel2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/maytapi_whatsapp.json b/toolbench/toolenv/tools/Communication/maytapi_whatsapp.json new file mode 100644 index 0000000000000000000000000000000000000000..e9ffd2486a451c35c997acf1b645a92680c4e7f4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/maytapi_whatsapp.json @@ -0,0 +1,451 @@ +{ + "product_id": "api_0c5fde8c-edf3-44b2-b877-819108bf884f", + "tool_description": "Send and receive messages from WhatsApp via Maytapi. It is a stable and reliable solution. See more: https://maytapi.com/", + "home_url": "https://rapidapi.com/maytapi/api/maytapi-whatsapp/", + "name": "Maytapi WhatsApp", + "title": "Maytapi WhatsApp", + "pricing": "PAID", + "tool_name": "Maytapi WhatsApp", + "score": { + "avgServiceLevel": 99, + "avgLatency": 1006, + "avgSuccessRate": 99, + "popularityScore": 9.5, + "__typename": "Score" + }, + "host": "maytapi-whatsapp.p.rapidapi.com", + "api_list": [ + { + "name": "queue", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/queue", + "description": "Returns the queue info of the phone.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/queue\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/queue\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "purgeQueue", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/purgeQueue", + "description": "Clears phone's send message queue.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/purgeQueue\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/purgeQueue\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "getStatus", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/status", + "description": "Returns the status of the current session.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/status\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/status\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "getQRCode", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/qrCode", + "description": "Gets the image of QR-Code.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/qrCode\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/qrCode\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "getProduct", + "url": "https://maytapi-whatsapp.p.rapidapi.com/product", + "description": "Gets the product id and webhook url of the account.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "pid": "rapidapi-free000", + "webhook": null, + "ack_delivery": true, + "phone_limit": 1, + "package": "", + "instagram_limit": 0, + "telegram_limit": 0 + } + }, + { + "name": "getListPhones", + "url": "https://maytapi-whatsapp.p.rapidapi.com/listPhones", + "description": "Gets the list of phones with their id's and numbers that are registered to the given product id.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/listPhones\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/listPhones\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": [] + }, + { + "name": "getScreen", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/screen", + "description": "Returns the screenshot of the screen in the current session", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/screen\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/screen\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "getGroups", + "url": "https://maytapi-whatsapp.p.rapidapi.com/12/getGroups", + "description": "Sets the option for getting the acknowledge messages from the webhook to true or false.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "string", + "description": "Enter phone id", + "default": "12" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/12/getGroups\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/getGroups\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "You dont own the phone[12]. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "redeploy", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/redeploy", + "description": "Redeploys docker instance of your phone. If your phone having any unexpected problems you can use this endpoint to reboot the instance.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/redeploy\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/redeploy\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "checkNumberStatus", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/checkNumberStatus", + "description": "Check phone number status.", + "method": "GET", + "required_parameters": [ + { + "name": "number", + "type": "STRING", + "description": "Phone Number", + "default": "" + }, + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/checkNumberStatus\"\nquerystring = {\"number\": \"\", \"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/checkNumberStatus\"\nquerystring = {\"number\": \"\", \"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "logs", + "url": "https://maytapi-whatsapp.p.rapidapi.com/logs", + "description": "Gets logs.", + "method": "GET", + "required_parameters": [ + { + "name": "page", + "type": "STRING", + "description": "Enter which page", + "default": "0" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/logs\"\nquerystring = {\"page\": \"0\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/logs\"\nquerystring = {\"page\": \"0\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": true, + "data": { + "count": "1", + "list": [ + { + "id": 196710982, + "pid": "rapidapi-free000", + "phone": 29672, + "created_at": "2023-06-16T14:04:02.342Z", + "updated_at": "2023-06-16T14:04:02.342Z", + "data": { + "body": { + "pid": "rapidapi-free000", + "type": "status", + "status": "loading", + "phoneId": 29672, + "phone_id": 29672, + "product_id": "rapidapi-free000" + }, + "webhook": null, + "response": { + "message": "Webhook url is empty or null." + } + }, + "type": "outgoing" + } + ] + } + } + }, + { + "name": "contacts", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/contacts", + "description": "Returns the contacts in the current whatsapp instance.", + "method": "GET", + "required_parameters": [ + { + "name": "phone_id", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/contacts\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/contacts\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "message": "[{phone_id}] is not a valid phone instance id. You can find your phones from /api/rapidapi-free000/listPhones" + } + }, + { + "name": "clear", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/clear", + "description": "Only reset browser information. After you must scan qr code.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter the id of the phone", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/clear\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/clear\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "restart", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/restart", + "description": "Restarts the session by refreshing the page.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter the id of the phone", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/restart\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/restart\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "backup", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/backup", + "description": "Backups the material needed for opening the same chat screen for the current phone number. This call is useful when the session is active and also the status of the session is active. Later, the response information can be used to open the chat screen with the `POST restore` call.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Id of the phone in the active session", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/backup\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/backup\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "logout", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/logout", + "description": "Logouts the number from the current session and converts the screen to qr-code screen.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Id of the phone in the active session", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/logout\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/logout\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setWebhook", + "url": "https://maytapi-whatsapp.p.rapidapi.com/setWebhook", + "description": "Sets the webhook url. Webhook is used for directing the incoming messages and some changes in the session.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/setWebhook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/setWebhook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setAckPreference", + "url": "https://maytapi-whatsapp.p.rapidapi.com/setAckPreference", + "description": "Sets the acknowledge notification preference to true or false. If it is set to true, then every acknowledge message of the delivered messages are sent to the webhook address if a webhook address is available. Otherwise, no acknowledgement is sent to the webhook.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/setAckPreference\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/setAckPreference\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "restore", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/restore", + "description": "Reloads the current session based on the reload data.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Id of the phone in the active session", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/restore\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/restore\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "addPhone", + "url": "https://maytapi-whatsapp.p.rapidapi.com/addPhone", + "description": "Adds a new phone object to the database for the product determined by the taken product id. A number can also be specified in that step but if not, the phone number in the active session after the qr-screen process is entered to the database.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/addPhone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/addPhone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendMessage", + "url": "https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/sendMessage", + "description": "Sends both text and media (image, video, sound, document) to the user, whose number is taken at the body of the request.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "STRING", + "description": "Enter phone id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/sendMessage\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/sendMessage\"\nquerystring = {\"phone_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createGroup", + "url": "https://maytapi-whatsapp.p.rapidapi.com/12/createGroup", + "description": "Sets the option for getting the acknowledge messages from the webhook to true or false.", + "method": "POST", + "required_parameters": [ + { + "name": "phone_id", + "type": "string", + "description": "Enter phone id", + "default": "12" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/12/createGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/createGroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"maytapi-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "maytapi_whatsapp" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/maytapi_whatsapp/api.py b/toolbench/toolenv/tools/Communication/maytapi_whatsapp/api.py new file mode 100644 index 0000000000000000000000000000000000000000..162aa0dd1ef7575e6b748d0fa5f81d6dde4c473c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/maytapi_whatsapp/api.py @@ -0,0 +1,269 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def queue(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the queue info of the phone." + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/queue" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def purgequeue(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Clears phone's send message queue." + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/purgequeue" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getstatus(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the status of the current session." + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/status" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getqrcode(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the image of QR-Code." + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/qrcode" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getproduct(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the product id and webhook url of the account." + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/product" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getlistphones(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the list of phones with their id's and numbers that are registered to the given product id." + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/listphones" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getscreen(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the screenshot of the screen in the current session" + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/screen" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getgroups(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sets the option for getting the acknowledge messages from the webhook to true or false." + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/getgroups" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def redeploy(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Redeploys docker instance of your phone. If your phone having any unexpected problems you can use this endpoint to reboot the instance." + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/redeploy" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def checknumberstatus(number: str, phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check phone number status." + number: Phone Number + phone_id: Enter phone id + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/checknumberstatus" + querystring = {'number': number, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def logs(page: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets logs." + page: Enter which page + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/logs" + querystring = {'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contacts(phone_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the contacts in the current whatsapp instance." + + """ + url = f"https://maytapi-whatsapp.p.rapidapi.com/{phone_id}/contacts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "maytapi-whatsapp.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/meet_video_integration.json b/toolbench/toolenv/tools/Communication/meet_video_integration.json new file mode 100644 index 0000000000000000000000000000000000000000..f99815fdff340bb81d4069e1d4ec4a971d6d4780 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/meet_video_integration.json @@ -0,0 +1,32 @@ +{ + "product_id": "58c307f9e4b0a29ec14cde9c", + "tool_description": "The LiveH2H API allows for integration with voice, video, chat and translations into any mobile and web application. The LiveH2H meet features are executed on the client's browser, IOS or Android device. Launch your webinars, video conferences and live streams from your environment.", + "home_url": "https://rapidapi.com/juanpablo/api/meet-video-integration/", + "name": "Meet - Video Integration", + "title": "Meet - Video Integration", + "pricing": "FREE", + "tool_name": "Meet - Video Integration", + "score": { + "avgServiceLevel": 0, + "avgLatency": 30, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "juanpablo-meet-video-integration-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Create an instant meeting", + "url": "https://juanpablo-meet-video-integration-v1.p.rapidapi.com/meetings/createInstantMeeting", + "description": "Launch an instant meeting", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://juanpablo-meet-video-integration-v1.p.rapidapi.com/meetings/createInstantMeeting\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juanpablo-meet-video-integration-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://juanpablo-meet-video-integration-v1.p.rapidapi.com/meetings/createInstantMeeting\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"juanpablo-meet-video-integration-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/melrose_labs_voice_api.json b/toolbench/toolenv/tools/Communication/melrose_labs_voice_api.json new file mode 100644 index 0000000000000000000000000000000000000000..971ec6c0f4e7c03848bf95fba44f71517dc48cfc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/melrose_labs_voice_api.json @@ -0,0 +1,531 @@ +{ + "tool_name": "Melrose Labs Voice API", + "tool_description": "The Voice API is used for text-to-speech, speech-to-text and inbound/outbound voice routing. The Voice API is part of the Voice Gateway from Melrose Labs.", + "title": "Melrose Labs Voice API", + "pricing": "FREE", + "score": { + "avgServiceLevel": 11, + "avgLatency": 1024, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/MelroseLabs/api/melrose-labs-voice-api1/", + "host": "melrose-labs-voice-api1.p.rapidapi.com", + "api_list": [ + { + "name": "Retrieve text", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}", + "description": "Retrieve text from previously converted speech-to-text.", + "method": "GET", + "required_parameters": [ + { + "name": "transactionid", + "type": "STRING", + "description": "ID of speech-to-text transaction", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve text", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}", + "description": "Retrieve text from previously converted speech-to-text.", + "method": "GET", + "required_parameters": [ + { + "name": "transactionid", + "type": "STRING", + "description": "ID of speech-to-text transaction", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve text", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}", + "description": "Retrieve text from previously converted speech-to-text.", + "method": "GET", + "required_parameters": [ + { + "name": "transactionid", + "type": "STRING", + "description": "ID of speech-to-text transaction", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Release telephone number", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}", + "description": "Release a telephone number from your account.", + "method": "DELETE", + "required_parameters": [ + { + "name": "telno", + "type": "STRING", + "description": "Telephone number to delete", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Update number", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}", + "description": "Update endpoint for a number", + "method": "PUT", + "required_parameters": [ + { + "name": "telno", + "type": "STRING", + "description": "Update current endpoint for a number", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "List available numbers for a country", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering/available/{country}", + "description": "Get list of available telephone numbers for a country", + "method": "GET", + "required_parameters": [ + { + "name": "country", + "type": "STRING", + "description": "Country for which querying for available numbers", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/available/{country}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "List available numbers for a country/prefix", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering/available/{country}/{prefix}", + "description": "Get list of available telephone numbers for a country and given prefix", + "method": "GET", + "required_parameters": [ + { + "name": "prefix", + "type": "STRING", + "description": "Prefix within country for which query for available numbers", + "default": "string" + }, + { + "name": "country", + "type": "STRING", + "description": "Country for which querying for available numbers", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/available/{country}/{prefix}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "List allocated numbers", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering", + "description": "Get list of allocated numbers", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Allocate number", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering", + "description": "Allocate a telephone number to your account and optionally set SIP endpoint.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "sipEndpoint", + "type": "STRING", + "description": "The SIP endpoint URI to where incoming calls to the telephone number (telNo) should be routed.", + "default": "string" + }, + { + "name": "telNo", + "type": "STRING", + "description": "Telephone number to be allocated. Normally in full international format, beginning with '+'. For example, '+441310001111'.", + "default": "string" + } + ], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering\"\nquerystring = {\"sipEndpoint\": sipendpoint, \"telNo\": telno}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Allocate number", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering", + "description": "Allocate a telephone number to your account and optionally set SIP endpoint.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "sipEndpoint", + "type": "STRING", + "description": "The SIP endpoint URI to where incoming calls to the telephone number (telNo) should be routed.", + "default": "string" + }, + { + "name": "telNo", + "type": "STRING", + "description": "Telephone number to be allocated. Normally in full international format, beginning with '+'. For example, '+441310001111'.", + "default": "string" + } + ], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering\"\nquerystring = {\"sipEndpoint\": sipendpoint, \"telNo\": telno}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Convert text-to-speech", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech", + "description": "Submit text to be converted to speech. Store as MP3 audio file.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "voiceText", + "type": "STRING", + "description": "Text (ASCII) to be converted to speech MP3 audio file", + "default": "string" + }, + { + "name": "voice", + "type": "STRING", + "description": "Voice to be used for text-to-speech. Default is Salli (f) and is an English (en-US) language voice. Other choices include: Zeina (f), Arabic (arb); Celine (f), French (fr-FR). See https://melroselabs.com/services/voice-gateway/ for a full list of voices.", + "default": "string" + } + ], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech\"\nquerystring = {\"voiceText\": voicetext, \"voice\": voice}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Convert text-to-speech", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech", + "description": "Submit text to be converted to speech. Store as MP3 audio file.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "voiceText", + "type": "STRING", + "description": "Text (ASCII) to be converted to speech MP3 audio file", + "default": "string" + }, + { + "name": "voice", + "type": "STRING", + "description": "Voice to be used for text-to-speech. Default is Salli (f) and is an English (en-US) language voice. Other choices include: Zeina (f), Arabic (arb); Celine (f), French (fr-FR). See https://melroselabs.com/services/voice-gateway/ for a full list of voices.", + "default": "string" + } + ], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech\"\nquerystring = {\"voiceText\": voicetext, \"voice\": voice}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve audio file", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}", + "description": "Retrieve audio file from previously converted text-to-speech. File is in MP3 format.", + "method": "GET", + "required_parameters": [ + { + "name": "transactionid", + "type": "STRING", + "description": "Transaction ID for previously submitted text-to-speech conversion.", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve audio file", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}", + "description": "Retrieve audio file from previously converted text-to-speech. File is in MP3 format.", + "method": "GET", + "required_parameters": [ + { + "name": "transactionid", + "type": "STRING", + "description": "Transaction ID for previously submitted text-to-speech conversion.", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Retrieve audio file", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}", + "description": "Retrieve audio file from previously converted text-to-speech. File is in MP3 format.", + "method": "GET", + "required_parameters": [ + { + "name": "transactionid", + "type": "STRING", + "description": "Transaction ID for previously submitted text-to-speech conversion.", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get endpoint", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}", + "description": "Get endpoint for a number", + "method": "GET", + "required_parameters": [ + { + "name": "telno", + "type": "STRING", + "description": "Get current endpoint for telephone number", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Convert speech-to-text", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext", + "description": "Submit speech to be converted to text. Store as text file.", + "method": "POST", + "required_parameters": [ + { + "name": "Content-Type", + "type": "STRING", + "description": "", + "default": "audio/mp3" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Convert speech-to-text", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext", + "description": "Submit speech to be converted to text. Store as text file.", + "method": "POST", + "required_parameters": [ + { + "name": "Content-Type", + "type": "STRING", + "description": "", + "default": "audio/mp3" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Allocate number", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/numbering", + "description": "Allocate a telephone number to your account and optionally set SIP endpoint.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "sipEndpoint", + "type": "STRING", + "description": "The SIP endpoint URI to where incoming calls to the telephone number (telNo) should be routed.", + "default": "string" + }, + { + "name": "telNo", + "type": "STRING", + "description": "Telephone number to be allocated. Normally in full international format, beginning with '+'. For example, '+441310001111'.", + "default": "string" + } + ], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering\"\nquerystring = {\"sipEndpoint\": \"string\", \"telNo\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/numbering\"\nquerystring = {\"sipEndpoint\": \"string\", \"telNo\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 400, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Convert text-to-speech", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech", + "description": "Submit text to be converted to speech. Store as MP3 audio file.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "voiceText", + "type": "STRING", + "description": "Text (ASCII) to be converted to speech MP3 audio file", + "default": "string" + }, + { + "name": "voice", + "type": "STRING", + "description": "Voice to be used for text-to-speech. Default is Salli (f) and is an English (en-US) language voice. Other choices include: Zeina (f), Arabic (arb); Celine (f), French (fr-FR). See https://melroselabs.com/services/voice-gateway/ for a full list of voices.", + "default": "string" + } + ], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech\"\nquerystring = {\"voiceText\": \"string\", \"voice\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech\"\nquerystring = {\"voiceText\": \"string\", \"voice\": \"string\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Convert speech-to-text", + "url": "https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext", + "description": "Submit speech to be converted to text. Store as text file.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"melrose-labs-voice-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/melrose_labs_voice_api/api.py b/toolbench/toolenv/tools/Communication/melrose_labs_voice_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f771ba0cdc34f60b38fe2c23d1078c6b3010902b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/melrose_labs_voice_api/api.py @@ -0,0 +1,228 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def retrieve_text(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve text from previously converted speech-to-text." + transactionid: ID of speech-to-text transaction + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retrieve_text(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve text from previously converted speech-to-text." + transactionid: ID of speech-to-text transaction + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retrieve_text(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve text from previously converted speech-to-text." + transactionid: ID of speech-to-text transaction + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/speechtotext/{transactionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_available_numbers_for_a_country(country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of available telephone numbers for a country" + country: Country for which querying for available numbers + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/available/{country}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_available_numbers_for_a_country_prefix(prefix: str, country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of available telephone numbers for a country and given prefix" + prefix: Prefix within country for which query for available numbers + country: Country for which querying for available numbers + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/available/{country}/{prefix}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_allocated_numbers(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of allocated numbers" + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/numbering" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retrieve_audio_file(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve audio file from previously converted text-to-speech. File is in MP3 format." + transactionid: Transaction ID for previously submitted text-to-speech conversion. + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retrieve_audio_file(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve audio file from previously converted text-to-speech. File is in MP3 format." + transactionid: Transaction ID for previously submitted text-to-speech conversion. + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def retrieve_audio_file(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve audio file from previously converted text-to-speech. File is in MP3 format." + transactionid: Transaction ID for previously submitted text-to-speech conversion. + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/texttospeech/{transactionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_endpoint(telno: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get endpoint for a number" + telno: Get current endpoint for telephone number + + """ + url = f"https://melrose-labs-voice-api1.p.rapidapi.com/numbering/{telno}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "melrose-labs-voice-api1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/message_api.json b/toolbench/toolenv/tools/Communication/message_api.json new file mode 100644 index 0000000000000000000000000000000000000000..093b770ffa0c4e734bd8a3c7ef05ba8ed118c25b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/message_api.json @@ -0,0 +1,81 @@ +{ + "tool_name":"Message API", + "tool_description":"This API will allow you to send and receive text and image messages", + "title":"Message API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/businessangelsunited/api/message-api4/", + "host":"message-api4.p.rapidapi.com", + "api_list":[ + { + "name":"send-text", + "url":"https://message-api4.p.rapidapi.com/send-text", + "description":"This endpoint will allow you to send text messages", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"send-text", + "type":"STRING", + "description":"This endpoint will allow users to send text messages", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://message-api4.p.rapidapi.com/send-text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"message-api4.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "A-IM":"True" + }, + "schema":{ + "type":"object", + "properties":{ + "message1":{ + "type":"string" + }, + "message2":{ + "type":"string" + } + } + } + }, + { + "name":"send-image", + "url":"https://message-api4.p.rapidapi.com/send-image", + "description":"This endpoint will allow you to send images", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"send-image", + "type":"STRING", + "description":"This endpoint will allow users to send images", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://message-api4.p.rapidapi.com/send-image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"message-api4.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "A-IM":"True" + }, + "schema":{ + "type":"object", + "properties":{ + "message1":{ + "type":"string" + }, + "message2":{ + "type":"string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/message_api/api.py b/toolbench/toolenv/tools/Communication/message_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1edd3eded28a02324c58a0e3cd7204d4a6e9dbe3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/message_api/api.py @@ -0,0 +1,56 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def send_text(send_text: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint will allow you to send text messages" + send_text: This endpoint will allow users to send text messages + + """ + url = f"https://message-api4.p.rapidapi.com/send-text" + querystring = {} + if send_text: + querystring['send-text'] = send_text + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "message-api4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def send_image(send_image: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint will allow you to send images" + send_image: This endpoint will allow users to send images + + """ + url = f"https://message-api4.p.rapidapi.com/send-image" + querystring = {} + if send_image: + querystring['send-image'] = send_image + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "message-api4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/messageapi.json b/toolbench/toolenv/tools/Communication/messageapi.json new file mode 100644 index 0000000000000000000000000000000000000000..66b86743ab66b9e904f1824888b0e0df87379fc9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/messageapi.json @@ -0,0 +1,69 @@ +{ + "product_id": "59edcb3fe4b092193a79a3fe", + "tool_description": "Send and receive messages from any chat app\r\nUsing One API", + "home_url": "https://rapidapi.com/Eldad/api/messageapi/", + "name": "MessageAPI", + "title": "MessageAPI", + "pricing": "FREE", + "tool_name": "MessageAPI", + "score": null, + "host": "messageapi.p.rapidapi.com", + "api_list": [ + { + "name": "/v1/messages", + "url": "https://messageapi.p.rapidapi.com/v1/messages", + "description": "Sends a new message", + "method": "POST", + "required_parameters": [ + { + "name": "customer_id", + "type": "STRING", + "description": "This is the customer id this message object is addressing", + "default": "" + }, + { + "name": "integration_id", + "type": "STRING", + "description": "This is the integration id this message object is addressing", + "default": "" + }, + { + "name": "data", + "type": "STRING", + "description": "Message object", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://messageapi.p.rapidapi.com/v1/messages\"\nquerystring = {\"customer_id\": \"\", \"integration_id\": \"\", \"data\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messageapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://messageapi.p.rapidapi.com/v1/messages\"\nquerystring = {\"customer_id\": \"\", \"integration_id\": \"\", \"data\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messageapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "customers", + "url": "https://messageapi.p.rapidapi.com/v1/customers", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "Customer\u2019s email address. It can be used for sending email to a customer and it also can be useful for searching and tracking.", + "default": "" + }, + { + "name": "phone", + "type": "STRING", + "description": "Customer\u2019s mobile phone number. It can be used for sending SMS/Text message to a customer and it also can be useful for searching and tracking.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://messageapi.p.rapidapi.com/v1/customers\"\nquerystring = {\"email\": \"\", \"phone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messageapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://messageapi.p.rapidapi.com/v1/customers\"\nquerystring = {\"email\": \"\", \"phone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messageapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/messente.json b/toolbench/toolenv/tools/Communication/messente.json new file mode 100644 index 0000000000000000000000000000000000000000..605fa155fb36d703ec4da04d8d615dd9c1f397f1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/messente.json @@ -0,0 +1,88 @@ +{ + "product_id": "53aa4abee4b0a798dbd1a1c5", + "tool_description": "Messente group messaging platform provides an HTTP-based PushSMS interface additionally to the web-based message sending tools. In order to use the HTTP-based interface please activate your API account on the Messente web page.", + "home_url": "https://rapidapi.com/messente/api/messente/", + "name": "Messente", + "title": "Messente", + "pricing": "FREE", + "tool_name": "Messente", + "score": { + "avgServiceLevel": 99, + "avgLatency": 134, + "avgSuccessRate": 99, + "popularityScore": 8.9, + "__typename": "Score" + }, + "host": "messente-messente.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://messente-messente.p.rapidapi.com/send_sms/", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Content of your SMS", + "default": "Hi! How are you doing?" + }, + { + "name": "to", + "type": "STRING", + "description": "Destination number with are code", + "default": "+44000000000" + } + ], + "optional_parameters": [ + { + "name": "from", + "type": "STRING", + "description": "Number or name that appears as the sender of this SMS. If not set, default sender name is used.", + "default": "+44400040000" + }, + { + "name": "dlr-url", + "type": "STRING", + "description": "Address where DLR requests are made, when SMS is delivered.", + "default": "http://myapp.com/dlr.php" + }, + { + "name": "time_to_send", + "type": "STRING", + "description": "Time in unix timestamp format, when the SMS should be sent.", + "default": "1372320772" + }, + { + "name": "charset", + "type": "STRING", + "description": "Encoding of \"text\" parameter. Defaults to UTF-8", + "default": "UTF8" + }, + { + "name": "autoconvert", + "type": "BOOLEAN", + "description": "Disable automatically stripping whitespaces and replacing some characters (\u00f5\u00d5\u2013\u201e\u201c``) with less characters consuming alternatives (\u00f2\u00f2-\"\"'')", + "default": "" + }, + { + "name": "udh", + "type": "STRING", + "description": "SMS User Data Header", + "default": "" + }, + { + "name": "coding", + "type": "NUMBER", + "description": "0 = 7 Bits 1 = 8 Bits 2 = UCS-2", + "default": "1" + } + ], + "code": "import requests\n\nurl = \"https://messente-messente.p.rapidapi.com/send_sms/\"\nquerystring = {\"text\": \"Hi! How are you doing?\", \"to\": \"+44000000000\", \"from\": \"+44400040000\", \"dlr-url\": \"http://myapp.com/dlr.php\", \"time_to_send\": \"1372320772\", \"charset\": \"UTF8\", \"autoconvert\": \"\", \"udh\": \"\", \"coding\": \"1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messente-messente.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://messente-messente.p.rapidapi.com/send_sms/\"\nquerystring = {\"text\": \"Hi! How are you doing?\", \"to\": \"+44000000000\", \"from\": \"+44400040000\", \"dlr-url\": \"http://myapp.com/dlr.php\", \"time_to_send\": \"1372320772\", \"charset\": \"UTF8\", \"autoconvert\": \"\", \"udh\": \"\", \"coding\": \"1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messente-messente.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mitto_sms_developers_guide.json b/toolbench/toolenv/tools/Communication/mitto_sms_developers_guide.json new file mode 100644 index 0000000000000000000000000000000000000000..31f2c4230e10a81127207470b56a3c1385fed9cc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mitto_sms_developers_guide.json @@ -0,0 +1,110 @@ +{ + "product_id": "api_ffd2fb68-5eda-4dc2-ad0b-793761e76667", + "tool_description": "Guideline for easy integration of Mitto SMS service.", + "home_url": "https://rapidapi.com/kabezaaa/api/mitto-sms-developers-guide/", + "name": "Mitto SMS Developers Guide", + "title": "Mitto SMS Developers Guide", + "pricing": "FREEMIUM", + "tool_name": "Mitto SMS Developers Guide", + "score": null, + "host": "mitto-sms-developers-guide.p.rapidapi.com", + "api_list": [ + { + "name": "Mitto SMS Endpoint", + "url": "https://mitto-sms-developers-guide.p.rapidapi.com/sms", + "description": "Call this endpoint to send SMS sending request", + "method": "POST", + "required_parameters": [ + { + "name": "From", + "type": "STRING", + "description": "Sender ID of the SMS message seen on the receivers phone", + "default": "+44764444444" + }, + { + "name": "to", + "type": "NUMBER", + "description": "Phone number that you are sending SMS to", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "Content of the SMS message", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "flash", + "type": "BOOLEAN", + "description": "When set to true it will send the message in Flash mode.", + "default": "" + }, + { + "name": "validity", + "type": "NUMBER", + "description": "Validity period of the SMS message in minutes. When not specified, the validity of a message defaults to 2,880 minutes (48 hours).", + "default": "2880" + }, + { + "name": "pid", + "type": "NUMBER", + "description": "Protocol identifier. Must be consistent with the udh parameter value. When not specified, defaults to 0.", + "default": "0" + }, + { + "name": "test", + "type": "BOOLEAN", + "description": "When set to true, the API call is in test mode (No actual SMS is delivered) and \"test\": true is returned in the response. For test calls, there is no id parameter in the response. When set to false, the API call is made in production mode. An actual SMS is delivered, and the id parameter is returned in the response. In addition to that, \"test\": true is also returned. When not specified (the default), the API call is made in production mode. The id parameter is returned in the response, but not the test parameter. Please also refer to Making Test API Calls.", + "default": "" + }, + { + "name": "type", + "type": "STRING", + "description": "Character set in which the message content will be encoded. If not specified, the default encoding (GSM) is used For Unicode, set type=Unicode. For Binary, set type=Binary.", + "default": "" + }, + { + "name": "udh", + "type": "STRING", + "description": "Custom Hex-encoded User Data Header.", + "default": "" + }, + { + "name": "reference", + "type": "STRING", + "description": "A customer reference. It is possible to set a different reference string for each message or tag multiple messages with the same string and group them together. Further details can be found at Delivery Reports and Adding Metadata to the Message.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://mitto-sms-developers-guide.p.rapidapi.com/sms\"\nquerystring = {\"From\": \"+44764444444\", \"flash\": \"\", \"to\": \"\", \"validity\": \"2880\", \"pid\": \"0\", \"test\": \"\", \"type\": \"\", \"text\": \"\", \"udh\": \"\", \"reference\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mitto-sms-developers-guide.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mitto-sms-developers-guide.p.rapidapi.com/sms\"\nquerystring = {\"From\": \"+44764444444\", \"flash\": \"\", \"to\": \"\", \"validity\": \"2880\", \"pid\": \"0\", \"test\": \"\", \"type\": \"\", \"text\": \"\", \"udh\": \"\", \"reference\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mitto-sms-developers-guide.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mobile_recharge_plans_api_tariff_plans_free.json b/toolbench/toolenv/tools/Communication/mobile_recharge_plans_api_tariff_plans_free.json new file mode 100644 index 0000000000000000000000000000000000000000..ce06567db1fd48253da01b8d00e78751f96c8c5e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mobile_recharge_plans_api_tariff_plans_free.json @@ -0,0 +1,48 @@ +{ + "product_id": "5909cb4de4b00fb744a8a034", + "tool_description": "well-tried tariff plan API,tri telecom data tested, recharge plans API tried free come to know api,Developer or Company host detect all about expected latest plans info of variegated in telecom functioning operators around pan India. data Keywords: Recharge Plans API, freshest Mobile Recharge API, up-to-date Mobile recharge info, tariff plan of jio Prime, recharge plans, telecom data, online recharge API, tariff plan of bsnl, tariff plans of airtel, tariff plan of aircel, tariff plan of vodafone, tariff plans of mtnl, tariff plans of tata docomo, tariff plan of Jio, tariff plans of reliance, tariff plan of reliance gsm, tariff plan bsnl up east, tariff plan app,tariff plan comparison india, tariff plan comparison, tariff plan comparison delhi-NCR, tariff plans of flex, tariff plans of Postpaid, tariff plans gsm,", + "home_url": "https://rapidapi.com/nixinfo/api/mobile-recharge-plans-api-tariff-plans-free/", + "name": "mobile-recharge-plans-api-tariff-Plans-free", + "title": "mobile-recharge-plans-api-tariff-Plans-free", + "pricing": "FREE", + "tool_name": "mobile-recharge-plans-api-tariff-Plans-free", + "score": null, + "host": "nixinfo-tariff-plan-code-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Tariff Plans api", + "url": "https://nixinfo-tariff-plan-code-v1.p.rapidapi.com/Recharge Plan api", + "description": "Just send the operator and circle and GET ALL PLANS according to circle and operator our api", + "method": "GET", + "required_parameters": [ + { + "name": "tariff-plan-api", + "type": "STRING", + "description": "Hello First you Get the API from our site nixinfo.in for CTRLKEY.", + "default": "operator:MTNL & circle:Delhi NCR" + }, + { + "name": "ctrlkey", + "type": "STRING", + "description": "Enter nixinfo CTRLKEY", + "default": "" + }, + { + "name": "demo", + "type": "STRING", + "description": "[{\"Detail\":\"140 Local SMS. Maximum 100 SMS per Day\",\"Amount\":\"13\",\"Validity\":\"5 Days\"},{\"Detail\":\"200 Local and STD SMS. Maximum 100 SMS per Day\",\"Amount\":\"26\",\"Validity\":\"14 days\"},{\"Detail\":\"340 Local and STD SMS. Maximum 100 SMS per Day\",\"Amount\":\"34\",\"Validity\":\"28 days\"},{\"Detail\":\"450 Local and STD SMS. Maximum 100 SMS per Day\",\"Amount\":\"42\",\"Validity\":\"28 days\"},{\"Detail\":\"700 Local and STD SMS. Maximum 100 SMS per Day\",\"Amount\":\"62\",\"Validity\":\"28 days\"},{\"Detail\":\"1000 Local and STD SMS. Maximum 100 SMS per Day\",\"Amount\":\"88\",\"Validity\":\"28 days\"},{\"Detail\":\"2400 Local and STD SMS. Maximum 100 SMS per Day\",\"Amount\":\"218\",\"Validity\":\"28 days\"}]", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://nixinfo-tariff-plan-code-v1.p.rapidapi.com/Recharge Plan api\"\nquerystring = {\"tariff-plan-api\": \"operator:MTNL & circle:Delhi NCR\", \"ctrlkey\": \"\", \"demo\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nixinfo-tariff-plan-code-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://nixinfo-tariff-plan-code-v1.p.rapidapi.com/Recharge Plan api\"\nquerystring = {\"tariff-plan-api\": \"operator:MTNL & circle:Delhi NCR\", \"ctrlkey\": \"\", \"demo\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nixinfo-tariff-plan-code-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "message": "Endpoint '/Recharge Plan api' does not exist" + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "mobile_recharge_plans_api_tariff_plans_free" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mobile_recharge_plans_api_tariff_plans_free/api.py b/toolbench/toolenv/tools/Communication/mobile_recharge_plans_api_tariff_plans_free/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c315a04716d4ee7627d830ff0df88e52f551ae39 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mobile_recharge_plans_api_tariff_plans_free/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def tariff_plans_api(tariff_plan_api: str, ctrlkey: str, demo: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Just send the operator and circle and GET ALL PLANS according to circle and operator our api" + tariff_plan_api: Hello First you Get the API from our site nixinfo.in for CTRLKEY. + ctrlkey: Enter nixinfo CTRLKEY + demo: [{"Detail":"140 Local SMS. Maximum 100 SMS per Day","Amount":"13","Validity":"5 Days"},{"Detail":"200 Local and STD SMS. Maximum 100 SMS per Day","Amount":"26","Validity":"14 days"},{"Detail":"340 Local and STD SMS. Maximum 100 SMS per Day","Amount":"34","Validity":"28 days"},{"Detail":"450 Local and STD SMS. Maximum 100 SMS per Day","Amount":"42","Validity":"28 days"},{"Detail":"700 Local and STD SMS. Maximum 100 SMS per Day","Amount":"62","Validity":"28 days"},{"Detail":"1000 Local and STD SMS. Maximum 100 SMS per Day","Amount":"88","Validity":"28 days"},{"Detail":"2400 Local and STD SMS. Maximum 100 SMS per Day","Amount":"218","Validity":"28 days"}] + + """ + url = f"https://nixinfo-tariff-plan-code-v1.p.rapidapi.com/recharge plan api" + querystring = {'tariff-plan-api': tariff_plan_api, 'ctrlkey': ctrlkey, 'demo': demo, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nixinfo-tariff-plan-code-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/mogreet.json b/toolbench/toolenv/tools/Communication/mogreet.json new file mode 100644 index 0000000000000000000000000000000000000000..5a0f53ed4126fb841ec32b21fdab6f8f5e14f1ac --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mogreet.json @@ -0,0 +1,303 @@ +{ + "product_id": "53aa3477e4b051a76d23f52b", + "tool_description": "SMS, MMS, Transcoding and User Lookup APIs. Quickly and easily add messaging and rich media to your mobile application with the Mogreet Mobile Services Platform.", + "home_url": "https://rapidapi.com/mogreetapi/api/mogreet/", + "name": "Mogreet", + "title": "Mogreet", + "pricing": "FREE", + "tool_name": "Mogreet", + "score": null, + "host": "mogreetapi.p.rapidapi.com", + "api_list": [ + { + "name": "list.send", + "url": "https://mogreetapi.p.rapidapi.com/cm/list.send", + "description": "Send a blast of messages to a list of users.", + "method": "POST", + "required_parameters": [ + { + "name": "list_id", + "type": "STRING", + "description": "Id of the list to use.", + "default": "12332" + }, + { + "name": "campaign_id", + "type": "STRING", + "description": "Either your sms or mms_campaign_id.", + "default": "34532" + }, + { + "name": "message", + "type": "STRING", + "description": "Body of the text message", + "default": "Hello world" + }, + { + "name": "content_url", + "type": "STRING", + "description": "For MMS: url of an image, video or audio.", + "default": "http://i47.tinypic.com/14dkeio.jpg" + }, + { + "name": "format", + "type": "STRING", + "description": "specify response format (xml by default)", + "default": "json" + } + ], + "optional_parameters": [ + { + "name": "content_id", + "type": "STRING", + "description": "For MMS: content_id of a media already ingested with the media.upload API", + "default": "4343" + } + ], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.send\"\nquerystring = {\"list_id\": \"12332\", \"campaign_id\": \"34532\", \"message\": \"Hello world\", \"content_id\": \"4343\", \"content_url\": \"http://i47.tinypic.com/14dkeio.jpg\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.send\"\nquerystring = {\"list_id\": \"12332\", \"campaign_id\": \"34532\", \"message\": \"Hello world\", \"content_id\": \"4343\", \"content_url\": \"http://i47.tinypic.com/14dkeio.jpg\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "list.prune", + "url": "https://mogreetapi.p.rapidapi.com/cm/list.prune", + "description": "Remove number from a list.", + "method": "POST", + "required_parameters": [ + { + "name": "list_id", + "type": "STRING", + "description": "Id of the list to update.", + "default": "12332" + }, + { + "name": "numbers", + "type": "STRING", + "description": "List of phone numbers to remove.", + "default": "3104323098,3104323093" + } + ], + "optional_parameters": [ + { + "name": "format", + "type": "STRING", + "description": "specify response format (xml by default)", + "default": "json" + } + ], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.prune\"\nquerystring = {\"list_id\": \"12332\", \"numbers\": \"3104323098,3104323093\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.prune\"\nquerystring = {\"list_id\": \"12332\", \"numbers\": \"3104323098,3104323093\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "list.create", + "url": "https://mogreetapi.p.rapidapi.com/cm/list.create", + "description": "Create a list of mobile numbers.", + "method": "POST", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "IOS users list" + } + ], + "optional_parameters": [ + { + "name": "format", + "type": "STRING", + "description": "specify json format (xml by default)", + "default": "json" + } + ], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.create\"\nquerystring = {\"name\": \"IOS users list\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.create\"\nquerystring = {\"name\": \"IOS users list\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "list.append", + "url": "https://mogreetapi.p.rapidapi.com/cm/list.append", + "description": "Add numbers to your list.", + "method": "POST", + "required_parameters": [ + { + "name": "list_id", + "type": "STRING", + "description": "Id of the list to update.", + "default": "12332" + }, + { + "name": "numbers", + "type": "STRING", + "description": "List of phone numbers to append.", + "default": "3104323098,3104323093,3104324098" + } + ], + "optional_parameters": [ + { + "name": "format", + "type": "STRING", + "description": "specify response format (xml by default)", + "default": "json" + } + ], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.append\"\nquerystring = {\"list_id\": \"12332\", \"numbers\": \"3104323098,3104323093,3104324098\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.append\"\nquerystring = {\"list_id\": \"12332\", \"numbers\": \"3104323098,3104323093,3104324098\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "media.upload", + "url": "https://mogreetapi.p.rapidapi.com/cm/media.upload", + "description": "Upload image, video or audio files to Mogreet", + "method": "POST", + "required_parameters": [ + { + "name": "type", + "type": "STRING", + "description": "Image, audio or video are the 3 media types.", + "default": "image" + }, + { + "name": "name", + "type": "STRING", + "description": "Name you want to give to this media", + "default": "image of a cat" + }, + { + "name": "file", + "type": "BINARY", + "description": "Raw file posted as multi-part form data", + "default": "@my_cat.jpeg" + }, + { + "name": "format", + "type": "STRING", + "description": "specify json format (xml by default)", + "default": "json" + } + ], + "optional_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "You can provide an url instead of posting a file.", + "default": "http://i47.tinypic.com/14dkeio.jpg" + }, + { + "name": "callback_url", + "type": "STRING", + "description": "webhook to receive update when ingestion and transcodes are complete.", + "default": "http://myapp.herokuapp.com/uploads" + } + ], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/media.upload\"\nquerystring = {\"type\": \"image\", \"name\": \"image of a cat\", \"file\": \"@my_cat.jpeg\", \"url\": \"http://i47.tinypic.com/14dkeio.jpg\", \"callback_url\": \"http://myapp.herokuapp.com/uploads\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/media.upload\"\nquerystring = {\"type\": \"image\", \"name\": \"image of a cat\", \"file\": \"@my_cat.jpeg\", \"url\": \"http://i47.tinypic.com/14dkeio.jpg\", \"callback_url\": \"http://myapp.herokuapp.com/uploads\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "list.empty", + "url": "https://mogreetapi.p.rapidapi.com/cm/list.empty", + "description": "Erase a list.", + "method": "POST", + "required_parameters": [ + { + "name": "list_id", + "type": "STRING", + "description": "id of the list to erase", + "default": "324243" + }, + { + "name": "name", + "type": "STRING", + "description": "Name of the list to erase (additional security)", + "default": "IOS users list" + }, + { + "name": "format", + "type": "STRING", + "description": "specify response format (xml by default)", + "default": "json" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.empty\"\nquerystring = {\"list_id\": \"324243\", \"name\": \"IOS users list\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/cm/list.empty\"\nquerystring = {\"list_id\": \"324243\", \"name\": \"IOS users list\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "transaction.send", + "url": "https://mogreetapi.p.rapidapi.com/moms/transaction.send", + "description": "main api endpoint", + "method": "POST", + "required_parameters": [ + { + "name": "campaign_id", + "type": "STRING", + "description": "The sms or mms campaign id visible in your dashboard", + "default": "43123" + }, + { + "name": "to", + "type": "STRING", + "description": "The destination mobile number", + "default": "21323452345" + }, + { + "name": "message", + "type": "STRING", + "description": "Body of the text message", + "default": "Hello world" + } + ], + "optional_parameters": [ + { + "name": "content_url", + "type": "STRING", + "description": "For MMS: url of an image, video or audio.", + "default": "http://i47.tinypic.com/14dkeio.jpg" + }, + { + "name": "content_id", + "type": "STRING", + "description": "For MMS: content_id of a media already ingested with the media.upload API", + "default": "5234" + }, + { + "name": "callback", + "type": "STRING", + "description": "optionnal webhook to receive status on the message delivery to carriers", + "default": "http://myapp.herokuapp.com/status" + }, + { + "name": "from", + "type": "STRING", + "description": "adds the following text to the message: \"message from 21398709870:\"", + "default": "21398709870" + }, + { + "name": "format", + "type": "STRING", + "description": "specify json format (xml by default)", + "default": "json" + } + ], + "code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/moms/transaction.send\"\nquerystring = {\"campaign_id\": \"43123\", \"to\": \"21323452345\", \"message\": \"Hello world\", \"content_url\": \"http://i47.tinypic.com/14dkeio.jpg\", \"content_id\": \"5234\", \"callback\": \"http://myapp.herokuapp.com/status\", \"from\": \"21398709870\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mogreetapi.p.rapidapi.com/moms/transaction.send\"\nquerystring = {\"campaign_id\": \"43123\", \"to\": \"21323452345\", \"message\": \"Hello world\", \"content_url\": \"http://i47.tinypic.com/14dkeio.jpg\", \"content_id\": \"5234\", \"callback\": \"http://myapp.herokuapp.com/status\", \"from\": \"21398709870\", \"format\": \"json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mogreetapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mojitok_sticker_store_sdk.json b/toolbench/toolenv/tools/Communication/mojitok_sticker_store_sdk.json new file mode 100644 index 0000000000000000000000000000000000000000..d09fa6405a75e0009fd150ee45f9aaa571bb35a4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mojitok_sticker_store_sdk.json @@ -0,0 +1,910 @@ +{ + "tool_name":"Mojitok Sticker Store SDK", + "tool_description":"Mojitok Sticker Store API/SDK is a curated store of licensed animated stickers, emojis, and GIFs. ", + "title":"Mojitok Sticker Store SDK", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":7, + "avgSuccessRate":100, + "popularityScore":8.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/platfarm-platfarm-default/api/mojitok-sticker-store-sdk/", + "host":"mojitok-sticker-store-sdk.p.rapidapi.com", + "api_list":[ + { + "name":"/stickers/trending", + "url":"https://mojitok-sticker-store-sdk.p.rapidapi.com/stickers/trending", + "description":"API that provides information on creators and stickerpacks of 16 popular stickers", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"include", + "type":"STRING", + "description":"Use when you want to receive a response including sticker pack or creator information", + "default":"STICKER_PACK" + } + ], + "code":"import requests\n\nurl = \"https://mojitok-sticker-store-sdk.p.rapidapi.com/stickers/trending\"\nquerystring = {\"include\": include}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mojitok-sticker-store-sdk.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "data":{ + "id":"", + "images":[ + { + "spec":"", + "url":"" + } + ], + "language":"", + "stickerPackId":"", + "stickerPack":{ + "id":"", + "name":[ + { + "language":"en", + "content":"" + } + ], + "description":[ + { + "language":"en", + "content":"" + } + ], + "thumbnails":[ + { + "spec":"", + "url":"" + } + ], + "score":0, + "creator":{ + "id":"", + "nickname":[ + { + "language":"en", + "content":"" + } + ], + "SNSs":[ + { + "type":"INSTAGRAM", + "url":"", + "id":"", + "priority":0 + } + ], + "stickers":[], + "stickerPacks":[] + }, + "product":{ + "productType":"STICKER_PACK", + "priceType":"FREE", + "price":[ + { + "currency":"", + "price":0 + } + ] + }, + "promotions":[ + { + "period":{ + "startDate":"", + "endDate":"" + }, + "discountPercentType":"NONE", + "freeUse":{ + "name":"", + "freeUseType":"DAY_COUNT", + "availableDayCount":0, + "freeUseDueDate":"" + } + } + ], + "movingStatus":"ANIMATED", + "language":"", + "stickers":[] + }, + "creator":{ + "id":"", + "nickname":[ + { + "language":"en", + "content":"" + } + ], + "SNSs":[ + { + "type":"INSTAGRAM", + "url":"", + "id":"", + "priority":0 + } + ], + "stickers":[], + "stickerPacks":[ + { + "id":"", + "name":[ + { + "language":"en", + "content":"" + } + ], + "description":[ + { + "language":"en", + "content":"" + } + ], + "thumbnails":[ + { + "spec":"", + "url":"" + } + ], + "score":0, + "creator":{}, + "product":{ + "productType":"STICKER_PACK", + "priceType":"FREE", + "price":[ + { + "currency":"", + "price":0 + } + ] + }, + "promotions":[ + { + "period":{ + "startDate":"", + "endDate":"" + }, + "discountPercentType":"NONE", + "freeUse":{ + "name":"", + "freeUseType":"DAY_COUNT", + "availableDayCount":0, + "freeUseDueDate":"" + } + } + ], + "movingStatus":"ANIMATED", + "language":"", + "stickers":[] + } + ] + } + }, + "meta":{} + }, + "headers":{ + "content-type":"application/json; charset=utf-8" + }, + "schema":{ + "properties":{ + "data":{ + "description":"Object containing the information of the sticker", + "items":{ + "properties":{ + "creator":{ + "description":"Creator object", + "properties":{ + "SNSs":{ + "description":"Array of SNS objects", + "items":{ + "description":"(Inner) Object containing the creator's SNS information", + "properties":{ + "id":{ + "description":"Creator's ID on SNS", + "type":"string" + }, + "priority":{ + "description":"The order in which they should be displayed", + "type":"number" + }, + "type":{ + "description":"Types of SNS services used by creators", + "enum":[ + "INSTAGRAM", + "FACEBOOK", + "TWITTER", + "YOUTUBE" + ], + "type":"string" + }, + "url":{ + "description":"Prefix of the url to the personal page for each SNS", + "format":"uri", + "type":"string" + } + }, + "required":[ + "type", + "url", + "id", + "priority" + ], + "type":"object" + }, + "type":"array" + }, + "id":{ + "format":"uuid", + "type":"string" + }, + "nickname":{ + "description":"Array of MultiLang objects", + "items":{ + "description":"(Inner) Object containing multilingual string information", + "properties":{ + "content":{ + "description":"String written in a specific language", + "type":"string" + }, + "language":{ + "description":"The language used when writing the string. Provides only \"en\" and \"local\"\n\n- en: English\n- local: Creator's local language\n", + "enum":[ + "en", + "ko", + "local" + ], + "type":"string" + } + }, + "required":[ + "language", + "content" + ], + "type":"object" + }, + "type":"array" + }, + "stickerPacks":{ + "description":"Array of StickerPack objects", + "items":{ + "description":"Object containing sticker pack information", + "properties":{ + "creator":{ + "description":"Creator object", + "required":[ + "id", + "nickname", + "SNSs" + ], + "type":"object" + }, + "description":{ + "description":"Array of MultiLang objects", + "items":{ + "description":"(Inner) Object containing multilingual string information", + "properties":{ + "content":{ + "description":"String written in a specific language", + "type":"string" + }, + "language":{ + "description":"The language used when writing the string. Provides only \"en\" and \"local\"\n\n- en: English\n- local: Creator's local language\n", + "enum":[ + "en", + "ko", + "local" + ], + "type":"string" + } + }, + "required":[ + "language", + "content" + ], + "type":"object" + }, + "type":"array" + }, + "id":{ + "format":"uuid", + "type":"string" + }, + "language":{ + "description":"Language used on the sticker", + "type":"string" + }, + "movingStatus":{ + "enum":[ + "ANIMATED", + "STILL" + ], + "type":"string" + }, + "name":{ + "description":"Array of MultiLang objects", + "items":{ + "description":"(Inner) Object containing multilingual string information", + "properties":{ + "content":{ + "description":"String written in a specific language", + "type":"string" + }, + "language":{ + "description":"The language used when writing the string. Provides only \"en\" and \"local\"\n\n- en: English\n- local: Creator's local language\n", + "enum":[ + "en", + "ko", + "local" + ], + "type":"string" + } + }, + "required":[ + "language", + "content" + ], + "type":"object" + }, + "type":"array" + }, + "product":{ + "description":"Product object", + "properties":{ + "price":{ + "description":"Arrangement of product price information", + "items":{ + "description":"(Inner) Object containing price information by currency", + "properties":{ + "currency":{ + "description":"Currency information, ISO 4217 format", + "type":"string" + }, + "price":{ + "description":"price", + "type":"number" + } + }, + "required":[ + "currency", + "price" + ], + "type":"object" + }, + "type":"array" + }, + "priceType":{ + "description":"Type of commodity price\n- FREE\n - Permanently free\n- TIER_2\n - 1.99 USD(KRW 2500)\n", + "enum":[ + "FREE", + "TIER_2" + ], + "type":"string" + }, + "productType":{ + "description":"Name of product type\n- STICKER_PACK\n - Sticker pack\n", + "enum":[ + "STICKER_PACK" + ], + "type":"string" + } + }, + "required":[ + "currencySpecificPrice" + ], + "type":"object" + }, + "promotions":{ + "description":"Promotion 객체의 배열", + "items":{ + "description":"(Inner) Object containing product discount or free usage information", + "properties":{ + "discountPercentType":{ + "description":"Type of percentage to discount\n- NONE\n No discount\n- DISCOUNT_PERCENT_10\n 10% discount\n- DISCOUNT_PERCENT_20\n 20% discount\n- DISCOUNT_PERCENT_30\n 30% discount\n- DISCOUNT_PERCENT_40\n 40% discount\n- DISCOUNT_PERCENT_50\n 50% discount\n", + "enum":[ + "NONE", + "DISCOUNT_PERCENT_10", + "DISCOUNT_PERCENT_20", + "DISCOUNT_PERCENT_30", + "DISCOUNT_PERCENT_40", + "DISCOUNT_PERCENT_50" + ], + "type":"string" + }, + "freeUse":{ + "description":"Information on free use of products", + "properties":{ + "availableDayCount":{ + "description":"Days of free use, Present only when \"freeUseType\" is DAY_COUNT", + "type":"number" + }, + "freeUseDueDate":{ + "description":"Free expiration date, according to ISO 8601 format.\nPresent only when freeUseType is DUE_DATE\n", + "format":"date-time", + "type":"string" + }, + "freeUseType":{ + "description":"Type of free use applied to the sticker pack\n- DAY_COUNT\n Free use as much as \"availableDayCount\"\n- DUE_DATE\n Free use up to \"freeUseDueDate\"\n", + "enum":[ + "DAY_COUNT", + "DUE_DATE" + ], + "type":"string" + }, + "name":{ + "description":"Name of discount information", + "type":"string" + } + }, + "required":[ + "name", + "freeUseType" + ], + "type":"object" + }, + "period":{ + "description":"Event period", + "properties":{ + "endDate":{ + "description":"End date, according to ISO 8601 format", + "format":"date-time", + "type":"string" + }, + "startDate":{ + "description":"Start date, according to ISO 8601 format", + "format":"date-time", + "type":"string" + } + }, + "required":[ + "startDate", + "endDate" + ], + "type":"object" + } + }, + "type":"object" + }, + "type":"array" + }, + "score":{ + "description":"Sticker Pack Score", + "type":"number" + }, + "stickers":{ + "description":"Array of Sticker objects", + "type":"array" + }, + "thumbnails":{ + "description":"Array of Image objects", + "items":{ + "description":"(Inner) Object holding image information", + "properties":{ + "spec":{ + "description":"이미지의 spec 을 요약한 문자열", + "type":"string" + }, + "url":{ + "description":"이미지의 URL", + "format":"uri", + "type":"string" + } + }, + "required":[ + "spec", + "url" + ], + "type":"object" + }, + "type":"array" + } + }, + "required":[ + "id", + "name", + "description", + "thumbnails", + "product" + ], + "type":"object" + }, + "type":"array" + }, + "stickers":{ + "description":"Array of Sticker objects", + "type":"array" + } + }, + "required":[ + "id", + "nickname", + "SNSs" + ], + "type":"object" + }, + "id":{ + "description":"sticker ID UUID format", + "format":"uuid", + "type":"string" + }, + "images":{ + "description":"Array of Image objects", + "items":{ + "description":"(Inner) Object holding image information", + "properties":{ + "spec":{ + "description":"이미지의 spec 을 요약한 문자열", + "type":"string" + }, + "url":{ + "description":"이미지의 URL", + "format":"uri", + "type":"string" + } + }, + "required":[ + "spec", + "url" + ], + "type":"object" + }, + "type":"array" + }, + "language":{ + "description":"Language used on the sticker", + "type":"string" + }, + "stickerPack":{ + "description":"StickerPack object", + "properties":{ + "creator":{ + "description":"Creator object", + "properties":{ + "SNSs":{ + "description":"Array of SNS objects", + "items":{ + "description":"(Inner) Object containing the creator's SNS information", + "properties":{ + "id":{ + "description":"Creator's ID on SNS", + "type":"string" + }, + "priority":{ + "description":"The order in which they should be displayed", + "type":"number" + }, + "type":{ + "description":"Types of SNS services used by creators", + "enum":[ + "INSTAGRAM", + "FACEBOOK", + "TWITTER", + "YOUTUBE" + ], + "type":"string" + }, + "url":{ + "description":"Prefix of the url to the personal page for each SNS", + "format":"uri", + "type":"string" + } + }, + "required":[ + "type", + "url", + "id", + "priority" + ], + "type":"object" + }, + "type":"array" + }, + "id":{ + "format":"uuid", + "type":"string" + }, + "nickname":{ + "description":"Array of MultiLang objects", + "items":{ + "description":"(Inner) Object containing multilingual string information", + "properties":{ + "content":{ + "description":"String written in a specific language", + "type":"string" + }, + "language":{ + "description":"The language used when writing the string. Provides only \"en\" and \"local\"\n\n- en: English\n- local: Creator's local language\n", + "enum":[ + "en", + "ko", + "local" + ], + "type":"string" + } + }, + "required":[ + "language", + "content" + ], + "type":"object" + }, + "type":"array" + }, + "stickerPacks":{ + "description":"Array of StickerPack objects", + "items":{ + "description":"Object containing sticker pack information", + "required":[ + "id", + "name", + "description", + "thumbnails", + "product" + ], + "type":"object" + }, + "type":"array" + }, + "stickers":{ + "description":"Array of Sticker objects", + "type":"array" + } + }, + "required":[ + "id", + "nickname", + "SNSs" + ], + "type":"object" + }, + "description":{ + "description":"Array of MultiLang objects", + "items":{ + "description":"(Inner) Object containing multilingual string information", + "properties":{ + "content":{ + "description":"String written in a specific language", + "type":"string" + }, + "language":{ + "description":"The language used when writing the string. Provides only \"en\" and \"local\"\n\n- en: English\n- local: Creator's local language\n", + "enum":[ + "en", + "ko", + "local" + ], + "type":"string" + } + }, + "required":[ + "language", + "content" + ], + "type":"object" + }, + "type":"array" + }, + "id":{ + "format":"uuid", + "type":"string" + }, + "language":{ + "description":"Language used on the sticker", + "type":"string" + }, + "movingStatus":{ + "enum":[ + "ANIMATED", + "STILL" + ], + "type":"string" + }, + "name":{ + "description":"Array of MultiLang objects", + "items":{ + "description":"(Inner) Object containing multilingual string information", + "properties":{ + "content":{ + "description":"String written in a specific language", + "type":"string" + }, + "language":{ + "description":"The language used when writing the string. Provides only \"en\" and \"local\"\n\n- en: English\n- local: Creator's local language\n", + "enum":[ + "en", + "ko", + "local" + ], + "type":"string" + } + }, + "required":[ + "language", + "content" + ], + "type":"object" + }, + "type":"array" + }, + "product":{ + "description":"Product object", + "properties":{ + "price":{ + "description":"Arrangement of product price information", + "items":{ + "description":"(Inner) Object containing price information by currency", + "properties":{ + "currency":{ + "description":"Currency information, ISO 4217 format", + "type":"string" + }, + "price":{ + "description":"price", + "type":"number" + } + }, + "required":[ + "currency", + "price" + ], + "type":"object" + }, + "type":"array" + }, + "priceType":{ + "description":"Type of commodity price\n- FREE\n - Permanently free\n- TIER_2\n - 1.99 USD(KRW 2500)\n", + "enum":[ + "FREE", + "TIER_2" + ], + "type":"string" + }, + "productType":{ + "description":"Name of product type\n- STICKER_PACK\n - Sticker pack\n", + "enum":[ + "STICKER_PACK" + ], + "type":"string" + } + }, + "required":[ + "currencySpecificPrice" + ], + "type":"object" + }, + "promotions":{ + "description":"Promotion 객체의 배열", + "items":{ + "description":"(Inner) Object containing product discount or free usage information", + "properties":{ + "discountPercentType":{ + "description":"Type of percentage to discount\n- NONE\n No discount\n- DISCOUNT_PERCENT_10\n 10% discount\n- DISCOUNT_PERCENT_20\n 20% discount\n- DISCOUNT_PERCENT_30\n 30% discount\n- DISCOUNT_PERCENT_40\n 40% discount\n- DISCOUNT_PERCENT_50\n 50% discount\n", + "enum":[ + "NONE", + "DISCOUNT_PERCENT_10", + "DISCOUNT_PERCENT_20", + "DISCOUNT_PERCENT_30", + "DISCOUNT_PERCENT_40", + "DISCOUNT_PERCENT_50" + ], + "type":"string" + }, + "freeUse":{ + "description":"Information on free use of products", + "properties":{ + "availableDayCount":{ + "description":"Days of free use, Present only when \"freeUseType\" is DAY_COUNT", + "type":"number" + }, + "freeUseDueDate":{ + "description":"Free expiration date, according to ISO 8601 format.\nPresent only when freeUseType is DUE_DATE\n", + "format":"date-time", + "type":"string" + }, + "freeUseType":{ + "description":"Type of free use applied to the sticker pack\n- DAY_COUNT\n Free use as much as \"availableDayCount\"\n- DUE_DATE\n Free use up to \"freeUseDueDate\"\n", + "enum":[ + "DAY_COUNT", + "DUE_DATE" + ], + "type":"string" + }, + "name":{ + "description":"Name of discount information", + "type":"string" + } + }, + "required":[ + "name", + "freeUseType" + ], + "type":"object" + }, + "period":{ + "description":"Event period", + "properties":{ + "endDate":{ + "description":"End date, according to ISO 8601 format", + "format":"date-time", + "type":"string" + }, + "startDate":{ + "description":"Start date, according to ISO 8601 format", + "format":"date-time", + "type":"string" + } + }, + "required":[ + "startDate", + "endDate" + ], + "type":"object" + } + }, + "type":"object" + }, + "type":"array" + }, + "score":{ + "description":"Sticker Pack Score", + "type":"number" + }, + "stickers":{ + "description":"Array of Sticker objects", + "type":"array" + }, + "thumbnails":{ + "description":"Array of Image objects", + "items":{ + "description":"(Inner) Object holding image information", + "properties":{ + "spec":{ + "description":"이미지의 spec 을 요약한 문자열", + "type":"string" + }, + "url":{ + "description":"이미지의 URL", + "format":"uri", + "type":"string" + } + }, + "required":[ + "spec", + "url" + ], + "type":"object" + }, + "type":"array" + } + }, + "required":[ + "id", + "name", + "description", + "thumbnails" + ], + "type":"object" + }, + "stickerPackId":{ + "description":"ID of the sticker pack to which the sticker belongs", + "format":"uuid", + "type":"string" + } + }, + "required":[ + "id", + "images" + ], + "type":"object" + }, + "type":"array" + }, + "meta":{ + "type":"object" + } + }, + "type":"object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/mojitok_sticker_store_sdk/api.py b/toolbench/toolenv/tools/Communication/mojitok_sticker_store_sdk/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c49b2eb3951210c90225fde1af118bbc3e87e1bf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/mojitok_sticker_store_sdk/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def stickers_trending(include: str='STICKER_PACK', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API that provides information on creators and stickerpacks of 16 popular stickers" + include: Use when you want to receive a response including sticker pack or creator information + + """ + url = f"https://mojitok-sticker-store-sdk.p.rapidapi.com/stickers/trending" + querystring = {} + if include: + querystring['include'] = include + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "mojitok-sticker-store-sdk.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/moxtra.json b/toolbench/toolenv/tools/Communication/moxtra.json new file mode 100644 index 0000000000000000000000000000000000000000..d9ee7842494bb073e1efb176e4d9c160744b8199 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/moxtra.json @@ -0,0 +1,577 @@ +{ + "product_id": "55246a61e4b01d538895c2c7", + "tool_description": "Moxtra delivers a mobile-first collaboration platform that can be embedded within existing applications, allowing developers to deploy a powerful mobile solution \u2013 quickly and affordably, without long development cycles. We transform innovative mobile apps and legacy software solutions alike into tools for social business, keeping distributed teams engaged and productive inside their existing workflow.", + "home_url": "https://rapidapi.com/moxtra/api/moxtra/", + "name": "Moxtra", + "title": "Moxtra", + "pricing": "FREE", + "tool_name": "Moxtra", + "score": null, + "host": "moxtra.p.rapidapi.com", + "api_list": [ + { + "name": "Schedule Meet", + "url": "https://moxtra.p.rapidapi.com/meets/schedule", + "description": "Schedule a meet for future time", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/meets/schedule\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/meets/schedule\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add Message to Binder Chat", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/comments", + "description": "Add a message to a binder chat identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/comments\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/comments\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Remove user from binder with email", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/removeuser", + "description": "Remove an user from a binder identified by {binder_id} with email", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/removeuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/removeuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update user profile", + "url": "https://moxtra.p.rapidapi.com/{user_id}", + "description": "Update a user identified by {user_id} with input new value(s).", + "method": "POST", + "required_parameters": [ + { + "name": "user_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Binder", + "url": "https://moxtra.p.rapidapi.com/me/binders", + "description": "Create a binder identified by {user_id}", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/me/binders\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/me/binders\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Clone binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/clone", + "description": "Duplicate/Clone the binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/clone\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/clone\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add team users to a binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/addteamuser", + "description": "Add users from the same team into the binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/addteamuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/addteamuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Rename a binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}", + "description": "Rename a binder name identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Category", + "url": "https://moxtra.p.rapidapi.com/{user_id}/categories", + "description": "Create category identified by {user_id}", + "method": "POST", + "required_parameters": [ + { + "name": "user_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/categories\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/categories\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Copy Pages to Binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/copypages", + "description": "Copy all pages from one binder to another binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/copypages\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/copypages\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add Web Link Page", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/pageweblink", + "description": "Add a web link kpage into the binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pageweblink\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pageweblink\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add Page Comment", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/pages/{page_id}/comments", + "description": "Add a comment to the page identified by {page_id} and {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "page_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pages/{page_id}/comments\"\nquerystring = {\"binder_id\": \"\", \"page_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pages/{page_id}/comments\"\nquerystring = {\"binder_id\": \"\", \"page_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Rename Category", + "url": "https://moxtra.p.rapidapi.com/{user_id}/categories/rename", + "description": "Rename a category name identified by {user_id} and {category_id}", + "method": "POST", + "required_parameters": [ + { + "name": "user_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/categories/rename\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/categories/rename\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Assign Binders to a Category", + "url": "https://moxtra.p.rapidapi.com/{user_id}/categories/{category_id}", + "description": "Assign binders to a category identified by {user_id} and {category_id}", + "method": "POST", + "required_parameters": [ + { + "name": "user_id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "category_id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "id", + "type": "STRING", + "description": "Binder Id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/categories/{category_id}\"\nquerystring = {\"user_id\": \"\", \"category_id\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/categories/{category_id}\"\nquerystring = {\"user_id\": \"\", \"category_id\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Remove user from binder with unique id", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/removeuser", + "description": "Remove user from binder with unique id", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/removeuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/removeuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add Annotation", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/pages/{page_id}/annotations", + "description": "Add annotation to a page identified by {page_id} and {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "page_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pages/{page_id}/annotations\"\nquerystring = {\"binder_id\": \"\", \"page_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pages/{page_id}/annotations\"\nquerystring = {\"binder_id\": \"\", \"page_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add a Todo item", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/todos", + "description": "Add a todo item in the binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/todos\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/todos\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Invite Contacts via Email", + "url": "https://moxtra.p.rapidapi.com/{user_id}/contacts", + "description": "Invite users to become contacts of the user identified by {user_id} via email.", + "method": "POST", + "required_parameters": [ + { + "name": "user_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/contacts\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/contacts\"\nquerystring = {\"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Upload User Picture", + "url": "https://moxtra.p.rapidapi.com/{user_id}/picture", + "description": "Upload a user's propfile picture identified by {user_id} via multipart/form-data.", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "Profile photo, encoded as form data.", + "default": "" + }, + { + "name": "user_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/picture\"\nquerystring = {\"file\": \"\", \"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{user_id}/picture\"\nquerystring = {\"file\": \"\", \"user_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update Meet", + "url": "https://moxtra.p.rapidapi.com/meets/{session_key}", + "description": "Update a scheduled meet identified by {session_key}", + "method": "POST", + "required_parameters": [ + { + "name": "session_key", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/meets/{session_key}\"\nquerystring = {\"session_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/meets/{session_key}\"\nquerystring = {\"session_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Page Upload", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/pageupload", + "description": "Upload pages to the binder identified by {binder_id} via multipart / form-data", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "Actual file that is uploaded to the binder", + "default": "" + }, + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pageupload\"\nquerystring = {\"file\": \"\", \"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/pageupload\"\nquerystring = {\"file\": \"\", \"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Copy Some Pages to Binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/copypages", + "description": "Copy some pages from one binder to another binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/copypages\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/copypages\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Invite users to Meet", + "url": "https://moxtra.p.rapidapi.com/meets/inviteuser", + "description": "Invite users to join meet via email or unique_id", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/meets/inviteuser\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/meets/inviteuser\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Invite user to a binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/inviteuser", + "description": "Invite users to join the binder identified by {binder_id} via email or unique_id", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/inviteuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/inviteuser\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update a Todo item", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/todos/{todo_id}", + "description": "Update a todo item in the binder identified by {binder_id} & {todo_id", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "todo_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/todos/{todo_id}\"\nquerystring = {\"binder_id\": \"\", \"todo_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/todos/{todo_id}\"\nquerystring = {\"binder_id\": \"\", \"todo_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Cover Upload", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/coverupload", + "description": "Upload binder cover image to the binder identified by {binder_id} via multipart/form-data", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/coverupload\"\nquerystring = {\"file\": \"\", \"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/coverupload\"\nquerystring = {\"file\": \"\", \"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Move Some Pages to Binder", + "url": "https://moxtra.p.rapidapi.com/{binder_id}/movepages", + "description": "Move some pages from one binder to another binder identified by {binder_id}", + "method": "POST", + "required_parameters": [ + { + "name": "binder_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/movepages\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://moxtra.p.rapidapi.com/{binder_id}/movepages\"\nquerystring = {\"binder_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"moxtra.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/multilang.json b/toolbench/toolenv/tools/Communication/multilang.json new file mode 100644 index 0000000000000000000000000000000000000000..1e85511f049b1718af021817cc12c310d0d4c27a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/multilang.json @@ -0,0 +1,24 @@ +{ + "tool_name":"multilang", + "tool_description":"multilang for slayermc", + "title":"multilang", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/slayermc-slayermc-default/api/multilang/", + "host":"multilang.p.rapidapi.com", + "api_list":[ + { + "name":"sds", + "url":"https://multilang.p.rapidapi.com/", + "description":"aazav", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://multilang.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"multilang.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/multilang/api.py b/toolbench/toolenv/tools/Communication/multilang/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6e69a7a89ea2ad0aab625775908a5129b1169d79 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/multilang/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sds(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "aazav" + + """ + url = f"https://multilang.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "multilang.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nameshouts/api.py b/toolbench/toolenv/tools/Communication/nameshouts/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8ea51fd8af8b3e7416e58d3fda4b3b03b490f326 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nameshouts/api.py @@ -0,0 +1,74 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def name_with_language(language: str, person_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for a name specifying a language" + language: The name of the language queried in lowercase + person_name: Name of the person. Chain Names to search for multiple names like "albert-einstein" + + """ + url = f"https://nameshouts-mashape.p.rapidapi.com/names/{person_name}/{language}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nameshouts-mashape.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def all_available_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns all available languages" + + """ + url = f"https://nameshouts-mashape.p.rapidapi.com/langs" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nameshouts-mashape.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def name_without_language(person_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Use this only if you don't know the language of origin" + person_name: The name of the person + + """ + url = f"https://nameshouts-mashape.p.rapidapi.com/names/{person_name}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nameshouts-mashape.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/natural_language_processing_understanding_personality_analysis_tone_intent.json b/toolbench/toolenv/tools/Communication/natural_language_processing_understanding_personality_analysis_tone_intent.json new file mode 100644 index 0000000000000000000000000000000000000000..83b9deb342530c5e5d3a737e8580e870700cb354 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/natural_language_processing_understanding_personality_analysis_tone_intent.json @@ -0,0 +1,45 @@ +{ + "product_id": "58f6d891e4b0d7c7f0a5a17d", + "tool_description": "This API provides text analysis for Tone, Sentiment, Summarization, Personality Analysis, and more.\r\n\r\nThis API can be used for:\r\nPart of Speech Tagging\r\nNamed Entity Recognition\r\nSentence Disambiguation\r\nKeyWord Extraction\r\nSummarization and Sentence Significance\r\nSentiment Analysis\r\nAlliteration Detection\r\nWord Sense Disambiguation\r\nClustering\r\nLogistic Regression Scoring\r\nProminence\r\nTagging for Latent Semantic Indexing\r\nTagging for Singular Value Decomposition\r\nPhonetic Decomposition\r\nReading Difficulty Modeling\r\nTechnical Difficulty Modeling\r\nSpelling Correction\r\nString Comparison and Plagiarism Detection\r\nAuthor Profiling\r\nPsychographic Modeling\r\nFact and Statistic Extraction\r\nIsm Extraction\r\nCharacter Language Modeling\r\n\r\nIt is also useful in the creation of ChatBots, SearchEngines, and KnolExtraction for Automated Documentation.", + "home_url": "https://rapidapi.com/Recognant/api/natural-language-processing-understanding-personality-analysis-tone-intent/", + "name": "Natural Language Processing - Understanding - Personality Analysis - Tone - Intent", + "title": "Natural Language Processing - Understanding - Personality Analysis - Tone - Intent", + "pricing": "FREEMIUM", + "tool_name": "Natural Language Processing - Understanding - Personality Analysis - Tone - Intent", + "score": { + "avgServiceLevel": 0, + "avgLatency": 180022, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "nlp-nlu.p.rapidapi.com", + "api_list": [ + { + "name": "Natural Language Processing - Understanding - Personality Analysis - Tone - Intent", + "url": "https://nlp-nlu.p.rapidapi.com/superstring/", + "description": "Natural Language Understanding-Computational Linguistics-Personality Profiling", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "q", + "type": "STRING", + "description": "The text to be analyzed.", + "default": "This is text to analyze. It can be quite long. Up to 10k characters." + }, + { + "name": "m", + "type": "STRING", + "description": "The analysis to be performed", + "default": "tokencount,composition" + } + ], + "code": "import requests\n\nurl = \"https://nlp-nlu.p.rapidapi.com/superstring/\"\nquerystring = {\"q\": \"This is text to analyze. It can be quite long. Up to 10k characters.\", \"m\": \"tokencount,composition\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nlp-nlu.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://nlp-nlu.p.rapidapi.com/superstring/\"\nquerystring = {\"q\": \"This is text to analyze. It can be quite long. Up to 10k characters.\", \"m\": \"tokencount,composition\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nlp-nlu.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nbnco_address_check.json b/toolbench/toolenv/tools/Communication/nbnco_address_check.json new file mode 100644 index 0000000000000000000000000000000000000000..e7f6eeb89e415806152d34d7c4afcdc5c032a309 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nbnco_address_check.json @@ -0,0 +1,93 @@ +{ + "tool_name":"NBNco Address Check", + "tool_description":"A simple address search API that returns key information about the NBNco™ access network availability. ", + "title":"NBNco Address Check", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":99, + "avgLatency":3466, + "avgSuccessRate":99, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/api-endpoints/api/nbnco-address-check/", + "host":"nbnco-address-check.p.rapidapi.com", + "api_list":[ + { + "name":"NBN Address Query", + "url":"https://nbnco-address-check.p.rapidapi.com/nbn_address", + "description":"NBN Address Query", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"242 EXHIBITION ST MELBOURNE VIC 3000 Australia" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nbnco-address-check.p.rapidapi.com/nbn_address\"\nquerystring = {\"address\": address}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nbnco-address-check.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "addressDetail":{ + "formattedAddress":"242 EXHIBITION ST MELBOURNE VIC 3000 Australia", + "frustrated":false, + "id":"LOC100059616306", + "latitude":-37.80970542, + "longitude":144.9698023, + "reasonCode":"FTTB_NS", + "serviceStatus":"in_construction", + "serviceType":"Fixed line", + "techType":"FTTB" + }, + "servingArea":{ + "csaId":"CSA300000010316", + "description":"242 EXHIBITION ST MELBOURNE, VIC 3000", + "rfsMessage":"Jul 2018", + "serviceCategory":"brownfields", + "serviceStatus":"available", + "serviceType":"Fixed line", + "techType":"FTTB" + }, + "timestamp":1578119984385 + }, + "headers":{ + "content-type":"application/json", + "date":"Sat, 04 Jan 2020 06:39:44 GMT", + "server":"RapidAPI-1.0.32", + "vary":"Accept-Encoding", + "x-clacks-overhead":"GNU Terry Pratchett", + "x-rapidapi-region":"AWS - ap-southeast-2", + "x-rapidapi-version":"1.0.32", + "x-ratelimit-requests-limit":"50000", + "x-ratelimit-requests-remaining":"49995", + "content-length":"662", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nbnco_address_check/api.py b/toolbench/toolenv/tools/Communication/nbnco_address_check/api.py new file mode 100644 index 0000000000000000000000000000000000000000..72674b24aa335494666f572a909d4bb9428616df --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nbnco_address_check/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def nbn_address_query(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "NBN Address Query" + + """ + url = f"https://nbnco-address-check.p.rapidapi.com/nbn_address" + querystring = {'address': address, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nbnco-address-check.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nbnco_address_search_api.json b/toolbench/toolenv/tools/Communication/nbnco_address_search_api.json new file mode 100644 index 0000000000000000000000000000000000000000..040e4a408fad66ca8a4791baf877a9af5669a852 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nbnco_address_search_api.json @@ -0,0 +1,85 @@ +{ + "tool_name":"nbnco Address Search API", + "tool_description":"A simple address search API that returns key information about the NBNco access network availability.", + "title":"nbnco Address Search API", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":98, + "avgLatency":3722, + "avgSuccessRate":98, + "popularityScore":8.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/datapipe-datapipe-default/api/nbnco-address-search-api/", + "host":"nbnco-address-search-api.p.rapidapi.com", + "api_list":[ + { + "name":"/nbn_address_search", + "url":"https://nbnco-address-search-api.p.rapidapi.com/nbn_address_search", + "description":"Returns search results for the given address", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"The address to search for in the NBN database", + "default":"242 EXHIBITION ST MELBOURNE VIC 3000 Australia" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nbnco-address-search-api.p.rapidapi.com/nbn_address_search\"\nquerystring = {\"address\": address}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nbnco-address-search-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "timestamp":1682330117835, + "servingArea":{ + "csaId":"CSA300000010316", + "techType":"FTTB", + "serviceType":"Fixed line", + "serviceStatus":"available", + "serviceCategory":"brownfields", + "rfsMessage":"Jul 2018", + "description":"242 EXHIBITION ST MELBOURNE, VIC 3000" + }, + "addressDetail":{ + "id":"LOC100059616306", + "latitude":-37.80969226, + "longitude":144.96980824, + "reasonCode":"FTTB_NS", + "altReasonCode":"NULL_NA", + "techFlip":"", + "serviceType":"Fixed line", + "serviceStatus":"in_construction", + "techType":"FTTB", + "formattedAddress":"242 EXHIBITION ST MELBOURNE VIC 3000 Australia", + "address1":"242 Exhibition St", + "address2":"Melbourne VIC 3000 Australia", + "frustrated":false, + "zeroBuildCost":true, + "speedTierAvailability":false, + "eec":1, + "coatChangeReason":"", + "cbdpricing":true, + "ee":true + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-length":"753", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 24 Apr 2023 09:55:18 GMT", + "etag":"W/\"2f1-S/YKzYQ/84NRTRrMWgsMiKjcmN4\"", + "expect-ct":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\"", + "replit-cluster":"global", + "server":"RapidAPI-1.2.8", + "strict-transport-security":"max-age=5243224; includeSubDomains", + "x-powered-by":"Express", + "x-rapidapi-region":"AWS - ap-southeast-2", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nbnco_address_search_api/api.py b/toolbench/toolenv/tools/Communication/nbnco_address_search_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9568526b1d8ddb167c039e397fb731731f08bc47 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nbnco_address_search_api/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def nbn_address_search(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns search results for the given address" + address: The address to search for in the NBN database + + """ + url = f"https://nbnco-address-search-api.p.rapidapi.com/nbn_address_search" + querystring = {'address': address, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nbnco-address-search-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/networking.json b/toolbench/toolenv/tools/Communication/networking.json new file mode 100644 index 0000000000000000000000000000000000000000..c1958168639ec9b123330f2a330c7ff26e4a25b6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/networking.json @@ -0,0 +1,30 @@ +{ + "tool_name":"Networking", + "tool_description":"This API will help you with several networking-related utilities.", + "title":"Networking", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":3476, + "avgSuccessRate":100, + "popularityScore":8.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/cognitivecamp-cognitivecamp-default/api/networking/", + "host":"networking.p.rapidapi.com", + "api_list":[ + { + "name":"WhatsMyIP", + "url":"https://networking.p.rapidapi.com/api", + "description":"This will fetch your public IP.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://networking.p.rapidapi.com/api\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"networking.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/networking/api.py b/toolbench/toolenv/tools/Communication/networking/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a2e9ed056166cdba2ba913574e735b0c7da1ae70 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/networking/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def whatsmyip(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This will fetch your public IP." + + """ + url = f"https://networking.p.rapidapi.com/api" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "networking.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/newsapp.json b/toolbench/toolenv/tools/Communication/newsapp.json new file mode 100644 index 0000000000000000000000000000000000000000..a75d424367c30e0704a3501964799c182c2a926f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/newsapp.json @@ -0,0 +1,24 @@ +{ + "tool_name":"newsapp", + "tool_description":"newsapp", + "title":"newsapp", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/manjunathkalburgi65512/api/newsapp4/", + "host":"newsapp4.p.rapidapi.com", + "api_list":[ + { + "name":"test", + "url":"https://newsapp4.p.rapidapi.com/", + "description":"test", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://newsapp4.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"newsapp4.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/newsapp/api.py b/toolbench/toolenv/tools/Communication/newsapp/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a09d89864f5d4648e78886a74702a67201384bed --- /dev/null +++ b/toolbench/toolenv/tools/Communication/newsapp/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "test" + + """ + url = f"https://newsapp4.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "newsapp4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nha_cai_uy_tin.json b/toolbench/toolenv/tools/Communication/nha_cai_uy_tin.json new file mode 100644 index 0000000000000000000000000000000000000000..faf665737306a8c7d88d5abe66e577513cd34618 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nha_cai_uy_tin.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Nha cai uy tin", + "tool_description":"Nhà cái uy tín - nhacai.la là trang chuyên review các nhà cái xanh chín nhất tại Việt Nam. Chơi cá cược thể thao, casino, tặng tiền cược miễn phí...\nWebsite: https://nhacai.la/", + "title":"Nha cai uy tin", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/nhacaila/api/nha-cai-uy-tin1/", + "host":"nha-cai-uy-tin1.p.rapidapi.com", + "api_list":[ + { + "name":"Nhà cái uy tín", + "url":"https://nha-cai-uy-tin1.p.rapidapi.com/", + "description":"Nhà cái uy tín - nhacai.la là trang chuyên review các nhà cái xanh chín nhất tại Việt Nam. Chơi cá cược thể thao, casino, tặng tiền cược miễn phí...\nThông tin chi tiết:\nWebsite: [https://nhacai.la/](url)\nĐịa chỉ: 400 Nguyễn Kim Cương, Tân Thạnh Tây, Củ Chi, Thành phố Hồ Chí Minh, Việt Nam \nEmail: vodathoa5085@gmail.com\n#nhacaiuytin #nhacai_la #topnhacaiuytin \nSocial:\n[https://twitter.com/nhacaila1\n](url)\n[https://www.linkedin.com/in/nhacaila/\n](url)\n[https://www.pinterest.com/nhacaila/\n](url)\n[https://social.msdn.microsoft.com/Profile/nhacaila\n](url)\n[https://social.technet.microsoft.com/Profile/nhacaila\n](url)\n[https://vimeo.com/nhacaila](url)", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nha-cai-uy-tin1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nha-cai-uy-tin1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"nhacaila", + "url":"https://nha-cai-uy-tin1.p.rapidapi.com/", + "description":"Nhà cái uy tín - nhacai.la là trang chuyên review các nhà cái xanh chín nhất tại Việt Nam. Chơi cá cược thể thao, casino, tặng tiền cược miễn phí...\nThông tin chi tiết:\nWebsite: [https://nhacai.la/](url)\nĐịa chỉ: 400 Nguyễn Kim Cương, Tân Thạnh Tây, Củ Chi, Thành phố Hồ Chí Minh, Việt Nam \nEmail: vodathoa5085@gmail.com\n#nhacaiuytin #nhacai_la #topnhacaiuytin \nSocial:\n[https://twitter.com/nhacaila1\n](url)\n[https://www.linkedin.com/in/nhacaila/\n](url)\n[https://www.pinterest.com/nhacaila/\n](url)\n[https://social.msdn.microsoft.com/Profile/nhacaila\n](url)\n[https://social.technet.microsoft.com/Profile/nhacaila\n](url)\n[https://vimeo.com/nhacaila](url)", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nha-cai-uy-tin1.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nha-cai-uy-tin1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nha_cai_uy_tin/api.py b/toolbench/toolenv/tools/Communication/nha_cai_uy_tin/api.py new file mode 100644 index 0000000000000000000000000000000000000000..37cc85f130504c46862473f7ffa0e005e056cf87 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nha_cai_uy_tin/api.py @@ -0,0 +1,84 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def nh_c_i_uy_t_n(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Nhà cái uy tín - nhacai.la là trang chuyên review các nhà cái xanh chín nhất tại Việt Nam. Chơi cá cược thể thao, casino, tặng tiền cược miễn phí... + Thông tin chi tiết: + Website: [https://nhacai.la/](url) + Địa chỉ: 400 Nguyễn Kim Cương, Tân Thạnh Tây, Củ Chi, Thành phố Hồ Chí Minh, Việt Nam + Email: vodathoa5085@gmail.com + #nhacaiuytin #nhacai_la #topnhacaiuytin + Social: + [https://twitter.com/nhacaila1 + ](url) + [https://www.linkedin.com/in/nhacaila/ + ](url) + [https://www.pinterest.com/nhacaila/ + ](url) + [https://social.msdn.microsoft.com/Profile/nhacaila + ](url) + [https://social.technet.microsoft.com/Profile/nhacaila + ](url) + [https://vimeo.com/nhacaila](url)" + + """ + url = f"https://nha-cai-uy-tin1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nha-cai-uy-tin1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def nhacaila(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Nhà cái uy tín - nhacai.la là trang chuyên review các nhà cái xanh chín nhất tại Việt Nam. Chơi cá cược thể thao, casino, tặng tiền cược miễn phí... + Thông tin chi tiết: + Website: [https://nhacai.la/](url) + Địa chỉ: 400 Nguyễn Kim Cương, Tân Thạnh Tây, Củ Chi, Thành phố Hồ Chí Minh, Việt Nam + Email: vodathoa5085@gmail.com + #nhacaiuytin #nhacai_la #topnhacaiuytin + Social: + [https://twitter.com/nhacaila1 + ](url) + [https://www.linkedin.com/in/nhacaila/ + ](url) + [https://www.pinterest.com/nhacaila/ + ](url) + [https://social.msdn.microsoft.com/Profile/nhacaila + ](url) + [https://social.technet.microsoft.com/Profile/nhacaila + ](url) + [https://vimeo.com/nhacaila](url)" + + """ + url = f"https://nha-cai-uy-tin1.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nha-cai-uy-tin1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nithintranslationapi.json b/toolbench/toolenv/tools/Communication/nithintranslationapi.json new file mode 100644 index 0000000000000000000000000000000000000000..2a15459a7895a48af47f555c60426b38c9fafc51 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nithintranslationapi.json @@ -0,0 +1,61 @@ +{ + "tool_name":"NithinTranslationAPI", + "tool_description":"For text translation", + "title":"NithinTranslationAPI", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/nithinv/api/nithintranslationapi/", + "host":"nithintranslationapi.p.rapidapi.com", + "api_list":[ + { + "name":"traslate", + "url":"https://nithintranslationapi.p.rapidapi.com/", + "description":"for language translation", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"", + "default":"Hello world!" + }, + { + "name":"to", + "type":"STRING", + "description":"", + "default":"es" + }, + { + "name":"from", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"to", + "type":"STRING", + "description":"", + "default":"es" + }, + { + "name":"from", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"text", + "type":"STRING", + "description":"", + "default":"Hello world!" + } + ], + "code":"import requests\n\nurl = \"https://nithintranslationapi.p.rapidapi.com/\"\nquerystring = {\"text\": text, \"to\": to, \"from\": is_from}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nithintranslationapi.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nithintranslationapi/api.py b/toolbench/toolenv/tools/Communication/nithintranslationapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8cec40106a4ed82e16e8d8ede6709b11a463b58f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nithintranslationapi/api.py @@ -0,0 +1,41 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def traslate(text: str='Hello world!', to: str='es', is_from: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "for language translation" + + """ + url = f"https://nithintranslationapi.p.rapidapi.com/" + querystring = {} + if text: + querystring['text'] = text + if to: + querystring['to'] = to + if is_from: + querystring['from'] = is_from + if to: + querystring['to'] = to + if is_from: + querystring['from'] = is_from + if text: + querystring['text'] = text + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nithintranslationapi.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nlp_and_voice_interface_for_apps_wit_ai/api.py b/toolbench/toolenv/tools/Communication/nlp_and_voice_interface_for_apps_wit_ai/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f6eca4e8dfff67826c07aaaf18ead4b3cfa43906 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nlp_and_voice_interface_for_apps_wit_ai/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def message(q: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Turn text into structured meaning" + q: Sentence you want Wit to analyze. First, you should connect to your Wit console and provide samples to Wit! + + """ + url = f"https://wit.p.rapidapi.com/message" + querystring = {'q': q, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wit.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/noticias_api.json b/toolbench/toolenv/tools/Communication/noticias_api.json new file mode 100644 index 0000000000000000000000000000000000000000..8080530cf59f035d260250d2ba4d4432f709bd02 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/noticias_api.json @@ -0,0 +1,27 @@ +{ + "tool_name":"noticias_api", + "tool_description":"", + "title":"noticias_api", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/kadmiel892/api/noticias_api/", + "host":"noticias_api.p.rapidapi.com", + "api_list":[ + { + "name":"Noticas", + "url":"https://noticias_api.p.rapidapi.com/noticas", + "description":"stay connected to the news from all over the world....", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://noticias_api.p.rapidapi.com/noticas\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"noticias_api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/noticias_api/api.py b/toolbench/toolenv/tools/Communication/noticias_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9460fac445bd6ab98a96e10c410926b53a125c0b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/noticias_api/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def noticas(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "stay connected to the news from all over the world...." + + """ + url = f"https://noticias_api.p.rapidapi.com/noticas" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "noticias_api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/notify_eu.json b/toolbench/toolenv/tools/Communication/notify_eu.json new file mode 100644 index 0000000000000000000000000000000000000000..ed97481384d7b4d777fd2d7a8c4162df7ef752b8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/notify_eu.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_577c9d6a-5fdd-42e1-8d6e-610ccf96e068", + "tool_description": "Notify, a new messaging and notification platform for a user friendly and faster communication in B2B & B2C", + "home_url": "https://rapidapi.com/geert/api/notify-eu/", + "name": "Notify.eu", + "title": "Notify.eu", + "pricing": "FREEMIUM", + "tool_name": "Notify.eu", + "score": { + "avgServiceLevel": 100, + "avgLatency": 97, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "notify-eu.p.rapidapi.com", + "api_list": [ + { + "name": "Send notifications", + "url": "https://notify-eu.p.rapidapi.com/notification/send", + "description": "The one and only API for sending notifications over email, sms, push, slack, ...", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://notify-eu.p.rapidapi.com/notification/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"notify-eu.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://notify-eu.p.rapidapi.com/notification/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"notify-eu.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/now_push.json b/toolbench/toolenv/tools/Communication/now_push.json new file mode 100644 index 0000000000000000000000000000000000000000..ba58b7ed08c28134874491c0592de97f8c408c4a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/now_push.json @@ -0,0 +1,51 @@ +{ + "product_id": "api_ab9c9dc0-ace0-430d-858c-0feceda676aa", + "tool_description": "Trigger notifications on your devices using our API. Now Push seamlessly connects your devices together, our app runs on any device, on any operating system, on your phone, your tablet, your mac, your PC, your browser, with Zapier, or headless using our API. \n\nHow to get your API Key\n\nStep 1: Download Now Push, on any platform\nStep 2: Then Login or Sign up\nStep 3: Then go to the Account Tab\nStep 4: The tap on the section that says \"Show API Key\"\nStep 5: This will display your API key, you can...", + "home_url": "https://rapidapi.com/nowpush/api/now-push1/", + "name": "Now Push", + "title": "Now Push", + "pricing": "FREE", + "tool_name": "Now Push", + "score": null, + "host": "now-push1.p.rapidapi.com", + "api_list": [ + { + "name": "SendMessage", + "url": "https://now-push1.p.rapidapi.com/v3/sendMessage", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "", + "default": "https://www.nowpush.app" + }, + { + "name": "message_type", + "type": "STRING", + "description": "", + "default": "nowpush_link" + }, + { + "name": "note", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "device_type", + "type": "STRING", + "description": "", + "default": "mobile" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://now-push1.p.rapidapi.com/v3/sendMessage\"\nquerystring = {\"url\": \"https://www.nowpush.app\", \"message_type\": \"nowpush_link\", \"note\": \"\", \"device_type\": \"mobile\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"now-push1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://now-push1.p.rapidapi.com/v3/sendMessage\"\nquerystring = {\"url\": \"https://www.nowpush.app\", \"message_type\": \"nowpush_link\", \"note\": \"\", \"device_type\": \"mobile\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"now-push1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/numverify/api.py b/toolbench/toolenv/tools/Communication/numverify/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9ea4029e3ee253f15aec825d021a159faa05706f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/numverify/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def validate(number: str, country_code: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Main API endpoint used to validate phone numbers" + number: the phone number to be validated + country_code: Specify a country code if you intend to use a national phone number for your request + + """ + url = f"https://apilayer-numverify-v1.p.rapidapi.com/validate" + querystring = {'number': number, } + if country_code: + querystring['country_code'] = country_code + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apilayer-numverify-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/numverify_v2/api.py b/toolbench/toolenv/tools/Communication/numverify_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9ea4029e3ee253f15aec825d021a159faa05706f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/numverify_v2/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def validate(number: str, country_code: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Main API endpoint used to validate phone numbers" + number: the phone number to be validated + country_code: Specify a country code if you intend to use a national phone number for your request + + """ + url = f"https://apilayer-numverify-v1.p.rapidapi.com/validate" + querystring = {'number': number, } + if country_code: + querystring['country_code'] = country_code + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apilayer-numverify-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nvoip.json b/toolbench/toolenv/tools/Communication/nvoip.json new file mode 100644 index 0000000000000000000000000000000000000000..35c7a94a614f0e8dbc2cb1aca1a99782fe1bd7ab --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nvoip.json @@ -0,0 +1,80 @@ +{ + "tool_name": "Nvoip", + "tool_description": "Nvoip API for communications. You can make calls or send SMS.", + "title": "Nvoip", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/leandrocampos89/api/nvoip/", + "host": "nvoip.p.rapidapi.com", + "api_list": [ + { + "name": "Make Call", + "url": "https://nvoip.p.rapidapi.com/v1/calls/", + "description": "Make a Call", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://nvoip.p.rapidapi.com/v1/calls/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nvoip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Send SMS", + "url": "https://nvoip.p.rapidapi.com/api.nvoip.com.br/v1/sms", + "description": "Send SMS to brazilian numbers.", + "method": "POST", + "required_parameters": [ + { + "name": "celular", + "type": "NUMBER", + "description": "Insert the destionation number mobile phone (Format: 11922221111", + "default": "" + }, + { + "name": "msg", + "type": "STRING", + "description": "Insert the message you will send (Limit 160 characters)", + "default": "" + }, + { + "name": "token_auth", + "type": "STRING", + "description": "Insert your Nvoip Account Token", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://nvoip.p.rapidapi.com/api.nvoip.com.br/v1/sms\"\nquerystring = {\"celular\": celular, \"msg\": msg, \"token_auth\": token_auth}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nvoip.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Send SMS", + "url": "https://nvoip.p.rapidapi.com/api.nvoip.com.br/v1/sms", + "description": "Send SMS to brazilian numbers.", + "method": "POST", + "required_parameters": [ + { + "name": "celular", + "type": "NUMBER", + "description": "Insert the destionation number mobile phone (Format: 11922221111", + "default": "" + }, + { + "name": "msg", + "type": "STRING", + "description": "Insert the message you will send (Limit 160 characters)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://nvoip.p.rapidapi.com/api.nvoip.com.br/v1/sms\"\nquerystring = {\"celular\": \"\", \"msg\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nvoip.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://nvoip.p.rapidapi.com/api.nvoip.com.br/v1/sms\"\nquerystring = {\"celular\": \"\", \"msg\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nvoip.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nvoip/api.py b/toolbench/toolenv/tools/Communication/nvoip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9537de23ff48f7c8a16014eb1c360c4a2e5c71d0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nvoip/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def make_call(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Make a Call" + + """ + url = f"https://nvoip.p.rapidapi.com/v1/calls/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nvoip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/nylas_cloud.json b/toolbench/toolenv/tools/Communication/nylas_cloud.json new file mode 100644 index 0000000000000000000000000000000000000000..d8a52ce9ca0d1f258f6d2cd1580daa5ab301a3d2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nylas_cloud.json @@ -0,0 +1,261 @@ +{ + "tool_name":"Nylas Cloud", + "tool_description":"The Nylas Cloud API integrates email, calendar, and contacts into your platform . One integration connects your app with 100% of email services (IMAP, Exchange/ActiveSync, Outlook, Gmail, Yahoo, etc.), creating one unified source of data for teams to reference. Send personalized email drip campaigns at scale while reaching your customer's inbox with nearly 100% email deliverability. Track email opens, link clicks, and reply rates; or, pull team-level email data to track productivity week over week.\r\n\r\nNylas helps hundreds of SaaS companies streamline communications, reduce context-switching from web app to email, and act on powerful email data. Start developing by connecting and syncing up to 10 accounts for free.", + "title":"Nylas Cloud", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/Nylas-Cloud/api/nylas-cloud/", + "host":"nylas-cloud-nylas-cloud-v1.p.rapidapi.com", + "api_list":[ + { + "name":"Threads", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads", + "description":"Threads are a first-class object, allowing you to build beautiful mail applications that behave the way users have come to expect. Actions like archiving or deleting can be performed on threads or individual messages. Nylas threads messages together using a variety of heuristics. On Gmail and Microsoft Exchange accounts, messages will be threaded together as close as possible to the representation in those environments. For all other providers (including generic IMAP), messages are threaded using a custom JWZ-inspired algorithm. (Open source here, for the curious.)", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"Authorization", + "type":"STRING", + "description":"access_token as HTTP Basic Auth username", + "default":"access_token" + }, + { + "name":"view", + "type":"STRING", + "description":"", + "default":"Can be one of \"id\", \"count\", or \"expanded\". See Views for more info." + }, + { + "name":"limit", + "type":"NUMBER", + "description":"Number of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies.", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads\"\nquerystring = {\"Authorization\": authorization, \"view\": view, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Messages", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/messages", + "description":"Messages are the fundamental object of the Nylas platform, and the core building block for most email applications. They contain several pieces of information, such as when a message was sent, the sender's address, to whom it was sent, and the message body. They can also contain files (attachments), calendar event invitations, and more.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/messages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Folders", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/folders", + "description":"Folders behave like normal IMAP or filesystem folders. A Message can only exist within one folder at a time, but a Thread with many messages may span several folders. Folders are only supported on accounts for which organization_unit is folder. You can check if an account supports labels by the organization_unit property on the Account object. Folders support basic CRUD operations outlined in the endpoints below.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/folders\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Labels", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/labels", + "description":"Labels are equivalent to Gmail labels. Messages can have more than one label, which is popular for users who set up mail filters. Labels are only supported on accounts for which organization_unit is label. You can check if an account supports labels by the organization_unit property on the Account object.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/labels\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Sending", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/sending", + "description":"The Nylas platform provides two ways to send messages: either through sending an existing draft, or by sending directly. Both systems send mail through the account's original SMTP/ActiveSync gateway, just as if they were sent using any other app. This means messages sent through Nylas have very high deliverability (i.e. not landing in Gmail's promotions tab), but may also be subject to backend provider rate-limiting and abuse detection. Make sure to send wisely!", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/sending\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Calendars", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/calendars", + "description":"Each account connected to Nylas can have zero or more calendars, and each calendar has a collection of individual events. The calendar object is very simple, and mostly serves as a container for events. The read_only flag on a calendar indicates whether or not you can modify its properties or make changes to its events.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"Authorization", + "type":"STRING", + "description":"", + "default":"access_token" + }, + { + "name":"Expand Recurring", + "type":"STRING", + "description":"Using the expand_recurring URL parameter is an easy way to expand recurring events server-side so your application doesn't need to deal with RRULEs. Note that when using this query parameter, you must also use filters to specify a time range. Currently, these expanded instances of recurring events are read-only. If the recurring event has individual modifications (overrides), such as a one-off time change, we will return these as individual events regardless of whether expand_recurring is set or not. If expand_recurring is not set, we will return any one-off cancellations in addition to the base event, for apps that are expanding the recurrence client-side. A cancellation has the field cancelled set to true.", + "default":"expand_recurring" + } + ], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/calendars\"\nquerystring = {\"Authorization\": authorization, \"Expand Recurring\": expand_recurring}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Contacts", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/contacts", + "description":"The Nylas API provides access to the user's contacts, making it easy to add contact autocomplete, address book integration, and more to your application. Note that contacts are currently read-only and supports both Filtering and Pagination", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"Authorization", + "type":"STRING", + "description":"", + "default":"access_token" + }, + { + "name":"Limit", + "type":"NUMBER", + "description":"Number of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies. See Pagination for more info.", + "default":"0" + } + ], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/contacts\"\nquerystring = {\"Authorization\": authorization, \"Limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Search", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/search", + "description":"The search sub-endpoint is used to run a full-text search that is proxied to the account's provider. Results are matched with objects that have been synced, and are then returned. The search endpoint returns 40 results by default. This endpoint supports Pagination so your application can request more objects, or iterate through all results.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/search\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Webhooks", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/webhooks", + "description":"Webhooks allow your application to receive notifications when certain events occur. For example, when a new email is received, Nylas will make a POST request to your URI endpoint letting you know information about the new message. You can specify what events you'd like to be notified about in the developer dashboard.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/webhooks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Files", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/files", + "description":"The files endpoint manages data attached to messages. It allows you to download existing attachments from messages and threads, as well as upload new files to be sent. Note that before creating or modifying a draft to include an attachment, you must upload it via this API and use the returned file ID. Actual attached files may be relatively large (upwards of 25MB), so this API has separate endpoints for requesting file Metadata and Downloading the actual file. Files can be downloaded by appending /download to the file metadata URI. If available, the response will include the filename in the Content-Disposition header. The Upload endpoint is used to transfer files to Nylas, which must be done before adding them to a draft message. Data should be sent as multipart-form data with a single field named file.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"Expand recurring", + "type":"STRING", + "description":"If set to true, expands single recurring events into individual event instances that fall within the requested time range.", + "default":"expand_recurring" + } + ], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/files\"\nquerystring = {\"Expand recurring\": expand_recurring}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Events", + "url":"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/events", + "description":"Events are objects within a calendar, generally supporting all features of modern scheduling apps. Using the calendar APIs, your application can schedule events, send meeting invitations, RSVP, and more.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"Show cancelled", + "type":"BOOLEAN", + "description":"If set to true, also return cancelled events. (false by default)", + "default":"true/false" + }, + { + "name":"Limit", + "type":"NUMBER", + "description":"Number of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies. See Pagination for more info.", + "default":"100" + }, + { + "name":"Offset", + "type":"NUMBER", + "description":"Zero-based offset from default object sorting. See Pagination for more info.", + "default":"0" + }, + { + "name":"Event ID", + "type":"STRING", + "description":"Return the event with the given id", + "default":"id" + }, + { + "name":"Calendar id", + "type":"STRING", + "description":"Return events belonging to the referenced calendar", + "default":"id" + }, + { + "name":"Title", + "type":"STRING", + "description":"Return events whose title matches the provided value.", + "default":"title" + }, + { + "name":"Description", + "type":"STRING", + "description":"Return events whose description matches the provided value.", + "default":"" + }, + { + "name":"Location", + "type":"STRING", + "description":"Return events whose location matches the provided value.", + "default":"" + }, + { + "name":"id", + "type":"STRING", + "description":"Globally unique object identifier", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/events\"\nquerystring = {\"Show cancelled\": show_cancelled, \"Limit\": limit, \"Offset\": offset, \"Event ID\": event_id, \"Calendar id\": calendar_id, \"Title\": title}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nylas-cloud-nylas-cloud-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/nylas_cloud/api.py b/toolbench/toolenv/tools/Communication/nylas_cloud/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c93843c252455302f6c1cb1bd3419164b654f3e7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/nylas_cloud/api.py @@ -0,0 +1,287 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def threads(authorization: str='access_token', view: str='Can be one of "id", "count", or "expanded". See Views for more info.', limit: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Threads are a first-class object, allowing you to build beautiful mail applications that behave the way users have come to expect. Actions like archiving or deleting can be performed on threads or individual messages. Nylas threads messages together using a variety of heuristics. On Gmail and Microsoft Exchange accounts, messages will be threaded together as close as possible to the representation in those environments. For all other providers (including generic IMAP), messages are threaded using a custom JWZ-inspired algorithm. (Open source here, for the curious.)" + authorization: access_token as HTTP Basic Auth username + limit: Number of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies. + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads" + querystring = {} + if authorization: + querystring['Authorization'] = authorization + if view: + querystring['view'] = view + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Messages are the fundamental object of the Nylas platform, and the core building block for most email applications. They contain several pieces of information, such as when a message was sent, the sender's address, to whom it was sent, and the message body. They can also contain files (attachments), calendar event invitations, and more." + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/messages" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def folders(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Folders behave like normal IMAP or filesystem folders. A Message can only exist within one folder at a time, but a Thread with many messages may span several folders. Folders are only supported on accounts for which organization_unit is folder. You can check if an account supports labels by the organization_unit property on the Account object. Folders support basic CRUD operations outlined in the endpoints below." + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/folders" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def labels(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Labels are equivalent to Gmail labels. Messages can have more than one label, which is popular for users who set up mail filters. Labels are only supported on accounts for which organization_unit is label. You can check if an account supports labels by the organization_unit property on the Account object." + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/labels" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sending(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Nylas platform provides two ways to send messages: either through sending an existing draft, or by sending directly. Both systems send mail through the account's original SMTP/ActiveSync gateway, just as if they were sent using any other app. This means messages sent through Nylas have very high deliverability (i.e. not landing in Gmail's promotions tab), but may also be subject to backend provider rate-limiting and abuse detection. Make sure to send wisely!" + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/sending" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def calendars(authorization: str='access_token', expand_recurring: str='expand_recurring', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Each account connected to Nylas can have zero or more calendars, and each calendar has a collection of individual events. The calendar object is very simple, and mostly serves as a container for events. The read_only flag on a calendar indicates whether or not you can modify its properties or make changes to its events." + expand_recurring: Using the expand_recurring URL parameter is an easy way to expand recurring events server-side so your application doesn't need to deal with RRULEs. Note that when using this query parameter, you must also use filters to specify a time range. Currently, these expanded instances of recurring events are read-only. If the recurring event has individual modifications (overrides), such as a one-off time change, we will return these as individual events regardless of whether expand_recurring is set or not. If expand_recurring is not set, we will return any one-off cancellations in addition to the base event, for apps that are expanding the recurrence client-side. A cancellation has the field cancelled set to true. + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/calendars" + querystring = {} + if authorization: + querystring['Authorization'] = authorization + if expand_recurring: + querystring['Expand Recurring'] = expand_recurring + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contacts(authorization: str='access_token', limit: int=0, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Nylas API provides access to the user's contacts, making it easy to add contact autocomplete, address book integration, and more to your application. Note that contacts are currently read-only and supports both Filtering and Pagination" + limit: Number of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies. See Pagination for more info. + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/contacts" + querystring = {} + if authorization: + querystring['Authorization'] = authorization + if limit: + querystring['Limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The search sub-endpoint is used to run a full-text search that is proxied to the account's provider. Results are matched with objects that have been synced, and are then returned. The search endpoint returns 40 results by default. This endpoint supports Pagination so your application can request more objects, or iterate through all results." + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/search" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def webhooks(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Webhooks allow your application to receive notifications when certain events occur. For example, when a new email is received, Nylas will make a POST request to your URI endpoint letting you know information about the new message. You can specify what events you'd like to be notified about in the developer dashboard." + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/webhooks" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def files(expand_recurring: str='expand_recurring', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The files endpoint manages data attached to messages. It allows you to download existing attachments from messages and threads, as well as upload new files to be sent. Note that before creating or modifying a draft to include an attachment, you must upload it via this API and use the returned file ID. Actual attached files may be relatively large (upwards of 25MB), so this API has separate endpoints for requesting file Metadata and Downloading the actual file. Files can be downloaded by appending /download to the file metadata URI. If available, the response will include the filename in the Content-Disposition header. The Upload endpoint is used to transfer files to Nylas, which must be done before adding them to a draft message. Data should be sent as multipart-form data with a single field named file." + expand_recurring: If set to true, expands single recurring events into individual event instances that fall within the requested time range. + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/files" + querystring = {} + if expand_recurring: + querystring['Expand recurring'] = expand_recurring + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def events(show_cancelled: bool=None, limit: int=100, offset: int=0, event_id: str='id', calendar_id: str='id', title: str='title', description: str=None, location: str=None, is_id: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Events are objects within a calendar, generally supporting all features of modern scheduling apps. Using the calendar APIs, your application can schedule events, send meeting invitations, RSVP, and more." + show_cancelled: If set to true, also return cancelled events. (false by default) + limit: Number of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies. See Pagination for more info. + offset: Zero-based offset from default object sorting. See Pagination for more info. + event_id: Return the event with the given id + calendar_id: Return events belonging to the referenced calendar + title: Return events whose title matches the provided value. + description: Return events whose description matches the provided value. + location: Return events whose location matches the provided value. + is_id: Globally unique object identifier + + """ + url = f"https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/events" + querystring = {} + if show_cancelled: + querystring['Show cancelled'] = show_cancelled + if limit: + querystring['Limit'] = limit + if offset: + querystring['Offset'] = offset + if event_id: + querystring['Event ID'] = event_id + if calendar_id: + querystring['Calendar id'] = calendar_id + if title: + querystring['Title'] = title + if description: + querystring['Description'] = description + if location: + querystring['Location'] = location + if is_id: + querystring['id'] = is_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "nylas-cloud-nylas-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/on_hold_audio_messages.json b/toolbench/toolenv/tools/Communication/on_hold_audio_messages.json new file mode 100644 index 0000000000000000000000000000000000000000..2771471854a6ad9b8f96aba424540eba50ebc8a3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/on_hold_audio_messages.json @@ -0,0 +1,24 @@ +{ + "tool_name":"On hold audio messages", + "tool_description":"Messages for voicemails and switchboards using professional voice talents", + "title":"On hold audio messages", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/telephonevox/api/on-hold-audio-messages/", + "host":"on-hold-audio-messages.p.rapidapi.com", + "api_list":[ + { + "name":"Endpoint", + "url":"https://on-hold-audio-messages.p.rapidapi.comhttps://www.telephonevox.com/api/api.telephonevox.php", + "description":"It needs for ordering messages", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://on-hold-audio-messages.p.rapidapi.comhttps://www.telephonevox.com/api/api.telephonevox.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"on-hold-audio-messages.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/on_hold_audio_messages/api.py b/toolbench/toolenv/tools/Communication/on_hold_audio_messages/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5441ecc3a2708daf5b1446870a679cdbc9e73a80 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/on_hold_audio_messages/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def endpoint(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "It needs for ordering messages" + + """ + url = f"https://on-hold-audio-messages.p.rapidapi.comhttps://www.telephonevox.com/api/api.telephonevox.php" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "on-hold-audio-messages.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/otpbot.json b/toolbench/toolenv/tools/Communication/otpbot.json new file mode 100644 index 0000000000000000000000000000000000000000..0440ec91916865f4daca281a03dd14d930dc866f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/otpbot.json @@ -0,0 +1,24 @@ +{ + "tool_name":"otpbot", + "tool_description":"otpbot", + "title":"otpbot", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/jahte999/api/otpbot/", + "host":"otpbot.p.rapidapi.com", + "api_list":[ + { + "name":"otp", + "url":"https://otpbot.p.rapidapi.com/", + "description":"otp", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://otpbot.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"otpbot.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/otpbot/api.py b/toolbench/toolenv/tools/Communication/otpbot/api.py new file mode 100644 index 0000000000000000000000000000000000000000..4dcb875c3fa88b58cea2a650719740ae988f9011 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/otpbot/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def otp(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "otp" + + """ + url = f"https://otpbot.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "otpbot.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/p2000.json b/toolbench/toolenv/tools/Communication/p2000.json new file mode 100644 index 0000000000000000000000000000000000000000..e7ae0f02421e573cf01d4b1e1f7707a6f3a28a8f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/p2000.json @@ -0,0 +1,37 @@ +{ + "tool_name":"P2000", + "tool_description":"The P2000 API provides a live feed used by the Dutch Emergency Services.\n\nDe P2000 API biedt een live feed van het P2000 netwerk, wat gebruikt wordt door ambulance, brandweer, politie en knrm", + "title":"P2000", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/cmworks/api/p2000/", + "host":"p2000.p.rapidapi.com", + "api_list":[ + { + "name":"latest", + "url":"https://p2000.p.rapidapi.com/latest", + "description":"last P2000 message\n\n- `?limit=10` (number between 10 and 500)\n- `?flex=true` (raw FLEX line with date)", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"flex", + "type":"BOOLEAN", + "description":"Enable if you only want the raw FLEX line", + "default":"true" + }, + { + "name":"limit", + "type":"NUMBER", + "description":"Limit the amount of p2000 messages you want to show", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://p2000.p.rapidapi.com/latest\"\nquerystring = {\"flex\": flex, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"p2000.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/p2000/api.py b/toolbench/toolenv/tools/Communication/p2000/api.py new file mode 100644 index 0000000000000000000000000000000000000000..45a6c96e8881fedd35cb7334dd8237db9fa4e008 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/p2000/api.py @@ -0,0 +1,38 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def latest(flex: bool=None, limit: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "last P2000 message + + - `?limit=10` (number between 10 and 500) + - `?flex=true` (raw FLEX line with date)" + flex: Enable if you only want the raw FLEX line + limit: Limit the amount of p2000 messages you want to show + + """ + url = f"https://p2000.p.rapidapi.com/latest" + querystring = {} + if flex: + querystring['flex'] = flex + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "p2000.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/phone_and_email_validator/api.py b/toolbench/toolenv/tools/Communication/phone_and_email_validator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ecb658e872013cafddfd0e5e61d8b6467b11a0e6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_and_email_validator/api.py @@ -0,0 +1,64 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getemailvalidity(email: str, dns: bool=None, blacklist: bool=None, format: bool=None, smtp: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Will check the validity of an email and return a Boolean. Specific aspects of the email can be used to check its validity" + dns: Will compare the email to DNS mx-records. Default is true + blacklist: Will verify if the email is in the blacklist of domains from DadouData. Default is true + format: Will check if the format of the email is correct. Defaults to true + smtp: Will actually check if the email is true by establishing an SMTP conversation. Default is true + + """ + url = f"https://phone-and-email-validator1.p.rapidapi.com/email" + querystring = {'email': email, } + if dns: + querystring['dns'] = dns + if blacklist: + querystring['blacklist'] = blacklist + if format: + querystring['format'] = format + if smtp: + querystring['smtp'] = smtp + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-and-email-validator1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getphonedetails(number: str, country: str='US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Enter phone number to check its validity and obtain details if its real. If the country code is not specified. The location of request's ip address is considered. If the country prefix is specified directly in the phone number, country code is not required." + + """ + url = f"https://phone-and-email-validator1.p.rapidapi.com/phone" + querystring = {'number': number, } + if country: + querystring['country'] = country + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-and-email-validator1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/phone_and_email_validator_v2.json b/toolbench/toolenv/tools/Communication/phone_and_email_validator_v2.json new file mode 100644 index 0000000000000000000000000000000000000000..23e30e8df3c60665268b35265e5ce301e993e54d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_and_email_validator_v2.json @@ -0,0 +1,92 @@ +{ + "product_id": "api_c6619033-7fcb-4e38-b65c-4759a976bf79", + "tool_description": "Extremely Useful tool for Phone, Email, IP Address and Postal Code Validation", + "home_url": "https://rapidapi.com/nextgenict-nextgenict-default/api/phone-and-email-validator/", + "name": "Phone and Email Validator_v2", + "title": "Phone and Email Validator", + "pricing": "FREEMIUM", + "tool_name": "Phone and Email Validator_v2", + "score": { + "avgServiceLevel": 97, + "avgLatency": 7516, + "avgSuccessRate": 97, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "phone-and-email-validator.p.rapidapi.com", + "api_list": [ + { + "name": "PostalCode", + "url": "https://phone-and-email-validator.p.rapidapi.com/", + "description": "Postal Code or Zip Code to Location For USA only", + "method": "GET", + "required_parameters": [ + { + "name": "postal_code", + "type": "STRING", + "description": "", + "default": "33166" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"postal_code\": \"33166\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"postal_code\": \"33166\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "IP Address", + "url": "https://phone-and-email-validator.p.rapidapi.com/", + "description": "Eg: 8.8.8.8", + "method": "GET", + "required_parameters": [ + { + "name": "ip", + "type": "STRING", + "description": "", + "default": "127.0.0.1" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"ip\": \"127.0.0.1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"ip\": \"127.0.0.1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Phone Number", + "url": "https://phone-and-email-validator.p.rapidapi.com/", + "description": "E164 Format. Eg 19542567890 for USA", + "method": "GET", + "required_parameters": [ + { + "name": "phone", + "type": "STRING", + "description": "", + "default": "12345678900 for US" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"phone\": \"12345678900 for US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"phone\": \"12345678900 for US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Email Id", + "url": "https://phone-and-email-validator.p.rapidapi.com/", + "description": "eg: email@example.com", + "method": "GET", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "", + "default": "test@gmail.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"email\": \"test@gmail.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-and-email-validator.p.rapidapi.com/\"\nquerystring = {\"email\": \"test@gmail.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-and-email-validator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "phone_and_email_validator_v2" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/phone_and_email_validator_v2/api.py b/toolbench/toolenv/tools/Communication/phone_and_email_validator_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7b7f602c490cf0463d3510fa4874a3be036339ca --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_and_email_validator_v2/api.py @@ -0,0 +1,92 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def postalcode(postal_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Postal Code or Zip Code to Location For USA only" + + """ + url = f"https://phone-and-email-validator.p.rapidapi.com/" + querystring = {'postal_code': postal_code, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-and-email-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ip_address(ip: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Eg: 8.8.8.8" + + """ + url = f"https://phone-and-email-validator.p.rapidapi.com/" + querystring = {'ip': ip, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-and-email-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def phone_number(phone: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "E164 Format. Eg 19542567890 for USA" + + """ + url = f"https://phone-and-email-validator.p.rapidapi.com/" + querystring = {'phone': phone, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-and-email-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def email_id(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "eg: email@example.com" + + """ + url = f"https://phone-and-email-validator.p.rapidapi.com/" + querystring = {'email': email, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-and-email-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/phone_formatter.json b/toolbench/toolenv/tools/Communication/phone_formatter.json new file mode 100644 index 0000000000000000000000000000000000000000..ca8f14a7c5e2283c5d69bf0f60f79955d25e2025 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_formatter.json @@ -0,0 +1,88 @@ +{ + "tool_name": "Phone Formatter", + "tool_description": "With this API you will be able to get the entered phone number in international, national and several standard formats with additional information about the country for the correct phone numbers. The formatting method can use probabilistic algorithms and try to get all the necessary information if it was not passed in the input parameters", + "title": "Phone Formatter", + "pricing": "FREEMIUM", + "score": null, + "home_url": "https://rapidapi.com/dkorotych/api/phone-formatter/", + "host": "phone-formatter.p.rapidapi.com", + "api_list": [ + { + "name": "regions", + "url": "https://phone-formatter.p.rapidapi.com/regions/{language}", + "description": "Returns a collection of supported regions for the specified\n IETF BCP 47 language tag string.", + "method": "GET", + "required_parameters": [ + { + "name": "language", + "type": "STRING", + "description": "Language in BCP 47 format", + "default": "us" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-formatter.p.rapidapi.com/regions/{language}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-formatter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "simpleRegions", + "url": "https://phone-formatter.p.rapidapi.com/regions", + "description": "Returns a collection of supported regions. Method use \"Accept-Language\" header value for output list of\n regions on specific language", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-formatter.p.rapidapi.com/regions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-formatter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "format", + "url": "https://phone-formatter.p.rapidapi.com/format", + "description": "Formatting method that outputs the entered phone number in international, national and several standard formats\n with additional country information for correct phone numbers", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-formatter.p.rapidapi.com/format\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-formatter.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "simple", + "url": "https://phone-formatter.p.rapidapi.com/format", + "description": "A simplified version of the formatting method that does not accept additional filtering and parsing parameters\n and uses the language value from the \"Accept-Language\" header.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "phone", + "type": "STRING", + "description": "Phone number", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://phone-formatter.p.rapidapi.com/format\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-formatter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "format", + "url": "https://phone-formatter.p.rapidapi.com/format", + "description": "Formatting method that outputs the entered phone number in international, national and several standard formats\n with additional country information for correct phone numbers", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-formatter.p.rapidapi.com/format\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-formatter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-formatter.p.rapidapi.com/format\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-formatter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/phone_formatter/api.py b/toolbench/toolenv/tools/Communication/phone_formatter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..deb9daa3126c7460641d7c05bf77962b506111e3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_formatter/api.py @@ -0,0 +1,78 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def regions(language: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a collection of supported regions for the specified + IETF BCP 47 language tag string." + language: Language in BCP 47 format + + """ + url = f"https://phone-formatter.p.rapidapi.com/regions/{language}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-formatter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def simpleregions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a collection of supported regions. Method use "Accept-Language" header value for output list of + regions on specific language" + + """ + url = f"https://phone-formatter.p.rapidapi.com/regions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-formatter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def simple(phone: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "A simplified version of the formatting method that does not accept additional filtering and parsing parameters + and uses the language value from the "Accept-Language" header." + phone: Phone number + + """ + url = f"https://phone-formatter.p.rapidapi.com/format" + querystring = {} + if phone: + querystring['phone'] = phone + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-formatter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/phone_number_parser.json b/toolbench/toolenv/tools/Communication/phone_number_parser.json new file mode 100644 index 0000000000000000000000000000000000000000..742c74d88c216e7039f76185b244df407b0c0b48 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_number_parser.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_b0edd05f-f143-457a-95ef-1e58180e31b8", + "tool_description": "An API to parse a phone number from text and validate it in the United States and Australia.", + "home_url": "https://rapidapi.com/tactive-tactive/api/phone-number-parser/", + "name": "Phone Number Parser", + "title": "Phone Number Parser", + "pricing": "FREEMIUM", + "tool_name": "Phone Number Parser", + "score": null, + "host": "phone-number-parser.p.rapidapi.com", + "api_list": [ + { + "name": "Parse & Validate Phone Number", + "url": "https://phone-number-parser.p.rapidapi.com/phone", + "description": "Parses phone number from a text string and returns the formatted number along with the validity of the number.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-number-parser.p.rapidapi.com/phone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-number-parser.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-number-parser.p.rapidapi.com/phone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-number-parser.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/phone_number_validator.json b/toolbench/toolenv/tools/Communication/phone_number_validator.json new file mode 100644 index 0000000000000000000000000000000000000000..ba1d5c1d75392e600bedc8de5686153e05a3cf3f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_number_validator.json @@ -0,0 +1,153 @@ +{ + "tool_name":"Phone Number Validator", + "tool_description":"Reliable and efficient tool that allows you to validate and extract valuable information from phone numbers. With this API, you can verify if a phone number is valid, determine its type (e.g., mobile, landline), retrieve the country information, and format the phone number according to the specified region.", + "title":"Phone Number Validator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":790, + "avgSuccessRate":100, + "popularityScore":8.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/evlar-evlar-default/api/phone-number-validator3/", + "host":"phone-number-validator3.p.rapidapi.com", + "api_list":[ + { + "name":"Format Number For Region", + "url":"https://phone-number-validator3.p.rapidapi.com/format", + "description":"Formats a given phone number for a specified region", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"STRING", + "description":"Provide a complete phone number", + "default":"8165554012" + }, + { + "name":"country", + "type":"STRING", + "description":"Provide a two letter country code", + "default":"US" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://phone-number-validator3.p.rapidapi.com/format\"\nquerystring = {\"number\": number, \"country\": country}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-number-validator3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "status":{ + "type":"string" + }, + "error":{ + "type":"null" + }, + "data":{ + "type":"object", + "properties":{ + "country":{ + "type":"string" + }, + "countrycode":{ + "type":"integer" + }, + "extension":{ + "type":"null" + }, + "number_raw":{ + "type":"integer" + }, + "number_rawAlt":{ + "type":"string" + }, + "number_international":{ + "type":"string" + }, + "number_national":{ + "type":"string" + }, + "number_rfc":{ + "type":"string" + }, + "number_e614":{ + "type":"string" + }, + "type":{ + "type":"string" + } + } + } + } + } + }, + { + "name":"Validate For Region", + "url":"https://phone-number-validator3.p.rapidapi.com/validate", + "description":"Validates phone number for a specified region", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"STRING", + "description":"Provide a complete phone number", + "default":"3143201234" + }, + { + "name":"country", + "type":"STRING", + "description":"Provide a two letter country code", + "default":"US" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://phone-number-validator3.p.rapidapi.com/validate\"\nquerystring = {\"number\": number, \"country\": country}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-number-validator3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "status":{ + "type":"string" + }, + "error":{ + "type":"null" + }, + "data":{ + "type":"object", + "properties":{ + "isvalid":{ + "type":"boolean" + }, + "country":{ + "type":"string" + }, + "countrycode":{ + "type":"integer" + }, + "number_national":{ + "type":"integer" + }, + "extension":{ + "type":"string" + }, + "type":{ + "type":"string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/phone_number_validator/api.py b/toolbench/toolenv/tools/Communication/phone_number_validator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..89481d4fd8eb9cc98d3ca756228eac51446ad789 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_number_validator/api.py @@ -0,0 +1,54 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def format_number_for_region(number: str, country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Formats a given phone number for a specified region" + number: Provide a complete phone number + country: Provide a two letter country code + + """ + url = f"https://phone-number-validator3.p.rapidapi.com/format" + querystring = {'number': number, 'country': country, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-number-validator3.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validate_for_region(number: str, country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Validates phone number for a specified region" + number: Provide a complete phone number + country: Provide a two letter country code + + """ + url = f"https://phone-number-validator3.p.rapidapi.com/validate" + querystring = {'number': number, 'country': country, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-number-validator3.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/phone_validator.json b/toolbench/toolenv/tools/Communication/phone_validator.json new file mode 100644 index 0000000000000000000000000000000000000000..3703e2a15cb5fcee1f5e1c32f9c49dd52c60ec4b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_validator.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_78a82742-7005-4eec-947d-25d824b48de1", + "tool_description": "Introducing the Phone Validator API, the perfect solution for businesses looking to verify the accuracy of customer phone numbers. With this API, businesses can ensure that their customer communication efforts are delivered to valid phone numbers, improving the overall customer experience.", + "home_url": "https://rapidapi.com/dogtowncreativellc/api/phone-validator3/", + "name": "Phone Validator", + "title": "Phone Validator", + "pricing": "FREEMIUM", + "tool_name": "Phone Validator", + "score": null, + "host": "phone-validator3.p.rapidapi.com", + "api_list": [ + { + "name": "Validate Phone", + "url": "https://phone-validator3.p.rapidapi.com/validate_phone", + "description": "Checks the validity of the phone number and also returns various metadata about the phone number (e.g., carrier info, location", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phone-validator3.p.rapidapi.com/validate_phone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-validator3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phone-validator3.p.rapidapi.com/validate_phone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phone-validator3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/phone_validator/api.py b/toolbench/toolenv/tools/Communication/phone_validator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3a4d18a9bf8e6f4aa2b98e7dd3d9bbf436b70eaa --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_validator/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def root_health_get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://phone-validator2.p.rapidapi.com/health" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-validator2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validate_phonenumber_validate_get(phone_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://phone-validator2.p.rapidapi.com/validate/" + querystring = {'phone_number': phone_number, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-validator2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/phone_validator_v3/api.py b/toolbench/toolenv/tools/Communication/phone_validator_v3/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ccbc60601a26ab63b681c29e4fa1893d0a5d9963 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/phone_validator_v3/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getphonebasic(phonenumber: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide a North American phone number (with or without a leading "1") and determine if it is a cell phone, landline, VOIP, toll-free or Unknown. Datapoints returned are linetype, phone company and location (City/State)." + phonenumber: Any North American phone number, 10 or 11 digits (with or without leading "1"). Examples: 2025551234 or 12025551234. + + """ + url = f"https://phone-validator.p.rapidapi.com/api/v1/phonebasic/{phonenumber}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "phone-validator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/plivo.json b/toolbench/toolenv/tools/Communication/plivo.json new file mode 100644 index 0000000000000000000000000000000000000000..38a7afa24cc689e356171eebddff8c819b86dd45 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/plivo.json @@ -0,0 +1,53 @@ +{ + "product_id": "53aa56bce4b0a798dbd1a9a0", + "tool_description": "We, at Plivo, make it easier for businesses and software developers to use cloud-powered Voice and SMS communications.\r\n\r\nWe offer HTTP APIs that let you can build Voice and SMS applications or integrate such capabilities into your web or mobile application in any web standard language. We simplify the notorious complexity of the telephony business into a simple infrastructure service for you: we take care of everything from carriers contracts to call quality and messaging deliverability to technical support.", + "home_url": "https://rapidapi.com/plivo/api/plivo-1/", + "name": "Plivo", + "title": "Plivo", + "pricing": "FREE", + "tool_name": "Plivo", + "score": null, + "host": "plivo-plivo.p.rapidapi.com", + "api_list": [ + { + "name": "1. Send a Message", + "url": "https://plivo-plivo.p.rapidapi.com/Account/{auth_id}/Message/", + "description": "This API enables you to send messages via Plivo's SMS service. The API supports Unicode UTF-8 encoded texts, so you can send messages in any language. The API also handles long SMS automatically by splitting it into standard SMS sized chunks and sending them. Delivery reports are automatically supported in networks where they are provided by the operator. You can read more at http://plivo.com/docs/api/message/", + "method": "POST", + "required_parameters": [ + { + "name": "auth_id", + "type": "STRING", + "description": "You can get your Auth ID at https://manage.plivo.com/dashboard/", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://plivo-plivo.p.rapidapi.com/Account/{auth_id}/Message/\"\nquerystring = {\"auth_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"plivo-plivo.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://plivo-plivo.p.rapidapi.com/Account/{auth_id}/Message/\"\nquerystring = {\"auth_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"plivo-plivo.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "2. Make an Outbound Call", + "url": "https://plivo-plivo.p.rapidapi.com/Account/{auth_id}/Call", + "description": "The following API enables you to make a single call or bulk outbound calls to real phone(s) or SIP endpoint(s). You can find out more at http://plivo.com/docs/api/call/", + "method": "POST", + "required_parameters": [ + { + "name": "auth_id", + "type": "STRING", + "description": "You can get your Auth ID at https://manage.plivo.com/dashboard/", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://plivo-plivo.p.rapidapi.com/Account/{auth_id}/Call\"\nquerystring = {\"auth_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"plivo-plivo.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://plivo-plivo.p.rapidapi.com/Account/{auth_id}/Call\"\nquerystring = {\"auth_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"plivo-plivo.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/portscan/api.py b/toolbench/toolenv/tools/Communication/portscan/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b97e105cccf7d8f27b1aa441b1b7e891bf9c0125 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/portscan/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def scan(host: str, query: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Scan ports of a given host." + + """ + url = f"https://marcinpraski-portscan-v1.p.rapidapi.com/scan?host={host}&query={query}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "marcinpraski-portscan-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/post_paid_sms.json b/toolbench/toolenv/tools/Communication/post_paid_sms.json new file mode 100644 index 0000000000000000000000000000000000000000..bd2572da5b6daab0a32572e25c45c25832f6df14 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/post_paid_sms.json @@ -0,0 +1,48 @@ +{ + "product_id": "api_2901978c-96f4-4f8b-bbda-0168dd529e5d", + "tool_description": "Use the Toku Post-Paid SMS API to send SMS and manage OTP requests programmatically.", + "home_url": "https://rapidapi.com/tokuproduct/api/post-paid-sms/", + "name": "Post-Paid SMS", + "title": "Post-Paid SMS", + "pricing": "FREEMIUM", + "tool_name": "Post-Paid SMS", + "score": null, + "host": "post-paid-sms.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://post-paid-sms.p.rapidapi.com/SMS", + "description": "Send SMS ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://post-paid-sms.p.rapidapi.com/SMS\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"post-paid-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://post-paid-sms.p.rapidapi.com/SMS\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"post-paid-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/postmark_email.json b/toolbench/toolenv/tools/Communication/postmark_email.json new file mode 100644 index 0000000000000000000000000000000000000000..137ab2220dee02797b677a9adc581fa9f1802bea --- /dev/null +++ b/toolbench/toolenv/tools/Communication/postmark_email.json @@ -0,0 +1,26 @@ +{ + "product_id": "53aa3b82e4b00287471a0cb4", + "tool_description": "Postmark removes the headaches of delivering email with minimal setup time and zero maintenance.", + "home_url": "https://rapidapi.com/postmark/api/postmark-email/", + "name": "Postmark Email", + "title": "Postmark Email", + "pricing": "FREE", + "tool_name": "Postmark Email", + "score": null, + "host": "postmark-postmark-email.p.rapidapi.com", + "api_list": [ + { + "name": "Email", + "url": "https://postmark-postmark-email.p.rapidapi.com/email", + "description": "http://developer.postmarkapp.com/developer-build.html#message-format", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://postmark-postmark-email.p.rapidapi.com/email\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"postmark-postmark-email.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://postmark-postmark-email.p.rapidapi.com/email\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"postmark-postmark-email.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/promails.json b/toolbench/toolenv/tools/Communication/promails.json new file mode 100644 index 0000000000000000000000000000000000000000..7cedb226e81ce2fd447fc409c0357e45e10cd350 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/promails.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_01f19db1-da5d-4afa-a61b-62ca60f6e8a0", + "tool_description": "AN API FOR SENDING MAILS", + "home_url": "https://rapidapi.com/faisalbinsyed-CJA9jNG3nZg/api/promails/", + "name": "PROMAILS", + "title": "PROMAILS", + "pricing": "FREEMIUM", + "tool_name": "PROMAILS", + "score": null, + "host": "promails.p.rapidapi.com", + "api_list": [ + { + "name": "Send Emails", + "url": "https://promails.p.rapidapi.com/email", + "description": "This Endpoint is a POST request end point and takes the following :\n{\n\t\"hostname\" : \"mail.example.com\",\n \"sender\" : \"someone@example.com\",\n \"port\" : 465,\n \"password\" : \"KJKJKJ@kjj2nxk\",\n \"to\" : \"friend@example.com\",\n \"subject\" :\"any\",\n \"message\" : \"any\" \n\"_\"\n}", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://promails.p.rapidapi.com/email\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"promails.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://promails.p.rapidapi.com/email\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"promails.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/pubnub_network.json b/toolbench/toolenv/tools/Communication/pubnub_network.json new file mode 100644 index 0000000000000000000000000000000000000000..419ffc67b6067897a6be2be3104df7bbbae7ca1e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/pubnub_network.json @@ -0,0 +1,83 @@ +{ + "product_id": "53aa3174e4b059614033e9df", + "tool_description": "The PubNub Network makes Real-time Communications Simple with an easy API. Two Functions: Send/Receive (Publish/Subscribe). We provide a web-scale API for businesses to build scalable Data Push communication apps on Mobile, Tablet and Web. Bidirectional JSON. Ask for commit access - via Twitter: @pubnub - via IRC: #pubnub on FreeNode", + "home_url": "https://rapidapi.com/pubnub/api/pubnub-network/", + "name": "PubNub Network", + "title": "PubNub Network", + "pricing": "FREE", + "tool_name": "PubNub Network", + "score": { + "avgServiceLevel": 100, + "avgLatency": 4320, + "avgSuccessRate": 71, + "popularityScore": 6.4, + "__typename": "Score" + }, + "host": "pubnub-pubnub.p.rapidapi.com", + "api_list": [ + { + "name": "History", + "url": "https://pubnub-pubnub.p.rapidapi.com/history/demo/my_channel/0/2", + "description": "Get older messages.", + "method": "GET", + "required_parameters": [ + { + "name": "callback", + "type": "STRING", + "description": "JSONP Callback", + "default": "0" + }, + { + "name": "limit", + "type": "STRING", + "description": "Limit of messages to return", + "default": "2" + }, + { + "name": "subscribe_key", + "type": "STRING", + "description": "Subscribe Key", + "default": "demo" + }, + { + "name": "channel", + "type": "STRING", + "description": "Channel Name", + "default": "my_channel" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pubnub-pubnub.p.rapidapi.com/history/demo/my_channel/0/2\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pubnub-pubnub.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pubnub-pubnub.p.rapidapi.com/history/{subscribe_key}/{channel}/{callback}/{limit}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pubnub-pubnub.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": [ + "Hello from the PubNub Javascript SDK!", + 1 + ], + "statuscode": 1, + "schema": "" + }, + { + "name": "Time", + "url": "https://pubnub-pubnub.p.rapidapi.com/time/0", + "description": "Timetoken from PubNub Network", + "method": "GET", + "required_parameters": [ + { + "name": "callback", + "type": "STRING", + "description": "JSONP Callback", + "default": "0" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pubnub-pubnub.p.rapidapi.com/time/0\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pubnub-pubnub.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pubnub-pubnub.p.rapidapi.com/time/{callback}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pubnub-pubnub.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": [ + 16869249493975933 + ], + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "pubnub_network" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/pubnub_network/api.py b/toolbench/toolenv/tools/Communication/pubnub_network/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2d48206b8e0a28b05239aa0a352299ec3d9c7402 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/pubnub_network/api.py @@ -0,0 +1,55 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def history(callback: str, limit: str, subscribe_key: str, channel: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get older messages." + callback: JSONP Callback + limit: Limit of messages to return + subscribe_key: Subscribe Key + channel: Channel Name + + """ + url = f"https://pubnub-pubnub.p.rapidapi.com/history/{subscribe_key}/{channel}/{callback}/{limit}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pubnub-pubnub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def time(callback: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Timetoken from PubNub Network" + callback: JSONP Callback + + """ + url = f"https://pubnub-pubnub.p.rapidapi.com/time/{callback}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pubnub-pubnub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/punto_61.json b/toolbench/toolenv/tools/Communication/punto_61.json new file mode 100644 index 0000000000000000000000000000000000000000..f46702555451ba953bc9dd422db4bbe18ff95a61 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/punto_61.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Punto 61", + "tool_description":".61 API", + "title":"Punto 61", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/dpansica/api/punto-61/", + "host":"punto-61.p.rapidapi.com", + "api_list":[ + { + "name":"getarchive", + "url":"https://punto-61.p.rapidapi.com/public/api/blog/archive/it/00000000", + "description":"getarchive", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://punto-61.p.rapidapi.com/public/api/blog/archive/it/00000000\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"punto-61.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/punto_61/api.py b/toolbench/toolenv/tools/Communication/punto_61/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8da49f618e5cb433f43593f29433f593cdc490f4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/punto_61/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getarchive(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "getarchive" + + """ + url = f"https://punto-61.p.rapidapi.com/public/api/blog/archive/it/00000000" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "punto-61.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/pushsafer.json b/toolbench/toolenv/tools/Communication/pushsafer.json new file mode 100644 index 0000000000000000000000000000000000000000..46853fd0c6b864be24d4d6e4142aeb2434367c9e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/pushsafer.json @@ -0,0 +1,1194 @@ +{ + "tool_name": "Pushsafer", + "tool_description": "Send & receive push-notifications by EMAIL, URL or API to your iOS, Android and Windows devices + browser!", + "title": "Pushsafer", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/kevinsiml/api/pushsafer/", + "host": "pushsafer.p.rapidapi.com", + "api_list": [ + { + "name": "Sound", + "url": "https://pushsafer.p.rapidapi.com/api-s", + "description": "get a list of available notification sounds", + "method": "GET", + "required_parameters": [ + { + "name": "l", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-s\"\nquerystring = {\"l\": l, \"k\": k}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Icon", + "url": "https://pushsafer.p.rapidapi.com/api-i", + "description": "get a list of available notification icons", + "method": "GET", + "required_parameters": [ + { + "name": "l", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-i\"\nquerystring = {\"l\": l, \"k\": k}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Validate key", + "url": "https://pushsafer.p.rapidapi.com/api-k", + "description": "Validate a private key", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-k\"\nquerystring = {\"k\": k, \"u\": u}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Delete group", + "url": "https://pushsafer.p.rapidapi.com/api-gd", + "description": "delete a group", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gd\"\nquerystring = {\"k\": k, \"u\": u, \"g\": g}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Update group devices", + "url": "https://pushsafer.p.rapidapi.com/api-gud", + "description": "update the devices in a group", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gud\"\nquerystring = {\"k\": k, \"u\": u, \"g\": g, \"d\": d}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Update group status", + "url": "https://pushsafer.p.rapidapi.com/api-gus", + "description": "update the group status", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gus\"\nquerystring = {\"u\": u, \"s\": s, \"k\": k, \"g\": g}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Update group name", + "url": "https://pushsafer.p.rapidapi.com/api-gun", + "description": "update a group name", + "method": "POST", + "required_parameters": [ + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "n", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gun\"\nquerystring = {\"g\": g, \"u\": u, \"k\": k, \"n\": n}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Create group", + "url": "https://pushsafer.p.rapidapi.com/api-ga", + "description": "create a device group", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-ga\"\nquerystring = {\"u\": u, \"d\": d, \"k\": k, \"g\": g, \"s\": s}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Read groups", + "url": "https://pushsafer.p.rapidapi.com/api-g", + "description": "read registered device groups", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-g\"\nquerystring = {\"k\": k, \"u\": u}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Delete device", + "url": "https://pushsafer.p.rapidapi.com/api-dd", + "description": "delete a registered device", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-dd\"\nquerystring = {\"u\": u, \"k\": k, \"d\": d}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Update device status", + "url": "https://pushsafer.p.rapidapi.com/api-ds", + "description": "set the device status to activ/inactive", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-ds\"\nquerystring = {\"u\": u, \"s\": s, \"k\": k, \"d\": d}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Update device name", + "url": "https://pushsafer.p.rapidapi.com/api-dn", + "description": "change the name of a specified device", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "n", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-dn\"\nquerystring = {\"k\": k, \"u\": u, \"d\": d, \"n\": n}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Read devices", + "url": "https://pushsafer.p.rapidapi.com/api-d", + "description": "Get a list of all your registered devices and device groups.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-d\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Read messages", + "url": "https://pushsafer.p.rapidapi.com/api-m", + "description": "get all messages by device id", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-m\"\nquerystring = {\"k\": k, \"d\": d}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Send a push-notifications", + "url": "https://pushsafer.p.rapidapi.com/api", + "description": "Send a push-notifications by Pushsafer.com. To customize the push notification to your needs, the following values can be transmitted: title, message, icon, icon color, sound, vibration, image(s), device or device group, url, url title, time to live, priority, retry, expire, confirm, answer, answer options, force answer.", + "method": "POST", + "required_parameters": [ + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "m", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "t", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "c", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "l", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "ut", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "a", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "cr", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "af", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "ao", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "v", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "pr", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "re", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "i", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "p2", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "ex", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "p3", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "p", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api\"\nquerystring = {\"d\": d, \"m\": m, \"k\": k}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "key1": "value", + "key2": "value" + }, + "headers": {}, + "schema": {} + }, + { + "name": "Validate key", + "url": "https://pushsafer.p.rapidapi.com/api-k", + "description": "Validate a private key", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-k\"\nquerystring = {\"k\": \"\", \"u\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-k\"\nquerystring = {\"k\": \"\", \"u\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Delete group", + "url": "https://pushsafer.p.rapidapi.com/api-gd", + "description": "delete a group", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gd\"\nquerystring = {\"k\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gd\"\nquerystring = {\"k\": \"\", \"u\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update group devices", + "url": "https://pushsafer.p.rapidapi.com/api-gud", + "description": "update the devices in a group", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gud\"\nquerystring = {\"k\": \"\", \"u\": \"\", \"g\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gud\"\nquerystring = {\"k\": \"\", \"u\": \"\", \"g\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update group status", + "url": "https://pushsafer.p.rapidapi.com/api-gus", + "description": "update the group status", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gus\"\nquerystring = {\"u\": \"\", \"s\": \"\", \"k\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gus\"\nquerystring = {\"u\": \"\", \"s\": \"\", \"k\": \"\", \"g\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Update group name", + "url": "https://pushsafer.p.rapidapi.com/api-gun", + "description": "update a group name", + "method": "POST", + "required_parameters": [ + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "n", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gun\"\nquerystring = {\"g\": \"\", \"u\": \"\", \"k\": \"\", \"n\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-gun\"\nquerystring = {\"g\": \"\", \"u\": \"\", \"k\": \"\", \"n\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create group", + "url": "https://pushsafer.p.rapidapi.com/api-ga", + "description": "create a device group", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "g", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-ga\"\nquerystring = {\"u\": \"\", \"d\": \"\", \"k\": \"\", \"g\": \"\", \"s\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-ga\"\nquerystring = {\"u\": \"\", \"d\": \"\", \"k\": \"\", \"g\": \"\", \"s\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Read groups", + "url": "https://pushsafer.p.rapidapi.com/api-g", + "description": "read registered device groups", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-g\"\nquerystring = {\"k\": \"\", \"u\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-g\"\nquerystring = {\"k\": \"\", \"u\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Delete device", + "url": "https://pushsafer.p.rapidapi.com/api-dd", + "description": "delete a registered device", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-dd\"\nquerystring = {\"u\": \"\", \"k\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-dd\"\nquerystring = {\"u\": \"\", \"k\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Update device status", + "url": "https://pushsafer.p.rapidapi.com/api-ds", + "description": "set the device status to activ/inactive", + "method": "POST", + "required_parameters": [ + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-ds\"\nquerystring = {\"u\": \"\", \"s\": \"\", \"k\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-ds\"\nquerystring = {\"u\": \"\", \"s\": \"\", \"k\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Update device name", + "url": "https://pushsafer.p.rapidapi.com/api-dn", + "description": "change the name of a specified device", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "n", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-dn\"\nquerystring = {\"k\": \"\", \"u\": \"\", \"d\": \"\", \"n\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-dn\"\nquerystring = {\"k\": \"\", \"u\": \"\", \"d\": \"\", \"n\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Read devices", + "url": "https://pushsafer.p.rapidapi.com/api-d", + "description": "Get a list of all your registered devices and device groups.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-d\"\nquerystring = {\"k\": \"\", \"u\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-d\"\nquerystring = {\"k\": \"\", \"u\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Read messages", + "url": "https://pushsafer.p.rapidapi.com/api-m", + "description": "get all messages by device id", + "method": "POST", + "required_parameters": [ + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-m\"\nquerystring = {\"k\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api-m\"\nquerystring = {\"k\": \"\", \"d\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Send a push-notifications", + "url": "https://pushsafer.p.rapidapi.com/api", + "description": "Send a push-notifications by Pushsafer.com. To customize the push notification to your needs, the following values can be transmitted: title, message, icon, icon color, sound, vibration, image(s), device or device group, url, url title, time to live, priority, retry, expire, confirm, answer, answer options, force answer.", + "method": "POST", + "required_parameters": [ + { + "name": "d", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "m", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "k", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "t", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "s", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "u", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "c", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "l", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "ut", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "a", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "cr", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "af", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "ao", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "v", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "pr", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "re", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "i", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "p2", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "ex", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "p3", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "p", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api\"\nquerystring = {\"t\": \"\", \"s\": \"\", \"u\": \"\", \"c\": \"\", \"d\": \"\", \"l\": \"\", \"ut\": \"\", \"a\": \"\", \"cr\": \"\", \"af\": \"\", \"ao\": \"\", \"v\": \"\", \"pr\": \"\", \"re\": \"\", \"m\": \"\", \"i\": \"\", \"p2\": \"\", \"ex\": \"\", \"k\": \"\", \"p3\": \"\", \"p\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushsafer.p.rapidapi.com/api\"\nquerystring = {\"t\": \"\", \"s\": \"\", \"u\": \"\", \"c\": \"\", \"d\": \"\", \"l\": \"\", \"ut\": \"\", \"a\": \"\", \"cr\": \"\", \"af\": \"\", \"ao\": \"\", \"v\": \"\", \"pr\": \"\", \"re\": \"\", \"m\": \"\", \"i\": \"\", \"p2\": \"\", \"ex\": \"\", \"k\": \"\", \"p3\": \"\", \"p\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushsafer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/pushsafer/api.py b/toolbench/toolenv/tools/Communication/pushsafer/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0dfda7eecba6fafc1e229e9deb58044039fa08b0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/pushsafer/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sound(l: str, k: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get a list of available notification sounds" + + """ + url = f"https://pushsafer.p.rapidapi.com/api-s" + querystring = {'l': l, 'k': k, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pushsafer.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def icon(l: str, k: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get a list of available notification icons" + + """ + url = f"https://pushsafer.p.rapidapi.com/api-i" + querystring = {'l': l, 'k': k, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "pushsafer.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/pushwoosh.json b/toolbench/toolenv/tools/Communication/pushwoosh.json new file mode 100644 index 0000000000000000000000000000000000000000..931d0897c891c889a96474b71a1a7f493761079c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/pushwoosh.json @@ -0,0 +1,31 @@ +{ + "product_id": "api_44e9259e-f59e-4b42-8033-ef97c3d6f7b3", + "tool_description": "Send transactional and segmented push, emails, in-apps ", + "home_url": "https://rapidapi.com/bystrovairina/api/pushwoosh1/", + "name": "Pushwoosh", + "title": "Pushwoosh", + "pricing": "FREE", + "tool_name": "Pushwoosh", + "score": null, + "host": "pushwoosh1.p.rapidapi.com", + "api_list": [ + { + "name": "Pushwoosh", + "url": "https://pushwoosh1.p.rapidapi.com/createMessage", + "description": "API Reference", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "application", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://pushwoosh1.p.rapidapi.com/createMessage\"\nquerystring = {\"application\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushwoosh1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pushwoosh1.p.rapidapi.com/createMessage\"\nquerystring = {\"application\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pushwoosh1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/qr_code_by_api_ninjas.json b/toolbench/toolenv/tools/Communication/qr_code_by_api_ninjas.json new file mode 100644 index 0000000000000000000000000000000000000000..fdca7d9cc017e455f8f3597ada794b9b2d8d8d57 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/qr_code_by_api_ninjas.json @@ -0,0 +1,62 @@ +{ + "tool_name":"QR Code by API-Ninjas", + "tool_description":"Generate custom QR codes for any data. See more info at https://api-ninjas.com/api/qrcode.", + "title":"QR Code by API-Ninjas", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":453, + "avgSuccessRate":100, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/apininjas/api/qr-code-by-api-ninjas/", + "host":"qr-code-by-api-ninjas.p.rapidapi.com", + "api_list":[ + { + "name":"/v1/qrcode", + "url":"https://qr-code-by-api-ninjas.p.rapidapi.com/v1/qrcode", + "description":"API Ninjas QR Code API endpoint. Returns a QRCode image binary specified by input parameters.", + "method":"GET", + "required_parameters":[ + { + "name":"data", + "type":"STRING", + "description":"data to encode in the QR code.", + "default":"https://api-ninjas.com" + }, + { + "name":"format", + "type":"STRING", + "description":"image format to return. Must be one of the following: png, jpg, jpeg, eps, svg.", + "default":"png" + } + ], + "optional_parameters":[ + { + "name":"size", + "type":"NUMBER", + "description":"size of the QR code image to generate. The output will be a square image with (size x size) dimensions.", + "default":"" + }, + { + "name":"fg_color", + "type":"STRING", + "description":"foreground color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is 000000 (black)", + "default":"" + }, + { + "name":"bg_color", + "type":"STRING", + "description":"background color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is ffffff (white)", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://qr-code-by-api-ninjas.p.rapidapi.com/v1/qrcode\"\nquerystring = {\"data\": data, \"format\": format}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qr-code-by-api-ninjas.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/qr_code_by_api_ninjas/api.py b/toolbench/toolenv/tools/Communication/qr_code_by_api_ninjas/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dd3844a6a0103034db140e9aece599a58a63c244 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/qr_code_by_api_ninjas/api.py @@ -0,0 +1,40 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v1_qrcode(data: str, format: str, size: int=None, fg_color: str=None, bg_color: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API Ninjas QR Code API endpoint. Returns a QRCode image binary specified by input parameters." + data: data to encode in the QR code. + format: image format to return. Must be one of the following: png, jpg, jpeg, eps, svg. + size: size of the QR code image to generate. The output will be a square image with (size x size) dimensions. + fg_color: foreground color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is 000000 (black) + bg_color: background color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is ffffff (white) + + """ + url = f"https://qr-code-by-api-ninjas.p.rapidapi.com/v1/qrcode" + querystring = {'data': data, 'format': format, } + if size: + querystring['size'] = size + if fg_color: + querystring['fg_color'] = fg_color + if bg_color: + querystring['bg_color'] = bg_color + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "qr-code-by-api-ninjas.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/qrcode_png_color.json b/toolbench/toolenv/tools/Communication/qrcode_png_color.json new file mode 100644 index 0000000000000000000000000000000000000000..bfae37beb8dd65bd88304b15ad1b7356f4bb19c7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/qrcode_png_color.json @@ -0,0 +1,35 @@ +{ + "product_id": "api_719fecbe-b77c-4329-9986-774f7b5a2337", + "tool_description": "Beautiful QRCode with color", + "home_url": "https://rapidapi.com/ewenderrien/api/qrcode-png-color/", + "name": "QRCode png color", + "title": "QRCode png color", + "pricing": "FREEMIUM", + "tool_name": "QRCode png color", + "score": null, + "host": "qrcode-png-color.p.rapidapi.com", + "api_list": [ + { + "name": "Get QRCode", + "url": "https://qrcode-png-color.p.rapidapi.com/qrcode", + "description": "It will send you a QRCode with desired color and size.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrcode-png-color.p.rapidapi.com/qrcode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-png-color.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrcode-png-color.p.rapidapi.com/qrcode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-png-color.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Get Simple QRCode", + "url": "https://qrcode-png-color.p.rapidapi.com/simpleqrcode", + "description": "This will give you a simple QRCode from text.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://qrcode-png-color.p.rapidapi.com/simpleqrcode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-png-color.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://qrcode-png-color.p.rapidapi.com/simpleqrcode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"qrcode-png-color.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/question_answering/api.py b/toolbench/toolenv/tools/Communication/question_answering/api.py new file mode 100644 index 0000000000000000000000000000000000000000..113b74222c9fcec68c73c2769862c7ef14a75609 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/question_answering/api.py @@ -0,0 +1,108 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def answer_a_question(question: str, answerlookup: bool=None, answersearch: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find an answer to a given question." + question: The question. + answerlookup: Whether the answer can be looked up in a given set of answers. + answersearch: Whether the answer can be searched on the Web. If set to true, the answer might take up to a minute to show up. + + """ + url = f"https://webknox-question-answering.p.rapidapi.com/questions/answers" + querystring = {'question': question, } + if answerlookup: + querystring['answerLookup'] = answerlookup + if answersearch: + querystring['answerSearch'] = answersearch + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "webknox-question-answering.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def quickly_answer_a_question(question: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a short, quick answer to a simple question." + question: A question or keywords that can be answered with simple facts. + + """ + url = f"https://webknox-question-answering.p.rapidapi.com/questions/quickanswers" + querystring = {'question': question, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "webknox-question-answering.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def suggest_conversation_topics(query: str, number: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Query this endpoint to get suggests about what WebKnox can converse about." + query: The (partial) query of the user to get suggests for. + number: The number of suggests, must be between 1 and 25. + + """ + url = f"https://webknox-question-answering.p.rapidapi.com/questions/converse/suggest" + querystring = {'query': query, } + if number: + querystring['number'] = number + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "webknox-question-answering.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def have_a_conversation(text: str, contextid: str='qc953q672935', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Using all question answering functionality to have a contextual conversation with WebKnox." + text: The question/response by the user. + contextid: Every conversation has a context, pass a globally unique identifier for your conversation. + + """ + url = f"https://webknox-question-answering.p.rapidapi.com/questions/converse" + querystring = {'text': text, } + if contextid: + querystring['contextId'] = contextid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "webknox-question-answering.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/quick_email_verification.json b/toolbench/toolenv/tools/Communication/quick_email_verification.json new file mode 100644 index 0000000000000000000000000000000000000000..75b5375abeddae163d3f17fdf967735eb33c2235 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quick_email_verification.json @@ -0,0 +1,43 @@ +{ + "product_id": "54795d55e4b05354560452f4", + "tool_description": "Improve your mail deliverability rates and protect your IP reputation by using our Free Email Verification Service. Need further help? You can contact us at https://quickemailverification.com/contact-us", + "home_url": "https://rapidapi.com/quickemailverification/api/quick-email-verification/", + "name": "Quick Email Verification", + "title": "Quick Email Verification", + "pricing": "FREE", + "tool_name": "Quick Email Verification", + "score": { + "avgServiceLevel": 100, + "avgLatency": 2311, + "avgSuccessRate": 71, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "quickemailverification.p.rapidapi.com", + "api_list": [ + { + "name": "/v1/verify", + "url": "https://quickemailverification.p.rapidapi.com/v1/verify", + "description": "", + "method": "GET", + "required_parameters": [ + { + "name": "email", + "type": "STRING", + "description": "Enter email address to validate", + "default": "youremail@domain.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://quickemailverification.p.rapidapi.com/v1/verify\"\nquerystring = {\"email\": \"youremail@domain.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"quickemailverification.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://quickemailverification.p.rapidapi.com/v1/verify\"\nquerystring = {\"email\": \"youremail@domain.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"quickemailverification.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": "false", + "message": "Email or apikey is blank" + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "quick_email_verification" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/quick_email_verification/api.py b/toolbench/toolenv/tools/Communication/quick_email_verification/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5a7d38f2a54d1f52f1c95805cae27e3f305203bf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quick_email_verification/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v1_verify(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + email: Enter email address to validate + + """ + url = f"https://quickemailverification.p.rapidapi.com/v1/verify" + querystring = {'email': email, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "quickemailverification.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/quickblox.json b/toolbench/toolenv/tools/Communication/quickblox.json new file mode 100644 index 0000000000000000000000000000000000000000..680bd9e4be3096c333dd061f7f73b500cdbc9172 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quickblox.json @@ -0,0 +1,182 @@ +{ + "product_id": "53aa5885e4b0b60946a2fe23", + "tool_description": "QuickBlox is a cloud\u00adhosted Communications backend service. We help developers and publishers add advanced communication features to their apps while reducing development time & cost.\r\n\r\nAll our modules are available through SDKs for all major platforms - Android, iOS, WP7, Blackberry and Web.\r\n\r\nCommunication:\r\n\u25cb Video Calling\r\n\u25cb Voice Chat\r\n\u25cb Instant Messaging\r\n\u25cb Push Notifications\r\n\u25cb Presence\r\n\r\nData:\r\n\u25cb Location\r\n\u25cb Users\r\n\u25cb Content\r\n\u25cb Custom Objects\r\n\u25cb Ratings", + "home_url": "https://rapidapi.com/quickblox/api/quickblox/", + "name": "QuickBlox", + "title": "QuickBlox", + "pricing": "FREE", + "tool_name": "QuickBlox", + "score": { + "avgServiceLevel": 100, + "avgLatency": 619, + "avgSuccessRate": 0, + "popularityScore": 0.2, + "__typename": "Score" + }, + "host": "community-quickblox.p.rapidapi.com", + "api_list": [ + { + "name": "GET places.json", + "url": "https://community-quickblox.p.rapidapi.com/places.json", + "description": "Retrieving a list of the created places by application", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/places.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/places.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "GET users.json", + "url": "https://community-quickblox.p.rapidapi.com/users.json", + "description": "Call this API to get a list of current users of you app. By default it returns upto 10 users, but you can change this by adding pagination parameters.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "filter[]", + "type": "STRING", + "description": "You can filter the list of users by supplying a filter string. For example, the following filter limits the results to users who's login is either dgem or webdev: string login in dgem, webdev For more information on filtering, see the filtering documentation", + "default": "" + }, + { + "name": "per_page", + "type": "STRING", + "description": "The maximum number of users to return per page, if not specified then the default is 10", + "default": "" + }, + { + "name": "page", + "type": "STRING", + "description": "Used to paginate the results when more than one page of users retrieved", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/users.json\"\nquerystring = {\"filter[]\": \"\", \"per_page\": \"\", \"page\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/users.json\"\nquerystring = {\"filter[]\": \"\", \"per_page\": \"\", \"page\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "GET geodata/find.json", + "url": "https://community-quickblox.p.rapidapi.com/geodata/find.json", + "description": "Retrieve all (by default) geodata for current application. The ID of the application is taken from the token which is specified in the request", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/geodata/find.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/geodata/find.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "GET blobs/{uid}.xml", + "url": "https://community-quickblox.p.rapidapi.com/blobs/{uid}.xml", + "description": "Download File (Get File as a redirect to the S3 object) by uid. 'uid' is a parameter which should be taken from the response of the request for the creating a file. To have a possibility to download a file you should set a status complete to your file firstly.", + "method": "GET", + "required_parameters": [ + { + "name": "uid", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/blobs/{uid}.xml\"\nquerystring = {\"uid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/blobs/{uid}.xml\"\nquerystring = {\"uid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "GET blobs.json", + "url": "https://community-quickblox.p.rapidapi.com/blobs.json", + "description": "Get list of files for the current user. The ID of the user is taken from the token specified in the request", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/blobs.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/blobs.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "POST users.json", + "url": "https://community-quickblox.p.rapidapi.com/users.json", + "description": "Call this API to register a user for the app. You must provide either a user login or email address along with their password, passing both email address and login is permitted but not required", + "method": "POST", + "required_parameters": [ + { + "name": "user[login]", + "type": "STRING", + "description": "The user's login name, for example johnDoe", + "default": "" + }, + { + "name": "user[email]", + "type": "STRING", + "description": "The user's email address, for example johnDoe@quickblox.com", + "default": "" + }, + { + "name": "user[password]", + "type": "STRING", + "description": "The user's password for this app", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/users.json\"\nquerystring = {\"user[login]\": \"\", \"user[email]\": \"\", \"user[password]\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/users.json\"\nquerystring = {\"user[login]\": \"\", \"user[email]\": \"\", \"user[password]\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "POST places.json", + "url": "https://community-quickblox.p.rapidapi.com/places.json", + "description": "Create place", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/places.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/places.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "POST geodata.json", + "url": "https://community-quickblox.p.rapidapi.com/geodata.json", + "description": "Create geodata which represent points on the earth", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/geodata.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/geodata.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "POST blobs.json", + "url": "https://community-quickblox.p.rapidapi.com/blobs.json", + "description": "Create a file Create an entity which is a file in a system", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/blobs.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-quickblox.p.rapidapi.com/blobs.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-quickblox.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "quickblox" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/quickblox/api.py b/toolbench/toolenv/tools/Communication/quickblox/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e03b99831509b0aa02d4a084cc83785f8f5950bc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quickblox/api.py @@ -0,0 +1,122 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_places_json(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieving a list of the created places by application" + + """ + url = f"https://community-quickblox.p.rapidapi.com/places.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-quickblox.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_users_json(filter: str=None, per_page: str=None, page: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Call this API to get a list of current users of you app. By default it returns upto 10 users, but you can change this by adding pagination parameters." + filter: You can filter the list of users by supplying a filter string. For example, the following filter limits the results to users who's login is either dgem or webdev: string login in dgem, webdev For more information on filtering, see the filtering documentation + per_page: The maximum number of users to return per page, if not specified then the default is 10 + page: Used to paginate the results when more than one page of users retrieved + + """ + url = f"https://community-quickblox.p.rapidapi.com/users.json" + querystring = {} + if filter: + querystring['filter[]'] = filter + if per_page: + querystring['per_page'] = per_page + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-quickblox.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_geodata_find_json(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve all (by default) geodata for current application. The ID of the application is taken from the token which is specified in the request" + + """ + url = f"https://community-quickblox.p.rapidapi.com/geodata/find.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-quickblox.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_blobs_uid_xml(uid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Download File (Get File as a redirect to the S3 object) by uid. 'uid' is a parameter which should be taken from the response of the request for the creating a file. To have a possibility to download a file you should set a status complete to your file firstly." + + """ + url = f"https://community-quickblox.p.rapidapi.com/blobs/{uid}.xml" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-quickblox.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_blobs_json(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of files for the current user. The ID of the user is taken from the token specified in the request" + + """ + url = f"https://community-quickblox.p.rapidapi.com/blobs.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-quickblox.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/quierochat.json b/toolbench/toolenv/tools/Communication/quierochat.json new file mode 100644 index 0000000000000000000000000000000000000000..0d83d55776aabcbbb80a4477f787e2f0eaf94baf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quierochat.json @@ -0,0 +1,31 @@ +{ + "tool_name":"QuieroChat", + "tool_description":"Sistema de chat de QuieroChat para el Terra Chat.", + "title":"QuieroChat", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/quierochat/api/quierochat/", + "host":"quierochat.p.rapidapi.com", + "api_list":[ + { + "name":"Acceso al chat", + "url":"https://quierochat.p.rapidapi.comhttps://www.quierochat.com/terra-chat/", + "description":"Conecta al usuario con el chat", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"canal", + "type":"STRING", + "description":"Default channel", + "default":"canal=irc-hispano" + } + ], + "code":"import requests\n\nurl = \"https://quierochat.p.rapidapi.comhttps://www.quierochat.com/terra-chat/\"\nquerystring = {\"canal\": canal}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"quierochat.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/quierochat/api.py b/toolbench/toolenv/tools/Communication/quierochat/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f9c284c955ebaabeedbc3026f6f510d65a5a7f74 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quierochat/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def acceso_al_chat(canal: str='canal=irc-hispano', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Conecta al usuario con el chat" + canal: Default channel + + """ + url = f"https://quierochat.p.rapidapi.comhttps://www.quierochat.com/terra-chat/" + querystring = {} + if canal: + querystring['canal'] = canal + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "quierochat.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/quote_api_try.json b/toolbench/toolenv/tools/Communication/quote_api_try.json new file mode 100644 index 0000000000000000000000000000000000000000..0ab8c1e4f5d910e604741249198de0af1a048e52 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quote_api_try.json @@ -0,0 +1,37 @@ +{ + "tool_name":"quote-api-try", + "tool_description":"Just for fun", + "title":"quote-api-try", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":973, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/rohitbankar2000/api/quote-api-try/", + "host":"quote-api-try.p.rapidapi.com", + "api_list":[ + { + "name":"Get a quote", + "url":"https://quote-api-try.p.rapidapi.com/ai-quotes/{id}", + "description":"Specifiy between 1-9", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"string", + "description":"", + "default":"1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://quote-api-try.p.rapidapi.com/ai-quotes/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"quote-api-try.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/quote_api_try/api.py b/toolbench/toolenv/tools/Communication/quote_api_try/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3598b84345b901598ce0efa0a3e9bf09fd1a7e65 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quote_api_try/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_a_quote(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Specifiy between 1-9" + + """ + url = f"https://quote-api-try.p.rapidapi.com/ai-quotes/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "quote-api-try.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/quotes/api.py b/toolbench/toolenv/tools/Communication/quotes/api.py new file mode 100644 index 0000000000000000000000000000000000000000..289573caa61dbdf44c615f457d680712f57e1382 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/quotes/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def widget_search_json(search: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search or get a random quote" + search: Search term. Use dash(-) instead of space and must be lower case. + + """ + url = f"https://yusufnb-quotes-v1.p.rapidapi.com/widget/~{search}.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yusufnb-quotes-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/random_integer_generator/api.py b/toolbench/toolenv/tools/Communication/random_integer_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2ed1fa7bfe9836b1384218e51c588312fb1674c6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/random_integer_generator/api.py @@ -0,0 +1,35 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def random_integer_generator(min: int=10, max: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generates Random Integer" + min: Min endpoint of interval. If not given, Integer Minimum Value is used (-2^31) + max: Max endpoint of interval. If not given, Integer Maximum Value is used (2^31-1) + + """ + url = f"https://randomgen.p.rapidapi.com/api/random/" + querystring = {} + if min: + querystring['min'] = min + if max: + querystring['max'] = max + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "randomgen.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/reinflux.json b/toolbench/toolenv/tools/Communication/reinflux.json new file mode 100644 index 0000000000000000000000000000000000000000..5fdec0fcb9da00666ebb843660528b745d42de26 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/reinflux.json @@ -0,0 +1,24 @@ +{ + "tool_name":"reinflux", + "tool_description":"reinflux web site", + "title":"reinflux", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/aamirkhan/api/reinflux/", + "host":"reinflux.p.rapidapi.com", + "api_list":[ + { + "name":"https://reinflux.com/demo/weather.php", + "url":"https://reinflux.p.rapidapi.com/weather/1", + "description":"https://reinflux.com/demo/weather.php", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://reinflux.p.rapidapi.com/weather/1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reinflux.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/reinflux/api.py b/toolbench/toolenv/tools/Communication/reinflux/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ed26e782442c4f5429e784094978900a30e6393b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/reinflux/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def https_reinflux_com_demo_weather_php(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "https://reinflux.com/demo/weather.php" + + """ + url = f"https://reinflux.p.rapidapi.com/weather/1" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reinflux.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/resalty_sms/api.py b/toolbench/toolenv/tools/Communication/resalty_sms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8189ab40edf8de2038ab4b701572eb6590e8566c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/resalty_sms/api.py @@ -0,0 +1,54 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_your_account_balance(password: str, userid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://mob4me.p.rapidapi.com/getbalance.php" + querystring = {'password': password, 'userid': userid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "mob4me.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sendsms_php(userid: str, password: str, sender: str, to: int, msg: str='test me', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + sender: phone number registered on your profile + to: add phone Number, no need to add (+) or (00) in country code + + """ + url = f"https://mob4me.p.rapidapi.com/sendsms.php" + querystring = {'userid': userid, 'password': password, 'sender': sender, 'to': to, } + if msg: + querystring['msg'] = msg + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "mob4me.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/retrieve_dns_entries.json b/toolbench/toolenv/tools/Communication/retrieve_dns_entries.json new file mode 100644 index 0000000000000000000000000000000000000000..57bb229cfb098ed09b80e55d79b6513c81d9b1f9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/retrieve_dns_entries.json @@ -0,0 +1,203 @@ +{ + "tool_name":"Retrieve DNS Entries", + "tool_description":"The API enables you to make fast DNS and WHOIS lookups.", + "title":"Retrieve DNS Entries", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":96, + "avgLatency":261, + "avgSuccessRate":93, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/AirBorne04/api/retrieve-dns-entries/", + "host":"retrieve-dns-entries.p.rapidapi.com", + "api_list":[ + { + "name":"/api/schema", + "url":"https://retrieve-dns-entries.p.rapidapi.com/api/schema", + "description":" ", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://retrieve-dns-entries.p.rapidapi.com/api/schema\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"retrieve-dns-entries.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object" + } + }, + { + "name":"/api/dns", + "url":"https://retrieve-dns-entries.p.rapidapi.com/api/dns", + "description":" ", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"host", + "type":"STRING", + "description":"", + "default":"google.com" + }, + { + "name":"url", + "type":"STRING", + "description":"", + "default":"https://google.com" + }, + { + "name":"record", + "type":"STRING", + "description":"", + "default":"A, CNAME, MX" + } + ], + "code":"import requests\n\nurl = \"https://retrieve-dns-entries.p.rapidapi.com/api/dns\"\nquerystring = {\"host\": host, \"url\": url, \"record\": record}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"retrieve-dns-entries.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "type":"MX", + "value":"smtp.google.com", + "preference":10 + }, + "headers":{}, + "schema":{ + "type":"object", + "required":[ + "type" + ], + "properties":{ + "type":{ + "type":"string" + }, + "value":{ + "type":"string" + }, + "preference":{ + "type":"number" + } + } + } + }, + { + "name":"/api/whois", + "url":"https://retrieve-dns-entries.p.rapidapi.com/api/whois", + "description":" ", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"ip", + "type":"STRING", + "description":"", + "default":"8.8.8.8" + }, + { + "name":"host", + "type":"STRING", + "description":"", + "default":"google.com" + }, + { + "name":"url", + "type":"STRING", + "description":"", + "default":"http://google.com" + } + ], + "code":"import requests\n\nurl = \"https://retrieve-dns-entries.p.rapidapi.com/api/whois\"\nquerystring = {\"ip\": ip, \"host\": host, \"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"retrieve-dns-entries.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "startAddress":"172.217.0.0", + "endAddress":"172.217.255.255", + "ipVersion":"v4", + "name":"GOOGLE", + "type":"DIRECT ALLOCATION", + "lastChanged":"2012-04-16T11:24:30-04:00", + "registered":"2012-04-16T11:24:30-04:00", + "registrant":[ + { + "handle":"GOGL", + "vcard":[], + "lastChanged":"2012-04-16T11:24:30-04:00", + "registered":"2012-04-16T11:24:30-04:00" + } + ] + }, + "headers":{}, + "schema":{ + "type":"object", + "required":[ + "startAddress", + "endAddress", + "ipVersion", + "name", + "type", + "lastChanged", + "registered", + "registrant" + ], + "properties":{ + "startAddress":{ + "type":"string" + }, + "endAddress":{ + "type":"string" + }, + "ipVersion":{ + "type":"string", + "enum":[ + "v4", + "v6" + ] + }, + "name":{ + "type":"string" + }, + "type":{ + "type":"string" + }, + "lastChanged":{ + "type":"string" + }, + "registered":{ + "type":"string" + }, + "registrant":{ + "type":"array", + "items":{ + "properties":{ + "handle":{ + "type":"string" + }, + "vcard":{ + "type":"array", + "items":{ + "type":"array", + "items":{ + "oneOf":[ + { + "type":"string" + }, + { + "type":"object" + } + ] + } + } + }, + "lastChanged":{ + "type":"string" + }, + "registered":{ + "type":"string" + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/retrieve_dns_entries/api.py b/toolbench/toolenv/tools/Communication/retrieve_dns_entries/api.py new file mode 100644 index 0000000000000000000000000000000000000000..903fd385e3fc4889e00e77933cb5313f12082ec4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/retrieve_dns_entries/api.py @@ -0,0 +1,83 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def api_schema(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://retrieve-dns-entries.p.rapidapi.com/api/schema" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "retrieve-dns-entries.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_dns(host: str='google.com', url: str='https://google.com', record: str='A, CNAME, MX', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://retrieve-dns-entries.p.rapidapi.com/api/dns" + querystring = {} + if host: + querystring['host'] = host + if url: + querystring['url'] = url + if record: + querystring['record'] = record + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "retrieve-dns-entries.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_whois(ip: str='8.8.8.8', host: str='google.com', url: str='http://google.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://retrieve-dns-entries.p.rapidapi.com/api/whois" + querystring = {} + if ip: + querystring['ip'] = ip + if host: + querystring['host'] = host + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "retrieve-dns-entries.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/revista_verde.json b/toolbench/toolenv/tools/Communication/revista_verde.json new file mode 100644 index 0000000000000000000000000000000000000000..d41f42ff2ad2815e13aa529431238e58617f0321 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/revista_verde.json @@ -0,0 +1,30 @@ +{ + "tool_name":"Revista Verde", + "tool_description":"A Revista Verde (RV) é periódico científico internacional semestral do Programa Escola Verde e do Grupo de Pesquisa em Educação Ambiental Interdisciplinar (CNPq) sobre problemáticas socioambientais e sustentabilidade.\n\nWebsite: https://revistaverde.escolaverde.org", + "title":"Revista Verde", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":97, + "avgSuccessRate":100, + "popularityScore":8.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/revista-verde-green-journal-revista-verde-green-journal-default/api/revista-verde/", + "host":"revista-verde.p.rapidapi.com", + "api_list":[ + { + "name":"Green Journal", + "url":"https://revista-verde.p.rapidapi.com/", + "description":"A Revista Verde (RV) é periódico científico internacional semestral do Programa Escola Verde e do Grupo de Pesquisa em Educação Ambiental Interdisciplinar (CNPq) sobre problemáticas socioambientais e sustentabilidade.\n\nWebsite: https://revistaverde.escolaverde.org", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://revista-verde.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"revista-verde.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/revista_verde/api.py b/toolbench/toolenv/tools/Communication/revista_verde/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0f5b51b46545a15d53ae98bbfcb8f8b47c2128fc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/revista_verde/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def green_journal(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "A Revista Verde (RV) é periódico científico internacional semestral do Programa Escola Verde e do Grupo de Pesquisa em Educação Ambiental Interdisciplinar (CNPq) sobre problemáticas socioambientais e sustentabilidade. + + Website: https://revistaverde.escolaverde.org" + + """ + url = f"https://revista-verde.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "revista-verde.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/ritmobingvideos.json b/toolbench/toolenv/tools/Communication/ritmobingvideos.json new file mode 100644 index 0000000000000000000000000000000000000000..864a0710190f69a22f09081682fca83e34e78135 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ritmobingvideos.json @@ -0,0 +1,37 @@ +{ + "tool_name":"RitmoBingVideos", + "tool_description":"RitmoBingVideos", + "title":"RitmoBingVideos", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/ritmodigitaldrive/api/ritmobingvideos/", + "host":"ritmobingvideos.p.rapidapi.com", + "api_list":[ + { + "name":"Url", + "url":"https://ritmobingvideos.p.rapidapi.com/", + "description":"dsa", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ritmobingvideos.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ritmobingvideos.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Ritmo Hub", + "url":"https://ritmobingvideos.p.rapidapi.com/Bing", + "description":"Ritmo Hub", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ritmobingvideos.p.rapidapi.com/Bing\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ritmobingvideos.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/ritmobingvideos/api.py b/toolbench/toolenv/tools/Communication/ritmobingvideos/api.py new file mode 100644 index 0000000000000000000000000000000000000000..66f33330f317ceae059ff89c6adbff24df808424 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ritmobingvideos/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def url(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "dsa" + + """ + url = f"https://ritmobingvideos.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ritmobingvideos.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ritmo_hub(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Ritmo Hub" + + """ + url = f"https://ritmobingvideos.p.rapidapi.com/bing" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ritmobingvideos.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/robokiller_call_confidence.json b/toolbench/toolenv/tools/Communication/robokiller_call_confidence.json new file mode 100644 index 0000000000000000000000000000000000000000..fafb0c4ea5507f37d68090d812419a88aee9055b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/robokiller_call_confidence.json @@ -0,0 +1,43 @@ +{ + "tool_name":"RoboKiller Call Confidence", + "tool_description":"Get the newest reputation of phone numbers from the database of leading consumer anti-spam call app Robokiller and eliminate your phone scams.", + "title":"RoboKiller Call Confidence", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":230, + "avgSuccessRate":100, + "popularityScore":9.6, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/teltech-systems-inc-teltech-systems-inc-default/api/robokiller-call-confidence/", + "host":"robokiller-call-confidence.p.rapidapi.com", + "api_list":[ + { + "name":"getNumberReputation", + "url":"https://robokiller-call-confidence.p.rapidapi.com/reputation", + "description":"This method returns the reputation of a phone number.", + "method":"GET", + "required_parameters":[ + { + "name":"from", + "type":"STRING", + "description":"Telephone number in E.164 format ([+] [country code] [subscriber number including area code]).", + "default":"+12345678900" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://robokiller-call-confidence.p.rapidapi.com/reputation\"\nquerystring = {\"from\": is_from}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"robokiller-call-confidence.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "content-length":"429", + "content-type":"application/json" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/robokiller_call_confidence/api.py b/toolbench/toolenv/tools/Communication/robokiller_call_confidence/api.py new file mode 100644 index 0000000000000000000000000000000000000000..16a5305745bccf1ef50d07fd7c150a712163425d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/robokiller_call_confidence/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getnumberreputation(is_from: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method returns the reputation of a phone number." + from: Telephone number in E.164 format ([+] [country code] [subscriber number including area code]). + + """ + url = f"https://robokiller-call-confidence.p.rapidapi.com/reputation" + querystring = {'from': is_from, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "robokiller-call-confidence.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/robokiller_sms_reputation.json b/toolbench/toolenv/tools/Communication/robokiller_sms_reputation.json new file mode 100644 index 0000000000000000000000000000000000000000..14004609ccc9d99834f7436803f7b99865710dd9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/robokiller_sms_reputation.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_cdf21985-194f-456f-a4c8-1fa3357e8e88", + "tool_description": "Get the newest reputation of SMSes from the database of leading consumer anti-spam call app Robokiller and eliminate your smishing attacks attempts.", + "home_url": "https://rapidapi.com/teltech-systems-inc-teltech-systems-inc-default/api/robokiller-sms-reputation/", + "name": "Robokiller SMS Reputation", + "title": "Robokiller SMS Reputation", + "pricing": "PAID", + "tool_name": "Robokiller SMS Reputation", + "score": null, + "host": "robokiller-sms-reputation.p.rapidapi.com", + "api_list": [ + { + "name": "getSMSReputation", + "url": "https://robokiller-sms-reputation.p.rapidapi.com/reputation", + "description": "Robokiller and Textkiller are leading mobile applications designed to block unwanted robocalls/ spam calls and unwanted SMS messages. Robokiller platform utilizes advanced algorithms and ML-based technology to identify and filter out automated calls & messages, telemarketers, and scammers.\n\nThrough direct app feedback and feedback from over 1 million paying subscribers Robokiller database is updated in real-time, making it the most fresh and relevant database on the market.\n\nAs **SMS Reputation API** is based on Robokiller database data this gives anyone the opportunity to get the most sophisticated protection against your SMS scams.\n\nDue to its low latency, this API can be used for live SMS analysis.\n\nThe API takes a phone number & message body as a parameter and returns the following results for a given SMS:\n\n- **sender**: actual sender number\n- **block**: blocking status boolean value (true/false)\n- **reason**: primary reason for blocking status", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://robokiller-sms-reputation.p.rapidapi.com/reputation\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"robokiller-sms-reputation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://robokiller-sms-reputation.p.rapidapi.com/reputation\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"robokiller-sms-reputation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/rollicate.json b/toolbench/toolenv/tools/Communication/rollicate.json new file mode 100644 index 0000000000000000000000000000000000000000..22476da6ec4c95190a9053dbcebfa85f04b8a426 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/rollicate.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_7fd00670-6ef0-4199-94b1-931b49141072", + "tool_description": "A GraphQL API for a chat app with users, members, servers, channels, servers, etc.", + "home_url": "https://rapidapi.com/blazify-blazify-default/api/rollicate/", + "name": "rollicate", + "title": "rollicate", + "pricing": "FREEMIUM", + "tool_name": "rollicate", + "score": null, + "host": "rollicate.p.rapidapi.com", + "api_list": [ + { + "name": "graphQL", + "url": "https://rollicate.p.rapidapi.com/", + "description": "graphQL endpoint", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://rollicate.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rollicate.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://rollicate.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rollicate.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/rostos.json b/toolbench/toolenv/tools/Communication/rostos.json new file mode 100644 index 0000000000000000000000000000000000000000..00266b644efe98ff2dd10b7f09a314e279402ce2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/rostos.json @@ -0,0 +1,37 @@ +{ + "product_id": "546340f7e4b0c180ebab74ee", + "tool_description": "API para reconhecimento facial", + "home_url": "https://rapidapi.com/dane-veriato/api/rostos/", + "name": "rostos", + "title": "rostos", + "pricing": "FREE", + "tool_name": "rostos", + "score": null, + "host": "dane-veriato-rostos-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Reconhecimento Facial", + "url": "https://dane-veriato-rostos-v1.p.rapidapi.com/faces", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dane-veriato-rostos-v1.p.rapidapi.com/faces\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dane-veriato-rostos-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dane-veriato-rostos-v1.p.rapidapi.com/faces\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dane-veriato-rostos-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/teste", + "url": "https://dane-veriato-rostos-v1.p.rapidapi.com/teste", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://dane-veriato-rostos-v1.p.rapidapi.com/teste\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dane-veriato-rostos-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://dane-veriato-rostos-v1.p.rapidapi.com/teste\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"dane-veriato-rostos-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sagenda_free_booking_system.json b/toolbench/toolenv/tools/Communication/sagenda_free_booking_system.json new file mode 100644 index 0000000000000000000000000000000000000000..483cfd321f50bb9f9112b6ebd5b98984aad73a9e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sagenda_free_booking_system.json @@ -0,0 +1,61 @@ +{ + "product_id": "566fd178e4b0a48723510c4e", + "tool_description": "Sagenda is a booking, reservation, scheduling or appointment online software that increases the productivity of your business free of cost.", + "home_url": "https://rapidapi.com/sagenda/api/sagenda-free-booking-system/", + "name": "Sagenda Free Booking System", + "title": "Sagenda Free Booking System", + "pricing": "FREEMIUM", + "tool_name": "Sagenda Free Booking System", + "score": { + "avgServiceLevel": 100, + "avgLatency": 515, + "avgSuccessRate": 100, + "popularityScore": 6.3, + "__typename": "Score" + }, + "host": "sagenda-sagenda-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/Events/GetBookableItemList", + "url": "https://sagenda-sagenda-v1.p.rapidapi.com/Events/GetBookableItemList", + "description": "list of the bookable Items", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sagenda-sagenda-v1.p.rapidapi.com/Events/GetBookableItemList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sagenda-sagenda-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sagenda-sagenda-v1.p.rapidapi.com/Events/GetBookableItemList\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sagenda-sagenda-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "message": "Endpoint /api/Events/GetBookableItemList does not exist. Please check the API version and spelling" + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "/Events/SetBookingWithPayment", + "url": "https://sagenda-sagenda-v1.p.rapidapi.com/Events/SetBookingWithPayment", + "description": "Booking with paypal payment. This will build paypal redirection url with IPN information as a url.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sagenda-sagenda-v1.p.rapidapi.com/Events/SetBookingWithPayment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sagenda-sagenda-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sagenda-sagenda-v1.p.rapidapi.com/Events/SetBookingWithPayment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sagenda-sagenda-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/Events/SetBooking", + "url": "https://sagenda-sagenda-v1.p.rapidapi.com/Events/SetBooking", + "description": "With the help of this API end point you can book the free event", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sagenda-sagenda-v1.p.rapidapi.com/Events/SetBooking\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sagenda-sagenda-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sagenda-sagenda-v1.p.rapidapi.com/Events/SetBooking\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sagenda-sagenda-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "sagenda_free_booking_system" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sagenda_free_booking_system/api.py b/toolbench/toolenv/tools/Communication/sagenda_free_booking_system/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7024ede177025131c091c7d1db177606ab64cb38 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sagenda_free_booking_system/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def events_getbookableitemlist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "list of the bookable Items" + + """ + url = f"https://sagenda-sagenda-v1.p.rapidapi.com/events/getbookableitemlist" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sagenda-sagenda-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sawyertest.json b/toolbench/toolenv/tools/Communication/sawyertest.json new file mode 100644 index 0000000000000000000000000000000000000000..984d010bd46ab7cbe6f18d6ddd0542452ae34a7c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sawyertest.json @@ -0,0 +1,24 @@ +{ + "tool_name":"SawyerTest", + "tool_description":"Test version for Sawyer Corp.", + "title":"SawyerTest", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/sawyerhulme/api/sawyertest/", + "host":"sawyertest.p.rapidapi.com", + "api_list":[ + { + "name":"Sawyer Test", + "url":"https://sawyertest.p.rapidapi.comhttps://putsreq.com/O0BGgBF6e4gBFgtFy24U", + "description":"test", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://sawyertest.p.rapidapi.comhttps://putsreq.com/O0BGgBF6e4gBFgtFy24U\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sawyertest.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sawyertest/api.py b/toolbench/toolenv/tools/Communication/sawyertest/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1c5a0c13b714e8d6d36f64d5bff5179d27231e00 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sawyertest/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sawyer_test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "test" + + """ + url = f"https://sawyertest.p.rapidapi.comhttps://putsreq.com/o0bggbf6e4gbfgtfy24u" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sawyertest.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/scout.json b/toolbench/toolenv/tools/Communication/scout.json new file mode 100644 index 0000000000000000000000000000000000000000..40be70b71e4b2fcdbc663f4b3ec0dd4471cd1cf8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/scout.json @@ -0,0 +1,278 @@ +{ + "tool_name":"Scout", + "tool_description":"Telephone Number Insight including Validity, Robocall/SPAM, Reputation, LNP, Carrier, Timezone, and Geographic Information", + "title":"Scout", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":75, + "avgLatency":3894, + "avgSuccessRate":75, + "popularityScore":9.9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/icehook-systems-icehook-systems-default/api/scout/", + "host":"scout.p.rapidapi.com", + "api_list":[ + { + "name":"Advanced Phone Number Lookup", + "url":"https://scout.p.rapidapi.com/v1/numbers/search", + "description":"**Advanced Phone Number Information**\n\n*retrieves valuable technical data about a phone number*\n\n- validity\n\n- approximate location\n\n- timezone\n\n- carrier\n\n- line type\n\n- ported status\n\n- carrier\n\n- robocall/spam score\n\n- much more", + "method":"GET", + "required_parameters":[ + { + "name":"dialcode", + "type":"STRING", + "description":"", + "default":"+16502530000" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://scout.p.rapidapi.com/v1/numbers/search\"\nquerystring = {\"dialcode\": dialcode}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scout.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "dialcode_e164":"+16502530000", + "timezone":"America/Los_Angeles", + "timezone_short":"PDT", + "timezone_utc_offset":"-08:00", + "region":"West", + "sub_region":"Pacific", + "administrative_area_level_3":null, + "administrative_area_level_2":"San Francisco County", + "administrative_area_level_1":"California", + "administrative_area_level_1_short":"CA", + "locality":"San Francisco", + "sublocality_level_1":null, + "point_of_interest":null, + "neighborhood":null, + "clli":"SNFCCASY", + "switch_assignment_date":"2005-12-28T00:00:00.000Z", + "country":"United States", + "country_short":"US", + "postal_code":"94108", + "operating_company_name":"Twilio", + "operating_company_type":"clec", + "lata":"722", + "ocn":"8826", + "line_type":"voip", + "location_routing_number":"+14159686199", + "ported":true, + "risk_rating":"highly_likely", + "risk_level":94, + "ported_date":null, + "dialcode_invalid":false, + "dialcode_impossible":false, + "notes":"Email us at support@icehook.com with any inquiries." + }, + "headers":{ + "content-type":"application/json" + }, + "schema":{ + "type":"object", + "properties":{ + "dialcode_e164":{ + "type":"string" + }, + "timezone":{ + "type":"string" + }, + "timezone_short":{ + "type":"string" + }, + "timezone_utc_offset":{ + "type":"string" + }, + "region":{ + "type":"string" + }, + "sub_region":{ + "type":"string" + }, + "administrative_area_level_3":{ + "type":"null" + }, + "administrative_area_level_2":{ + "type":"string" + }, + "administrative_area_level_1":{ + "type":"string" + }, + "administrative_area_level_1_short":{ + "type":"string" + }, + "locality":{ + "type":"string" + }, + "sublocality_level_1":{ + "type":"null" + }, + "point_of_interest":{ + "type":"null" + }, + "neighborhood":{ + "type":"null" + }, + "clli":{ + "type":"string" + }, + "country":{ + "type":"string" + }, + "country_short":{ + "type":"string" + }, + "postal_code":{ + "type":"string" + }, + "operating_company_name":{ + "type":"string" + }, + "operating_company_type":{ + "type":"string" + }, + "lata":{ + "type":"string" + }, + "ocn":{ + "type":"string" + }, + "line_type":{ + "type":"string" + }, + "location_routing_number":{ + "type":"string" + }, + "ported":{ + "type":"boolean" + }, + "risk_rating":{ + "type":"string" + }, + "risk_level":{ + "type":"integer" + }, + "ported_date":{ + "type":"null" + }, + "dialcode_invalid":{ + "type":"boolean" + }, + "dialcode_impossible":{ + "type":"boolean" + }, + "notes":{ + "type":"string" + }, + "switch_assignment_date":{ + "type":"string" + } + } + } + }, + { + "name":"Basic Phone Number Validation", + "url":"https://scout.p.rapidapi.com/v1/numbers/verify", + "description":"**Basic Phone Number Validation**\n\n- determine if a phone number is in a valid format \n\n- determine if a phone number is impossible for a particular region\n\n- properly format the number for various scenarios like international or local dialing\n\n- attempts to determine line type\n\n- determines country and country code", + "method":"GET", + "required_parameters":[ + { + "name":"dialcode", + "type":"STRING", + "description":"", + "default":"+12125551234" + } + ], + "optional_parameters":[ + { + "name":"country_code", + "type":"STRING", + "description":"", + "default":"US" + } + ], + "code":"import requests\n\nurl = \"https://scout.p.rapidapi.com/v1/numbers/verify\"\nquerystring = {\"country_code\": country_code, \"dialcode\": dialcode}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"scout.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "original":"+12125551234", + "sanitized":"12125551234", + "e164":"+12125551234", + "national":"2125551234", + "full_national":"(212) 555-1234", + "full_international":"+1 212-555-1234", + "country":"US", + "country_name":"United States", + "country_code_prefix":"1", + "area_code":"212", + "valid_countries":[ + "US" + ], + "invalid":false, + "impossible":false, + "type":"fixed_or_mobile", + "possible_types":[ + "fixed_or_mobile" + ] + }, + "headers":{ + "cache-control":"max-age=0, private, must-revalidate", + "content-length":"383", + "content-type":"application/json; charset=utf-8" + }, + "schema":{ + "type":"object", + "properties":{ + "original":{ + "type":"string" + }, + "sanitized":{ + "type":"string" + }, + "e164":{ + "type":"string" + }, + "national":{ + "type":"string" + }, + "full_national":{ + "type":"string" + }, + "full_international":{ + "type":"string" + }, + "country":{ + "type":"string" + }, + "country_name":{ + "type":"string" + }, + "country_code_prefix":{ + "type":"string" + }, + "area_code":{ + "type":"string" + }, + "valid_countries":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "invalid":{ + "type":"boolean" + }, + "impossible":{ + "type":"boolean" + }, + "type":{ + "type":"string" + }, + "possible_types":{ + "type":"array", + "items":{ + "type":"string" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/scout/api.py b/toolbench/toolenv/tools/Communication/scout/api.py new file mode 100644 index 0000000000000000000000000000000000000000..637b70787349132a15ddc378bf75d8970cb92964 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/scout/api.py @@ -0,0 +1,82 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def advanced_phone_number_lookup(dialcode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**Advanced Phone Number Information** + + *retrieves valuable technical data about a phone number* + + - validity + + - approximate location + + - timezone + + - carrier + + - line type + + - ported status + + - carrier + + - robocall/spam score + + - much more" + + """ + url = f"https://scout.p.rapidapi.com/v1/numbers/search" + querystring = {'dialcode': dialcode, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "scout.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def basic_phone_number_validation(dialcode: str, country_code: str='US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**Basic Phone Number Validation** + + - determine if a phone number is in a valid format + + - determine if a phone number is impossible for a particular region + + - properly format the number for various scenarios like international or local dialing + + - attempts to determine line type + + - determines country and country code" + + """ + url = f"https://scout.p.rapidapi.com/v1/numbers/verify" + querystring = {'dialcode': dialcode, } + if country_code: + querystring['country_code'] = country_code + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "scout.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/screenshotapi_net.json b/toolbench/toolenv/tools/Communication/screenshotapi_net.json new file mode 100644 index 0000000000000000000000000000000000000000..3862b343b7c60202ed289fb6d9ef24cc4c3f4371 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/screenshotapi_net.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_242dfccf-dfc8-48c9-a2f7-19b6819fa13a", + "tool_description": "Generate beautiful screenshots with our website screenshot API", + "home_url": "https://rapidapi.com/dirk94/api/screenshotapi-net/", + "name": "ScreenshotAPI.net", + "title": "ScreenshotAPI.net", + "pricing": "FREE", + "tool_name": "ScreenshotAPI.net", + "score": { + "avgServiceLevel": 100, + "avgLatency": 207, + "avgSuccessRate": 100, + "popularityScore": 8.9, + "__typename": "Score" + }, + "host": "screenshotapi-net.p.rapidapi.com", + "api_list": [ + { + "name": "Screenshot", + "url": "https://screenshotapi-net.p.rapidapi.com/screenshot", + "description": "Take a screenshot of a website.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://screenshotapi-net.p.rapidapi.com/screenshot\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"screenshotapi-net.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://screenshotapi-net.p.rapidapi.com/screenshot\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"screenshotapi-net.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sdl_language_cloud.json b/toolbench/toolenv/tools/Communication/sdl_language_cloud.json new file mode 100644 index 0000000000000000000000000000000000000000..eb2783d66dcc08af7abc26d00e64cee50de2ad27 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sdl_language_cloud.json @@ -0,0 +1,54 @@ +{ + "product_id": "54a2b9dee4b0ab6dd8f92126", + "tool_description": "The API enables developers to submit content for translation via the SDL Language Cloud translation platform. The API allows developers to offer translation as a service within their own applications by accessing proprietary SDL Machine Translation technology.", + "home_url": "https://rapidapi.com/SDL/api/sdl-language-cloud/", + "name": "SDL Language Cloud", + "title": "SDL Language Cloud", + "pricing": "PAID", + "tool_name": "SDL Language Cloud", + "score": null, + "host": "sdl-sdl-language-cloud-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Translate text", + "url": "https://sdl-sdl-language-cloud-v1.p.rapidapi.com/translate", + "description": "Translate a text", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Text for translation", + "default": "Hello World" + }, + { + "name": "from", + "type": "STRING", + "description": "Source language ID", + "default": "eng" + }, + { + "name": "to", + "type": "STRING", + "description": "Target language ID", + "default": "fra" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sdl-sdl-language-cloud-v1.p.rapidapi.com/translate\"\nquerystring = {\"text\": \"Hello World\", \"from\": \"eng\", \"to\": \"fra\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sdl-sdl-language-cloud-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sdl-sdl-language-cloud-v1.p.rapidapi.com/translate\"\nquerystring = {\"text\": \"Hello World\", \"from\": \"eng\", \"to\": \"fra\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sdl-sdl-language-cloud-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Array Text Translation", + "url": "https://sdl-sdl-language-cloud-v1.p.rapidapi.com/translations", + "description": "Array of text translation call between two languages defined using ISO 639(3 char code) or language id Note: The size limit for each text is 4500 bytes.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sdl-sdl-language-cloud-v1.p.rapidapi.com/translations\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sdl-sdl-language-cloud-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sdl-sdl-language-cloud-v1.p.rapidapi.com/translations\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sdl-sdl-language-cloud-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sdl_language_cloud/api.py b/toolbench/toolenv/tools/Communication/sdl_language_cloud/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5355fdbe10fea53ffef5d025ddc1bcc226a59da6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sdl_language_cloud/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve available language pairings" + + """ + url = f"https://sdl-sdl-language-cloud-v1.p.rapidapi.com/languages" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sdl-sdl-language-cloud-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/send_sms.json b/toolbench/toolenv/tools/Communication/send_sms.json new file mode 100644 index 0000000000000000000000000000000000000000..0fd8e0cccf409e9472d43ba339c0284de80bc1bf --- /dev/null +++ b/toolbench/toolenv/tools/Communication/send_sms.json @@ -0,0 +1,61 @@ +{ + "product_id": "api_c2439e2b-6966-47be-a771-59ad64f2864b", + "tool_description": "The API enables to send SMS using MSG91 services", + "home_url": "https://rapidapi.com/hrhimanshu639/api/send-sms6/", + "name": "Send SMS", + "title": "Send SMS", + "pricing": "FREE", + "tool_name": "Send SMS", + "score": { + "avgServiceLevel": 100, + "avgLatency": 59, + "avgSuccessRate": 100, + "popularityScore": 8.2, + "__typename": "Score" + }, + "host": "send-sms6.p.rapidapi.com", + "api_list": [ + { + "name": "Parameters required for sending message", + "url": "https://send-sms6.p.rapidapi.com/sendhttp.php", + "description": "Take data and use it", + "method": "POST", + "required_parameters": [ + { + "name": "mobiles", + "type": "STRING", + "description": "Mobile number", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "Country code", + "default": "" + }, + { + "name": "sender", + "type": "STRING", + "description": "Sender ID", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Your message", + "default": "" + }, + { + "name": "route", + "type": "NUMBER", + "description": "Route value(For transactional=4, for promotional=1)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://send-sms6.p.rapidapi.com/sendhttp.php\"\nquerystring = {\"mobiles\": \"\", \"country\": \"\", \"sender\": \"\", \"message\": \"\", \"route\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"send-sms6.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://send-sms6.p.rapidapi.com/sendhttp.php\"\nquerystring = {\"mobiles\": \"\", \"country\": \"\", \"sender\": \"\", \"message\": \"\", \"route\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"send-sms6.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/send_sms_through_msg91.json b/toolbench/toolenv/tools/Communication/send_sms_through_msg91.json new file mode 100644 index 0000000000000000000000000000000000000000..cb2d3e5ec4a225fec63bebfce54a2e90ddc9709a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/send_sms_through_msg91.json @@ -0,0 +1,92 @@ +{ + "product_id": "api_9a753de4-38d2-4209-aa9d-660a4793c98a", + "tool_description": "This command can be used to send text messages to either individual numbers or entire contact groups.", + "home_url": "https://rapidapi.com/akeshMSG91/api/send-sms-through-msg91/", + "name": "Send SMS through MSG91", + "title": "Send SMS through MSG91", + "pricing": "PAID", + "tool_name": "Send SMS through MSG91", + "score": null, + "host": "send-sms-through-msg91.p.rapidapi.com", + "api_list": [ + { + "name": "Query parameters", + "url": "https://send-sms-through-msg91.p.rapidapi.com/sendhttp.php", + "description": "Required to fill these endpoints in order to send SMS", + "method": "POST", + "required_parameters": [ + { + "name": "mobiles", + "type": "STRING", + "description": "Enter mobile number with country code, Don't include '+'", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "0 for international,1 for USA, 91 for India.", + "default": "" + }, + { + "name": "route", + "type": "NUMBER", + "description": "\tIf your operator supports multiple routes then give one route name. Eg: route=1 for promotional, route=4 for transactional SMS.", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Message content to send", + "default": "" + }, + { + "name": "sender", + "type": "STRING", + "description": "Receiver will see this as sender's ID.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "afterminutes", + "type": "STRING", + "description": "Time in minutes after which you want to send sms.", + "default": "" + }, + { + "name": "flash", + "type": "BOOLEAN", + "description": "For sending flash message pass 1 else 0", + "default": "" + }, + { + "name": "unicode", + "type": "BOOLEAN", + "description": "For message other than english pass 1", + "default": "" + }, + { + "name": "schtime", + "type": "STRING", + "description": "When you want to schedule the SMS to be sent. Time format could be of your choice you can use Y-m-d h:i:s (2020-01-01 10:10:00) Or Y/m/d h:i:s (2020/01/01 10:10:00) Or you can send unix timestamp (1577873400)", + "default": "" + }, + { + "name": "campaign", + "type": "STRING", + "description": "Campaign name you wish to create.", + "default": "" + }, + { + "name": "response", + "type": "STRING", + "description": "\tBy default you will get response in string format but you want to receive in other format (json,xml) then set this parameter. for example: &response=json or &response=xml", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://send-sms-through-msg91.p.rapidapi.com/sendhttp.php\"\nquerystring = {\"mobiles\": \"\", \"country\": \"\", \"route\": \"\", \"afterminutes\": \"\", \"message\": \"\", \"sender\": \"\", \"flash\": \"\", \"unicode\": \"\", \"schtime\": \"\", \"campaign\": \"\", \"response\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"send-sms-through-msg91.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://send-sms-through-msg91.p.rapidapi.com/sendhttp.php\"\nquerystring = {\"mobiles\": \"\", \"country\": \"\", \"route\": \"\", \"afterminutes\": \"\", \"message\": \"\", \"sender\": \"\", \"flash\": \"\", \"unicode\": \"\", \"schtime\": \"\", \"campaign\": \"\", \"response\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"send-sms-through-msg91.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sendhub.json b/toolbench/toolenv/tools/Communication/sendhub.json new file mode 100644 index 0000000000000000000000000000000000000000..e4a027b6660df6f6bd68ce7b59e6015cbb80c069 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sendhub.json @@ -0,0 +1,72 @@ +{ + "product_id": "53aa348be4b0a798dbd18fbc", + "tool_description": "SendHub is the easy way to send one text message to everyone. With the SendHub API you can make it easy for your app, and your users to do the same.", + "home_url": "https://rapidapi.com/sendhub/api/sendhub/", + "name": "SendHub", + "title": "SendHub", + "pricing": "FREE", + "tool_name": "SendHub", + "score": null, + "host": "sendhub.p.rapidapi.com", + "api_list": [ + { + "name": "Add Contact", + "url": "https://sendhub.p.rapidapi.com/contacts/", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/contacts/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/contacts/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Adding and Removing Contacts", + "url": "https://sendhub.p.rapidapi.com/groups/{id}/contacts/", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/groups/{id}/contacts/\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/groups/{id}/contacts/\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Send Messages", + "url": "https://sendhub.p.rapidapi.com/messages/", + "description": "Send message (text) to contact id", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/messages/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/messages/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add Group", + "url": "https://sendhub.p.rapidapi.com/groups/", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/groups/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sendhub.p.rapidapi.com/groups/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendhub.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sendhub/api.py b/toolbench/toolenv/tools/Communication/sendhub/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3495e989c7ed3ff3da33550e76b08fe95577ab90 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sendhub/api.py @@ -0,0 +1,179 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def collect_a_group_s_contacts(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + id: ID - is the group’s id. This can be obtained from the id or resource_uri field. + + """ + url = f"https://sendhub.p.rapidapi.com/groups/{is_id}/contacts/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_message(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://sendhub.p.rapidapi.com/messages/{is_id}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def view_threads(threadid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + threadid: Where THREADID (and the full path) is obtained from the ‘resource_uri’ value in the Inbox response. + + """ + url = f"https://sendhub.p.rapidapi.com/threads/{threadid}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def collect_a_single_group_s_data(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + id: ID - is the group’s id. This can be obtained from the id or resource_uri field. + + """ + url = f"https://sendhub.p.rapidapi.com/groups/{is_id}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def collecting_the_profile(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://sendhub.p.rapidapi.com/profile/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def collect_inbox(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://sendhub.p.rapidapi.com/inbox/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def collect_contacts_data(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://sendhub.p.rapidapi.com/contacts/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def collect_groups_list(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://sendhub.p.rapidapi.com/groups/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendhub.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sendingemail.json b/toolbench/toolenv/tools/Communication/sendingemail.json new file mode 100644 index 0000000000000000000000000000000000000000..b6cc418686fc4b18bfc1169dc459209f24b3e7be --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sendingemail.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_77f0f27d-6a46-4a87-b197-dee22aa2a153", + "tool_description": "send emails", + "home_url": "https://rapidapi.com/prakashaditya13011999/api/sendingemail1/", + "name": "SendingEmail", + "title": "SendingEmail", + "pricing": "PAID", + "tool_name": "SendingEmail", + "score": null, + "host": "sendingemail1.p.rapidapi.com", + "api_list": [ + { + "name": "localhost:5000/v1/controller/SendingEmail.php", + "url": "https://sendingemail1.p.rapidapi.com/v1/controller/SendingEmail.php", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sendingemail1.p.rapidapi.com/v1/controller/SendingEmail.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendingemail1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sendingemail1.p.rapidapi.com/v1/controller/SendingEmail.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendingemail1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sendsms.json b/toolbench/toolenv/tools/Communication/sendsms.json new file mode 100644 index 0000000000000000000000000000000000000000..8cfb948c4868a2b22d3d19e15ecc3911e2b839a3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sendsms.json @@ -0,0 +1,80 @@ +{ + "tool_name":"SendSMS", + "tool_description":"SMS Service Provider", + "title":"SendSMS", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":803, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/sendsms.ro/api/sendsms/", + "host":"sendsms.p.rapidapi.com", + "api_list":[ + { + "name":"message_send", + "url":"https://sendsms.p.rapidapi.com/json", + "description":"", + "method":"GET", + "required_parameters":[ + { + "name":"password", + "type":"STRING", + "description":"Your SensSMS Api Key", + "default":"" + }, + { + "name":"to", + "type":"NUMBER", + "description":"Destination Phone Number", + "default":"" + }, + { + "name":"text", + "type":"STRING", + "description":"SMS Content", + "default":"" + }, + { + "name":"action", + "type":"STRING", + "description":"", + "default":"message_send" + }, + { + "name":"username", + "type":"STRING", + "description":"Your SensSMS User Name", + "default":"" + } + ], + "optional_parameters":[ + { + "name":"from", + "type":"STRING", + "description":"Message Sender", + "default":"" + }, + { + "name":"report_mask", + "type":"NUMBER", + "description":"Report Mask", + "default":"19" + }, + { + "name":"report_url", + "type":"STRING", + "description":"http://sendsms.ro/r_r.php?mySmsId=9876&status=%d", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://sendsms.p.rapidapi.com/json\"\nquerystring = {\"password\": password, \"to\": to, \"text\": text, \"report_mask\": report_mask, \"action\": action, \"username\": username}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sendsms.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sendsms/api.py b/toolbench/toolenv/tools/Communication/sendsms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..add8d06add418b8e7e341c34585a82101dbb44e2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sendsms/api.py @@ -0,0 +1,42 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def message_send(password: str, to: int, text: str, action: str, username: str, is_from: str=None, report_mask: int=19, report_url: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + password: Your SensSMS Api Key + to: Destination Phone Number + text: SMS Content + username: Your SensSMS User Name + is_from: Message Sender + report_mask: Report Mask + report_url: http://sendsms.ro/r_r.php?mySmsId=9876&status=%d + + """ + url = f"https://sendsms.p.rapidapi.com/json" + querystring = {'password': password, 'to': to, 'text': text, 'action': action, 'username': username, } + if is_from: + querystring['from'] = is_from + if report_mask: + querystring['report_mask'] = report_mask + if report_url: + querystring['report_url'] = report_url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sendsms.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sent_ly.json b/toolbench/toolenv/tools/Communication/sent_ly.json new file mode 100644 index 0000000000000000000000000000000000000000..28ad6a8dbc01c59cece00be3748777f0d7eaea63 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sent_ly.json @@ -0,0 +1,64 @@ +{ + "product_id": "53aa356ee4b0a798dbd1923f", + "tool_description": "Sent.ly is a service that allows you to add SMS send & receive capability to your apps. Sent.ly uses an easy HTTP API in the cloud with an app on your Android phones. \r\n\r\nWith your dedicated phones and your own GSM connections, you can set up your own unique identity for marketing / notification purposes in multiple countries. Because the Sent.ly phone is always in the target GSM network already, SMS send/receive reliability is unmatched. \r\n\r\nSent.ly works on a pay-per-use model, freeing you from minimum use quotas or monthly subscription fees! Get started with Sent.ly in under 5 minutes!", + "home_url": "https://rapidapi.com/vijaythampy/api/sent-ly/", + "name": "Sent.ly", + "title": "Sent.ly", + "pricing": "FREE", + "tool_name": "Sent.ly", + "score": null, + "host": "sently.p.rapidapi.com", + "api_list": [ + { + "name": "HTTPS", + "url": "https://sently.p.rapidapi.com/command/sendsms", + "description": "HTTPS web call to access Sent.ly", + "method": "POST", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "Recipient's mobile number in E.164 international format", + "default": "+6598765432" + }, + { + "name": "text", + "type": "STRING", + "description": "Message to recipient", + "default": "Have you tried Sent.ly out yet?" + } + ], + "optional_parameters": [ + { + "name": "ttl", + "type": "NUMBER", + "description": "Time-To-Live for message in minutes. If the message has not been sent within this time-window, it's set as expired on the server. Credit(s) will be refunded.", + "default": "30" + }, + { + "name": "tts", + "type": "NUMBER", + "description": "Time-Till-Send in minutes. The server delays the message by the TTS time before sending it out.", + "default": "30" + }, + { + "name": "hid", + "type": "NUMBER", + "description": "The hardware ID (listed under Devices tab) of the preferred Sent.ly phone. If not specified, Sent.ly will pick the best phone from the pool of phones available.", + "default": "123456786543210" + }, + { + "name": "fp", + "type": "NUMBER", + "description": "Force Sent.ly to use the phone with the HID specified. This parameter is valid only if the HID is specified. If FP is not specified, then Sent.ly will try to use the specified phone as far as possible, but if this fails, Sent.ly will fall back to another phone. The valid inputs are 0 & 1.", + "default": "1" + } + ], + "code": "import requests\n\nurl = \"https://sently.p.rapidapi.com/command/sendsms\"\nquerystring = {\"to\": \"+6598765432\", \"text\": \"Have you tried Sent.ly out yet?\", \"ttl\": \"30\", \"tts\": \"30\", \"hid\": \"123456786543210\", \"fp\": \"1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sently.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sently.p.rapidapi.com/command/sendsms\"\nquerystring = {\"to\": \"+6598765432\", \"text\": \"Have you tried Sent.ly out yet?\", \"ttl\": \"30\", \"tts\": \"30\", \"hid\": \"123456786543210\", \"fp\": \"1\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sently.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/serverless_blogging.json b/toolbench/toolenv/tools/Communication/serverless_blogging.json new file mode 100644 index 0000000000000000000000000000000000000000..1e2920a157c7f5887036d3aa8db6d75dc688f148 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/serverless_blogging.json @@ -0,0 +1,86 @@ +{ + "product_id": "5873c880e4b02bfeb9daf316", + "tool_description": "Serverless blogging enables you to integrate a blogging system within seconds, whilst giving clients a full WYISWYG interface to create and sort content as they please.", + "home_url": "https://rapidapi.com/cheikhshift/api/serverless-blogging/", + "name": "Serverless blogging", + "title": "Serverless blogging", + "pricing": "FREE", + "tool_name": "Serverless blogging", + "score": { + "avgServiceLevel": 100, + "avgLatency": 74, + "avgSuccessRate": 0, + "popularityScore": 0.1, + "__typename": "Score" + }, + "host": "cheikhshift-serverless-blogging-v1.p.rapidapi.com", + "api_list": [ + { + "name": "MEDIA", + "url": "https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/media/{id}", + "description": "Get image from your sapphire account", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/media/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/media/{id}\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "BLOG", + "url": "https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blog/{id}/", + "description": "Open Individual blog", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blog/{id}/\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blog/{id}/\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "GROUPS", + "url": "https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/groups/", + "description": "Get different blog groups of your account.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/groups/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/groups/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "BLOGS", + "url": "https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blogs/", + "description": "Query blogs from your account", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blogs/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blogs/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cheikhshift-serverless-blogging-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "serverless_blogging" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/serverless_blogging/api.py b/toolbench/toolenv/tools/Communication/serverless_blogging/api.py new file mode 100644 index 0000000000000000000000000000000000000000..31b7c372aabf38dcf646b25cf95d81dfe203d629 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/serverless_blogging/api.py @@ -0,0 +1,92 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def media(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get image from your sapphire account" + + """ + url = f"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/media/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cheikhshift-serverless-blogging-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def blog(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Open Individual blog" + + """ + url = f"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blog/{is_id}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cheikhshift-serverless-blogging-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def groups(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get different blog groups of your account." + + """ + url = f"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/groups/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cheikhshift-serverless-blogging-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def blogs(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Query blogs from your account" + + """ + url = f"https://cheikhshift-serverless-blogging-v1.p.rapidapi.com/blogs/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cheikhshift-serverless-blogging-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sholltna_android.json b/toolbench/toolenv/tools/Communication/sholltna_android.json new file mode 100644 index 0000000000000000000000000000000000000000..d75a1c830078eaa1ccb6174aee04cef74696b1ef --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sholltna_android.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Sholltna Android", + "tool_description":"API For Sholltna Social", + "title":"Sholltna Android", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/sholltna-android-sholltna-android-default/api/sholltna-android/", + "host":"sholltna-android.p.rapidapi.com", + "api_list":[ + { + "name":"Sholltna", + "url":"https://sholltna-android.p.rapidapi.com/", + "description":"Test", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://sholltna-android.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sholltna-android.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sholltna_android/api.py b/toolbench/toolenv/tools/Communication/sholltna_android/api.py new file mode 100644 index 0000000000000000000000000000000000000000..693a9c4df74fbb317d8f603cb301f7308a74e38f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sholltna_android/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sholltna(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Test" + + """ + url = f"https://sholltna-android.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sholltna-android.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/shout_link_url_shortener/api.py b/toolbench/toolenv/tools/Communication/shout_link_url_shortener/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ea38f80f91cd9c0ba633717708e5d44c8668353b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/shout_link_url_shortener/api.py @@ -0,0 +1,58 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_a_url(is_id: str, password: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the original URL that was shortened" + id: The ID that you want to retrieve + password: The password used while shortening the URL + + """ + url = f"https://shoutlink.p.rapidapi.com/view/{is_id}" + querystring = {} + if password: + querystring['password'] = password + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "shoutlink.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def shorten_a_url(url: str, password: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a short memorable id (to be used while retrieving)" + url: The original URL to be shortened + password: If entered, the same password would be required while retrieving the URL + + """ + url = f"https://shoutlink.p.rapidapi.com/create" + querystring = {'url': url, } + if password: + querystring['password'] = password + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "shoutlink.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/signl4_critical_mobile_alerting.json b/toolbench/toolenv/tools/Communication/signl4_critical_mobile_alerting.json new file mode 100644 index 0000000000000000000000000000000000000000..a13d2e97902632c2efaf7024be6f29009c9e7f87 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/signl4_critical_mobile_alerting.json @@ -0,0 +1,4413 @@ +{ + "product_id": "api_2068c4bb-282a-4f53-ae8e-cf3af00dfb44", + "tool_description": "When critical systems fail or major incidents happen, SIGNL4 is the fastest way to alert your staff, engineers, IT admins and workers \u2018in the field\u2019. SIGNL4 helps to keep your mission-critical infrastructure and services running \u2013 from anywhere and anytime. Integrates with 100+ IT, business and IoT tools.", + "home_url": "https://rapidapi.com/rons4/api/signl4-critical-mobile-alerting/", + "name": "SIGNL4 \u2013 Critical Mobile Alerting", + "title": "SIGNL4 \u2013 Critical Mobile Alerting", + "pricing": "FREE", + "tool_name": "SIGNL4 \u2013 Critical Mobile Alerting", + "score": { + "avgServiceLevel": 100, + "avgLatency": 964, + "avgSuccessRate": 0, + "popularityScore": 0.2, + "__typename": "Score" + }, + "host": "signl4-critical-mobile-alerting.p.rapidapi.com", + "api_list": [ + { + "name": "/alerts/{alertId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}", + "description": "Gets an alert by id.", + "method": "GET", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id of the requested Alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "eventId": { + "type": [ + "string", + "null" + ] + }, + "flags": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "status": { + "enum": [ + 0, + 1, + 2, + 4, + 8, + 16, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "annotations": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "annotationType": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "userId": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "attachments": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "contentType": { + "type": [ + "string", + "null" + ] + }, + "encoding": { + "enum": [ + 0, + 1 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "content": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "category": { + "type": [ + "string", + "null" + ] + }, + "eventSourceId": { + "type": [ + "string", + "null" + ] + }, + "eventSourceType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "history": { + "type": "object", + "properties": { + "acknowledged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "acknowledgedgements": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "closed": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "closedBy": { + "type": [ + "string", + "null" + ] + }, + "historyEntries": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "parameters": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "order": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 100 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "severity": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + } + }, + { + "name": "/users/{userId}/image", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/image", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "width", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "height", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/image\"\nquerystring = {\"width\": \"\", \"userId\": \"\", \"height\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/image\"\nquerystring = {\"width\": \"\", \"userId\": \"\", \"height\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/memberships", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Team ID of team you want to request.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}", + "description": "Returns a user object with details such as his email address and duty information.", + "method": "GET", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "Identifier of the user to get. Use 'Me' to get information about the currently logged in user. This is not possible with an api key.\r\nCan also be an email address of a user in the team or the unique id of an according user object.\u201d", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/dutysummary", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutysummary", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the duty belongs to.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "lastTwoDuties", + "type": "BOOLEAN", + "description": "", + "default": true + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutysummary\"\nquerystring = {\"teamId\": \"\", \"lastTwoDuties\": true}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutysummary\"\nquerystring = {\"teamId\": \"\", \"lastTwoDuties\": true}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/scripts/inventory", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory", + "description": "Returns all available inventory scripts which can be added to a SIGNL4 subscription.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "config": {}, + "eventPattern": {}, + "data": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "shortDescription": { + "type": [ + "string", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "scriptType": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, + "scriptLocalizationDetails": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "language": { + "type": [ + "string", + "null" + ] + }, + "data": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "shortDescription": { + "type": [ + "string", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "scriptType": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, + "configMetadata": {} + }, + "additionalProperties": false + } + }, + "scriptId": { + "type": [ + "string", + "null" + ] + }, + "scriptName": { + "type": [ + "string", + "null" + ] + }, + "visibility": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + { + "name": "/categories/{teamId}/metrics", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/metrics", + "description": "Sample Request:\r\n \r\n GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/metrics", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the categories belongs to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/metrics\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/metrics\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/prepaid/balance", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/balance", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/balance\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/balance\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "balance": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "latestTopUp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "pendingTransaction": { + "type": "boolean" + } + }, + "additionalProperties": false + } + }, + { + "name": "/teams/{teamId}/setupProgress", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/setupProgress", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the progress should be retrieved for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/setupProgress\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/setupProgress\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/dutyReports/{fileName}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutyReports/{fileName}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "fileName", + "type": "STRING", + "description": "Filename of the csv to download.", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "ID of team you want to download the duty report for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutyReports/{fileName}\"\nquerystring = {\"fileName\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutyReports/{fileName}\"\nquerystring = {\"fileName\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/{alertId}/attachments/{attachmentId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/attachments/{attachmentId}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "attachmentId", + "type": "STRING", + "description": "Id of the attachment, that you want to retrieve.", + "default": "" + }, + { + "name": "alertId", + "type": "STRING", + "description": "Id of the alert that contains the wanted attachment.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "height", + "type": "NUMBER", + "description": "Optional parameter defining the wanted height of the picture that is retrieved.", + "default": "" + }, + { + "name": "scale", + "type": "BOOLEAN", + "description": "Optional parameter defining whether it's wanted to scale the retrieved image. Default is set to\r\ntrue.", + "default": true + }, + { + "name": "width", + "type": "NUMBER", + "description": "Optional parameter defining the wanted width of the picture that is retrieved.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/attachments/{attachmentId}\"\nquerystring = {\"height\": \"\", \"attachmentId\": \"\", \"scale\": true, \"width\": \"\", \"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/attachments/{attachmentId}\"\nquerystring = {\"height\": \"\", \"attachmentId\": \"\", \"scale\": true, \"width\": \"\", \"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/channelPrices", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/channelPrices", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "Id of the subscription that needs to be retrieved.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/channelPrices\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/channelPrices\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/{alertId}/annotations", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/annotations", + "description": "Get annotations of an alert by id.", + "method": "GET", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id of the requested Alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/annotations\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/annotations\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/schedules/{scheduleId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/{scheduleId}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Id of the team the duty belongs to", + "default": "" + }, + { + "name": "scheduleId", + "type": "STRING", + "description": "Id of the requested duty schedule.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/{scheduleId}\"\nquerystring = {\"teamId\": \"\", \"scheduleId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/{scheduleId}\"\nquerystring = {\"teamId\": \"\", \"scheduleId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "options": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "start": { + "type": "string", + "format": "date-time" + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + { + "name": "/prepaid/settings", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/settings", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/settings\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/settings\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}/setupProgress", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/setupProgress", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "ID of the user the progress should be retrieved for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/setupProgress\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/setupProgress\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/events/{eventId}/parameters", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventId}/parameters", + "description": "Get parameters of an event by id.", + "method": "GET", + "required_parameters": [ + { + "name": "eventId", + "type": "STRING", + "description": "Event Id of the requested Alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventId}/parameters\"\nquerystring = {\"eventId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventId}/parameters\"\nquerystring = {\"eventId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users", + "description": "Returns a list of user objects with details such as their email address and duty information. Only users who\r\nare part of your team will be returned.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "isInvite": { + "type": "boolean" + }, + "mail": { + "type": [ + "string", + "null" + ] + }, + "roleId": { + "type": [ + "string", + "null" + ] + }, + "colorIndex": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "contactAddresses": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "address": { + "type": [ + "string", + "null" + ] + }, + "channel": { + "enum": [ + 0, + 1, + 2, + 4, + 8, + 16 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "created": { + "type": "string", + "format": "date-time" + }, + "device": { + "type": "object", + "properties": { + "appVersion": { + "type": [ + "string", + "null" + ] + }, + "deviceId": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "osVersion": { + "type": [ + "string", + "null" + ] + }, + "ringtone": { + "type": [ + "string", + "null" + ] + }, + "ringtoneDisabled": { + "type": "boolean" + }, + "type": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastUpdated": { + "type": "string", + "format": "date-time" + }, + "options": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "dutyInfo": { + "type": "object", + "properties": { + "lastStatusChange": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "onDuty": { + "type": "boolean" + }, + "onManagerDuty": { + "type": "boolean" + }, + "overdue": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "isDeactivated": { + "type": "boolean" + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "userImageLastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "timeZone": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + { + "name": "/events/{eventId}/overview", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventId}/overview", + "description": "Get overview event by id.", + "method": "GET", + "required_parameters": [ + { + "name": "eventId", + "type": "STRING", + "description": "Id of event to get.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventId}/overview\"\nquerystring = {\"eventId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventId}/overview\"\nquerystring = {\"eventId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "teamId": { + "type": [ + "string", + "null" + ] + }, + "alertId": { + "type": [ + "string", + "null" + ] + }, + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "closedAlerts": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "creationTime": { + "type": "string", + "format": "date-time" + }, + "eventSourceType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "eventStatus": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 1000 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "severity": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + { + "name": "/webhooks", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks", + "description": "Returns a collection of defined outbound webhooks in the system.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/schedules", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Id of the team the schedules user belongs to", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "UserId", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "Limit", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "MinDate", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules\"\nquerystring = {\"UserId\": \"\", \"Limit\": \"\", \"teamId\": \"\", \"MinDate\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules\"\nquerystring = {\"UserId\": \"\", \"Limit\": \"\", \"teamId\": \"\", \"MinDate\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/alertReports/{fileName}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertReports/{fileName}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of team you want to get the duty report file infos for.", + "default": "" + }, + { + "name": "fileName", + "type": "STRING", + "description": "File name of file you want to download.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertReports/{fileName}\"\nquerystring = {\"teamId\": \"\", \"fileName\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertReports/{fileName}\"\nquerystring = {\"teamId\": \"\", \"fileName\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string", + "format": "binary" + } + }, + { + "name": "/categories/{teamId}/{categoryId}/subscriptions", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/subscriptions", + "description": "Sample Request:\r\n \r\n GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e/subscriptions\r\n {\r\n }", + "method": "GET", + "required_parameters": [ + { + "name": "categoryId", + "type": "STRING", + "description": "Category to get subscriptions for", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the category belongs to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/subscriptions\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/subscriptions\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "status": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + { + "name": "/teams/{teamId}/alertSettings", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertSettings", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the settings should be retrieved for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertSettings\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertSettings\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/categories/images", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/images", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/images\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/images\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/scripts/instances/{instanceId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}", + "description": "Gets the script instance specified by the passed instance id.", + "method": "GET", + "required_parameters": [ + { + "name": "instanceId", + "type": "STRING", + "description": "Instance Id of script instance to be returned.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}\"\nquerystring = {\"instanceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}\"\nquerystring = {\"instanceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team that should be retrieved.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "memberIds": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "timezone": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + { + "name": "/scripts/inventory/parsed", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "language", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed\"\nquerystring = {\"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed\"\nquerystring = {\"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/categories/{teamId}/{categoryId}/metrics", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/metrics", + "description": "Sample Request:\r\n \r\n GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e/metrics", + "method": "GET", + "required_parameters": [ + { + "name": "categoryId", + "type": "STRING", + "description": "ID of the category to get", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the category belongs to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/metrics\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/metrics\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/userLicenses", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/userLicenses", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "ID of the subscription", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/userLicenses\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/userLicenses\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/categories/{teamId}/{categoryId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}", + "description": "Sample Request:\r\n \r\n GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e", + "method": "GET", + "required_parameters": [ + { + "name": "categoryId", + "type": "STRING", + "description": "ID of the category to get", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the category belongs to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/prepaidSettings", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidSettings", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidSettings\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidSettings\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/prepaidBalance", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidBalance", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidBalance\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidBalance\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "balance": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "latestTopUp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "pendingTransaction": { + "type": "boolean" + } + }, + "additionalProperties": false + } + }, + { + "name": "/alerts/{alertId}/overview", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/overview", + "description": "Get overview alert by id.", + "method": "GET", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id of the requested Alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/overview\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/overview\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/scripts/instances", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances", + "description": "Returns all script instances in the subscription.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "instanceId": { + "type": [ + "string", + "null" + ] + }, + "scriptId": { + "type": [ + "string", + "null" + ] + }, + "scriptName": { + "type": [ + "string", + "null" + ] + }, + "customScriptName": { + "type": [ + "string", + "null" + ] + }, + "customScriptDescription": { + "type": [ + "string", + "null" + ] + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "eventPattern": {}, + "lastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "enabled": { + "type": "boolean" + }, + "runtimeInformation": { + "type": "object", + "properties": { + "status": { + "enum": [ + 0, + 1, + 2, + 3, + -1 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "statusMessage": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, + "config": {} + }, + "additionalProperties": false + } + } + }, + { + "name": "/subscriptions", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/categories/{teamId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}", + "description": "Sample Request:\r\n \r\n GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the categories belong to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/scripts/inventory/parsed/{scriptId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed/{scriptId}", + "description": "Gets the script specified by the passed script id.", + "method": "GET", + "required_parameters": [ + { + "name": "scriptId", + "type": "STRING", + "description": "The Id of the script to be returned.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "language", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed/{scriptId}\"\nquerystring = {\"scriptId\": \"\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed/{scriptId}\"\nquerystring = {\"scriptId\": \"\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/prepaidTransactions", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidTransactions", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "ID of the subscription to get transactions for", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidTransactions\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/prepaidTransactions\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/prepaid/transactions", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/transactions", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/transactions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/transactions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/alertReports", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertReports", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of team you want to download reports from.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertReports\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertReports\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "Id of the subscription that's to be retrieved.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "branchId": { + "type": [ + "string", + "null" + ] + }, + "country": { + "type": [ + "string", + "null" + ] + }, + "currency": { + "type": [ + "string", + "null" + ] + }, + "externalAccountId": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "nextBilling": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "ownerId": { + "type": [ + "string", + "null" + ] + }, + "planCode": { + "type": [ + "string", + "null" + ] + }, + "planState": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "referralEnabled": { + "type": "boolean" + }, + "status": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + } + }, + { + "name": "/teams/{teamId}/eventSources", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/eventSources", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the sources should be retrieved for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/eventSources\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/eventSources\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/features", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/features", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "Id of the subscription from which the features need to be retrieved.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/features\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/features\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/{alertId}/attachments", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/attachments", + "description": "Get attachments of an alert by id.", + "method": "GET", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id of the requested Alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/attachments\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/attachments\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/subscriptions/{subscriptionId}/teams", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/teams", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "subscriptionId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/teams\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionId}/teams\"\nquerystring = {\"subscriptionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/report", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/report", + "description": "Returns information about the occurred alert volume in different time periods as well as information about the\r\nresponse behaviour (amount of confirmed and unhandled alerts) of your team members.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "User ID of the user for whom you want a report.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/report\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/report\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "last24Hours": { + "type": "object", + "properties": { + "acked": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "end": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "lastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "start": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "unhandled": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "closed": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + } + }, + "additionalProperties": false + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamCurrentDuty": { + "type": "object", + "properties": { + "acked": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "end": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "lastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "start": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "unhandled": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "closed": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + } + }, + "additionalProperties": false + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "teamLastDuty": { + "type": "object", + "properties": { + "acked": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "end": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "lastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "start": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "unhandled": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "closed": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + } + }, + "additionalProperties": false + }, + "userId": { + "type": [ + "string", + "null" + ] + }, + "userLastDutyChange": { + "type": "object", + "properties": { + "acked": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "end": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "lastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "start": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "unhandled": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + }, + "closed": { + "type": "integer", + "format": "int64", + "minimum": -9223372036854776000, + "maximum": 9223372036854776000 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + }, + { + "name": "/users/{userId}/dutyStatus", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/dutyStatus", + "description": "Returns a object with duty information.", + "method": "GET", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "Identifier of the user to get. Use 'Me' to get information about the currently logged in user. This is not possible with an api key.\r\nCan also be an email address of a user in the team or the unique id of an according user object.\u201d", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/dutyStatus\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/dutyStatus\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "lastStatusChange": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "onDuty": { + "type": "boolean" + }, + "onManagerDuty": { + "type": "boolean" + }, + "overdue": { + "type": "boolean" + } + }, + "additionalProperties": false + } + }, + { + "name": "/alerts/{alertId}/notifications", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/notifications", + "description": "Get notifications of all users by alert id.", + "method": "GET", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id of the requested Alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/notifications\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/notifications\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/dutyReports", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutyReports", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of team you want to get the duty report file infos for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutyReports\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/dutyReports\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "GetWebhookById", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}", + "description": "Returns information of the webhook specified by the passed id.", + "method": "GET", + "required_parameters": [ + { + "name": "webhookId", + "type": "STRING", + "description": "Id of the outbound webhook to be retrieved.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}\"\nquerystring = {\"webhookId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}\"\nquerystring = {\"webhookId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "/events/paged", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/events/paged", + "description": "Get overview event paged. If there are more results, you also get a continuation token which you can add to the event filter.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "maxResults", + "type": "NUMBER", + "description": "Defines the limit of retrieved alert details per request. 1 to 100 are allowed per request.\r\n Number of alerts could be less if filtered but at least 1.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/paged\"\nquerystring = {\"maxResults\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/paged\"\nquerystring = {\"maxResults\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "continuationToken": { + "type": "object", + "properties": { + "nextPartitionKey": { + "type": [ + "string", + "null" + ] + }, + "nextRowKey": { + "type": [ + "string", + "null" + ] + }, + "nextTableName": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, + "hasMore": { + "type": "boolean" + }, + "results": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "teamId": { + "type": [ + "string", + "null" + ] + }, + "alertId": { + "type": [ + "string", + "null" + ] + }, + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "closedAlerts": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "creationTime": { + "type": "string", + "format": "date-time" + }, + "eventSourceType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "eventStatus": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 1000 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "severity": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + { + "name": "/teams/{teamId}/schedules", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Id of the team the duty is to be assigned to.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}/punchIn", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchIn", + "description": "The specified user will be punched in to duty.", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "Identifier of the user to punch in. Use 'Me' to get information about the currently logged in\r\nuser. This is not possible with an api key. Can also be an email address of a user in the team or the unique id of an according user object.\u201d", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchIn\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchIn\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/memberships", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Id of team the user should be invited to.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/schedules/multiple", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/multiple", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Team ID to set", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "overrideExisting", + "type": "BOOLEAN", + "description": "Override or cut existing schedules if set to true.", + "default": true + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/multiple\"\nquerystring = {\"overrideExisting\": true, \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/multiple\"\nquerystring = {\"overrideExisting\": true, \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}/punchInAsManager", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchInAsManager", + "description": "The specified user will be punched in to duty as a manager.", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "Identifier of the user to punch in. Use 'Me' to get information about the currently logged in\r\nuser. This is not possible with an api key. Can also be an email address of a user in the team or the unique id of an according user object.\u201d", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchInAsManager\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchInAsManager\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}/image", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/image", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "Id of the user.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/image\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/image\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/{alertId}/undoAcknowledge", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/undoAcknowledge", + "description": "This method tries to undo an alert acknowledgement.", + "method": "POST", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/undoAcknowledge\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/undoAcknowledge\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "eventId": { + "type": [ + "string", + "null" + ] + }, + "flags": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "status": { + "enum": [ + 0, + 1, + 2, + 4, + 8, + 16, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "annotations": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "annotationType": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "userId": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "alertDeliveryStatus": { + "type": "object", + "properties": { + "statusCode": { + "enum": [ + 0, + 1, + 2, + 4, + 6, + 8, + 22, + 24, + 26, + 30, + 31 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "users": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "statusCode": { + "enum": [ + 0, + 1, + 2, + 4, + 6, + 8, + 24, + 26, + 30, + 31, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "historyDetailed": { + "type": "object", + "properties": { + "acknowledged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "acknowledgedgements": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "closed": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "closedBy": { + "type": [ + "string", + "null" + ] + }, + "historyEntries": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "requiredAcknowledgements": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + } + }, + { + "name": "/scripts/instances", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances", + "description": "Creates a new script instance of the script specified in the request body.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/paged", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/paged", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "maxResults", + "type": "NUMBER", + "description": "Defines the limit of retrieved alert details per request. 1 to 100 are allowed per request.\r\n Number of alerts could be less if filtered but at least 1.", + "default": "" + }, + { + "name": "userId", + "type": "STRING", + "description": "User ID of the user you want to get alerts for.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/paged\"\nquerystring = {\"maxResults\": \"\", \"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/paged\"\nquerystring = {\"maxResults\": \"\", \"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "continuationToken": { + "type": "object", + "properties": { + "nextPartitionKey": { + "type": [ + "string", + "null" + ] + }, + "nextRowKey": { + "type": [ + "string", + "null" + ] + }, + "nextTableName": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, + "hasMore": { + "type": "boolean" + }, + "results": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "eventId": { + "type": [ + "string", + "null" + ] + }, + "flags": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "status": { + "enum": [ + 0, + 1, + 2, + 4, + 8, + 16, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "annotations": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "annotationType": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "userId": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "alertDeliveryStatus": { + "type": "object", + "properties": { + "statusCode": { + "enum": [ + 0, + 1, + 2, + 4, + 6, + 8, + 22, + 24, + 26, + 30, + 31 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "users": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "statusCode": { + "enum": [ + 0, + 1, + 2, + 4, + 6, + 8, + 24, + 26, + 30, + 31, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "historyDetailed": { + "type": "object", + "properties": { + "acknowledged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "acknowledgedgements": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "closed": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "closedBy": { + "type": [ + "string", + "null" + ] + }, + "historyEntries": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "requiredAcknowledgements": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + } + }, + { + "name": "/scripts/instances/{instanceId}/enable", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}/enable", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "instanceId", + "type": "STRING", + "description": "Id of the instance to be enabled.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}/enable\"\nquerystring = {\"instanceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}/enable\"\nquerystring = {\"instanceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/scripts/instances/{instanceId}/disable", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}/disable", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "instanceId", + "type": "STRING", + "description": "Id of the instance to be disabled.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}/disable\"\nquerystring = {\"instanceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceId}/disable\"\nquerystring = {\"instanceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "instanceId": { + "type": [ + "string", + "null" + ] + }, + "scriptId": { + "type": [ + "string", + "null" + ] + }, + "scriptName": { + "type": [ + "string", + "null" + ] + }, + "customScriptName": { + "type": [ + "string", + "null" + ] + }, + "customScriptDescription": { + "type": [ + "string", + "null" + ] + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "eventPattern": {}, + "lastModified": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "enabled": { + "type": "boolean" + }, + "runtimeInformation": { + "type": "object", + "properties": { + "status": { + "enum": [ + 0, + 1, + 2, + 3, + -1 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "statusMessage": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + }, + "config": {} + }, + "additionalProperties": false + } + }, + { + "name": "/teams/{teamId}/schedules/deleteRange", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/deleteRange", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Team ID you want to delete", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/deleteRange\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/schedules/deleteRange\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/undoAcknowledgeMultiple", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/undoAcknowledgeMultiple", + "description": "This method tries to undo the acknowledgement of multiple alerts via a queue. The operation is handled in the background.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/undoAcknowledgeMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/undoAcknowledgeMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/alertSettings", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertSettings", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the settings should be set for.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertSettings\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/alertSettings\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/webhooks", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks", + "description": "Creates a new outbound webhook that will be notified when certain events occur.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/categories/{teamId}", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}", + "description": "Sample Request:\r\n \r\n POST /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7\r\n {\r\n \"name\": \"Water\",\r\n \"imageName\": \"water.svg\",\r\n \"color\": \"#0000cc\",\r\n \"keywordMatching\": \"Any\",\r\n \"keywords\": [\r\n {\r\n \"value\": \"H2O\"\r\n },\r\n {\r\n \"value\": \"Water\"\r\n }\r\n ]\r\n }", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the category belongs to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/acknowledgeAll", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/acknowledgeAll", + "description": "This method confirms all unhandled alerts your team currently has by a specific user.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "User ID of the user to be used to acknowledge the alarms.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/acknowledgeAll\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/acknowledgeAll\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/{alertId}/undoClose", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/undoClose", + "description": "This method tries to undo an alert close.", + "method": "POST", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/undoClose\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/undoClose\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "eventId": { + "type": [ + "string", + "null" + ] + }, + "flags": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "status": { + "enum": [ + 0, + 1, + 2, + 4, + 8, + 16, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "annotations": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "annotationType": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "userId": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "alertDeliveryStatus": { + "type": "object", + "properties": { + "statusCode": { + "enum": [ + 0, + 1, + 2, + 4, + 6, + 8, + 22, + 24, + 26, + 30, + 31 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "users": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "statusCode": { + "enum": [ + 0, + 1, + 2, + 4, + 6, + 8, + 24, + 26, + 30, + 31, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "historyDetailed": { + "type": "object", + "properties": { + "acknowledged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "acknowledgedgements": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "closed": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "closedBy": { + "type": [ + "string", + "null" + ] + }, + "historyEntries": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "requiredAcknowledgements": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + } + }, + { + "name": "/alerts/{alertId}/close", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/close", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id to acknowledge an alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/close\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/close\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/teams/{teamId}/memberships/resendInviteMail", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships/resendInviteMail", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "Team ID of team with invited user.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships/resendInviteMail\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamId}/memberships/resendInviteMail\"\nquerystring = {\"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/closeMultiple", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/closeMultiple", + "description": "This method closes all alerts provided.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/closeMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/closeMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}/checkPermissions", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/checkPermissions", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "ID of the user to check permissions for.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "teamId", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/checkPermissions\"\nquerystring = {\"teamId\": \"\", \"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/checkPermissions\"\nquerystring = {\"teamId\": \"\", \"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/{alertId}/acknowledge", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/acknowledge", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id to acknowledge an alert.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/acknowledge\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/acknowledge\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "categoryId": { + "type": [ + "string", + "null" + ] + }, + "eventId": { + "type": [ + "string", + "null" + ] + }, + "flags": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "lastModified": { + "type": "string", + "format": "date-time" + }, + "status": { + "enum": [ + 0, + 1, + 2, + 4, + 8, + 16, + 32 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "subscriptionId": { + "type": [ + "string", + "null" + ] + }, + "teamId": { + "type": [ + "string", + "null" + ] + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "annotations": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "annotationType": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "text": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "userId": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "attachments": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "contentType": { + "type": [ + "string", + "null" + ] + }, + "encoding": { + "enum": [ + 0, + 1 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "content": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "category": { + "type": [ + "string", + "null" + ] + }, + "eventSourceId": { + "type": [ + "string", + "null" + ] + }, + "eventSourceType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "history": { + "type": "object", + "properties": { + "acknowledged": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "acknowledgedgements": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "closed": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "closedBy": { + "type": [ + "string", + "null" + ] + }, + "historyEntries": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "id": { + "type": [ + "string", + "null" + ] + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "userId": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "parameters": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "order": { + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "type": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 100 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "severity": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer", + "format": "int32", + "minimum": -2147483648, + "maximum": 2147483647 + } + }, + "additionalProperties": false + } + }, + { + "name": "/alerts", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts", + "description": "Triggers a new alert for your team. All team members on duty will receive alert notifications.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/users/{userId}/punchOut", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchOut", + "description": "The specified user will be punched out from duty.", + "method": "POST", + "required_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "Identifier of the user to punch out. Use 'Me' to get information about the currently logged in\r\nuser. This is not possible with an api key. Can also be an email address of a user in the team or the unique id of an according user object.\u201d", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchOut\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userId}/punchOut\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "lastStatusChange": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "onDuty": { + "type": "boolean" + }, + "onManagerDuty": { + "type": "boolean" + }, + "overdue": { + "type": "boolean" + } + }, + "additionalProperties": false + } + }, + { + "name": "/alerts/{alertId}/annotate", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/annotate", + "description": "Annotates an alert by given Annotation Info.", + "method": "POST", + "required_parameters": [ + { + "name": "alertId", + "type": "STRING", + "description": "Id of the alert to annotate.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/annotate\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertId}/annotate\"\nquerystring = {\"alertId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/webhooks/{webhookId}/disable", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}/disable", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "webhookId", + "type": "STRING", + "description": "Webhook ID for webhook which should be disabled.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}/disable\"\nquerystring = {\"webhookId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}/disable\"\nquerystring = {\"webhookId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/undoCloseMultiple", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/undoCloseMultiple", + "description": "This method tries to undo multiple alert closes. The operation is handled in the background.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/undoCloseMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/undoCloseMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/categories/{teamId}/{categoryId}/subscriptions", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/subscriptions", + "description": "Sample Request:\r\n \r\n POST /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e/subscriptions\r\n {\r\n }", + "method": "POST", + "required_parameters": [ + { + "name": "categoryId", + "type": "STRING", + "description": "Category to be updated", + "default": "" + }, + { + "name": "teamId", + "type": "STRING", + "description": "ID of the team the category belongs to", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/subscriptions\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamId}/{categoryId}/subscriptions\"\nquerystring = {\"categoryId\": \"\", \"teamId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/acknowledgeMultiple", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/acknowledgeMultiple", + "description": "This method confirms all alerts provided.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/acknowledgeMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/acknowledgeMultiple\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/webhooks/{webhookId}/enable", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}/enable", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "webhookId", + "type": "STRING", + "description": "Webhook ID for webhook which should be enabled.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}/enable\"\nquerystring = {\"webhookId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookId}/enable\"\nquerystring = {\"webhookId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/alerts/closeAll", + "url": "https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/closeAll", + "description": "This method closes all acknowledged alerts your team currently has.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "userId", + "type": "STRING", + "description": "User ID of the user to be used to close the alarms.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/closeAll\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/closeAll\"\nquerystring = {\"userId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"signl4-critical-mobile-alerting.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "signl4_critical_mobile_alerting" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/signl4_critical_mobile_alerting/api.py b/toolbench/toolenv/tools/Communication/signl4_critical_mobile_alerting/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1e2adf716b0ceb03fc9f8c513f426eee43845464 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/signl4_critical_mobile_alerting/api.py @@ -0,0 +1,1192 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def alerts_alertid(alertid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets an alert by id." + alertid: Id of the requested Alert. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def users_userid_image(userid: str, width: int=None, height: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userid}/image" + querystring = {} + if width: + querystring['width'] = width + if height: + querystring['height'] = height + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_memberships(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: Team ID of team you want to request. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/memberships" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def users_userid(userid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a user object with details such as his email address and duty information." + userid: Identifier of the user to get. Use 'Me' to get information about the currently logged in user. This is not possible with an api key. +Can also be an email address of a user in the team or the unique id of an according user object.” + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_dutysummary(teamid: str, lasttwoduties: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of the team the duty belongs to. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/dutysummary" + querystring = {} + if lasttwoduties: + querystring['lastTwoDuties'] = lasttwoduties + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scripts_inventory(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns all available inventory scripts which can be added to a SIGNL4 subscription." + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories_teamid_metrics(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample Request: + + GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/metrics" + teamid: ID of the team the categories belongs to + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamid}/metrics" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def prepaid_balance(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/balance" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_setupprogress(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of the team the progress should be retrieved for. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/setupprogress" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_dutyreports_filename(filename: str, teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + filename: Filename of the csv to download. + teamid: ID of team you want to download the duty report for. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/dutyreports/{filename}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alerts_alertid_attachments_attachmentid(attachmentid: str, alertid: str, height: int=None, scale: bool=None, width: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + attachmentid: Id of the attachment, that you want to retrieve. + alertid: Id of the alert that contains the wanted attachment. + height: Optional parameter defining the wanted height of the picture that is retrieved. + scale: Optional parameter defining whether it's wanted to scale the retrieved image. Default is set to +true. + width: Optional parameter defining the wanted width of the picture that is retrieved. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertid}/attachments/{attachmentid}" + querystring = {} + if height: + querystring['height'] = height + if scale: + querystring['scale'] = scale + if width: + querystring['width'] = width + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_channelprices(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + subscriptionid: Id of the subscription that needs to be retrieved. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/channelprices" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alerts_alertid_annotations(alertid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get annotations of an alert by id." + alertid: Id of the requested Alert. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertid}/annotations" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_schedules_scheduleid(teamid: str, scheduleid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: Id of the team the duty belongs to + scheduleid: Id of the requested duty schedule. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/schedules/{scheduleid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def prepaid_settings(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/settings" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def users_userid_setupprogress(userid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + userid: ID of the user the progress should be retrieved for. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userid}/setupprogress" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def events_eventid_parameters(eventid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get parameters of an event by id." + eventid: Event Id of the requested Alert. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventid}/parameters" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def users(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a list of user objects with details such as their email address and duty information. Only users who + are part of your team will be returned." + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/users" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def events_eventid_overview(eventid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get overview event by id." + eventid: Id of event to get. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/events/{eventid}/overview" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def webhooks(teamid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a collection of defined outbound webhooks in the system." + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks" + querystring = {} + if teamid: + querystring['teamId'] = teamid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_schedules(teamid: str, userid: str=None, limit: int=None, mindate: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: Id of the team the schedules user belongs to + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/schedules" + querystring = {} + if userid: + querystring['UserId'] = userid + if limit: + querystring['Limit'] = limit + if mindate: + querystring['MinDate'] = mindate + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_alertreports_filename(teamid: str, filename: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of team you want to get the duty report file infos for. + filename: File name of file you want to download. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/alertreports/{filename}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories_teamid_categoryid_subscriptions(categoryid: str, teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample Request: + + GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e/subscriptions + { + }" + categoryid: Category to get subscriptions for + teamid: ID of the team the category belongs to + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamid}/{categoryid}/subscriptions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_alertsettings(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of the team the settings should be retrieved for. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/alertsettings" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories_images(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/images" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scripts_instances_instanceid(instanceid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the script instance specified by the passed instance id." + instanceid: Instance Id of script instance to be returned. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances/{instanceid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of the team that should be retrieved. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scripts_inventory_parsed(language: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed" + querystring = {} + if language: + querystring['language'] = language + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories_teamid_categoryid_metrics(categoryid: str, teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample Request: + + GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e/metrics" + categoryid: ID of the category to get + teamid: ID of the team the category belongs to + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamid}/{categoryid}/metrics" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_userlicenses(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + subscriptionid: ID of the subscription + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/userlicenses" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories_teamid_categoryid(categoryid: str, teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample Request: + + GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7/c0054336-cd89-4abf-882d-ba69b5adb25e" + categoryid: ID of the category to get + teamid: ID of the team the category belongs to + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamid}/{categoryid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_prepaidsettings(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/prepaidsettings" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_prepaidbalance(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/prepaidbalance" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alerts_alertid_overview(alertid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get overview alert by id." + alertid: Id of the requested Alert. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertid}/overview" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scripts_instances(teamid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns all script instances in the subscription." + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/instances" + querystring = {} + if teamid: + querystring['teamId'] = teamid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories_teamid(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sample Request: + + GET /categories/cbb70402-1359-477f-ac92-0171cf2b5ff7" + teamid: ID of the team the categories belong to + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/categories/{teamid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scripts_inventory_parsed_scriptid(scriptid: str, language: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the script specified by the passed script id." + scriptid: The Id of the script to be returned. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/scripts/inventory/parsed/{scriptid}" + querystring = {} + if language: + querystring['language'] = language + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_prepaidtransactions(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + subscriptionid: ID of the subscription to get transactions for + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/prepaidtransactions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def prepaid_transactions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/prepaid/transactions" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_alertreports(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of team you want to download reports from. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/alertreports" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + subscriptionid: Id of the subscription that's to be retrieved. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_eventsources(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of the team the sources should be retrieved for. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/eventsources" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_features(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + subscriptionid: Id of the subscription from which the features need to be retrieved. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/features" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alerts_alertid_attachments(alertid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get attachments of an alert by id." + alertid: Id of the requested Alert. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertid}/attachments" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subscriptions_subscriptionid_teams(subscriptionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/subscriptions/{subscriptionid}/teams" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alerts_report(userid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns information about the occurred alert volume in different time periods as well as information about the + response behaviour (amount of confirmed and unhandled alerts) of your team members." + userid: User ID of the user for whom you want a report. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/report" + querystring = {} + if userid: + querystring['userId'] = userid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def users_userid_dutystatus(userid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a object with duty information." + userid: Identifier of the user to get. Use 'Me' to get information about the currently logged in user. This is not possible with an api key. +Can also be an email address of a user in the team or the unique id of an according user object.” + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/users/{userid}/dutystatus" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def alerts_alertid_notifications(alertid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get notifications of all users by alert id." + alertid: Id of the requested Alert. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/alerts/{alertid}/notifications" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def teams_teamid_dutyreports(teamid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + teamid: ID of team you want to get the duty report file infos for. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/teams/{teamid}/dutyreports" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getwebhookbyid(webhookid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns information of the webhook specified by the passed id." + webhookid: Id of the outbound webhook to be retrieved. + + """ + url = f"https://signl4-critical-mobile-alerting.p.rapidapi.com/webhooks/{webhookid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "signl4-critical-mobile-alerting.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sim_based_location_tracking.json b/toolbench/toolenv/tools/Communication/sim_based_location_tracking.json new file mode 100644 index 0000000000000000000000000000000000000000..23fad98b64de3161cc2ea66547cb01143bcb7c57 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sim_based_location_tracking.json @@ -0,0 +1,651 @@ +{ + "tool_name": "Sim based Location Tracking", + "tool_description": "This API provides location tracking for any phone number using the cellular network. Tracking does not require the internet or the presence of a Smartphone.\nVisit https://www.traqo.io for API KEYS.", + "title": "Sim based Location Tracking", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/traqo-traqo-default/api/sim-based-location-tracking1/", + "host": "sim-based-location-tracking1.p.rapidapi.com", + "api_list": [ + { + "name": "Trip'sCurrentStatus", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/info/", + "description": "

You can use this endpoint to fetch the details of a trip which also includes the last known location.

\n

Body Parameters

\n\n

Notes

\n
    \n
  • Atleast one of the below three parameters should be passed
  • \n
\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
invoiceNo invoice received in response of submit trip API
idNo trip_id received in response of submit trip API
lr_numberNo lr_number received in response of submit trip API
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/info/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "UpdateTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/update/", + "description": "

This endpoint is used to update a trip .

\n\n

Notes

\nNew phone number can be passed in tel parameter to update current phone number of a running trip\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
idYes Trip id received in response of submit trip API
telNo 10 digit comma seperated mobile numbers for tracking
srcNoComma separated coordinates for source location i.e. 12.8445, 23.823
destNoComma separated coordinates for destination location i.e. 12.7445, 23.223
srcnameNoSource location name
destnameNoDestination location name
invoiceNoInvoice id e.g. #invoice2323
truck_numberNoVehicle number e.g. PB 22 U 0662
eta_daysNoA number representing no. of days it will take for the truck to reach destination from source
eta_timeNoEpoch value of the expected time to reach the destination e.g. 1594023550916 for Jul 06 2020 13:49:10 GMT+0530
eta_hrsNoNo. of hours it'll take to reach the destination
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Missing mandatory param (e.g. id)

\n

\n
\n{\n    \"status\": \"true\",\n    \"error\": \"'id'\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/update/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "Fetchalltrips", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trips/fetch/", + "description": "This endpoint is for fetching all trips ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trips/fetch/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "CreateTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/create/", + "description": "

This endpoint is used to Create a trip.

\n

Body Parameters

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
telYes 10 digit comma seperated mobile numbers for tracking
srcYesComma separated coordinates for source location i.e. 12.8445, 23.823
destYesComma separated coordinates for destination location i.e. 12.7445, 23.223
srcnameNoSource location name
destnameNoDestination location name
invoiceNoInvoice id e.g. #invoice2323
truck_numberNoVehicle number e.g. PB 22 U 0662
eta_daysNoA number representing no. of days it will take for the truck to reach destination from source
eta_timeNoEpoch value of the expected time to reach the destination e.g. 1594023550916 for Jul 06 2020 13:49:10 GMT+0530
eta_hrsNoNo. of hours it'll take to reach the destination
\n
\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Missing any mandatory param (e.g. src)

\n

\n
\n{\n    \"status\": \"true\",\n    \"error\": \"'src'\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/create/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "CheckConsent", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/check_consent/", + "description": "

You can use this endpoint to check concent status of the passed mobile number.

\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
telYes 10 digit comma seperated mobile number used for creating trip
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/check_consent/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "FetchaTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/fetch/", + "description": "

This endpoint is for fetching a trip

\n

Body Parameters

\n\n

Notes

\n
    \n
  • Atleast one of the below three parameters should be passed
  • \n
\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
invoiceNo invoice received in response of submit trip API
trip_idNo trip_id received in response of submit trip API
lr_numberNo lr_number received in response of submit trip API
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/fetch/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "EndTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/end/", + "description": "

This endpoint is used to end or close a trip .

\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
idYes Trip id received in response of submit trip API
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Missing mandatory param (e.g. id)

\n

\n
\n{\n    \"status\": \"true\",\n    \"error\": \"'id'\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/end/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "FetchLocation", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/location/", + "description": "

This endpoint is for fetching location of a trip

\n

Required Body Parameters

\n\n

Notes

\n
    \n
  • Atleast one of the below three parameters should be passed
  • \n
\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
invoiceNo invoice received in response of submit trip API
idNo trip_id received in response of submit trip API
lr_numberNo lr_number received in response of submit trip API
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/location/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "NumberList", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/number_list/", + "description": "\n

All of last updated locations of provided concents phone numbers can be fetched through this endpoint,

\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/number_list/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "ResendConsentSms", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/resend_consent_sms/", + "description": "

Through this endpoint location tracking concent SMS can be resent to particular number.

\n

Note-
\nIt is allowed Max 5 times per number\n

\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

SMS Already sent max 5 times through this API

\n

\n
\n{\n    \"status\": \"max_exceeds\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/resend_consent_sms/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "AddNumber", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/add_phone_number/", + "description": "

This endpoint is used to add number into tracking system.

\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
nameNoName of the tracking person
operatorNoThis can be one of Aircel, airtel, bsnl, idea, Jio, vodafone
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Invalid Operator passed

\n

\n
{\n    \"status\": \"invalid operator valid operators are Aircel, airtel, bsnl, idea, Jio, vodafone\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/add_phone_number/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "Delete_number", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/delete_number/", + "description": "

Provided number can be removed from tracking system through this API.

\n\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Wrong or not added mobile number passed

\n

\n
\n{\n    \"status\": \"invalid_mobile\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/delete_number/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "Getlatestlocation", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/location/", + "description": "

This API can be used for getting latest location of the passed number.

\n\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Wrong or not added mobile number passed

\n

\n
\n{\n    \"status\": \"invalid_mobile\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/location/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Checkconcent", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/check_consent/", + "description": "

This endpoint is responsible for refreshing the tracking concent of provided number, i.e. whether location tracking is allowed or not yet

\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
telYes 10 digit previously added mobile number
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Wrong or not added mobile number passed

\n

\n
\n{\n    \"status\": \"invalid_mobile\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/check_consent/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "consent": "PENDING", + "tel": "790560XXXX", + "operator": "Jio" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "RouteHistory", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/route_history/", + "description": "

Through this endpoint route history can be fetched of provided number..

\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
from_dateYesFrom date for Route history in YYYY/MM/DD formate
to_dateYesTo date for Route history in YYYY/MM/DD formate
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/route_history/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "UpdateTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/update/", + "description": "

This endpoint is used to update a trip .

\n\n

Notes

\nNew phone number can be passed in tel parameter to update current phone number of a running trip\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
idYes Trip id received in response of submit trip API
telNo 10 digit comma seperated mobile numbers for tracking
srcNoComma separated coordinates for source location i.e. 12.8445, 23.823
destNoComma separated coordinates for destination location i.e. 12.7445, 23.223
srcnameNoSource location name
destnameNoDestination location name
invoiceNoInvoice id e.g. #invoice2323
truck_numberNoVehicle number e.g. PB 22 U 0662
eta_daysNoA number representing no. of days it will take for the truck to reach destination from source
eta_timeNoEpoch value of the expected time to reach the destination e.g. 1594023550916 for Jul 06 2020 13:49:10 GMT+0530
eta_hrsNoNo. of hours it'll take to reach the destination
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Missing mandatory param (e.g. id)

\n

\n
\n{\n    \"status\": \"true\",\n    \"error\": \"'id'\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/update/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/update/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "CreateTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/create/", + "description": "

This endpoint is used to Create a trip.

\n

Body Parameters

\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
telYes 10 digit comma seperated mobile numbers for tracking
srcYesComma separated coordinates for source location i.e. 12.8445, 23.823
destYesComma separated coordinates for destination location i.e. 12.7445, 23.223
srcnameNoSource location name
destnameNoDestination location name
invoiceNoInvoice id e.g. #invoice2323
truck_numberNoVehicle number e.g. PB 22 U 0662
eta_daysNoA number representing no. of days it will take for the truck to reach destination from source
eta_timeNoEpoch value of the expected time to reach the destination e.g. 1594023550916 for Jul 06 2020 13:49:10 GMT+0530
eta_hrsNoNo. of hours it'll take to reach the destination
\n
\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Missing any mandatory param (e.g. src)

\n

\n
\n{\n    \"status\": \"true\",\n    \"error\": \"'src'\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/create/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/create/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "EndTrip", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/end/", + "description": "

This endpoint is used to end or close a trip .

\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
idYes Trip id received in response of submit trip API
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Missing mandatory param (e.g. id)

\n

\n
\n{\n    \"status\": \"true\",\n    \"error\": \"'id'\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/end/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/end/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "ResendConsentSms", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/resend_consent_sms/", + "description": "

Through this endpoint location tracking concent SMS can be resent to particular number.

\n

Note-
\nIt is allowed Max 5 times per number\n

\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

SMS Already sent max 5 times through this API

\n

\n
\n{\n    \"status\": \"max_exceeds\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/resend_consent_sms/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/resend_consent_sms/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "AddNumber", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/add_phone_number/", + "description": "

This endpoint is used to add number into tracking system.

\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
nameNoName of the tracking person
operatorNoThis can be one of Aircel, airtel, bsnl, idea, Jio, vodafone
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Invalid Operator passed

\n

\n
{\n    \"status\": \"invalid operator valid operators are Aircel, airtel, bsnl, idea, Jio, vodafone\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/add_phone_number/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/add_phone_number/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + }, + { + "name": "Delete_number", + "url": "https://sim-based-location-tracking1.p.rapidapi.com/api/v2/delete_number/", + "description": "

Provided number can be removed from tracking system through this API.

\n\n\n

Body Parameters

\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
\n\n\n

OUTPUT

\n

\n

Invalid user credentials

\n

\n
{\n    \"errors\": \"Invalid username/password.\"\n}\n
\n\n

\n

Wrong or not added mobile number passed

\n

\n
\n{\n    \"status\": \"invalid_mobile\"\n}\n
", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/delete_number/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/delete_number/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sim-based-location-tracking1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "consent": { + "type": "string", + "description": "", + "default": "PENDING" + }, + "tel": { + "type": "string", + "description": "", + "default": "790560XXXX" + }, + "operator": { + "type": "string", + "description": "", + "default": "Jio" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sim_based_location_tracking/api.py b/toolbench/toolenv/tools/Communication/sim_based_location_tracking/api.py new file mode 100644 index 0000000000000000000000000000000000000000..37eaf0af178e568905ff1517bf67f432a4c6a057 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sim_based_location_tracking/api.py @@ -0,0 +1,513 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def trip_scurrentstatus(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

You can use this endpoint to fetch the details of a trip which also includes the last known location.

+

Body Parameters

+ +

Notes

+
    +
  • Atleast one of the below three parameters should be passed
  • +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
invoiceNo invoice received in response of submit trip API
idNo trip_id received in response of submit trip API
lr_numberNo lr_number received in response of submit trip API
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/info/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchalltrips(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is for fetching all trips " + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trips/fetch/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def checkconsent(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

You can use this endpoint to check concent status of the passed mobile number.

+

Body Parameters

+ +
+ + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
telYes 10 digit comma seperated mobile number used for creating trip
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/check_consent/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchatrip(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

This endpoint is for fetching a trip

+

Body Parameters

+ +

Notes

+
    +
  • Atleast one of the below three parameters should be passed
  • +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
invoiceNo invoice received in response of submit trip API
trip_idNo trip_id received in response of submit trip API
lr_numberNo lr_number received in response of submit trip API
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/fetch/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchlocation(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

This endpoint is for fetching location of a trip

+

Required Body Parameters

+ +

Notes

+
    +
  • Atleast one of the below three parameters should be passed
  • +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
invoiceNo invoice received in response of submit trip API
idNo trip_id received in response of submit trip API
lr_numberNo lr_number received in response of submit trip API
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v3/trip/location/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def numberlist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " +

All of last updated locations of provided concents phone numbers can be fetched through this endpoint,

+ +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
+ " + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/number_list/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getlatestlocation(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

This API can be used for getting latest location of the passed number.

+ + +

Body Parameters

+ +
+ + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
+ +

+

Wrong or not added mobile number passed

+

+

+		{
+		    "status": "invalid_mobile"
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/location/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def checkconcent(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

This endpoint is responsible for refreshing the tracking concent of provided number, i.e. whether location tracking is allowed or not yet

+ +

Body Parameters

+ +
+ + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
telYes 10 digit previously added mobile number
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
+ +

+

Wrong or not added mobile number passed

+

+

+		{
+		    "status": "invalid_mobile"
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/check_consent/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def routehistory(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "

Through this endpoint route history can be fetched of provided number..

+ +

Body Parameters

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterMandatoryDescription
phone_numberYes 10 digit previously added mobile number
from_dateYesFrom date for Route history in YYYY/MM/DD formate
to_dateYesTo date for Route history in YYYY/MM/DD formate
+ + +

OUTPUT

+

+

Invalid user credentials

+

+
{
+		    "errors": "Invalid username/password."
+		}
+		
" + + """ + url = f"https://sim-based-location-tracking1.p.rapidapi.com/api/v2/route_history/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sim-based-location-tracking1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/simplified_apns_apple_push_notification_service.json b/toolbench/toolenv/tools/Communication/simplified_apns_apple_push_notification_service.json new file mode 100644 index 0000000000000000000000000000000000000000..d5dbca21175f986203449a012cbb50c31ac32320 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/simplified_apns_apple_push_notification_service.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_ecc6c82b-daa8-470b-9ef2-c29303858935", + "tool_description": "This is a simplified version of the APNS (Apple Push Notification Service) API, that allows you send push notifications to your iOS Apps. It uses HTTP/2, so will be compatible with the March 31st 2021 API cutoff.", + "home_url": "https://rapidapi.com/dananos/api/simplified-apns-apple-push-notification-service/", + "name": "Simplified APNS (Apple Push Notification Service)", + "title": "Simplified APNS (Apple Push Notification Service)", + "pricing": "FREEMIUM", + "tool_name": "Simplified APNS (Apple Push Notification Service)", + "score": null, + "host": "simplified-apns-apple-push-notification-service.p.rapidapi.com", + "api_list": [ + { + "name": "PushRequestProduction", + "url": "https://simplified-apns-apple-push-notification-service.p.rapidapi.com/Prod", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://simplified-apns-apple-push-notification-service.p.rapidapi.com/Prod\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"simplified-apns-apple-push-notification-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://simplified-apns-apple-push-notification-service.p.rapidapi.com/Prod\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"simplified-apns-apple-push-notification-service.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/skype_graph.json b/toolbench/toolenv/tools/Communication/skype_graph.json new file mode 100644 index 0000000000000000000000000000000000000000..dcc06bfdb96aae7d73837c70ac9015a87ad090ef --- /dev/null +++ b/toolbench/toolenv/tools/Communication/skype_graph.json @@ -0,0 +1,55 @@ +{ + "product_id": "api_1fe5fef5-51a6-4765-b57e-9f3631970893", + "tool_description": "Skype Graph is an Unofficial Skype API that allows you search for Skype users by name or email address", + "home_url": "https://rapidapi.com/infiniteloop/api/skype-graph/", + "name": "Skype Graph", + "title": "Skype Graph", + "pricing": "FREEMIUM", + "tool_name": "Skype Graph", + "score": { + "avgServiceLevel": 100, + "avgLatency": 498, + "avgSuccessRate": 94, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "skype-graph.p.rapidapi.com", + "api_list": [ + { + "name": "Search", + "url": "https://skype-graph.p.rapidapi.com/search.aspx/robert.smith@hotmail.com", + "description": "Search for a Skype user by email address or name", + "method": "GET", + "required_parameters": [ + { + "name": "Name", + "type": "string", + "description": "", + "default": "robert.smith@hotmail.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://skype-graph.p.rapidapi.com/search.aspx/robert.smith@hotmail.com\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"skype-graph.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://skype-graph.p.rapidapi.com/search.aspx/{name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"skype-graph.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "requestId": "905169", + "results": [ + { + "nodeProfileData": { + "skypeId": "bobbys88881", + "name": "Rob Smith", + "avatarUrl": "https://api.skype.com/users/bobbys88881/profile/avatar", + "country": "Ireland", + "countryCode": "ie", + "contactType": "Skype4Consumer", + "avatarImageUrl": "https://avatar.skype.com/v1/avatars/bobbys88881/public?size=l" + } + } + ] + }, + "statuscode": 200, + "schema": {} + } + ], + "standardized_name": "skype_graph" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/skype_graph/api.py b/toolbench/toolenv/tools/Communication/skype_graph/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7d6eeaaabe4b0d46709f7e2de60d28a77ddc1dd1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/skype_graph/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def search(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for a Skype user by email address or name" + + """ + url = f"https://skype-graph.p.rapidapi.com/search.aspx/{name}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "skype-graph.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sms.json b/toolbench/toolenv/tools/Communication/sms.json new file mode 100644 index 0000000000000000000000000000000000000000..581caa5335ef0a73a1d868c8ec21d13907743cb1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms.json @@ -0,0 +1,24 @@ +{ + "tool_name":"SMS", + "tool_description":"NA", + "title":"SMS", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/charkha.amiet6/api/sms183/", + "host":"sms183.p.rapidapi.com", + "api_list":[ + { + "name":"sa", + "url":"https://sms183.p.rapidapi.com/", + "description":"sasa", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://sms183.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sms183.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sms/api.py b/toolbench/toolenv/tools/Communication/sms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8ed57f2b5672d60680a57593fd20e11d414e5815 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def sa(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "sasa" + + """ + url = f"https://sms183.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sms183.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sms_cloud.json b/toolbench/toolenv/tools/Communication/sms_cloud.json new file mode 100644 index 0000000000000000000000000000000000000000..f242c0f08d2331d1e7f045de4604d0ea3eb289c5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms_cloud.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_68348403-f7de-42db-a7ae-6f050742c916", + "tool_description": "[We are in test version] allow send SMS usign a phone gateway. first you must install our Android APP. Then send SMS from your system with only one POST request", + "home_url": "https://rapidapi.com/brianpando/api/sms-cloud/", + "name": "SMS Cloud", + "title": "SMS Cloud", + "pricing": "FREEMIUM", + "tool_name": "SMS Cloud", + "score": { + "avgServiceLevel": 0, + "avgLatency": 98, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "sms-cloud.p.rapidapi.com", + "api_list": [ + { + "name": "send", + "url": "https://sms-cloud.p.rapidapi.com/send", + "description": "Send a sms List", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sms-cloud.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sms-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sms-cloud.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sms-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sms_gateway.json b/toolbench/toolenv/tools/Communication/sms_gateway.json new file mode 100644 index 0000000000000000000000000000000000000000..ae6b6e29447ee56d588b6650f9044466f0771d50 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms_gateway.json @@ -0,0 +1,120 @@ +{ + "product_id": "53aa4fb5e4b0b60946a2f556", + "tool_description": "MessageBird provides a simple and fast API for sending and receiving text messages (SMS) all over the world. Other related services are HLR-Lookup (network query) and sending and receiving Premium SMS messages.", + "home_url": "https://rapidapi.com/messagebird/api/sms-gateway/", + "name": "SMS Gateway", + "title": "SMS Gateway", + "pricing": "FREE", + "tool_name": "SMS Gateway", + "score": { + "avgServiceLevel": 100, + "avgLatency": 168, + "avgSuccessRate": 100, + "popularityScore": 9.5, + "__typename": "Score" + }, + "host": "messagebird-sms-gateway.p.rapidapi.com", + "api_list": [ + { + "name": "SMS Gateway", + "url": "https://messagebird-sms-gateway.p.rapidapi.com/sms", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "sender", + "type": "STRING", + "description": "Sender of the message. Can be numeric or alphanumeric.", + "default": "MessageBird" + }, + { + "name": "body", + "type": "STRING", + "description": "The message that needs to be sent. If the body contains signs that are not listed in the GSM-7 table, it is considered UTF-8.", + "default": "This is a gsm 7-bit test message." + }, + { + "name": "destination", + "type": "STRING", + "description": "One or several receivers, separated by a comma.", + "default": "31600000001,31600000002" + } + ], + "optional_parameters": [ + { + "name": "reference", + "type": "STRING", + "description": "Unique reference, if this parameter is absent, no status report is sent.", + "default": "268431687" + }, + { + "name": "timestamp", + "type": "NUMBER", + "description": "The date on which the message needs to be sent.", + "default": "201308020025" + }, + { + "name": "replacechars", + "type": "BOOLEAN", + "description": "Replace non GSM-7 characters by appropriate valid GSM-7 characters.", + "default": "checked" + }, + { + "name": "type", + "type": "STRING", + "description": "When sending a message, you can specify what type of message it is. You can send messages in 3 types (normal / binary / flash).", + "default": "normal" + }, + { + "name": "udh", + "type": "STRING", + "description": "The UDH parameter is required if you want to send a binary SMS. This parameter needs to contain the \"header\" of the SMS message.", + "default": "" + }, + { + "name": "test", + "type": "BOOLEAN", + "description": "If test is TRUE, then the message is not actually sent or scheduled, and there will be no credits deducted. Validation of the message will take place, and you will also receive a normal response back from the API.", + "default": "" + }, + { + "name": "dlr_url", + "type": "STRING", + "description": "If you want a dlr notification of the message send to another url then that you have set on the web site, you can use this parameter.", + "default": "http://www.example.com/dlr-messagebird.php" + } + ], + "code": "import requests\n\nurl = \"https://messagebird-sms-gateway.p.rapidapi.com/sms\"\nquerystring = {\"sender\": \"MessageBird\", \"body\": \"This is a gsm 7-bit test message.\", \"destination\": \"31600000001,31600000002\", \"reference\": \"268431687\", \"timestamp\": \"201308020025\", \"replacechars\": \"checked\", \"type\": \"normal\", \"udh\": \"\", \"test\": \"\", \"dlr_url\": \"http://www.example.com/dlr-messagebird.php\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messagebird-sms-gateway.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://messagebird-sms-gateway.p.rapidapi.com/sms\"\nquerystring = {\"sender\": \"MessageBird\", \"body\": \"This is a gsm 7-bit test message.\", \"destination\": \"31600000001,31600000002\", \"reference\": \"268431687\", \"timestamp\": \"201308020025\", \"replacechars\": \"checked\", \"type\": \"normal\", \"udh\": \"\", \"test\": \"\", \"dlr_url\": \"http://www.example.com/dlr-messagebird.php\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messagebird-sms-gateway.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "HLR-lookup (network query)", + "url": "https://messagebird-sms-gateway.p.rapidapi.com/hlr", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "recipients", + "type": "NUMBER", + "description": "The number on which you want the network query to be executed.", + "default": "31600000001" + }, + { + "name": "reference", + "type": "STRING", + "description": "This is the reference you will receive back in an a-synchronous request to your platform to much the response with the request.", + "default": "481827372" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://messagebird-sms-gateway.p.rapidapi.com/hlr\"\nquerystring = {\"recipients\": \"31600000001\", \"reference\": \"481827372\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messagebird-sms-gateway.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://messagebird-sms-gateway.p.rapidapi.com/hlr\"\nquerystring = {\"recipients\": \"31600000001\", \"reference\": \"481827372\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"messagebird-sms-gateway.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sms_sending.json b/toolbench/toolenv/tools/Communication/sms_sending.json new file mode 100644 index 0000000000000000000000000000000000000000..4398cb9dd293947d97a5c7d67c07b26bbcc78c2e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms_sending.json @@ -0,0 +1,554 @@ +{ + "tool_name": "SMS sending", + "tool_description": "Send bulk SMS all around the world, 200 countries covered and more than 700 operators are available.\r\nSee http://www.allmysms.com/en/api-sms/ for more details and documentation.", + "title": "SMS sending", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/allmysms/api/sms-sending/", + "host": "allmysms-v9.p.rapidapi.com", + "api_list": [ + { + "name": "deleteContacts", + "url": "https://allmysms-v9.p.rapidapi.com/deleteContacts", + "description": "To delete contacts in a list", + "method": "DELETE", + "required_parameters": [ + { + "name": "deleteData", + "type": "STRING", + "description": "Data to delete, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/deleteContacts\"\nquerystring = {\"deleteData\": deletedata, \"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getInfo", + "url": "https://allmysms-v9.p.rapidapi.com/getInfo", + "description": "Get information on an account", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "subAccount", + "type": "STRING", + "description": "subaccount to get info for", + "default": "" + }, + { + "name": "returnformat", + "type": "STRING", + "description": "return type", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getInfo\"\nquerystring = {\"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createList", + "url": "https://allmysms-v9.p.rapidapi.com/createList", + "description": "Create a list that will be available on your allmysms.com manager", + "method": "POST", + "required_parameters": [ + { + "name": "listData", + "type": "STRING", + "description": "list information, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/createList\"\nquerystring = {\"returnformat\": returnformat, \"listData\": listdata}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getBlacklist", + "url": "https://allmysms-v9.p.rapidapi.com/getBlacklist", + "description": "get all your blacklisted mobile phone numbers", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "subAccount", + "type": "STRING", + "description": "subaccount to get blacklist for", + "default": "" + }, + { + "name": "returnformat", + "type": "STRING", + "description": "response format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getBlacklist\"\nquerystring = {\"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getPull", + "url": "https://allmysms-v9.p.rapidapi.com/getPull", + "description": "Recover all the answers (SMS-MO) related to a SMS campaign", + "method": "GET", + "required_parameters": [ + { + "name": "campId", + "type": "STRING", + "description": "SMS campaign identifier", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "response format, xml or json", + "default": "xml or json" + }, + { + "name": "subAccount", + "type": "STRING", + "description": "subaccount concerned by the request", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getPull\"\nquerystring = {\"returnformat\": returnformat, \"campId\": campid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "sendSms", + "url": "https://allmysms-v9.p.rapidapi.com/sendSms", + "description": "Send SMS", + "method": "POST", + "required_parameters": [ + { + "name": "smsdata", + "type": "STRING", + "description": "contains message and mobile phone numbers", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/sendSms\"\nquerystring = {\"smsdata\": smsdata}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getSubAccounts", + "url": "https://allmysms-v9.p.rapidapi.com/getSubAccounts", + "description": "Get all the accounts attached to a master account", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "response format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getSubAccounts\"\nquerystring = {\"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "populateList", + "url": "https://allmysms-v9.p.rapidapi.com/populateList", + "description": "Use this method to populate data into your contacts list", + "method": "POST", + "required_parameters": [ + { + "name": "populateData", + "type": "STRING", + "description": "contacts list data, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "return format", + "type": "STRING", + "description": "response format, xml or json", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/populateList\"\nquerystring = {\"populateData\": populatedata}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "deleteCampaign", + "url": "https://allmysms-v9.p.rapidapi.com/deleteCampaign", + "description": "delete a programmed SMS campaign", + "method": "DELETE", + "required_parameters": [ + { + "name": "campId", + "type": "STRING", + "description": "campaign identifier", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/deleteCampaign\"\nquerystring = {\"returnformat\": returnformat, \"campId\": campid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "deleteList", + "url": "https://allmysms-v9.p.rapidapi.com/deleteList", + "description": "To delete a list of contacts", + "method": "DELETE", + "required_parameters": [ + { + "name": "listName", + "type": "STRING", + "description": "contacts list name", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "json" + }, + { + "name": "subAccount", + "type": "STRING", + "description": "subAccount owner of the list", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/deleteList\"\nquerystring = {\"returnformat\": returnformat, \"listName\": listname}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createSubAccount", + "url": "https://allmysms-v9.p.rapidapi.com/createSubAccount", + "description": "To create a subaccount to your master account", + "method": "POST", + "required_parameters": [ + { + "name": "accountData", + "type": "STRING", + "description": "account data, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/createSubAccount\"\nquerystring = {\"accountData\": accountdata, \"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getLists", + "url": "https://allmysms-v9.p.rapidapi.com/getLists", + "description": "Get the full list of the account's contacts list", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "response format, xml or json", + "default": "xml or json" + }, + { + "name": "subAccount", + "type": "STRING", + "description": "subaccount concerned by the request", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getLists\"\nquerystring = {\"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "deleteSubAccount", + "url": "https://allmysms-v9.p.rapidapi.com/deleteSubAccount", + "description": "Delete a subaccount", + "method": "DELETE", + "required_parameters": [ + { + "name": "loginToDelete", + "type": "STRING", + "description": "Login to delete", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/deleteSubAccount\"\nquerystring = {\"loginToDelete\": logintodelete, \"returnformat\": returnformat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getContacts", + "url": "https://allmysms-v9.p.rapidapi.com/getContacts", + "description": "Recover all the contacts stored in a contacts list", + "method": "GET", + "required_parameters": [ + { + "name": "listName", + "type": "STRING", + "description": "Contacts list name", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "response format, xml or json", + "default": "xml or json" + }, + { + "name": "subAccount", + "type": "STRING", + "description": "subaccount concerned by the request", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getContacts\"\nquerystring = {\"returnformat\": returnformat, \"listName\": listname}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getAcks", + "url": "https://allmysms-v9.p.rapidapi.com/getAcks", + "description": "recover all operators acknowledgments", + "method": "GET", + "required_parameters": [ + { + "name": "campId", + "type": "STRING", + "description": "campaign identifier", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "response format, xml or json", + "default": "xml or json" + }, + { + "name": "subAccount", + "type": "STRING", + "description": "subaccount concerned by the request", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/getAcks\"\nquerystring = {\"returnformat\": returnformat, \"campId\": campid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "simulateCampaign", + "url": "https://allmysms-v9.p.rapidapi.com/simulateCampaign", + "description": "Simulate a SMS campaign before really sending it", + "method": "POST", + "required_parameters": [ + { + "name": "smsData", + "type": "STRING", + "description": "XML or JSON containing message and mobile phone numbers", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/simulateCampaign\"\nquerystring = {\"smsData\": smsdata}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createList", + "url": "https://allmysms-v9.p.rapidapi.com/createList", + "description": "Create a list that will be available on your allmysms.com manager", + "method": "POST", + "required_parameters": [ + { + "name": "listData", + "type": "STRING", + "description": "list information, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/createList\"\nquerystring = {\"returnformat\": \"xml or json\", \"listData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/createList\"\nquerystring = {\"returnformat\": \"xml or json\", \"listData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendSms", + "url": "https://allmysms-v9.p.rapidapi.com/sendSms", + "description": "Send SMS", + "method": "POST", + "required_parameters": [ + { + "name": "smsdata", + "type": "STRING", + "description": "contains message and mobile phone numbers", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/sendSms\"\nquerystring = {\"smsdata\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/sendSms\"\nquerystring = {\"smsdata\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "populateList", + "url": "https://allmysms-v9.p.rapidapi.com/populateList", + "description": "Use this method to populate data into your contacts list", + "method": "POST", + "required_parameters": [ + { + "name": "populateData", + "type": "STRING", + "description": "contacts list data, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "return format", + "type": "STRING", + "description": "response format, xml or json", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/populateList\"\nquerystring = {\"return format\": \"\", \"populateData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/populateList\"\nquerystring = {\"return format\": \"\", \"populateData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createSubAccount", + "url": "https://allmysms-v9.p.rapidapi.com/createSubAccount", + "description": "To create a subaccount to your master account", + "method": "POST", + "required_parameters": [ + { + "name": "accountData", + "type": "STRING", + "description": "account data, download documentation for details at http://www.allmysms.com/en/api-sms/", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "returnformat", + "type": "STRING", + "description": "return format, xml or json", + "default": "xml or json" + } + ], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/createSubAccount\"\nquerystring = {\"accountData\": \"\", \"returnformat\": \"xml or json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/createSubAccount\"\nquerystring = {\"accountData\": \"\", \"returnformat\": \"xml or json\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "simulateCampaign", + "url": "https://allmysms-v9.p.rapidapi.com/simulateCampaign", + "description": "Simulate a SMS campaign before really sending it", + "method": "POST", + "required_parameters": [ + { + "name": "smsData", + "type": "STRING", + "description": "XML or JSON containing message and mobile phone numbers", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/simulateCampaign\"\nquerystring = {\"smsData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://allmysms-v9.p.rapidapi.com/simulateCampaign\"\nquerystring = {\"smsData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"allmysms-v9.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/sms_sending/api.py b/toolbench/toolenv/tools/Communication/sms_sending/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ed7b2662e148e17afc81feb4218014bddf11687a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms_sending/api.py @@ -0,0 +1,197 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getinfo(subaccount: str=None, returnformat: str='xml or json', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get information on an account" + subaccount: subaccount to get info for + returnformat: return type + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getinfo" + querystring = {} + if subaccount: + querystring['subAccount'] = subaccount + if returnformat: + querystring['returnformat'] = returnformat + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getblacklist(subaccount: str=None, returnformat: str='xml or json', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get all your blacklisted mobile phone numbers" + subaccount: subaccount to get blacklist for + returnformat: response format, xml or json + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getblacklist" + querystring = {} + if subaccount: + querystring['subAccount'] = subaccount + if returnformat: + querystring['returnformat'] = returnformat + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getpull(campid: str, returnformat: str='xml or json', subaccount: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Recover all the answers (SMS-MO) related to a SMS campaign" + campid: SMS campaign identifier + returnformat: response format, xml or json + subaccount: subaccount concerned by the request + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getpull" + querystring = {'campId': campid, } + if returnformat: + querystring['returnformat'] = returnformat + if subaccount: + querystring['subAccount'] = subaccount + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getsubaccounts(returnformat: str='xml or json', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all the accounts attached to a master account" + returnformat: response format, xml or json + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getsubaccounts" + querystring = {} + if returnformat: + querystring['returnformat'] = returnformat + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getlists(returnformat: str='xml or json', subaccount: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the full list of the account's contacts list" + returnformat: response format, xml or json + subaccount: subaccount concerned by the request + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getlists" + querystring = {} + if returnformat: + querystring['returnformat'] = returnformat + if subaccount: + querystring['subAccount'] = subaccount + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getcontacts(listname: str, returnformat: str='xml or json', subaccount: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Recover all the contacts stored in a contacts list" + listname: Contacts list name + returnformat: response format, xml or json + subaccount: subaccount concerned by the request + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getcontacts" + querystring = {'listName': listname, } + if returnformat: + querystring['returnformat'] = returnformat + if subaccount: + querystring['subAccount'] = subaccount + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getacks(campid: str, returnformat: str='xml or json', subaccount: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "recover all operators acknowledgments" + campid: campaign identifier + returnformat: response format, xml or json + subaccount: subaccount concerned by the request + + """ + url = f"https://allmysms-v9.p.rapidapi.com/getacks" + querystring = {'campId': campid, } + if returnformat: + querystring['returnformat'] = returnformat + if subaccount: + querystring['subAccount'] = subaccount + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "allmysms-v9.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/sms_text_messaging_functions.json b/toolbench/toolenv/tools/Communication/sms_text_messaging_functions.json new file mode 100644 index 0000000000000000000000000000000000000000..d5f51c91928db7f3894cd963608f924b1bea4e3a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/sms_text_messaging_functions.json @@ -0,0 +1,76 @@ +{ + "product_id": "53aa3af9e4b0b60946a2e972", + "tool_description": "Comprehensive SMS messaging functions.\r\n\r\nDirect UK connections, set the sender ID and send texts up to 612 characters. Send SMS to the UK and Europe.\r\nFunctions include: Send SMS, Receive SMS, Schedule SMS, Delivery Reporting, Branch Level Identification.\r\nYou can also control your Text Marketer account programmatically, for example:\r\nInject mobile numbers direct into your account, \r\ncreate new sub accounts and move credits between them\r\nand create new groups. Used by well know brands through to start ups, low cost and reliability is our strength.\r\n\r\nSee read me to give it a try.", + "home_url": "https://rapidapi.com/nickrich/api/sms-text-messaging-functions/", + "name": "SMS Text messaging functions", + "title": "SMS Text messaging functions", + "pricing": "FREE", + "tool_name": "SMS Text messaging functions", + "score": null, + "host": "nickrich-send-an-sms.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://nickrich-send-an-sms.p.rapidapi.com/sms", + "description": "Send an SMS message or text with up to 612 characters", + "method": "POST", + "required_parameters": [ + { + "name": "message", + "type": "STRING", + "description": "The textual content of the message to be sent. Up to 612 characters (see Concatenationbelow) from the GSM alphabet. The SMS characters we can support are documented below. Please ensure that data is also encoded in UTF-8.", + "default": "This is a test message" + }, + { + "name": "mobile_number", + "type": "NUMBER", + "description": "The mobile number of the intended recipient, in international format, e.g. 447777123123. Only one number is allowed. To send a message to multiple recipients, you must call the API for each number", + "default": "447777777777" + }, + { + "name": "originator", + "type": "STRING", + "description": "A string (up to 11 alpha-numeric characters) or an international mobile number (up to 16 digits) of the sender, to be displayed to the recipient, e.g. 447777123123 for a UK number.", + "default": "example" + } + ], + "optional_parameters": [ + { + "name": "validity", + "type": "NUMBER", + "description": "Optional. An integer from 1 to 72, indicating the number of hours during which the message is valid for delivery. Messages which cannot be delivered within the speci\ufb01ed time will fail.", + "default": "72" + }, + { + "name": "custom", + "type": "STRING", + "description": "Optional. An alpha-numeric string, 1-20 characters long, which will be used to 'tag' your outgoing message and will appear in delivery reports, thus facilitating \ufb01ltering of reports.", + "default": "branchA" + }, + { + "name": "schedule", + "type": "STRING", + "description": "Optional. The date/time to schedule the message for sending. ISO 8601 format. Scheduled messages will not use any credits until sent, however the API response will indicate the number of credits that will be used when the message is sent.", + "default": "2011-01-01T01:00:00+00:00" + }, + { + "name": "username", + "type": "STRING", + "description": "The username of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.", + "default": "username" + }, + { + "name": "password", + "type": "STRING", + "description": "The password of the source/master account, for authentication. Not required if you use HTTP Basic Authentication instead.", + "default": "password" + } + ], + "code": "import requests\n\nurl = \"https://nickrich-send-an-sms.p.rapidapi.com/sms\"\nquerystring = {\"message\": \"This is a test message\", \"mobile_number\": \"447777777777\", \"originator\": \"example\", \"validity\": \"72\", \"custom\": \"branchA\", \"schedule\": \"2011-01-01T01:00:00+00:00\", \"username\": \"username\", \"password\": \"password\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nickrich-send-an-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://nickrich-send-an-sms.p.rapidapi.com/sms\"\nquerystring = {\"message\": \"This is a test message\", \"mobile_number\": \"447777777777\", \"originator\": \"example\", \"validity\": \"72\", \"custom\": \"branchA\", \"schedule\": \"2011-01-01T01:00:00+00:00\", \"username\": \"username\", \"password\": \"password\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"nickrich-send-an-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/smslink.json b/toolbench/toolenv/tools/Communication/smslink.json new file mode 100644 index 0000000000000000000000000000000000000000..9eaeed679a95b15fdac4445e6ea50ee7e8e97348 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/smslink.json @@ -0,0 +1,84 @@ +{ + "product_id": "54badf54e4b066926c6a113d", + "tool_description": "With more than 245 million SMS/year, SMSLink is a leading SMS provider in Romania, covering more than 190 countries/territories.", + "home_url": "https://rapidapi.com/SMSLink/api/smslink/", + "name": "SMSLink", + "title": "SMSLink", + "pricing": "FREE", + "tool_name": "SMSLink", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1430, + "avgSuccessRate": 100, + "popularityScore": 6.1, + "__typename": "Score" + }, + "host": "smslink.p.rapidapi.com", + "api_list": [ + { + "name": "Send SMS", + "url": "https://smslink.p.rapidapi.com/sendsms", + "description": "Send SMS", + "method": "GET", + "required_parameters": [ + { + "name": "to", + "type": "STRING", + "description": "Destination Number", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "Message", + "default": "" + }, + { + "name": "connection_id", + "type": "STRING", + "description": "Connection ID", + "default": "" + }, + { + "name": "password", + "type": "STRING", + "description": "Password", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://smslink.p.rapidapi.com/sendsms\"\nquerystring = {\"to\": \"\", \"message\": \"\", \"connection_id\": \"\", \"password\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"smslink.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://smslink.p.rapidapi.com/sendsms\"\nquerystring = {\"to\": \"\", \"message\": \"\", \"connection_id\": \"\", \"password\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"smslink.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Account Balance", + "url": "https://smslink.p.rapidapi.com/credit", + "description": "Account Balance", + "method": "GET", + "required_parameters": [ + { + "name": "password", + "type": "STRING", + "description": "Password", + "default": "" + }, + { + "name": "connection_id", + "type": "STRING", + "description": "Connection ID", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://smslink.p.rapidapi.com/credit\"\nquerystring = {\"password\": \"\", \"connection_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"smslink.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://smslink.p.rapidapi.com/credit\"\nquerystring = {\"password\": \"\", \"connection_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"smslink.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "smslink" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/smslink/api.py b/toolbench/toolenv/tools/Communication/smslink/api.py new file mode 100644 index 0000000000000000000000000000000000000000..cdc0d8d99ff5eaa38cc09f0c28a162b03f7e4375 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/smslink/api.py @@ -0,0 +1,56 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def send_sms(to: str, message: str, connection_id: str, password: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Send SMS" + to: Destination Number + message: Message + connection_id: Connection ID + password: Password + + """ + url = f"https://smslink.p.rapidapi.com/sendsms" + querystring = {'to': to, 'message': message, 'connection_id': connection_id, 'password': password, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "smslink.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def account_balance(password: str, connection_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Account Balance" + password: Password + connection_id: Connection ID + + """ + url = f"https://smslink.p.rapidapi.com/credit" + querystring = {'password': password, 'connection_id': connection_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "smslink.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/smsly_sms_to_india/api.py b/toolbench/toolenv/tools/Communication/smsly_sms_to_india/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3b6ca9d588234f5ab2c79b693a020f8a260c1d35 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/smsly_sms_to_india/api.py @@ -0,0 +1,134 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def delivery_report(phonenumbers: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gives the Delivery report of SMS" + phonenumbers: Multiple MessageID's seperated by Comma + + """ + url = f"https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/report/{phonenumbers}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def send_sms_transactional(message: str, phonenumbers: str, unicode: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Use this endpoint to send Direct Messages to the User. Pricing is based on the noof unit SMS consumed and no of phonenumbers used. 1 unit SMS = 140 characters. For each unit, 1 credit will be used. You will be billed only if the message is sent to the user" + phonenumbers: Type Contact Numbers(10 digits only) seperated by Comma. Maximum 500 Numbers at a time + unicode: Unicode messages are limited to 70 characters/unit SMS. Set value "true" to support all regional languages of india + + """ + url = f"https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/sms/transactional/{phonenumbers}/{message}" + querystring = {} + if unicode: + querystring['unicode'] = unicode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def send_sms_flash_transactional(message: str, phonenumbers: str, unicode: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Send Flash SMS, You will be billed only if the message is sent to the user" + phonenumbers: Type Contact Numbers(10 digits only) seperated by Comma. Maximum 500 Numbers at a time + unicode: Unicode messages are limited to 70 characters/unit SMS. Set value "true" to support all regional languages of india + + """ + url = f"https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/flashsms/transactional/{phonenumbers}/{message}" + querystring = {} + if unicode: + querystring['unicode'] = unicode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def verify_otp(duration: str, digits: str, otp: str, phonenumber: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Use this endpoint to verify the OTP. the Phonenumber, duration and number of digitis should match with Send OTP endpoint. This Endpoint us free to Use" + duration: The Period of valid OTP (in Seconds). (TTL). Should be same sa Send OTP + digits: Number of Digits in OTP. Sould be same as Send OTP + otp: THis the value recived from SMS sent to User. You can also get this by setting getOTP true in Send OTP + + """ + url = f"https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/otp/verify/{phonenumber}/{digits}/{duration}/{otp}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def send_otp(digits: int, duration: int, message: str, phonenumber: str, messagetemplate: str, getotp: str='True', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generate, Send and Get OTP. The best and easiest way of delivering OTPs is through the SMS channel. SMSly offers One-Time Passwords (OTPs) SMS delivery services which can be further used to authenticate a user or for account verification. You will be billed only if message is sent to the user" + digits: Number of Digits in OTP + duration: The Period of valid OTP (in Seconds). (TTL) + message: Write your own template containing OTP_VALUE. this OTP_VALUE will be replaced by the generated OTP. Example: OTP_VALUE is your App verification code. + duration: The Period of valid OTP (in Seconds). (TTL) + digits: Number of DIgits in OTP + messagetemplate: Write your own template containing OTP_VALUE. this OTP_VALUE will be replaced by the generated OTP. Example: OTP_VALUE is your App verification code. + getotp: Get generated OTP in response of the API + + """ + url = f"https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/otp/generate/{phonenumber}" + querystring = {'digits': digits, 'duration': duration, 'message': message, 'messagetemplate': messagetemplate, } + if getotp: + querystring['getOTP'] = getotp + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/soap_to_json.json b/toolbench/toolenv/tools/Communication/soap_to_json.json new file mode 100644 index 0000000000000000000000000000000000000000..6873467bdf0e88439924362580dcc1f85f389845 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/soap_to_json.json @@ -0,0 +1,26 @@ +{ + "product_id": "53aa5af9e4b0a705fcc3259d", + "tool_description": "Soap to JSON online proxy/gateway API enables calling SOAP web services with JSON format.", + "home_url": "https://rapidapi.com/neurospeech/api/soap-to-json/", + "name": "SOAP to JSON", + "title": "SOAP to JSON", + "pricing": "FREEMIUM", + "tool_name": "SOAP to JSON", + "score": null, + "host": "neurospeech-soap-to-json.p.rapidapi.com", + "api_list": [ + { + "name": "Invoke", + "url": "https://neurospeech-soap-to-json.p.rapidapi.com/soap/invoke", + "description": "Invokes (executes) specified method for given WSDL url. Please note, if SOAP Proxy does not exist, it will be created. If WSDL url starts with \"https\" you will be billed for \"Invoke-Secure\".", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://neurospeech-soap-to-json.p.rapidapi.com/soap/invoke\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"neurospeech-soap-to-json.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://neurospeech-soap-to-json.p.rapidapi.com/soap/invoke\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"neurospeech-soap-to-json.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/soap_to_json/api.py b/toolbench/toolenv/tools/Communication/soap_to_json/api.py new file mode 100644 index 0000000000000000000000000000000000000000..5637eb353dd0902e966c079ac5812f8cf3d70ef5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/soap_to_json/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def generate_proxy(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "You can generate proxy code to invoke methods target web service, this method will return generated code that you can analyze." + url: Please give your Web Service WSDL URL here. + + """ + url = f"https://neurospeech-soap-to-json.p.rapidapi.com/soap/generate-proxy" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "neurospeech-soap-to-json.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/spam_filter.json b/toolbench/toolenv/tools/Communication/spam_filter.json new file mode 100644 index 0000000000000000000000000000000000000000..b2d37f5e70a197912b369e9a595ee9e9c41959b5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/spam_filter.json @@ -0,0 +1,24 @@ +{ + "product_id": "api_188b1357-0c23-47ce-b1a8-65cec437a6ce", + "tool_description": "Get SpamAssassin score of an email by submitting it's MIME format. ", + "home_url": "https://rapidapi.com/hamzaiapi/api/spam-filter1/", + "name": "Spam Filter", + "title": "Spam Filter", + "pricing": "FREEMIUM", + "tool_name": "Spam Filter", + "score": null, + "host": "spam-filter1.p.rapidapi.com", + "api_list": [ + { + "name": "Filter", + "url": "https://spam-filter1.p.rapidapi.com/scan", + "description": "Scan MIME parts of an email and get spam filter score", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://spam-filter1.p.rapidapi.com/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"spam-filter1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://spam-filter1.p.rapidapi.com/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"spam-filter1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/spam_scanner.json b/toolbench/toolenv/tools/Communication/spam_scanner.json new file mode 100644 index 0000000000000000000000000000000000000000..317d193fe5b97aea85a40ac48b726f64042ff5ad --- /dev/null +++ b/toolbench/toolenv/tools/Communication/spam_scanner.json @@ -0,0 +1,26 @@ +{ + "product_id": "58ded6a9e4b0c0ee85cc9c65", + "tool_description": "The Spam Scanner API provides a way to scan individual messages or text for Spammy content. This API is primarily designed for email but can be used for any kind of spam, including message spam, comment spam, etc. The data provided is checked against an extensive spam database, and if there's spammy content such as a spammy URL or domain, spammy text or a spammy email address, Spam Scanner will classify the message as spam. This is an early version of the API, so while it is very limited right now, there will be more coming if there is enough interest.", + "home_url": "https://rapidapi.com/matjam/api/spam-scanner/", + "name": "Spam Scanner", + "title": "Spam Scanner", + "pricing": "FREE", + "tool_name": "Spam Scanner", + "score": null, + "host": "matjam-spam-scanner-v1.p.rapidapi.com", + "api_list": [ + { + "name": "ScanMessage", + "url": "https://matjam-spam-scanner-v1.p.rapidapi.com/message", + "description": "Scans a message for spam. Will check the message for spammy URLs/Domains, email addresses, IP addresses, and content.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://matjam-spam-scanner-v1.p.rapidapi.com/message\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"matjam-spam-scanner-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://matjam-spam-scanner-v1.p.rapidapi.com/message\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"matjam-spam-scanner-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/speechapi.json b/toolbench/toolenv/tools/Communication/speechapi.json new file mode 100644 index 0000000000000000000000000000000000000000..27c9e435f07d6cb7f5fbb010b6e0c9a473788717 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/speechapi.json @@ -0,0 +1,59 @@ +{ + "product_id": "552e63eae4b0b69ffe840676", + "tool_description": "Noise suppression and speech classification API.", + "home_url": "https://rapidapi.com/tridemax/api/speechapi/", + "name": "SpeechAPI", + "title": "SpeechAPI", + "pricing": "PAID", + "tool_name": "SpeechAPI", + "score": null, + "host": "sapiens-speechapi.p.rapidapi.com", + "api_list": [ + { + "name": "ClassifySpeech", + "url": "https://sapiens-speechapi.p.rapidapi.com/ClassifySpeech", + "description": "EXPERIMENTAL!!! Finds speech segments inside the file and marks them with attributes, like speaker language. Age, sex, sentiment and speaker dependent hash will come later.", + "method": "POST", + "required_parameters": [ + { + "name": "inputformat", + "type": "STRING", + "description": "Describe format of the file: wav, mp3, flac, vorbis.", + "default": "wav" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sapiens-speechapi.p.rapidapi.com/ClassifySpeech\"\nquerystring = {\"inputformat\": \"wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sapiens-speechapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sapiens-speechapi.p.rapidapi.com/ClassifySpeech\"\nquerystring = {\"inputformat\": \"wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sapiens-speechapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "RemoveNoise", + "url": "https://sapiens-speechapi.p.rapidapi.com/RemoveNoise", + "description": "Removes from audio data everything except the voice. Handles virtually any type of noise, like passing cars, sirens, crying children and so on.", + "method": "POST", + "required_parameters": [ + { + "name": "inputformat", + "type": "STRING", + "description": "Describe format of the input file: wav, mp3, flac, vorbis.", + "default": "wav" + }, + { + "name": "outputformat", + "type": "STRING", + "description": "Describe format of the output file: wav, mp3, flac, vorbis.", + "default": "wav" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sapiens-speechapi.p.rapidapi.com/RemoveNoise\"\nquerystring = {\"inputformat\": \"wav\", \"outputformat\": \"wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sapiens-speechapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sapiens-speechapi.p.rapidapi.com/RemoveNoise\"\nquerystring = {\"inputformat\": \"wav\", \"outputformat\": \"wav\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sapiens-speechapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/stampr.json b/toolbench/toolenv/tools/Communication/stampr.json new file mode 100644 index 0000000000000000000000000000000000000000..de6f00fddb932f313c18bcd97a87c8d844da549e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/stampr.json @@ -0,0 +1,130 @@ +{ + "product_id": "53aa6114e4b0b60946a30cf5", + "tool_description": "Postal mail has finally moved to the cloud. Mail letters online; Free Account; Fast & Secure; Support from Humans.", + "home_url": "https://rapidapi.com/community/api/stampr/", + "name": "Stampr", + "title": "Stampr", + "pricing": "FREE", + "tool_name": "Stampr", + "score": { + "avgServiceLevel": 100, + "avgLatency": 303, + "avgSuccessRate": 25, + "popularityScore": 1.5, + "__typename": "Score" + }, + "host": "community-stampr.p.rapidapi.com", + "api_list": [ + { + "name": "Health", + "url": "https://community-stampr.p.rapidapi.com/health", + "description": "", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/health\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/health\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "3. Create new mailing", + "url": "https://community-stampr.p.rapidapi.com/mailings", + "description": "Returns: Mailing Object", + "method": "POST", + "required_parameters": [ + { + "name": "batch_id", + "type": "STRING", + "description": "The Batch the Mailing belongs to.", + "default": "717" + }, + { + "name": "address", + "type": "STRING", + "description": "The postal mailing address to send the mailing to. (Not Implement Yet. This Can be Ignored) String provided should contain an address that conforms to the USPS CASS system -- http://en.wikipedia.org/wiki/Coding_Accuracy_Support_System", + "default": "500 Montgomery St., San Francisco, CA" + }, + { + "name": "returnaddress", + "type": "STRING", + "description": "The postal return mailing address. (Not Implement Yet. This Can be Ignored) String provided should contain an address that conforms to the USPS CASS system -- http://en.wikipedia.org/wiki/Coding_Accuracy_Support_System", + "default": "500 Montgomery St., San Francisco, CA" + }, + { + "name": "format", + "type": "STRING", + "description": "Valid values (case sensitive): -\"json\" - Key/Value data to be merged and rendered into Batch template -\"html\" - HTML to be rendered and sent as-is -\"pdf\" - PDF to be mailed -\"none\" - No data being provided. Send Batch template as-is. This is the format of the data being provided. -JSON is useful for variable-data mailings (mail merge), when combined with Batch template. -HTML is useful for the same reason, but provides more control to the end-user. -PDF is identical to HTML, only data is rendered as PDF. -None allows many duplicate mailings (Batch template) to be sent.", + "default": "none" + }, + { + "name": "data", + "type": "STRING", + "description": "The data payload in the format specified. Data should be always be base64 encoded. Example: HtmlData = ' hello ' HtmlMailing.Data = Base64(HtmlData) PdfData = io.File('my.pdf') PdfMailing.Data = Base64(PdfData)", + "default": "hello" + } + ], + "optional_parameters": [ + { + "name": "md5", + "type": "STRING", + "description": "To ensure data integrity, an optional MD5 hash of the data can be supplied. See `data` above for details on how to encode data prior to md5 hashing. It is calculated as follows: RawData = Raw_User_Data; Data = Base64( RawData ); Md5Hash = Md5( Data );", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/mailings\"\nquerystring = {\"batch_id\": \"717\", \"address\": \"500 Montgomery St., San Francisco, CA\", \"returnaddress\": \"500 Montgomery St., San Francisco, CA\", \"format\": \"none\", \"data\": \"hello\", \"md5\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/mailings\"\nquerystring = {\"batch_id\": \"717\", \"address\": \"500 Montgomery St., San Francisco, CA\", \"returnaddress\": \"500 Montgomery St., San Francisco, CA\", \"format\": \"none\", \"data\": \"hello\", \"md5\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "2. Create new batch", + "url": "https://community-stampr.p.rapidapi.com/batches", + "description": "Create a new, empty batch container to be used with Mailings.", + "method": "POST", + "required_parameters": [ + { + "name": "config_id", + "type": "STRING", + "description": "The configuration all the mailings in this batch will conform to.", + "default": "719" + } + ], + "optional_parameters": [ + { + "name": "template", + "type": "STRING", + "description": "This will be the base HTML template used for all mailings created in this batch. Templates use mustache syntax. -- Details: http://mustache.github.io/ Example Template: \"Hello {{name}}!\" And then `$name` can be sent via the Mailing and the template will be merged with the data and rendered.", + "default": "" + }, + { + "name": "status", + "type": "STRING", + "description": "Valid values (case sensitive): * \"processing\" (default, if excluded) * \"hold\" When mailings are created, they are printed and shipped as soon as possible. Set a batch to \"hold\" and mailing will not be printed until the batch status is changed to processing.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/batches\"\nquerystring = {\"config_id\": \"719\", \"template\": \"\", \"status\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/batches\"\nquerystring = {\"config_id\": \"719\", \"template\": \"\", \"status\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "1. Create new config", + "url": "https://community-stampr.p.rapidapi.com/configs", + "description": "Create a new mailing configuration to be used with Batches.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/configs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-stampr.p.rapidapi.com/configs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-stampr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "stampr" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/stampr/api.py b/toolbench/toolenv/tools/Communication/stampr/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2b5e593c9b5a0e2d3c1e44652de173b46cb3e13f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/stampr/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def health(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://community-stampr.p.rapidapi.com/health" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-stampr.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/std_codes_india.json b/toolbench/toolenv/tools/Communication/std_codes_india.json new file mode 100644 index 0000000000000000000000000000000000000000..3c66606602c99a41656a355cde42e2e88f85bf73 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/std_codes_india.json @@ -0,0 +1,32 @@ +{ + "product_id": "5638bf4fe4b0ff9f7ea25835", + "tool_description": "Find an STD Code of any City or State of India OR find the location of any STD Code.", + "home_url": "https://rapidapi.com/navii/api/std-codes-india/", + "name": "STD Codes - India", + "title": "STD Codes - India", + "pricing": "FREE", + "tool_name": "STD Codes - India", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1155, + "avgSuccessRate": 80, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "std.p.rapidapi.com", + "api_list": [ + { + "name": "SEARCH", + "url": "https://std.p.rapidapi.com/", + "description": "STD Code or Place Name", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://std.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"std.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://std.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"std.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/structestapi.json b/toolbench/toolenv/tools/Communication/structestapi.json new file mode 100644 index 0000000000000000000000000000000000000000..d210f33c4c4d7e428ccde3a5ae4db3d4294b3dea --- /dev/null +++ b/toolbench/toolenv/tools/Communication/structestapi.json @@ -0,0 +1,44 @@ +{ + "tool_name":"StrucTestAPI", + "tool_description":"a test api", + "title":"StrucTestAPI", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/strucrazvan98/api/structestapi/", + "host":"structestapi.p.rapidapi.com", + "api_list":[ + { + "name":"getToken", + "url":"https://structestapi.p.rapidapi.com/token", + "description":"Generates a token", + "method":"GET", + "required_parameters":[ + { + "name":"username", + "type":"STRING", + "description":"", + "default":"" + }, + { + "name":"password", + "type":"STRING", + "description":"", + "default":"" + } + ], + "optional_parameters":[ + { + "name":"token", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://structestapi.p.rapidapi.com/token\"\nquerystring = {\"username\": username, \"password\": password}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"structestapi.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/structestapi/api.py b/toolbench/toolenv/tools/Communication/structestapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2c4ec5bda382b21ca699a6bdd171c2b277542384 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/structestapi/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def gettoken(username: str, password: str, token: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generates a token" + + """ + url = f"https://structestapi.p.rapidapi.com/token" + querystring = {'username': username, 'password': password, } + if token: + querystring['token'] = token + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "structestapi.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/super_e_mail_verifier/api.py b/toolbench/toolenv/tools/Communication/super_e_mail_verifier/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d69351ad1a65e3ae53ef0a8fc30094d0e284fb33 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/super_e_mail_verifier/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def manual_invoke(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Dispara uma execução de verificação de email." + email: O parâmetro de caminho relativo do gatilho. + + """ + url = f"https://super-e-mail-verifier.p.rapidapi.com/email/{email}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "super-e-mail-verifier.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/swatch_internet_time/api.py b/toolbench/toolenv/tools/Communication/swatch_internet_time/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7ee807b2ac9c8ccc460ccfea8ac74b4c7c1fa03e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/swatch_internet_time/api.py @@ -0,0 +1,71 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v1_internettime(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://tendersoft-swatch-internet-time-v1.p.rapidapi.com/v1/internettime" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tendersoft-swatch-internet-time-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def v1_internettime_beats(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://tendersoft-swatch-internet-time-v1.p.rapidapi.com/v1/internettime/beats" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tendersoft-swatch-internet-time-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def more_at_api_tendersoft_pl(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://tendersoft-swatch-internet-time-v1.p.rapidapi.com/more/at/api.tendersoft.pl" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tendersoft-swatch-internet-time-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/telegram_bot_chat_sender.json b/toolbench/toolenv/tools/Communication/telegram_bot_chat_sender.json new file mode 100644 index 0000000000000000000000000000000000000000..72dea4b27bf2f70ca850b4c024e09d009ea14d07 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/telegram_bot_chat_sender.json @@ -0,0 +1,39 @@ +{ + "product_id": "api_f103f94c-e7ce-4ec8-b53d-3d40b7ac7b11", + "tool_description": "Use this telegram bot to send your message to any group!", + "home_url": "https://rapidapi.com/rgtimothy/api/telegram-bot-chat-sender/", + "name": "Telegram Bot Chat Sender", + "title": "Telegram Bot Chat Sender", + "pricing": "FREEMIUM", + "tool_name": "Telegram Bot Chat Sender", + "score": null, + "host": "telegram-bot-chat-sender.p.rapidapi.com", + "api_list": [ + { + "name": "SendMessage", + "url": "https://telegram-bot-chat-sender.p.rapidapi.com/api/telegram-bot/sendMessage", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "chat_id", + "type": "NUMBER", + "description": "", + "default": 353776079 + }, + { + "name": "text", + "type": "STRING", + "description": "", + "default": "hello" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://telegram-bot-chat-sender.p.rapidapi.com/api/telegram-bot/sendMessage\"\nquerystring = {\"chat_id\": 353776079, \"text\": \"hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telegram-bot-chat-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://telegram-bot-chat-sender.p.rapidapi.com/api/telegram-bot/sendMessage\"\nquerystring = {\"chat_id\": 353776079, \"text\": \"hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telegram-bot-chat-sender.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/telesign_phoneid.json b/toolbench/toolenv/tools/Communication/telesign_phoneid.json new file mode 100644 index 0000000000000000000000000000000000000000..d78894ca7b61c3e608896965467ef8af709133fc --- /dev/null +++ b/toolbench/toolenv/tools/Communication/telesign_phoneid.json @@ -0,0 +1,100 @@ +{ + "product_id": "5ab58615e4b084deb4eaac11", + "tool_description": "Detailed and actionable global phone number and subscriber data intelligence to strengthen authentications, evaluate fraud risks, and enhance the user experience", + "home_url": "https://rapidapi.com/telesign/api/telesign-phoneid/", + "name": "TeleSign PhoneID", + "title": "TeleSign PhoneID", + "pricing": "PAID", + "tool_name": "TeleSign PhoneID", + "score": null, + "host": "telesign-telesign-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Contact Add-on", + "url": "https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}", + "description": "The Contact add-on allows you to retrieve the name and address associated with the phone number you submit, without requesting explicit consent from your end user", + "method": "POST", + "required_parameters": [ + { + "name": "complete_number", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}\"\nquerystring = {\"complete_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}\"\nquerystring = {\"complete_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Subscriber Status Add-on", + "url": "https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "complete_number", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}\"\nquerystring = {\"complete_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}\"\nquerystring = {\"complete_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Device Info Add-on", + "url": "https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "complete_number", + "type": "STRING", + "description": "The Device Info add-on allows you to provide an end-user phone number and receive its phone manufacturer and model to detect fraud or understand the value or risk of the device holder and adjust content and marketing strategies per device.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}\"\nquerystring = {\"complete_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_number}\"\nquerystring = {\"complete_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "PhoneID", + "url": "https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_phone_number}", + "description": "Enter a phone number to receive detailed information about carrier, location, and other details.", + "method": "POST", + "required_parameters": [ + { + "name": "complete_phone_number", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "account_lifecycle_event", + "type": "STRING", + "description": "The account lifecycle event parameter allows you to send information about what stage an end user was in when you retrieved information about their phone number. Acceptable values for this parameter are - create - For the creation of a new account. sign-in - For when an end user signs in to their account. transact - For when an end user completes a transaction within their account. update - For when an update is performed, such as an update of account information or similar. delete - For when an account is deleted.", + "default": "" + }, + { + "name": "originating_ip", + "type": "STRING", + "description": "Your end user\u2019s IP address (do not send your own Ip address). IPv4 and IPv6 are supported. For IPv4, the value must be in the format defined by the Internet Engineering Task Force (IETF) in the Internet-Draft doucment titled Internet Protocol. For IPv6, the value must be in the format defined by the IETF in the Internet-Draft document titled IP Version 6 Addressing Architecture.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_phone_number}\"\nquerystring = {\"account_lifecycle_event\": \"\", \"originating_ip\": \"\", \"complete_phone_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://telesign-telesign-v1.p.rapidapi.com/phoneid/{complete_phone_number}\"\nquerystring = {\"account_lifecycle_event\": \"\", \"originating_ip\": \"\", \"complete_phone_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/telesign_score.json b/toolbench/toolenv/tools/Communication/telesign_score.json new file mode 100644 index 0000000000000000000000000000000000000000..9618d2d452db7c021654f2b3ede87717b8246097 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/telesign_score.json @@ -0,0 +1,64 @@ +{ + "product_id": "5ad523b0e4b00687d357d4e7", + "tool_description": "Delivers reputation scoring based on phone number intelligence, traffic patterns, machine learning and a global data consortium", + "home_url": "https://rapidapi.com/telesign/api/telesign-score/", + "name": "TeleSign Score", + "title": "TeleSign Score", + "pricing": "PAID", + "tool_name": "TeleSign Score", + "score": null, + "host": "telesign-telesign-score-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Score", + "url": "https://telesign-telesign-score-v1.p.rapidapi.com/score/{complete_phone_number}", + "description": "Send a request that a phone number be evaluated to see whether it is potentially used for fraudulent activities.", + "method": "POST", + "required_parameters": [ + { + "name": "account_lifecycle_event", + "type": "STRING", + "description": "The account lifecycle event parameter allows you to send information about what stage an end user was in when you retrieved information about their phone number. Acceptable values for this parameter are - create - For the creation of a new account. sign-in - For when an end user signs in to their account. transact - For when an end user completes a transaction within their account. update - For when an update is performed, such as an update of account information or similar. delete - For when an account is deleted.", + "default": "" + }, + { + "name": "complete_phone_number", + "type": "STRING", + "description": "The phone number you want to collect information about. Provide the entire phone number with no spaces or special characters.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "originating_ip", + "type": "STRING", + "description": "Your end user\u2019s IP address (do not send your own Ip address). IPv4 and IPv6 are supported. For IPv4, the value must be in the format defined by the Internet Engineering Task Force (IETF) in the Internet-Draft doucment titled Internet Protocol. For IPv6, the value must be in the format defined by the IETF in the Internet-Draft document titled IP Version 6 Addressing Arcitecture.", + "default": "" + }, + { + "name": "account_id", + "type": "STRING", + "description": "Your end user\u2019s account ID. This value is case sensitive, a string, must be created with Unicode characters, and encoded as UTF-8.", + "default": "" + }, + { + "name": "email_address", + "type": "STRING", + "description": "Your end user\u2019s email address. This value is case sensitive, a string, must be created with Unicode characters, and encoded as UTF-8.", + "default": "" + }, + { + "name": "device_id", + "type": "STRING", + "description": "Your end user\u2019s device ID. This value is case sensitive, a string, must be greated with Unicode characters, and encoded as UTF-8.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://telesign-telesign-score-v1.p.rapidapi.com/score/{complete_phone_number}\"\nquerystring = {\"originating_ip\": \"\", \"account_id\": \"\", \"email_address\": \"\", \"account_lifecycle_event\": \"\", \"device_id\": \"\", \"complete_phone_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-score-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://telesign-telesign-score-v1.p.rapidapi.com/score/{complete_phone_number}\"\nquerystring = {\"originating_ip\": \"\", \"account_id\": \"\", \"email_address\": \"\", \"account_lifecycle_event\": \"\", \"device_id\": \"\", \"complete_phone_number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"telesign-telesign-score-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/telnyx.json b/toolbench/toolenv/tools/Communication/telnyx.json new file mode 100644 index 0000000000000000000000000000000000000000..422a203d33f901c95348bfae6ae050d0518ed0ae --- /dev/null +++ b/toolbench/toolenv/tools/Communication/telnyx.json @@ -0,0 +1,4672 @@ +{ + "product_id": "614", + "tool_description": "Telnyx is a VoIP telecom service provider.", + "home_url": "https://rapidapi.com/stefan.skliarov/api/Telnyx/", + "name": "Telnyx", + "title": "Telnyx", + "pricing": "FREE", + "tool_name": "Telnyx", + "score": { + "avgServiceLevel": 0, + "avgLatency": 127258, + "avgSuccessRate": 0, + "popularityScore": 4.7, + "__typename": "Score" + }, + "host": "Telnyxstefan-skliarovV1.p.rapidapi.com", + "api_list": [ + { + "name": "addCommentToPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/addCommentToPortRequest", + "description": "Add comment to a given port request", + "method": "POST", + "required_parameters": [ + { + "name": "comment", + "type": "STRING", + "description": "Body of the comment", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "subrequestId", + "type": "STRING", + "description": "Id of the subrequest", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/addCommentToPortRequest\"\nquerystring = {\"comment\": \"\", \"username\": \"\", \"apiToken\": \"\", \"subrequestId\": \"\", \"portRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/addCommentToPortRequest\"\nquerystring = {\"comment\": \"\", \"username\": \"\", \"apiToken\": \"\", \"subrequestId\": \"\", \"portRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "checkPhoneNumberPortability", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/checkPhoneNumberPortability", + "description": "Check a list of numbers to see if they're portable.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "phoneNumbers", + "type": "LIST", + "description": "Phone numbers to check", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/checkPhoneNumberPortability\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"phoneNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/checkPhoneNumberPortability\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"phoneNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "checkUpdateRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/checkUpdateRequest", + "description": "Get status of mass numbers update", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "updateRequestId", + "type": "STRING", + "description": "Id of the mass numbers update request", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/checkUpdateRequest\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"updateRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/checkUpdateRequest\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"updateRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createAddress", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createAddress", + "description": "Create an Address", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "firstName", + "type": "STRING", + "description": "First name", + "default": "" + }, + { + "name": "streetAddress", + "type": "STRING", + "description": "Address first line", + "default": "" + }, + { + "name": "locality", + "type": "STRING", + "description": "Locality (city for US addresses)", + "default": "" + }, + { + "name": "lastName", + "type": "STRING", + "description": "Last name", + "default": "" + }, + { + "name": "countryCode", + "type": "STRING", + "description": "2-digit country code", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "phoneNumber", + "type": "STRING", + "description": "Phone number", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "businessName", + "type": "STRING", + "description": "Business name", + "default": "" + }, + { + "name": "addressBook", + "type": "SELECT", + "description": "Indicates if the address should be considered part of your 'address book' or not; addresses that are in your address book are shown by default when listing addresses, those not in your address book are not. ", + "default": "" + }, + { + "name": "postalCode", + "type": "STRING", + "description": "Postal code", + "default": "" + }, + { + "name": "extendedAddress", + "type": "STRING", + "description": "Address second line", + "default": "" + }, + { + "name": "administrativeArea", + "type": "STRING", + "description": "Administrative area (state for US addresses)", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createAddress\"\nquerystring = {\"apiToken\": \"\", \"firstName\": \"\", \"businessName\": \"\", \"addressBook\": \"\", \"postalCode\": \"\", \"streetAddress\": \"\", \"locality\": \"\", \"extendedAddress\": \"\", \"lastName\": \"\", \"countryCode\": \"\", \"username\": \"\", \"phoneNumber\": \"\", \"administrativeArea\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createAddress\"\nquerystring = {\"apiToken\": \"\", \"firstName\": \"\", \"businessName\": \"\", \"addressBook\": \"\", \"postalCode\": \"\", \"streetAddress\": \"\", \"locality\": \"\", \"extendedAddress\": \"\", \"lastName\": \"\", \"countryCode\": \"\", \"username\": \"\", \"phoneNumber\": \"\", \"administrativeArea\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createAuthorizedIp", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createAuthorizedIp", + "description": "Creates a new Authorized IP.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "ipAddress", + "type": "STRING", + "description": "Valid IP address", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createAuthorizedIp\"\nquerystring = {\"username\": \"\", \"ipAddress\": \"\", \"connectionId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createAuthorizedIp\"\nquerystring = {\"username\": \"\", \"ipAddress\": \"\", \"connectionId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createCdrRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createCdrRequest", + "description": "Create a new cdr_request", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "startTime", + "type": "DATEPICKER", + "description": "Report start time", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "endTime", + "type": "DATEPICKER", + "description": "Report end time. Must be less than 24 hours from now", + "default": "" + }, + { + "name": "reportName", + "type": "STRING", + "description": "Name of the report", + "default": "" + }, + { + "name": "callTypes", + "type": "LIST", + "description": "Inbound = 1, Outbound = 2", + "default": "" + }, + { + "name": "recordTypes", + "type": "LIST", + "description": "Complete = 1, Incomplete = 2, Errors = 3", + "default": "" + }, + { + "name": "connections", + "type": "LIST", + "description": "Array of connection IDs", + "default": "" + }, + { + "name": "filters", + "type": "LIST", + "description": "The 'filters' field specifies a list of query criteria", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createCdrRequest\"\nquerystring = {\"endTime\": \"\", \"username\": \"\", \"startTime\": \"\", \"apiToken\": \"\", \"reportName\": \"\", \"callTypes\": \"\", \"recordTypes\": \"\", \"connections\": \"\", \"filters\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createCdrRequest\"\nquerystring = {\"endTime\": \"\", \"username\": \"\", \"startTime\": \"\", \"apiToken\": \"\", \"reportName\": \"\", \"callTypes\": \"\", \"recordTypes\": \"\", \"connections\": \"\", \"filters\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createConnectionCredentials", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createConnectionCredentials", + "description": "Sets the connection given by connectionId to use credentials-based authentication. This will remove any other authentication type set for the connection.", + "method": "POST", + "required_parameters": [ + { + "name": "connectionUsername", + "type": "STRING", + "description": "Username that will be sent when using the connection. Must be globally unique. Case-insensitive.", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionPassword", + "type": "STRING", + "description": "Password that will be sent when using the connection. Must be at least 8 characters or more in length.", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createConnectionCredentials\"\nquerystring = {\"connectionUsername\": \"\", \"username\": \"\", \"apiToken\": \"\", \"connectionPassword\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createConnectionCredentials\"\nquerystring = {\"connectionUsername\": \"\", \"username\": \"\", \"apiToken\": \"\", \"connectionPassword\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createDraftPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createDraftPortRequest", + "description": "Creates a new draft port request", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "phoneNumbers", + "type": "LIST", + "description": "List of phone numbers to port", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createDraftPortRequest\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"phoneNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createDraftPortRequest\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"phoneNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createE911Address", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createE911Address", + "description": "Creating an E911 Address requires the address fields to exactly match E911 Service records. All capital letters, and no punctuation is generally sufficient.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "line1", + "type": "STRING", + "description": "Address first line", + "default": "" + }, + { + "name": "postalCode", + "type": "STRING", + "description": "Address postal code", + "default": "" + }, + { + "name": "city", + "type": "STRING", + "description": "Address city", + "default": "" + }, + { + "name": "state", + "type": "STRING", + "description": "Address state", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "lastName", + "type": "STRING", + "description": "Required if business name not given", + "default": "" + }, + { + "name": "firstName", + "type": "STRING", + "description": "Required if business name not given", + "default": "" + }, + { + "name": "businessName", + "type": "STRING", + "description": "Required if personal name not given", + "default": "" + }, + { + "name": "line2", + "type": "STRING", + "description": "Address second line", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createE911Address\"\nquerystring = {\"username\": \"\", \"line1\": \"\", \"postalCode\": \"\", \"city\": \"\", \"lastName\": \"\", \"state\": \"\", \"apiToken\": \"\", \"firstName\": \"\", \"businessName\": \"\", \"line2\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createE911Address\"\nquerystring = {\"username\": \"\", \"line1\": \"\", \"postalCode\": \"\", \"city\": \"\", \"lastName\": \"\", \"state\": \"\", \"apiToken\": \"\", \"firstName\": \"\", \"businessName\": \"\", \"line2\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createFQDN", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createFQDN", + "description": "Creates a new FQDN.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "dnsRecordType", + "type": "SELECT", + "description": "the DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used.", + "default": "" + }, + { + "name": "fqdn", + "type": "STRING", + "description": "Your FQDN", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "port", + "type": "NUMBER", + "description": "Port number", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createFQDN\"\nquerystring = {\"apiToken\": \"\", \"connectionId\": \"\", \"dnsRecordType\": \"\", \"port\": \"\", \"fqdn\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createFQDN\"\nquerystring = {\"apiToken\": \"\", \"connectionId\": \"\", \"dnsRecordType\": \"\", \"port\": \"\", \"fqdn\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createMessagingProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createMessagingProfile", + "description": "Use this endpoint to create a new messaging profile, required for SMS-capable numbers.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Name of the profile", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "failoverUrl", + "type": "STRING", + "description": "Failover url of the webhook. You can use our service as webhookUrl. https://webhooks.rapidapi.io/api/message/Telnyx/webhookEvent/{projectName}/{projectKey}. See details above", + "default": "" + }, + { + "name": "url", + "type": "STRING", + "description": "Url of the webhook. You can use our service as webhookUrl. https://webhooks.rapidapi.io/api/message/Telnyx/webhookEvent/{projectName}/{projectKey}. See details above", + "default": "" + }, + { + "name": "method", + "type": "SELECT", + "description": "Method of the profile", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createMessagingProfile\"\nquerystring = {\"username\": \"\", \"name\": \"\", \"failoverUrl\": \"\", \"apiToken\": \"\", \"url\": \"\", \"connectionId\": \"\", \"method\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createMessagingProfile\"\nquerystring = {\"username\": \"\", \"name\": \"\", \"failoverUrl\": \"\", \"apiToken\": \"\", \"url\": \"\", \"connectionId\": \"\", \"method\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createNewConection", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNewConection", + "description": "Create new connection", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionName", + "type": "STRING", + "description": "Name of the connection", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "timeout1xx", + "type": "NUMBER", + "description": "Time(sec) before aborting if connection is not made (min: 1, max: 20)", + "default": "" + }, + { + "name": "thirdPartyControlEnabled", + "type": "SELECT", + "description": "Applies to calls sent TO this connection.", + "default": "" + }, + { + "name": "sipCompactHeadersEnabled", + "type": "SELECT", + "description": "Defaults to true", + "default": "" + }, + { + "name": "aniOverrideType", + "type": "SELECT", + "description": "Specifies when we apply your ani_override setting. Only applies when ani_override is not blank.", + "default": "" + }, + { + "name": "active", + "type": "SELECT", + "description": "Defaults to true", + "default": "" + }, + { + "name": "aniOverride", + "type": "STRING", + "description": "Set a phone number as the ani_override value to override caller id number on outbound calls", + "default": "" + }, + { + "name": "privacyZoneEnabled", + "type": "SELECT", + "description": "By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it.", + "default": "" + }, + { + "name": "timeout2xx", + "type": "NUMBER", + "description": "Time(sec) before aborting if call is unanswered (min: 1, max: 600)", + "default": "" + }, + { + "name": "defaultSecondaryAuthorizedIpId", + "type": "NUMBER", + "description": "The default secondary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.", + "default": "" + }, + { + "name": "encodeContactHeaderEnabled", + "type": "SELECT", + "description": "Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios", + "default": "" + }, + { + "name": "instantRingbackEnabled", + "type": "SELECT", + "description": "When set, ringback will not wait for indication before sending ringback tone to calling party.", + "default": "" + }, + { + "name": "outboundLocalization", + "type": "STRING", + "description": "A 2-character country code specifying the country whose national dialing rules should be used. For example, if set to `US` then any US number can be dialed without preprending +1 to the number. When left blank, Telnyx will try US and GB dialing rules, in that order, by default.", + "default": "" + }, + { + "name": "anchorsiteOverride", + "type": "SELECT", + "description": "\"Latency\" directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.", + "default": "" + }, + { + "name": "defaultRoutingMethod", + "type": "SELECT", + "description": "Default routing method to be used when a number is associated with the connection.", + "default": "" + }, + { + "name": "dnisNumberFormat", + "type": "SELECT", + "description": "E.164 = 0, Strip-1 = 1, Strip-2 = 2", + "default": "" + }, + { + "name": "aniNumberFormat", + "type": "SELECT", + "description": "This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls.", + "default": "" + }, + { + "name": "outboundGenerateRingbackTone", + "type": "SELECT", + "description": "Generate ringback tone through 183 session progress message with early media", + "default": "" + }, + { + "name": "transportProtocol", + "type": "SELECT", + "description": "One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication.", + "default": "" + }, + { + "name": "dtmfType", + "type": "SELECT", + "description": "Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.", + "default": "" + }, + { + "name": "inboundGenerateRingbackTone", + "type": "SELECT", + "description": "Generate ringback tone through 183 session progress message with early media", + "default": "" + }, + { + "name": "defaultTertiaryAuthorizedIpId", + "type": "NUMBER", + "description": "The default tertiary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.", + "default": "" + }, + { + "name": "defaultPrimaryAuthorizedIpId", + "type": "NUMBER", + "description": "The default primary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.", + "default": "" + }, + { + "name": "t38ReinviteSource", + "type": "SELECT", + "description": "This setting only affects connections with Fax-type Outbound Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite. By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite.", + "default": "" + }, + { + "name": "prackEnabled", + "type": "SELECT", + "description": "Enable PRACK messages as defined in RFC3262", + "default": "" + }, + { + "name": "encryptedMedia", + "type": "SELECT", + "description": "Enable use of SRTP or ZRTP for encryption. Valid values are those listed or null. Cannot be set to non-null if the transport_portocol is TLS.", + "default": "" + }, + { + "name": "isupHeadersEnabled", + "type": "SELECT", + "description": "When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) Defaults to false.", + "default": "" + }, + { + "name": "codecs", + "type": "LIST", + "description": "Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNewConection\"\nquerystring = {\"username\": \"\", \"timeout1xx\": \"\", \"thirdPartyControlEnabled\": \"\", \"sipCompactHeadersEnabled\": \"\", \"aniOverrideType\": \"\", \"active\": \"\", \"apiToken\": \"\", \"aniOverride\": \"\", \"connectionName\": \"\", \"privacyZoneEnabled\": \"\", \"timeout2xx\": \"\", \"defaultSecondaryAuthorizedIpId\": \"\", \"encodeContactHeaderEnabled\": \"\", \"instantRingbackEnabled\": \"\", \"outboundLocalization\": \"\", \"anchorsiteOverride\": \"\", \"defaultRoutingMethod\": \"\", \"dnisNumberFormat\": \"\", \"aniNumberFormat\": \"\", \"outboundGenerateRingbackTone\": \"\", \"transportProtocol\": \"\", \"dtmfType\": \"\", \"inboundGenerateRingbackTone\": \"\", \"defaultTertiaryAuthorizedIpId\": \"\", \"defaultPrimaryAuthorizedIpId\": \"\", \"t38ReinviteSource\": \"\", \"prackEnabled\": \"\", \"encryptedMedia\": \"\", \"isupHeadersEnabled\": \"\", \"codecs\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNewConection\"\nquerystring = {\"username\": \"\", \"timeout1xx\": \"\", \"thirdPartyControlEnabled\": \"\", \"sipCompactHeadersEnabled\": \"\", \"aniOverrideType\": \"\", \"active\": \"\", \"apiToken\": \"\", \"aniOverride\": \"\", \"connectionName\": \"\", \"privacyZoneEnabled\": \"\", \"timeout2xx\": \"\", \"defaultSecondaryAuthorizedIpId\": \"\", \"encodeContactHeaderEnabled\": \"\", \"instantRingbackEnabled\": \"\", \"outboundLocalization\": \"\", \"anchorsiteOverride\": \"\", \"defaultRoutingMethod\": \"\", \"dnisNumberFormat\": \"\", \"aniNumberFormat\": \"\", \"outboundGenerateRingbackTone\": \"\", \"transportProtocol\": \"\", \"dtmfType\": \"\", \"inboundGenerateRingbackTone\": \"\", \"defaultTertiaryAuthorizedIpId\": \"\", \"defaultPrimaryAuthorizedIpId\": \"\", \"t38ReinviteSource\": \"\", \"prackEnabled\": \"\", \"encryptedMedia\": \"\", \"isupHeadersEnabled\": \"\", \"codecs\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createNumberOrder", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNumberOrder", + "description": "Creates a number order. All numbers included in the order should have appeared in a NumberSearch within 1 day ago.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "requestedNumbersWithMetadata", + "type": "LIST", + "description": "Number with metadata", + "default": "" + }, + { + "name": "requestedInexplicitNumbers", + "type": "LIST", + "description": "JSON object with explicit number properties", + "default": "" + }, + { + "name": "requestedNumbers", + "type": "LIST", + "description": "Requested numbers", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNumberOrder\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"requestedNumbersWithMetadata\": \"\", \"requestedInexplicitNumbers\": \"\", \"requestedNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNumberOrder\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"requestedNumbersWithMetadata\": \"\", \"requestedInexplicitNumbers\": \"\", \"requestedNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createNumberSearch", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNumberSearch", + "description": "Creates number search", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "searchType", + "type": "SELECT", + "description": "NPA/NXX = 1, Region = 2, Tollfree = 3, Advanced = 4", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "searchDescriptor", + "type": "JSON", + "description": "JSOn object with search descriptor of proper type", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "limit", + "type": "NUMBER", + "description": "Search limit", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNumberSearch\"\nquerystring = {\"apiToken\": \"\", \"searchType\": \"\", \"limit\": \"\", \"username\": \"\", \"searchDescriptor\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createNumberSearch\"\nquerystring = {\"apiToken\": \"\", \"searchType\": \"\", \"limit\": \"\", \"username\": \"\", \"searchDescriptor\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createOutboundProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createOutboundProfile", + "description": "Creates a new Outbound Profile.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "servicePlan", + "type": "SELECT", + "description": "US = 1, International = 2", + "default": "" + }, + { + "name": "trafficType", + "type": "SELECT", + "description": "Conversational = 1, Fax = 3", + "default": "" + }, + { + "name": "connectionIds", + "type": "LIST", + "description": "Connection IDs", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "translationRule", + "type": "STRING", + "description": "Only configure if advised by Telnyx support", + "default": "" + }, + { + "name": "ports", + "type": "NUMBER", + "description": "Must be no more than your concurrent call limit. Null means no limit.", + "default": "" + }, + { + "name": "cpsLimitIncrease", + "type": "NUMBER", + "description": "Increase cps limit", + "default": "" + }, + { + "name": "active", + "type": "SELECT", + "description": "Defaults to true", + "default": "" + }, + { + "name": "filterUsagePaymentMethod", + "type": "SELECT", + "description": "Optional filtering parameter. If present, only numbers that have the filterUsagePaymentMethod that at matches the string given will be returned. Matching is case-sensitive and only specified values are allowed.", + "default": "" + }, + { + "name": "whitelistedDestinationFormat", + "type": "SELECT", + "description": "Format of your whitelisted destinations.", + "default": "" + }, + { + "name": "tagList", + "type": "LIST", + "description": "List of tags", + "default": "" + }, + { + "name": "whitelistedDestinations", + "type": "LIST", + "description": "Whitelisted destinations", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createOutboundProfile\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"servicePlan\": \"\", \"translationRule\": \"\", \"ports\": \"\", \"trafficType\": \"\", \"cpsLimitIncrease\": \"\", \"active\": \"\", \"filterUsagePaymentMethod\": \"\", \"whitelistedDestinationFormat\": \"\", \"connectionIds\": \"\", \"tagList\": \"\", \"whitelistedDestinations\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createOutboundProfile\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"servicePlan\": \"\", \"translationRule\": \"\", \"ports\": \"\", \"trafficType\": \"\", \"cpsLimitIncrease\": \"\", \"active\": \"\", \"filterUsagePaymentMethod\": \"\", \"whitelistedDestinationFormat\": \"\", \"connectionIds\": \"\", \"tagList\": \"\", \"whitelistedDestinations\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createUsageReport", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/createUsageReport", + "description": "Create a new usage report", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "startTime", + "type": "DATEPICKER", + "description": "Report start time", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "aggregationType", + "type": "SELECT", + "description": "Aggregate: All = 0, By Connection = 1", + "default": "" + }, + { + "name": "endTime", + "type": "DATEPICKER", + "description": "Report end time. Must be less than 24 hours from now", + "default": "" + }, + { + "name": "connections", + "type": "LIST", + "description": "Array of connection IDs", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createUsageReport\"\nquerystring = {\"aggregationType\": \"\", \"apiToken\": \"\", \"username\": \"\", \"startTime\": \"\", \"endTime\": \"\", \"connections\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/createUsageReport\"\nquerystring = {\"aggregationType\": \"\", \"apiToken\": \"\", \"username\": \"\", \"startTime\": \"\", \"endTime\": \"\", \"connections\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteAddress", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteAddress", + "description": "Delete a single Address based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "addressId", + "type": "STRING", + "description": "Id of the address", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteAddress\"\nquerystring = {\"username\": \"\", \"addressId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteAddress\"\nquerystring = {\"username\": \"\", \"addressId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteAuthorizedIp", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteAuthorizedIp", + "description": "Deletes existing Authorized IP.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "authorizedIpId", + "type": "STRING", + "description": "Id of the authorized ip", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteAuthorizedIp\"\nquerystring = {\"apiToken\": \"\", \"authorizedIpId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteAuthorizedIp\"\nquerystring = {\"apiToken\": \"\", \"authorizedIpId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteCdrRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteCdrRequest", + "description": "Deletes a CDR request.", + "method": "POST", + "required_parameters": [ + { + "name": "cdrRequestId", + "type": "STRING", + "description": "Id of the cdr request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteCdrRequest\"\nquerystring = {\"cdrRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteCdrRequest\"\nquerystring = {\"cdrRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteConnection", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteConnection", + "description": "Deletes a single connection based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteConnection\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteConnection\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteE911Address", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteE911Address", + "description": "Deletes a single E911 Address based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "e911AddressId", + "type": "STRING", + "description": "Id of the e911 address", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteE911Address\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"e911AddressId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteE911Address\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"e911AddressId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteFQDN", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteFQDN", + "description": "Deletes a single FQDN based on the ID supplied", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "fqdnId", + "type": "STRING", + "description": "Id of the fqdn", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteFQDN\"\nquerystring = {\"apiToken\": \"\", \"fqdnId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteFQDN\"\nquerystring = {\"apiToken\": \"\", \"fqdnId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteMdrRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMdrRequest", + "description": "Deletes a MDR request.", + "method": "POST", + "required_parameters": [ + { + "name": "mdrRequestId", + "type": "STRING", + "description": "Id of the mdr request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMdrRequest\"\nquerystring = {\"mdrRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMdrRequest\"\nquerystring = {\"mdrRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteMdrUsageReport", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMdrUsageReport", + "description": "Delete MDR usage report.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "mdrUsageReportId", + "type": "STRING", + "description": "Id of the mdr usage report", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMdrUsageReport\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"mdrUsageReportId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMdrUsageReport\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"mdrUsageReportId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteMessagingProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMessagingProfile", + "description": "Use this endpoint to delete a messaging profile from your Telnyx account.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "profileId", + "type": "STRING", + "description": "Id of the profile", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMessagingProfile\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"profileId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteMessagingProfile\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\", \"profileId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteNumber", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteNumber", + "description": "Deletes number - ID supplied can be the telephone number (ex: +12124567890) or object ID", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "Phone number or objectID", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteNumber\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteNumber\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteOutboundProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteOutboundProfile", + "description": "Deletes a single Outbound Profile based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "outboundProfileId", + "type": "STRING", + "description": "Id of the outbound profile", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteOutboundProfile\"\nquerystring = {\"username\": \"\", \"outboundProfileId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteOutboundProfile\"\nquerystring = {\"username\": \"\", \"outboundProfileId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "deleteUsageReport", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteUsageReport", + "description": "Delete the usage report. ", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "usageReportId", + "type": "STRING", + "description": "Id of the usage report", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteUsageReport\"\nquerystring = {\"username\": \"\", \"usageReportId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/deleteUsageReport\"\nquerystring = {\"username\": \"\", \"usageReportId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "enableE911OnNumber", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/enableE911OnNumber", + "description": "Enable E911 - ID supplied can be the telephone number (ex: +12124567890) or object ID", + "method": "POST", + "required_parameters": [ + { + "name": "e911Enabled", + "type": "SELECT", + "description": "If true, enables e911", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "Phone number or objectID", + "default": "" + }, + { + "name": "e911AddressId", + "type": "STRING", + "description": "Address id for 3911", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/enableE911OnNumber\"\nquerystring = {\"e911Enabled\": \"\", \"username\": \"\", \"number\": \"\", \"e911AddressId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/enableE911OnNumber\"\nquerystring = {\"e911Enabled\": \"\", \"username\": \"\", \"number\": \"\", \"e911AddressId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "generateMessagingProfileSecret", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/generateMessagingProfileSecret", + "description": "To send messages from one of your numbers, you must authenticate using the unique secret/token that is on the associated messaging profile. Use this endpoint to generate a new secret.", + "method": "POST", + "required_parameters": [ + { + "name": "profileId", + "type": "STRING", + "description": "Id of the profile", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/generateMessagingProfileSecret\"\nquerystring = {\"profileId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/generateMessagingProfileSecret\"\nquerystring = {\"profileId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getActiveSendRequests", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getActiveSendRequests", + "description": "Use this endpoint to expose information about active outbound requests.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getActiveSendRequests\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getActiveSendRequests\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getCallerInformation", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getCallerInformation", + "description": "Returns the caller information (if found) for a telephone number", + "method": "POST", + "required_parameters": [ + { + "name": "number", + "type": "STRING", + "description": "The requested telephone number in E.164 format, may or may not begin with \"1\"", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getCallerInformation\"\nquerystring = {\"number\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getCallerInformation\"\nquerystring = {\"number\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleSubrequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSubrequest", + "description": "Get a sub request belonging to the given port request id", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + }, + { + "name": "subrequestId", + "type": "STRING", + "description": "Id of the port subrequest", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSubrequest\"\nquerystring = {\"apiToken\": \"\", \"portRequestId\": \"\", \"subrequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSubrequest\"\nquerystring = {\"apiToken\": \"\", \"portRequestId\": \"\", \"subrequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getCdrRequestStatus", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getCdrRequestStatus", + "description": "Get the status of a CDR request. Response includes a link to the report once it is generated.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "cdrRequestId", + "type": "STRING", + "description": "Id of the cdr request", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getCdrRequestStatus\"\nquerystring = {\"apiToken\": \"\", \"cdrRequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getCdrRequestStatus\"\nquerystring = {\"apiToken\": \"\", \"cdrRequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getConcurrentChannelSettings", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConcurrentChannelSettings", + "description": "Get your concurrent channel settings", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConcurrentChannelSettings\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConcurrentChannelSettings\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getConnectionCredentialsSuggestion", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConnectionCredentialsSuggestion", + "description": "Get a suggestion for a username and password for use when creating a credentials authentication record for the connection given by connectionIds.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConnectionCredentialsSuggestion\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConnectionCredentialsSuggestion\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getConnectionIpAuthTokenSuggestion", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConnectionIpAuthTokenSuggestion", + "description": "Gets a suggestion for a token to use with the IP authentication method token for the connection specified by connection_id. This is not 'binding' you can use a value other than one returned by this endpoint as a token. It is provided as a convenient way of getting a randomly generated token for a connection using that authentication method.", + "method": "POST", + "required_parameters": [ + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connectionl", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConnectionIpAuthTokenSuggestion\"\nquerystring = {\"connectionId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getConnectionIpAuthTokenSuggestion\"\nquerystring = {\"connectionId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getExtendedLRN", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getExtendedLRN", + "description": "Gets ExtendedLRN object", + "method": "POST", + "required_parameters": [ + { + "name": "number", + "type": "STRING", + "description": "The requested telephone number in E.164 format, may or may not begin with \"1\"", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getExtendedLRN\"\nquerystring = {\"number\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getExtendedLRN\"\nquerystring = {\"number\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getLRN", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLRN", + "description": "Gets LRN object", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "The requested telephone number in E.164 format, may or may not begin with \"1\"", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLRN\"\nquerystring = {\"apiToken\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLRN\"\nquerystring = {\"apiToken\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getLinkToSupportingDocumentForDraftRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLinkToSupportingDocumentForDraftRequest", + "description": "Create download link for document this document. Expires in 1 hour.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "supportingDocumentId", + "type": "STRING", + "description": "Id of the supporting document", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLinkToSupportingDocumentForDraftRequest\"\nquerystring = {\"username\": \"\", \"supportingDocumentId\": \"\", \"draftPortRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLinkToSupportingDocumentForDraftRequest\"\nquerystring = {\"username\": \"\", \"supportingDocumentId\": \"\", \"draftPortRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getLinkToSupportingDocument", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLinkToSupportingDocument", + "description": "Create link to allows downloading this document. Expires in 1 hour.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "supportingDocumentId", + "type": "STRING", + "description": "Id of the supporting document", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLinkToSupportingDocument\"\nquerystring = {\"apiToken\": \"\", \"portRequestId\": \"\", \"username\": \"\", \"supportingDocumentId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getLinkToSupportingDocument\"\nquerystring = {\"apiToken\": \"\", \"portRequestId\": \"\", \"username\": \"\", \"supportingDocumentId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getMdrRequestStatus", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMdrRequestStatus", + "description": "Get the status of a MDR request. Response includes a link to the report once it is generated.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "mdrRequestId", + "type": "STRING", + "description": "Id of the mdr request", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMdrRequestStatus\"\nquerystring = {\"apiToken\": \"\", \"mdrRequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMdrRequestStatus\"\nquerystring = {\"apiToken\": \"\", \"mdrRequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getMdrUsageReportStatus", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMdrUsageReportStatus", + "description": "Get the status of MDR usage report. Response includes a link to the report once it is generated.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "mdrUsageReportId", + "type": "STRING", + "description": "Id of the mdr usage report", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMdrUsageReportStatus\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"mdrUsageReportId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMdrUsageReportStatus\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"mdrUsageReportId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getMessagingProfileSmsTNs", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfileSmsTNs", + "description": "Use this endpoint to retrieve a list of SMS-enabled numbers associated with a messaging profile on your Telnyx account.", + "method": "POST", + "required_parameters": [ + { + "name": "profileId", + "type": "STRING", + "description": "Id of the profile", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfileSmsTNs\"\nquerystring = {\"profileId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfileSmsTNs\"\nquerystring = {\"profileId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listMdrUsageReports", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listMdrUsageReports", + "description": "Returns all MDR usage reports that the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listMdrUsageReports\"\nquerystring = {\"apiToken\": \"\", \"page\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listMdrUsageReports\"\nquerystring = {\"apiToken\": \"\", \"page\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getMessagingProfileTNs", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfileTNs", + "description": "Use this endpoint to retrieve a list of numbers to associate with one of your messaging profiles.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "connectionId", + "type": "STRING", + "description": "Filter numbers by connection ID", + "default": "" + }, + { + "name": "hasMessagingProfile", + "type": "SELECT", + "description": "Only show numbers associated with a messaging profile", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfileTNs\"\nquerystring = {\"apiToken\": \"\", \"connectionId\": \"\", \"hasMessagingProfile\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfileTNs\"\nquerystring = {\"apiToken\": \"\", \"connectionId\": \"\", \"hasMessagingProfile\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getMessagingProfiles", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfiles", + "description": "Use this endpoint to get messaging profiles associated with your Telnyx account.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfiles\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getMessagingProfiles\"\nquerystring = {\"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getNumberSearch", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getNumberSearch", + "description": "Get number search status", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "searchId", + "type": "STRING", + "description": "Id of the number search", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getNumberSearch\"\nquerystring = {\"username\": \"\", \"searchId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getNumberSearch\"\nquerystring = {\"username\": \"\", \"searchId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getOutboundProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getOutboundProfile", + "description": "Gets a single Outbound Profile based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "outboundProfileId", + "type": "STRING", + "description": "Id of the outbound profile", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getOutboundProfile\"\nquerystring = {\"apiToken\": \"\", \"outboundProfileId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getOutboundProfile\"\nquerystring = {\"apiToken\": \"\", \"outboundProfileId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getPortRequestComments", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getPortRequestComments", + "description": "Get the comments for a given port request", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getPortRequestComments\"\nquerystring = {\"username\": \"\", \"portRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getPortRequestComments\"\nquerystring = {\"username\": \"\", \"portRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleAddress", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleAddress", + "description": "Gets a single Address based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "addressId", + "type": "STRING", + "description": "Id of the address", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleAddress\"\nquerystring = {\"apiToken\": \"\", \"addressId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleAddress\"\nquerystring = {\"apiToken\": \"\", \"addressId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleConnection", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleConnection", + "description": "Gets a single connection based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleConnection\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleConnection\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleDraftPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortRequest", + "description": "Returns a single draft port request based on the id supplied", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "includePhoneNumbers", + "type": "SELECT", + "description": "Include phone number objects in the results", + "default": "" + }, + { + "name": "includeSubRequests", + "type": "SELECT", + "description": "Include sub request objects in the results", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortRequest\"\nquerystring = {\"includePhoneNumbers\": \"\", \"username\": \"\", \"draftPortRequestId\": \"\", \"includeSubRequests\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortRequest\"\nquerystring = {\"includePhoneNumbers\": \"\", \"username\": \"\", \"draftPortRequestId\": \"\", \"includeSubRequests\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleDraftPortSubrequestAllowedDates", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortSubrequestAllowedDates", + "description": "Get the allowed FOC dates for a draft sub request", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "subrequestId", + "type": "STRING", + "description": "Id of the port subrequest", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortSubrequestAllowedDates\"\nquerystring = {\"username\": \"\", \"draftPortRequestId\": \"\", \"subrequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortSubrequestAllowedDates\"\nquerystring = {\"username\": \"\", \"draftPortRequestId\": \"\", \"subrequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleDraftPortSubrequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortSubrequest", + "description": "Get a sub request belonging to the given draft port request id", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "subrequestId", + "type": "STRING", + "description": "Id of the port subrequest", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortSubrequest\"\nquerystring = {\"username\": \"\", \"subrequestId\": \"\", \"draftPortRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleDraftPortSubrequest\"\nquerystring = {\"username\": \"\", \"subrequestId\": \"\", \"draftPortRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleE911Address", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleE911Address", + "description": "Gets a single E911 Address based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "e911AddressId", + "type": "STRING", + "description": "Id of the e911 address", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleE911Address\"\nquerystring = {\"e911AddressId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleE911Address\"\nquerystring = {\"e911AddressId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleMessagingProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleMessagingProfile", + "description": "Use this endpoint to retrieve a messaging profile associated with your Telnyx account.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "profileId", + "type": "STRING", + "description": "Id of the profile", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleMessagingProfile\"\nquerystring = {\"username\": \"\", \"profileId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleMessagingProfile\"\nquerystring = {\"username\": \"\", \"profileId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleNumber", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleNumber", + "description": "Retrieve a single number - ID supplied can be the telephone number (ex: +12124567890) or object ID", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "Phone number or objectID", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleNumber\"\nquerystring = {\"apiToken\": \"\", \"number\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleNumber\"\nquerystring = {\"apiToken\": \"\", \"number\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSinglePortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSinglePortRequest", + "description": "Returns a single port request based on the id supplied", + "method": "POST", + "required_parameters": [ + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "includePhoneNumbers", + "type": "SELECT", + "description": "Include phone number objects in the results", + "default": "" + }, + { + "name": "includeSubRequests", + "type": "SELECT", + "description": "Include sub request objects in the results", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSinglePortRequest\"\nquerystring = {\"includePhoneNumbers\": \"\", \"includeSubRequests\": \"\", \"portRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSinglePortRequest\"\nquerystring = {\"includePhoneNumbers\": \"\", \"includeSubRequests\": \"\", \"portRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleSupportingDocumentForDraftRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSupportingDocumentForDraftRequest", + "description": "Get a supporting document belonging to the given draft port request id.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "supportingDocumentId", + "type": "STRING", + "description": "Id of the supporting document", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSupportingDocumentForDraftRequest\"\nquerystring = {\"apiToken\": \"\", \"draftPortRequestId\": \"\", \"supportingDocumentId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSupportingDocumentForDraftRequest\"\nquerystring = {\"apiToken\": \"\", \"draftPortRequestId\": \"\", \"supportingDocumentId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSingleSupportingDocument", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSupportingDocument", + "description": "Get a supporting document belonging to the given port request id.", + "method": "POST", + "required_parameters": [ + { + "name": "supportingDocumentId", + "type": "STRING", + "description": "Id of the supporting document", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSupportingDocument\"\nquerystring = {\"supportingDocumentId\": \"\", \"username\": \"\", \"apiToken\": \"\", \"portRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSingleSupportingDocument\"\nquerystring = {\"supportingDocumentId\": \"\", \"username\": \"\", \"apiToken\": \"\", \"portRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSubrequestsForDraftPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSubrequestsForDraftPortRequest", + "description": "Get the sub requests for a given draft port request", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSubrequestsForDraftPortRequest\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"draftPortRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSubrequestsForDraftPortRequest\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"draftPortRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getSubrequestsForPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSubrequestsForPortRequest", + "description": "Get the sub requests for a given port request", + "method": "POST", + "required_parameters": [ + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSubrequestsForPortRequest\"\nquerystring = {\"portRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getSubrequestsForPortRequest\"\nquerystring = {\"portRequestId\": \"\", \"apiToken\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getTNMessagingSettings", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getTNMessagingSettings", + "description": "Use this endpoint to get the settings for one of your SMS-enabled numbers.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "The number in e164 format (without the plus sign)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getTNMessagingSettings\"\nquerystring = {\"username\": \"\", \"number\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getTNMessagingSettings\"\nquerystring = {\"username\": \"\", \"number\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getUsageReportStatus", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/getUsageReportStatus", + "description": "Get the status of usage report. Response includes a link to the report once it is generated.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "usageReportId", + "type": "STRING", + "description": "Id of the usage report", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getUsageReportStatus\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"usageReportId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/getUsageReportStatus\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"usageReportId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listAddresses", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listAddresses", + "description": "Returns all Addresses the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "includeNonAddressBook", + "type": "SELECT", + "description": "Filter to indicate if addresses not in the address book should be shown", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listAddresses\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"includeNonAddressBook\": \"\", \"perPage\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listAddresses\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"includeNonAddressBook\": \"\", \"perPage\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listAuthorizedIps", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listAuthorizedIps", + "description": "Returns all Authorized IPs the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listAuthorizedIps\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listAuthorizedIps\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listCdrRequests", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listCdrRequests", + "description": "Returns all cdr_requests that the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listCdrRequests\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listCdrRequests\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listConnections", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listConnections", + "description": "Returns all Connections the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "mode", + "type": "SELECT", + "description": "Optional parameter to specify typeahead mode. Doing so limits the amount of details returned but speeds up calls.", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "sortDirection", + "type": "SELECT", + "description": "The sort_direction specifies in which way the ordering of the connections is applied.", + "default": "" + }, + { + "name": "filterIpAddress", + "type": "STRING", + "description": " Optional filtering parameter. If present, only connections with one or more matching authorized IP addresses will be returned.", + "default": "" + }, + { + "name": "withAuth", + "type": "SELECT", + "description": "Specify as true to include credential authentication details along with connections. Please note this only affects connections for which the authorization type is credential-based authentication.", + "default": "" + }, + { + "name": "filterConnectionName", + "type": "STRING", + "description": "Optional filtering parameter. If present, connections with at least a partial match will be returned. Matching is not case-sensitive. Requires at least three characters.", + "default": "" + }, + { + "name": "withFQDNS", + "type": "SELECT", + "description": "Specify as true to include FQDN / domain details along with connections. Please note this only affects connections for which the authorization type is FQDN-based authentication.", + "default": "" + }, + { + "name": "withIps", + "type": "SELECT", + "description": "Specify as true to include authorized IPs along with connections", + "default": "" + }, + { + "name": "filterAuthUserName", + "type": "STRING", + "description": "Optional filtering parameter. If present, only connections of credential-based authentication will be returned, and only those with a user_name that is at least a partial match with the value provided. Requires at least three characters.", + "default": "" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "orderBy", + "type": "SELECT", + "description": "Specify an ordering for the results.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listConnections\"\nquerystring = {\"mode\": \"\", \"username\": \"\", \"perPage\": \"\", \"sortDirection\": \"\", \"filterIpAddress\": \"\", \"withAuth\": \"\", \"filterConnectionName\": \"\", \"withFQDNS\": \"\", \"withIps\": \"\", \"filterAuthUserName\": \"\", \"apiToken\": \"\", \"page\": \"\", \"orderBy\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listConnections\"\nquerystring = {\"mode\": \"\", \"username\": \"\", \"perPage\": \"\", \"sortDirection\": \"\", \"filterIpAddress\": \"\", \"withAuth\": \"\", \"filterConnectionName\": \"\", \"withFQDNS\": \"\", \"withIps\": \"\", \"filterAuthUserName\": \"\", \"apiToken\": \"\", \"page\": \"\", \"orderBy\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listDraftPortRequests", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listDraftPortRequests", + "description": "Returns all draft port requests that your user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "includeSubRequests", + "type": "SELECT", + "description": "Include sub request objects in the results", + "default": "" + }, + { + "name": "status", + "type": "SELECT", + "description": "Filter results by status", + "default": "" + }, + { + "name": "includePhoneNumbers", + "type": "SELECT", + "description": "Include phone number objects in the results", + "default": "" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "search", + "type": "STRING", + "description": "Filter results by supportkey (pr*) or partial phone number", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listDraftPortRequests\"\nquerystring = {\"perPage\": \"\", \"username\": \"\", \"includeSubRequests\": \"\", \"status\": \"\", \"includePhoneNumbers\": \"\", \"page\": \"\", \"apiToken\": \"\", \"search\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listDraftPortRequests\"\nquerystring = {\"perPage\": \"\", \"username\": \"\", \"includeSubRequests\": \"\", \"status\": \"\", \"includePhoneNumbers\": \"\", \"page\": \"\", \"apiToken\": \"\", \"search\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listE911Addresses", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listE911Addresses", + "description": "Returns all E911 Addresses the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listE911Addresses\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listE911Addresses\"\nquerystring = {\"page\": \"\", \"apiToken\": \"\", \"username\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listFQDNs", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listFQDNs", + "description": "Returns all FQDNs the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listFQDNs\"\nquerystring = {\"username\": \"\", \"perPage\": \"\", \"page\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listFQDNs\"\nquerystring = {\"username\": \"\", \"perPage\": \"\", \"page\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listMdrRequests", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listMdrRequests", + "description": "Returns all mdr_requests that the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listMdrRequests\"\nquerystring = {\"perPage\": \"\", \"username\": \"\", \"page\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listMdrRequests\"\nquerystring = {\"perPage\": \"\", \"username\": \"\", \"page\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listNumbers", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listNumbers", + "description": "Returns all numbers that the user has access to.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "filterStatus", + "type": "SELECT", + "description": " Optional filtering parameter. If present, only numbers that have the same status as specified will be returned.", + "default": "" + }, + { + "name": "sortDirection", + "type": "SELECT", + "description": "The sort_direction specifies in which way the ordering of the connections is applied.", + "default": "" + }, + { + "name": "filterTag", + "type": "STRING", + "description": "Optional filtering parameter. If present, only numbers that have been tagged \u3000with the string given will be returned. Returns exact matches only.", + "default": "" + }, + { + "name": "filterUsagePaymentMethod", + "type": "SELECT", + "description": "Optional filtering parameter. If present, only numbers that have the filterUsagePaymentMethod that at matches the string given will be returned. Matching is case-sensitive and only specified values are allowed.", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "filterNumberVal", + "type": "STRING", + "description": "Optional filtering parameter. If present, only numbers that at least partially match the value given in their number will be returned. Requires at least three digits. Non-numerical characters should not be present in the filter and will result in no values being returned.", + "default": "" + }, + { + "name": "filterConnectionName", + "type": "STRING", + "description": "Optional filtering parameter. If present, only numbers that have a connection that at least partially matches the string given will be returned. Matching is not case-sensitive. Requires at least three characters. Numbers without a connection will not be returned.", + "default": "" + }, + { + "name": "orderBy", + "type": "SELECT", + "description": "Specify an ordering for the results.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listNumbers\"\nquerystring = {\"page\": \"\", \"filterStatus\": \"\", \"sortDirection\": \"\", \"apiToken\": \"\", \"filterTag\": \"\", \"filterUsagePaymentMethod\": \"\", \"perPage\": \"\", \"filterNumberVal\": \"\", \"filterConnectionName\": \"\", \"orderBy\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listNumbers\"\nquerystring = {\"page\": \"\", \"filterStatus\": \"\", \"sortDirection\": \"\", \"apiToken\": \"\", \"filterTag\": \"\", \"filterUsagePaymentMethod\": \"\", \"perPage\": \"\", \"filterNumberVal\": \"\", \"filterConnectionName\": \"\", \"orderBy\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listOutboundProfiles", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listOutboundProfiles", + "description": "Returns all Outbound Profiles the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + }, + { + "name": "whitelistedDestinationFormat", + "type": "SELECT", + "description": "Format of your whitelisted destinations.", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listOutboundProfiles\"\nquerystring = {\"username\": \"\", \"page\": \"\", \"whitelistedDestinationFormat\": \"\", \"apiToken\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listOutboundProfiles\"\nquerystring = {\"username\": \"\", \"page\": \"\", \"whitelistedDestinationFormat\": \"\", \"apiToken\": \"\", \"perPage\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listPortRequests", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listPortRequests", + "description": "Returns all port requests that your user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "includeSubRequests", + "type": "SELECT", + "description": "Include sub request objects in the results", + "default": "" + }, + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "status", + "type": "SELECT", + "description": "Filter results by status", + "default": "" + }, + { + "name": "search", + "type": "STRING", + "description": "Filter results by supportkey (pr*) or partial phone number", + "default": "" + }, + { + "name": "includePhoneNumbers", + "type": "SELECT", + "description": "Include phone number objects in the results", + "default": "" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listPortRequests\"\nquerystring = {\"includeSubRequests\": \"\", \"perPage\": \"\", \"username\": \"\", \"status\": \"\", \"search\": \"\", \"apiToken\": \"\", \"includePhoneNumbers\": \"\", \"page\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listPortRequests\"\nquerystring = {\"includeSubRequests\": \"\", \"perPage\": \"\", \"username\": \"\", \"status\": \"\", \"search\": \"\", \"apiToken\": \"\", \"includePhoneNumbers\": \"\", \"page\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listSupportingDocumentsForDraftPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listSupportingDocumentsForDraftPortRequest", + "description": "List supporting documents for the given draft port request", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listSupportingDocumentsForDraftPortRequest\"\nquerystring = {\"apiToken\": \"\", \"draftPortRequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listSupportingDocumentsForDraftPortRequest\"\nquerystring = {\"apiToken\": \"\", \"draftPortRequestId\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listSupportingDocumentsForPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listSupportingDocumentsForPortRequest", + "description": "List supporting documents for the given port request", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "portRequestId", + "type": "STRING", + "description": "Id of the port request", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listSupportingDocumentsForPortRequest\"\nquerystring = {\"username\": \"\", \"portRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listSupportingDocumentsForPortRequest\"\nquerystring = {\"username\": \"\", \"portRequestId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "listUsageReports", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/listUsageReports", + "description": "Returns all usage reports that the user has access to", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "perPage", + "type": "NUMBER", + "description": "Number of results per page", + "default": "" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results to load", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listUsageReports\"\nquerystring = {\"username\": \"\", \"perPage\": \"\", \"page\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/listUsageReports\"\nquerystring = {\"username\": \"\", \"perPage\": \"\", \"page\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendSMS", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/sendSMS", + "description": "Use this endpoint to send a message from an SMS-enabled number.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "from", + "type": "STRING", + "description": "The source number, in e164 format. This number must be attached to a messaging profile.", + "default": "" + }, + { + "name": "message", + "type": "STRING", + "description": "The message body.", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "profileSecret", + "type": "STRING", + "description": "This is the unique, private secret/password belonging to the from number\u2019s messaging profile.", + "default": "" + }, + { + "name": "to", + "type": "STRING", + "description": "The destination number, in e164 format. ", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/sendSMS\"\nquerystring = {\"username\": \"\", \"from\": \"\", \"message\": \"\", \"apiToken\": \"\", \"profileSecret\": \"\", \"to\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/sendSMS\"\nquerystring = {\"username\": \"\", \"from\": \"\", \"message\": \"\", \"apiToken\": \"\", \"profileSecret\": \"\", \"to\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setConnectionFQDNAuth", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/setConnectionFQDNAuth", + "description": "Sets the connection given by connectionId to use FQDN-based authentication. This will remove any other authentication type set for the connection. Please note that domains themselves are not added through this endpoint.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "connectionUsername", + "type": "STRING", + "description": "Username that will be sent when using the connection. Must be globally unique. Case-insensitive.", + "default": "" + }, + { + "name": "connectionPassword", + "type": "STRING", + "description": "Password that will be sent when using the connection. Must be at least 8 characters or more in length.", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "ipAuthenticationMethod", + "type": "SELECT", + "description": "The method of authentication to use if this FQDN auth strategy uses IP-based outbound. Defaults to \"tech-prefix\". Has no effect if this auth strategy uses credentials for outbound authentication.", + "default": "" + }, + { + "name": "fqdnOutboundAuthentication", + "type": "SELECT", + "description": "The method of authentication to use for outbound calls on this authentication strategy. Defaults to \"credential-authentication\".", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/setConnectionFQDNAuth\"\nquerystring = {\"username\": \"\", \"ipAuthenticationMethod\": \"\", \"connectionUsername\": \"\", \"connectionPassword\": \"\", \"apiToken\": \"\", \"connectionId\": \"\", \"fqdnOutboundAuthentication\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/setConnectionFQDNAuth\"\nquerystring = {\"username\": \"\", \"ipAuthenticationMethod\": \"\", \"connectionUsername\": \"\", \"connectionPassword\": \"\", \"apiToken\": \"\", \"connectionId\": \"\", \"fqdnOutboundAuthentication\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setConnectionIpAuth", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/setConnectionIpAuth", + "description": "Sets the connection given by connectionId to use IP-based authentication. This will remove any other authentication type set for the connection. Please note that authorized IP addresses are not added through this endpoint.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connectionl", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/setConnectionIpAuth\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/setConnectionIpAuth\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "submitDraftPortRequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/submitDraftPortRequest", + "description": "Once all of the sub requests belonging to a draft port request are populated with required information the draft port request can be submitted, initiating the porting process. Once successfully submitted changes can no longer be made to the draft port request.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/submitDraftPortRequest\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"draftPortRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/submitDraftPortRequest\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"draftPortRequestId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateAddress", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateAddress", + "description": "Update a single Address based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "addressId", + "type": "STRING", + "description": "Id of the address", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "administrativeArea", + "type": "STRING", + "description": "Administrative area (state for US addresses)", + "default": "" + }, + { + "name": "lastName", + "type": "STRING", + "description": "Last name", + "default": "" + }, + { + "name": "countryCode", + "type": "STRING", + "description": "2-digit country code", + "default": "" + }, + { + "name": "extendedAddress", + "type": "STRING", + "description": "Address second line", + "default": "" + }, + { + "name": "phoneNumber", + "type": "STRING", + "description": "Phone number", + "default": "" + }, + { + "name": "locality", + "type": "STRING", + "description": "Locality (city for US addresses)", + "default": "" + }, + { + "name": "firstName", + "type": "STRING", + "description": "First name", + "default": "" + }, + { + "name": "streetAddress", + "type": "STRING", + "description": "Address first line", + "default": "" + }, + { + "name": "businessName", + "type": "STRING", + "description": "Business name", + "default": "" + }, + { + "name": "postalCode", + "type": "STRING", + "description": "Postal code", + "default": "" + }, + { + "name": "addressBook", + "type": "SELECT", + "description": "Indicates if the address should be considered part of your 'address book' or not; addresses that are in your address book are shown by default when listing addresses, those not in your address book are not. ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateAddress\"\nquerystring = {\"addressId\": \"\", \"administrativeArea\": \"\", \"apiToken\": \"\", \"lastName\": \"\", \"countryCode\": \"\", \"extendedAddress\": \"\", \"phoneNumber\": \"\", \"locality\": \"\", \"firstName\": \"\", \"username\": \"\", \"streetAddress\": \"\", \"businessName\": \"\", \"postalCode\": \"\", \"addressBook\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateAddress\"\nquerystring = {\"addressId\": \"\", \"administrativeArea\": \"\", \"apiToken\": \"\", \"lastName\": \"\", \"countryCode\": \"\", \"extendedAddress\": \"\", \"phoneNumber\": \"\", \"locality\": \"\", \"firstName\": \"\", \"username\": \"\", \"streetAddress\": \"\", \"businessName\": \"\", \"postalCode\": \"\", \"addressBook\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateAuthorizedIp", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateAuthorizedIp", + "description": "Updates existing Authorized IP.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "authorizedIpId", + "type": "STRING", + "description": "Id of the authorized ip", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "ipAddress", + "type": "STRING", + "description": "Valid IP address", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateAuthorizedIp\"\nquerystring = {\"ipAddress\": \"\", \"apiToken\": \"\", \"authorizedIpId\": \"\", \"username\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateAuthorizedIp\"\nquerystring = {\"ipAddress\": \"\", \"apiToken\": \"\", \"authorizedIpId\": \"\", \"username\": \"\", \"connectionId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateConcurrentChannelSettings", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConcurrentChannelSettings", + "description": "Update your concurrent channel settings", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "channels", + "type": "NUMBER", + "description": "The new number of concurrent channels you want. You may check the cost per channel on the pricing page. Please note you may not set your channel count to 0 if you have any numbers using channel billing.", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConcurrentChannelSettings\"\nquerystring = {\"apiToken\": \"\", \"channels\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConcurrentChannelSettings\"\nquerystring = {\"apiToken\": \"\", \"channels\": \"\", \"username\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateConnection", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnection", + "description": "update a single connection based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "aniOverride", + "type": "STRING", + "description": "Set a phone number as the ani_override value to override caller id number on outbound calls", + "default": "" + }, + { + "name": "connectionName", + "type": "STRING", + "description": "Name of the connection", + "default": "" + }, + { + "name": "privacyZoneEnabled", + "type": "SELECT", + "description": "By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it.", + "default": "" + }, + { + "name": "dnisNumberFormat", + "type": "SELECT", + "description": "E.164 = 0, Strip-1 = 1, Strip-2 = 2", + "default": "" + }, + { + "name": "transportProtocol", + "type": "SELECT", + "description": "One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication.", + "default": "" + }, + { + "name": "timeout2xx", + "type": "NUMBER", + "description": "Time(sec) before aborting if call is unanswered (min: 1, max: 600)", + "default": "" + }, + { + "name": "aniOverrideType", + "type": "SELECT", + "description": "Specifies when we apply your ani_override setting. Only applies when ani_override is not blank.", + "default": "" + }, + { + "name": "active", + "type": "SELECT", + "description": "Defaults to true", + "default": "" + }, + { + "name": "sipCompactHeadersEnabled", + "type": "SELECT", + "description": "Defaults to true", + "default": "" + }, + { + "name": "thirdPartyControlEnabled", + "type": "SELECT", + "description": "Applies to calls sent TO this connection.", + "default": "" + }, + { + "name": "timeout1xx", + "type": "NUMBER", + "description": "Time(sec) before aborting if connection is not made (min: 1, max: 20)", + "default": "" + }, + { + "name": "anchorsiteOverride", + "type": "SELECT", + "description": "\"Latency\" directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.", + "default": "" + }, + { + "name": "instantRingbackEnabled", + "type": "SELECT", + "description": "When set, ringback will not wait for indication before sending ringback tone to calling party.", + "default": "" + }, + { + "name": "encodeContactHeaderEnabled", + "type": "SELECT", + "description": "Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios", + "default": "" + }, + { + "name": "defaultSecondaryAuthorizedIpId", + "type": "NUMBER", + "description": "The default secondary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.", + "default": "" + }, + { + "name": "defaultRoutingMethod", + "type": "SELECT", + "description": "Default routing method to be used when a number is associated with the connection.", + "default": "" + }, + { + "name": "aniNumberFormat", + "type": "SELECT", + "description": "This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls.", + "default": "" + }, + { + "name": "outboundGenerateRingbackTone", + "type": "SELECT", + "description": "Generate ringback tone through 183 session progress message with early media", + "default": "" + }, + { + "name": "outboundLocalization", + "type": "STRING", + "description": "A 2-character country code specifying the country whose national dialing rules should be used. For example, if set to `US` then any US number can be dialed without preprending +1 to the number. When left blank, Telnyx will try US and GB dialing rules, in that order, by default.", + "default": "" + }, + { + "name": "inboundGenerateRingbackTone", + "type": "SELECT", + "description": "Generate ringback tone through 183 session progress message with early media", + "default": "" + }, + { + "name": "prackEnabled", + "type": "SELECT", + "description": "Enable PRACK messages as defined in RFC3262", + "default": "" + }, + { + "name": "isupHeadersEnabled", + "type": "SELECT", + "description": "When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) Defaults to false.", + "default": "" + }, + { + "name": "encryptedMedia", + "type": "SELECT", + "description": "Enable use of SRTP or ZRTP for encryption. Valid values are those listed or null. Cannot be set to non-null if the transport_portocol is TLS.", + "default": "" + }, + { + "name": "defaultPrimaryAuthorizedIpId", + "type": "NUMBER", + "description": "The default primary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.", + "default": "" + }, + { + "name": "dtmfType", + "type": "SELECT", + "description": "Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.", + "default": "" + }, + { + "name": "defaultTertiaryAuthorizedIpId", + "type": "NUMBER", + "description": "The default tertiary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.", + "default": "" + }, + { + "name": "t38ReinviteSource", + "type": "SELECT", + "description": "This setting only affects connections with Fax-type Outbound Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite. By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite.", + "default": "" + }, + { + "name": "codecs", + "type": "LIST", + "description": "Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnection\"\nquerystring = {\"aniOverride\": \"\", \"username\": \"\", \"connectionName\": \"\", \"privacyZoneEnabled\": \"\", \"dnisNumberFormat\": \"\", \"transportProtocol\": \"\", \"timeout2xx\": \"\", \"aniOverrideType\": \"\", \"apiToken\": \"\", \"active\": \"\", \"sipCompactHeadersEnabled\": \"\", \"thirdPartyControlEnabled\": \"\", \"connectionId\": \"\", \"timeout1xx\": \"\", \"anchorsiteOverride\": \"\", \"instantRingbackEnabled\": \"\", \"encodeContactHeaderEnabled\": \"\", \"defaultSecondaryAuthorizedIpId\": \"\", \"defaultRoutingMethod\": \"\", \"aniNumberFormat\": \"\", \"outboundGenerateRingbackTone\": \"\", \"outboundLocalization\": \"\", \"inboundGenerateRingbackTone\": \"\", \"prackEnabled\": \"\", \"isupHeadersEnabled\": \"\", \"encryptedMedia\": \"\", \"defaultPrimaryAuthorizedIpId\": \"\", \"dtmfType\": \"\", \"defaultTertiaryAuthorizedIpId\": \"\", \"t38ReinviteSource\": \"\", \"codecs\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnection\"\nquerystring = {\"aniOverride\": \"\", \"username\": \"\", \"connectionName\": \"\", \"privacyZoneEnabled\": \"\", \"dnisNumberFormat\": \"\", \"transportProtocol\": \"\", \"timeout2xx\": \"\", \"aniOverrideType\": \"\", \"apiToken\": \"\", \"active\": \"\", \"sipCompactHeadersEnabled\": \"\", \"thirdPartyControlEnabled\": \"\", \"connectionId\": \"\", \"timeout1xx\": \"\", \"anchorsiteOverride\": \"\", \"instantRingbackEnabled\": \"\", \"encodeContactHeaderEnabled\": \"\", \"defaultSecondaryAuthorizedIpId\": \"\", \"defaultRoutingMethod\": \"\", \"aniNumberFormat\": \"\", \"outboundGenerateRingbackTone\": \"\", \"outboundLocalization\": \"\", \"inboundGenerateRingbackTone\": \"\", \"prackEnabled\": \"\", \"isupHeadersEnabled\": \"\", \"encryptedMedia\": \"\", \"defaultPrimaryAuthorizedIpId\": \"\", \"dtmfType\": \"\", \"defaultTertiaryAuthorizedIpId\": \"\", \"t38ReinviteSource\": \"\", \"codecs\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateConnectionCredentials", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionCredentials", + "description": "Update the credentials used for authenticating the connection given", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "connectionUsername", + "type": "STRING", + "description": "Username that will be sent when using the connection. Must be globally unique. Case-insensitive.", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "connectionPassword", + "type": "STRING", + "description": "Password that will be sent when using the connection. Must be at least 8 characters or more in length.", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionCredentials\"\nquerystring = {\"username\": \"\", \"connectionUsername\": \"\", \"connectionId\": \"\", \"connectionPassword\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionCredentials\"\nquerystring = {\"username\": \"\", \"connectionUsername\": \"\", \"connectionId\": \"\", \"connectionPassword\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateConnectionFQDNAuth", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionFQDNAuth", + "description": "Update the credentials used for authenticating the connection given", + "method": "POST", + "required_parameters": [ + { + "name": "connectionUsername", + "type": "STRING", + "description": "Username that will be sent when using the connection. Must be globally unique. Case-insensitive.", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "connectionPassword", + "type": "STRING", + "description": "Password that will be sent when using the connection. Must be at least 8 characters or more in length.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "ipAuthenticationMethod", + "type": "SELECT", + "description": "The method of authentication to use if this FQDN auth strategy uses IP-based outbound. Defaults to \"tech-prefix\". Has no effect if this auth strategy uses credentials for outbound authentication.", + "default": "" + }, + { + "name": "fqdnOutboundAuthentication", + "type": "SELECT", + "description": "The method of authentication to use for outbound calls on this authentication strategy. Defaults to \"credential-authentication\".", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionFQDNAuth\"\nquerystring = {\"connectionUsername\": \"\", \"username\": \"\", \"ipAuthenticationMethod\": \"\", \"apiToken\": \"\", \"fqdnOutboundAuthentication\": \"\", \"connectionId\": \"\", \"connectionPassword\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionFQDNAuth\"\nquerystring = {\"connectionUsername\": \"\", \"username\": \"\", \"ipAuthenticationMethod\": \"\", \"apiToken\": \"\", \"fqdnOutboundAuthentication\": \"\", \"connectionId\": \"\", \"connectionPassword\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateConnectionIpAuthMethod", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionIpAuthMethod", + "description": "Update the IP authentication strategy used for authenticating the given connection", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "ipAuthenticationMethod", + "type": "SELECT", + "description": "The method of IP authentication to use along with the connection. Defaults to tech-prefix. Can be tech-prefix, token or p-charge-info", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connectionl", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionIpAuthMethod\"\nquerystring = {\"username\": \"\", \"ipAuthenticationMethod\": \"\", \"connectionId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateConnectionIpAuthMethod\"\nquerystring = {\"username\": \"\", \"ipAuthenticationMethod\": \"\", \"connectionId\": \"\", \"apiToken\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateE911Address", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateE911Address", + "description": "Updates a single E911 Address based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "e911AddressId", + "type": "STRING", + "description": "Id of the e911 address", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "city", + "type": "STRING", + "description": "Address city", + "default": "" + }, + { + "name": "lastName", + "type": "STRING", + "description": "Required if business name not given", + "default": "" + }, + { + "name": "postalCode", + "type": "STRING", + "description": "Address postal code", + "default": "" + }, + { + "name": "line1", + "type": "STRING", + "description": "Address first line", + "default": "" + }, + { + "name": "line2", + "type": "STRING", + "description": "Address second line", + "default": "" + }, + { + "name": "firstName", + "type": "STRING", + "description": "Required if business name not given", + "default": "" + }, + { + "name": "state", + "type": "STRING", + "description": "Address state", + "default": "" + }, + { + "name": "businessName", + "type": "STRING", + "description": "Required if personal name not given", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateE911Address\"\nquerystring = {\"city\": \"\", \"apiToken\": \"\", \"lastName\": \"\", \"e911AddressId\": \"\", \"postalCode\": \"\", \"line1\": \"\", \"line2\": \"\", \"firstName\": \"\", \"state\": \"\", \"username\": \"\", \"businessName\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateE911Address\"\nquerystring = {\"city\": \"\", \"apiToken\": \"\", \"lastName\": \"\", \"e911AddressId\": \"\", \"postalCode\": \"\", \"line1\": \"\", \"line2\": \"\", \"firstName\": \"\", \"state\": \"\", \"username\": \"\", \"businessName\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateFQDN", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateFQDN", + "description": "Updates a single FQDN based on the ID supplied", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "fqdnId", + "type": "STRING", + "description": "Id of the fqdn", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "port", + "type": "NUMBER", + "description": "Port number", + "default": "" + }, + { + "name": "fqdn", + "type": "STRING", + "description": "Your FQDN", + "default": "" + }, + { + "name": "dnsRecordType", + "type": "SELECT", + "description": "the DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateFQDN\"\nquerystring = {\"connectionId\": \"\", \"port\": \"\", \"username\": \"\", \"fqdn\": \"\", \"fqdnId\": \"\", \"apiToken\": \"\", \"dnsRecordType\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateFQDN\"\nquerystring = {\"connectionId\": \"\", \"port\": \"\", \"username\": \"\", \"fqdn\": \"\", \"fqdnId\": \"\", \"apiToken\": \"\", \"dnsRecordType\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateMessagingProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateMessagingProfile", + "description": "Use this endpoint to update a messaging profile associated with your Telnyx account.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "profileId", + "type": "STRING", + "description": "Id of the profile", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "method", + "type": "SELECT", + "description": "Method of the profile", + "default": "" + }, + { + "name": "url", + "type": "STRING", + "description": "Url of the webhook. You can use our service as webhookUrl. https://webhooks.rapidapi.io/api/message/Telnyx/webhookEvent/{projectName}/{projectKey}. See details above", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "name", + "type": "STRING", + "description": "Name of the profile", + "default": "" + }, + { + "name": "failoverUrl", + "type": "STRING", + "description": "Failover url of the webhook. You can use our service as webhookUrl. https://webhooks.rapidapi.io/api/message/Telnyx/webhookEvent/{projectName}/{projectKey}. See details above", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateMessagingProfile\"\nquerystring = {\"method\": \"\", \"url\": \"\", \"username\": \"\", \"connectionId\": \"\", \"profileId\": \"\", \"name\": \"\", \"apiToken\": \"\", \"failoverUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateMessagingProfile\"\nquerystring = {\"method\": \"\", \"url\": \"\", \"username\": \"\", \"connectionId\": \"\", \"profileId\": \"\", \"name\": \"\", \"apiToken\": \"\", \"failoverUrl\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateNumbers", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateNumbers", + "description": "Update multiple numbers at once", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "numberIds", + "type": "LIST", + "description": "Array of number ids and/or number values to update", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "tertiaryIp", + "type": "STRING", + "description": "Tertiary ip", + "default": "" + }, + { + "name": "translatedNumber", + "type": "STRING", + "description": "Translated number", + "default": "" + }, + { + "name": "e911Enabled", + "type": "SELECT", + "description": "If true, enables e911", + "default": "" + }, + { + "name": "forwardingType", + "type": "SELECT", + "description": "sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure'", + "default": "" + }, + { + "name": "secondaryPort", + "type": "NUMBER", + "description": "Secondary ip port", + "default": "" + }, + { + "name": "addressId", + "type": "STRING", + "description": "Address id", + "default": "" + }, + { + "name": "primaryIp", + "type": "STRING", + "description": "Primary ip", + "default": "" + }, + { + "name": "t38FaxGatewayEnabled", + "type": "SELECT", + "description": "If true, fax gateway is enabled", + "default": "" + }, + { + "name": "enableRtpAutoAdjust", + "type": "SELECT", + "description": "When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets.", + "default": "" + }, + { + "name": "enableTechPrefix", + "type": "SELECT", + "description": "Whether tech prefix is enabled", + "default": "" + }, + { + "name": "mediaHandlingMode", + "type": "SELECT", + "description": "default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode.Can be default, proxy or bypass", + "default": "" + }, + { + "name": "usagePaymentMethod", + "type": "SELECT", + "description": "setting for whether a number is billed per minute or uses your concurrent channels. Can be pay-per-minute or channel", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "e911AddressId", + "type": "STRING", + "description": "Address id for 3911", + "default": "" + }, + { + "name": "secondaryIp", + "type": "STRING", + "description": "Secondary ip", + "default": "" + }, + { + "name": "primaryPort", + "type": "NUMBER", + "description": "Primary ip port", + "default": "" + }, + { + "name": "tertiaryPort", + "type": "NUMBER", + "description": "Tertiary ip port", + "default": "" + }, + { + "name": "acceptAnyRtpPacketsEnabled", + "type": "SELECT", + "description": "If true, accepts any rtp packets", + "default": "" + }, + { + "name": "forwardsTo", + "type": "STRING", + "description": "The number that this number should be forwarded to; when this is set, forwardingType must also be set", + "default": "" + }, + { + "name": "tagList", + "type": "LIST", + "description": "Array of tags for this number", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateNumbers\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"tertiaryIp\": \"\", \"translatedNumber\": \"\", \"e911Enabled\": \"\", \"forwardingType\": \"\", \"secondaryPort\": \"\", \"addressId\": \"\", \"primaryIp\": \"\", \"t38FaxGatewayEnabled\": \"\", \"enableRtpAutoAdjust\": \"\", \"enableTechPrefix\": \"\", \"mediaHandlingMode\": \"\", \"usagePaymentMethod\": \"\", \"connectionId\": \"\", \"e911AddressId\": \"\", \"secondaryIp\": \"\", \"primaryPort\": \"\", \"tertiaryPort\": \"\", \"acceptAnyRtpPacketsEnabled\": \"\", \"forwardsTo\": \"\", \"numberIds\": \"\", \"tagList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateNumbers\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"tertiaryIp\": \"\", \"translatedNumber\": \"\", \"e911Enabled\": \"\", \"forwardingType\": \"\", \"secondaryPort\": \"\", \"addressId\": \"\", \"primaryIp\": \"\", \"t38FaxGatewayEnabled\": \"\", \"enableRtpAutoAdjust\": \"\", \"enableTechPrefix\": \"\", \"mediaHandlingMode\": \"\", \"usagePaymentMethod\": \"\", \"connectionId\": \"\", \"e911AddressId\": \"\", \"secondaryIp\": \"\", \"primaryPort\": \"\", \"tertiaryPort\": \"\", \"acceptAnyRtpPacketsEnabled\": \"\", \"forwardsTo\": \"\", \"numberIds\": \"\", \"tagList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateOutboundProfile", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateOutboundProfile", + "description": "Updates a single Outbound Profile based on the ID supplied.", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "outboundProfileId", + "type": "STRING", + "description": "Id of the outbound profile", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "cpsLimitIncrease", + "type": "NUMBER", + "description": "Increase cps limit", + "default": "" + }, + { + "name": "trafficType", + "type": "SELECT", + "description": "Conversational = 1, Fax = 3", + "default": "" + }, + { + "name": "active", + "type": "SELECT", + "description": "Defaults to true", + "default": "" + }, + { + "name": "servicePlan", + "type": "SELECT", + "description": "US = 1, International = 2", + "default": "" + }, + { + "name": "ports", + "type": "NUMBER", + "description": "Must be no more than your concurrent call limit. Null means no limit.", + "default": "" + }, + { + "name": "translationRule", + "type": "STRING", + "description": "Only configure if advised by Telnyx support", + "default": "" + }, + { + "name": "whitelistedDestinationFormat", + "type": "SELECT", + "description": "Format of your whitelisted destinations.", + "default": "" + }, + { + "name": "filterUsagePaymentMethod", + "type": "SELECT", + "description": "Optional filtering parameter. If present, only numbers that have the filterUsagePaymentMethod that at matches the string given will be returned. Matching is case-sensitive and only specified values are allowed.", + "default": "" + }, + { + "name": "connectionIds", + "type": "LIST", + "description": "Connection IDs", + "default": "" + }, + { + "name": "tagList", + "type": "LIST", + "description": "List of tags", + "default": "" + }, + { + "name": "whitelistedDestinations", + "type": "LIST", + "description": "Whitelisted destinations", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateOutboundProfile\"\nquerystring = {\"apiToken\": \"\", \"outboundProfileId\": \"\", \"username\": \"\", \"cpsLimitIncrease\": \"\", \"trafficType\": \"\", \"active\": \"\", \"servicePlan\": \"\", \"ports\": \"\", \"translationRule\": \"\", \"whitelistedDestinationFormat\": \"\", \"filterUsagePaymentMethod\": \"\", \"connectionIds\": \"\", \"tagList\": \"\", \"whitelistedDestinations\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateOutboundProfile\"\nquerystring = {\"apiToken\": \"\", \"outboundProfileId\": \"\", \"username\": \"\", \"cpsLimitIncrease\": \"\", \"trafficType\": \"\", \"active\": \"\", \"servicePlan\": \"\", \"ports\": \"\", \"translationRule\": \"\", \"whitelistedDestinationFormat\": \"\", \"filterUsagePaymentMethod\": \"\", \"connectionIds\": \"\", \"tagList\": \"\", \"whitelistedDestinations\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateSingleDraftPortSubrequest", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateSingleDraftPortSubrequest", + "description": "Update a sub request belonging to the given draft port request id", + "method": "POST", + "required_parameters": [ + { + "name": "focDateRequestedByUser", + "type": "DATEPICKER", + "description": "Date/Time requested for the FOC date", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "locality", + "type": "STRING", + "description": "City of billing address", + "default": "" + }, + { + "name": "defaultConnectionId", + "type": "STRING", + "description": "ID of connection to set on the numbers when ported", + "default": "" + }, + { + "name": "authPersonName", + "type": "STRING", + "description": "Name of person authorizing the port request", + "default": "" + }, + { + "name": "draftPortRequestId", + "type": "STRING", + "description": "Id of the draft port request", + "default": "" + }, + { + "name": "streetAddress", + "type": "STRING", + "description": "First line of billing address", + "default": "" + }, + { + "name": "postalCode", + "type": "STRING", + "description": "Postal Code of billing address", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "countryCode", + "type": "STRING", + "description": "ISO3166-1 alpha-2 country code of billing address", + "default": "" + }, + { + "name": "subrequestId", + "type": "STRING", + "description": "Id of the port subrequest", + "default": "" + }, + { + "name": "administrativeArea", + "type": "STRING", + "description": "Two character state abbreviation of billing address", + "default": "" + }, + { + "name": "billingPhoneNumber", + "type": "STRING", + "description": "Billing phone number associated with these phone numbers", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "pinPasscode", + "type": "STRING", + "description": "PIN/passcode for accounts that have wireless type numbers", + "default": "" + }, + { + "name": "taxIdentifier", + "type": "STRING", + "description": "European tax identification number. Applicable only in the European Union", + "default": "" + }, + { + "name": "remainingNumbersAction", + "type": "SELECT", + "description": "Remaining numbers can be either kept with their current service provider or disconnected. 'newBillingPhoneNumber' is required when 'remainingNumbersAction' is 'keep'.", + "default": "" + }, + { + "name": "accountNumber", + "type": "STRING", + "description": "The authorized person's account number with the current service provider", + "default": "" + }, + { + "name": "portingOptionType", + "type": "SELECT", + "description": "A port can be either 'full' or 'partial'. When type is 'full' the other attributes should be ommitted.", + "default": "" + }, + { + "name": "businessIdentifier", + "type": "STRING", + "description": "European business identification number. Applicable only in the European Union", + "default": "" + }, + { + "name": "newBillingPhoneNumber", + "type": "STRING", + "description": "New billing telephone numbers for the remaining numbers. This will be set on your account with your current service provider and should be one of the numbers remaining on that account.", + "default": "" + }, + { + "name": "personOrCompanyName", + "type": "STRING", + "description": "Person Name or Company name requesting the port", + "default": "" + }, + { + "name": "extendedAddress", + "type": "STRING", + "description": "Second line of billing address", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateSingleDraftPortSubrequest\"\nquerystring = {\"focDateRequestedByUser\": \"\", \"apiToken\": \"\", \"locality\": \"\", \"defaultConnectionId\": \"\", \"pinPasscode\": \"\", \"authPersonName\": \"\", \"draftPortRequestId\": \"\", \"streetAddress\": \"\", \"postalCode\": \"\", \"taxIdentifier\": \"\", \"remainingNumbersAction\": \"\", \"username\": \"\", \"accountNumber\": \"\", \"portingOptionType\": \"\", \"businessIdentifier\": \"\", \"newBillingPhoneNumber\": \"\", \"countryCode\": \"\", \"subrequestId\": \"\", \"administrativeArea\": \"\", \"personOrCompanyName\": \"\", \"extendedAddress\": \"\", \"billingPhoneNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateSingleDraftPortSubrequest\"\nquerystring = {\"focDateRequestedByUser\": \"\", \"apiToken\": \"\", \"locality\": \"\", \"defaultConnectionId\": \"\", \"pinPasscode\": \"\", \"authPersonName\": \"\", \"draftPortRequestId\": \"\", \"streetAddress\": \"\", \"postalCode\": \"\", \"taxIdentifier\": \"\", \"remainingNumbersAction\": \"\", \"username\": \"\", \"accountNumber\": \"\", \"portingOptionType\": \"\", \"businessIdentifier\": \"\", \"newBillingPhoneNumber\": \"\", \"countryCode\": \"\", \"subrequestId\": \"\", \"administrativeArea\": \"\", \"personOrCompanyName\": \"\", \"extendedAddress\": \"\", \"billingPhoneNumber\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateSingleNumber", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateSingleNumber", + "description": "Updates a single number - ID supplied can be the telephone number (ex: +12124567890) or object ID", + "method": "POST", + "required_parameters": [ + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "Phone number or objectID", + "default": "" + }, + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "primaryIp", + "type": "STRING", + "description": "Primary ip", + "default": "" + }, + { + "name": "tertiaryIp", + "type": "STRING", + "description": "Tertiary ip", + "default": "" + }, + { + "name": "primaryFqdn", + "type": "STRING", + "description": "The primary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication.", + "default": "" + }, + { + "name": "secondaryFqdnPort", + "type": "NUMBER", + "description": "Port for the secondary FQDN", + "default": "" + }, + { + "name": "enableRtpAutoAdjust", + "type": "SELECT", + "description": "When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets.", + "default": "" + }, + { + "name": "forwardsTo", + "type": "STRING", + "description": "The number that this number should be forwarded to; when this is set, forwardingType must also be set", + "default": "" + }, + { + "name": "cnamListingDetails", + "type": "STRING", + "description": "The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnamListingEnabled to also be set. Changes to this must be reviewed by Telnyx support and will not be active until this process is complete.", + "default": "" + }, + { + "name": "secondaryPort", + "type": "NUMBER", + "description": "Secondary ip port", + "default": "" + }, + { + "name": "enableCallerIdName", + "type": "SELECT", + "description": "If true, enables sending of CNAME information for incoming calls to the number", + "default": "" + }, + { + "name": "tertiaryFqdn", + "type": "STRING", + "description": "The tertiary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication.", + "default": "" + }, + { + "name": "enableTechPrefix", + "type": "SELECT", + "description": "Whether tech prefix is enabled", + "default": "" + }, + { + "name": "acceptAnyRtpPacketsEnabled", + "type": "SELECT", + "description": "If true, accepts any rtp packets", + "default": "" + }, + { + "name": "routingMethod", + "type": "SELECT", + "description": "The method for selecting the next connection IP address to use when dispatching calls for the number. This value has no effect for numbers that are not on a connection using IP authentication.Can be sequential or round-robin", + "default": "" + }, + { + "name": "tertiaryFqdnPort", + "type": "NUMBER", + "description": "Port for the tertiary FQDN", + "default": "" + }, + { + "name": "secondaryFqdn", + "type": "STRING", + "description": "The secondary domain name for the number. Only relevant for numbers using a connection of FQDN-based authentication.", + "default": "" + }, + { + "name": "secondaryIp", + "type": "STRING", + "description": "Secondary ip", + "default": "" + }, + { + "name": "tertiaryPort", + "type": "NUMBER", + "description": "Tertiary ip port", + "default": "" + }, + { + "name": "primaryPort", + "type": "NUMBER", + "description": "Primary ip port", + "default": "" + }, + { + "name": "connectionId", + "type": "STRING", + "description": "Id of the connection", + "default": "" + }, + { + "name": "cnamListingEnabled", + "type": "SELECT", + "description": "Enable CNAM listings for this number. Requires cnamListingDetails to also be filled in. Changes to this must be reviewed by Telnyx support and will not be active until this process is complete.", + "default": "" + }, + { + "name": "forwardingType", + "type": "SELECT", + "description": "sets when this number should have its calls forwarded; valid values are 'always' and 'on-failure'", + "default": "" + }, + { + "name": "translatedNumber", + "type": "STRING", + "description": "Translated number", + "default": "" + }, + { + "name": "t38FaxGatewayEnabled", + "type": "SELECT", + "description": "If true, fax gateway is enabled", + "default": "" + }, + { + "name": "mediaHandlingMode", + "type": "SELECT", + "description": "default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. bypass: media routed directly between origination and termination endpoints. Only Telnyx support may set a number to bypass mode.Can be default, proxy or bypass", + "default": "" + }, + { + "name": "usagePaymentMethod", + "type": "SELECT", + "description": "setting for whether a number is billed per minute or uses your concurrent channels. Can be pay-per-minute or channel", + "default": "" + }, + { + "name": "primaryFqdnPort", + "type": "NUMBER", + "description": "Port for the primary FQDN", + "default": "" + }, + { + "name": "tagList", + "type": "LIST", + "description": "Array of tags for this number", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateSingleNumber\"\nquerystring = {\"primaryIp\": \"\", \"tertiaryIp\": \"\", \"primaryFqdn\": \"\", \"secondaryFqdnPort\": \"\", \"enableRtpAutoAdjust\": \"\", \"apiToken\": \"\", \"forwardsTo\": \"\", \"cnamListingDetails\": \"\", \"number\": \"\", \"secondaryPort\": \"\", \"enableCallerIdName\": \"\", \"tertiaryFqdn\": \"\", \"enableTechPrefix\": \"\", \"acceptAnyRtpPacketsEnabled\": \"\", \"routingMethod\": \"\", \"tertiaryFqdnPort\": \"\", \"secondaryFqdn\": \"\", \"secondaryIp\": \"\", \"tertiaryPort\": \"\", \"primaryPort\": \"\", \"connectionId\": \"\", \"cnamListingEnabled\": \"\", \"username\": \"\", \"forwardingType\": \"\", \"translatedNumber\": \"\", \"t38FaxGatewayEnabled\": \"\", \"mediaHandlingMode\": \"\", \"usagePaymentMethod\": \"\", \"primaryFqdnPort\": \"\", \"tagList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateSingleNumber\"\nquerystring = {\"primaryIp\": \"\", \"tertiaryIp\": \"\", \"primaryFqdn\": \"\", \"secondaryFqdnPort\": \"\", \"enableRtpAutoAdjust\": \"\", \"apiToken\": \"\", \"forwardsTo\": \"\", \"cnamListingDetails\": \"\", \"number\": \"\", \"secondaryPort\": \"\", \"enableCallerIdName\": \"\", \"tertiaryFqdn\": \"\", \"enableTechPrefix\": \"\", \"acceptAnyRtpPacketsEnabled\": \"\", \"routingMethod\": \"\", \"tertiaryFqdnPort\": \"\", \"secondaryFqdn\": \"\", \"secondaryIp\": \"\", \"tertiaryPort\": \"\", \"primaryPort\": \"\", \"connectionId\": \"\", \"cnamListingEnabled\": \"\", \"username\": \"\", \"forwardingType\": \"\", \"translatedNumber\": \"\", \"t38FaxGatewayEnabled\": \"\", \"mediaHandlingMode\": \"\", \"usagePaymentMethod\": \"\", \"primaryFqdnPort\": \"\", \"tagList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "updateTNMessagingSettings", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateTNMessagingSettings", + "description": "Use this endpoint to update the settings for one of your SMS-enabled numbers.", + "method": "POST", + "required_parameters": [ + { + "name": "username", + "type": "CREDENTIALS", + "description": "Your Telnyx username (email)", + "default": "" + }, + { + "name": "apiToken", + "type": "CREDENTIALS", + "description": "Api token received from Telnyx", + "default": "" + }, + { + "name": "profileId", + "type": "STRING", + "description": "Id of the messaging profile", + "default": "" + }, + { + "name": "number", + "type": "STRING", + "description": "The number in e164 format (without the plus sign)", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateTNMessagingSettings\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"profileId\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/updateTNMessagingSettings\"\nquerystring = {\"username\": \"\", \"apiToken\": \"\", \"profileId\": \"\", \"number\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "webhookEvent", + "url": "https://Telnyxstefan-skliarovV1.p.rapidapi.com/webhookEvent", + "description": "This method is called every time a Telnyx webhook event occurs", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "STRING", + "description": "Token sent on each message", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/webhookEvent\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://Telnyxstefan-skliarovV1.p.rapidapi.com/webhookEvent\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"Telnyxstefan-skliarovV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/test.json b/toolbench/toolenv/tools/Communication/test.json new file mode 100644 index 0000000000000000000000000000000000000000..33ada6a3415439bb49aa8f6b4878f3337da376db --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_7638de9d-b233-4d98-9b89-427d4cc1f34f", + "tool_description": "Test", + "home_url": "https://rapidapi.com/westwing-westwing-default/api/test9115/", + "name": "Test", + "title": "Test", + "pricing": "FREE", + "tool_name": "Test", + "score": { + "avgServiceLevel": 100, + "avgLatency": 154, + "avgSuccessRate": 100, + "popularityScore": 8.5, + "__typename": "Score" + }, + "host": "test9115.p.rapidapi.com", + "api_list": [ + { + "name": "createPets", + "url": "https://test9115.p.rapidapi.com/pets", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://test9115.p.rapidapi.com/pets\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test9115.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://test9115.p.rapidapi.com/pets\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test9115.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/test/api.py b/toolbench/toolenv/tools/Communication/test/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1fe6c0498339d3d40525fa122d68ee38c47a479a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "test" + + """ + url = f"https://test11541.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "test11541.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/test_apideno.json b/toolbench/toolenv/tools/Communication/test_apideno.json new file mode 100644 index 0000000000000000000000000000000000000000..1c754928775baf3946783dda3ae0029f99f5389e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test_apideno.json @@ -0,0 +1,31 @@ +{ + "tool_name":"test apideno", + "tool_description":"test api deno", + "title":"test apideno", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/devi-nopihananto-asdw/api/test-apideno/", + "host":"test-apideno.p.rapidapi.com", + "api_list":[ + { + "name":"article index", + "url":"https://test-apideno.p.rapidapi.com/index", + "description":"article index", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"NUMBER", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://test-apideno.p.rapidapi.com/index\"\nquerystring = {\"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test-apideno.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/test_apideno/api.py b/toolbench/toolenv/tools/Communication/test_apideno/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b61af093f76fb0572a9a19b04f626a9d306b887f --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test_apideno/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def article_index(limit: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "article index" + + """ + url = f"https://test-apideno.p.rapidapi.com/index" + querystring = {} + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "test-apideno.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/test_page.json b/toolbench/toolenv/tools/Communication/test_page.json new file mode 100644 index 0000000000000000000000000000000000000000..61734b81b120e5a9c56d7f5cb916d3921ad9d458 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test_page.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Test page", + "tool_description":"test", + "title":"Test page", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/RArnoux13/api/test-page/", + "host":"test-page.p.rapidapi.com", + "api_list":[ + { + "name":"test", + "url":"https://test-page.p.rapidapi.com/", + "description":"test", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://test-page.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"test-page.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/test_page/api.py b/toolbench/toolenv/tools/Communication/test_page/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f5dc82723a6ae4297aeca035bc8491185132f8b7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test_page/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def test(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "test" + + """ + url = f"https://test-page.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "test-page.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/test_v2/api.py b/toolbench/toolenv/tools/Communication/test_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..71f74c90b8b36723cbc346042d59c283e3515adb --- /dev/null +++ b/toolbench/toolenv/tools/Communication/test_v2/api.py @@ -0,0 +1,54 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def listpets(limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + limit: How many items to return at one time (max 100) + + """ + url = f"https://test9115.p.rapidapi.com/pets" + querystring = {} + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "test9115.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def showpetbyid(petid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + petid: The id of the pet to retrieve + + """ + url = f"https://test9115.p.rapidapi.com/pets/{petid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "test9115.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/text_analysis_apis.json b/toolbench/toolenv/tools/Communication/text_analysis_apis.json new file mode 100644 index 0000000000000000000000000000000000000000..24baf3a1a46a62896753548f1692deb6a76e5bf9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/text_analysis_apis.json @@ -0,0 +1,252 @@ +{ + "product_id": "58f0ae87e4b0096889c3bf1f", + "tool_description": "At Paralleldots, we provide solutions to build the smartest search engines and apps which can deeply understand world\u2019s conversations, sentiments, reports and news so you can align your business with customer preferences and intent.", + "home_url": "https://rapidapi.com/ParallelDots/api/text-analysis-apis/", + "name": "Text Analysis Apis", + "title": "Text Analysis Apis", + "pricing": "FREE", + "tool_name": "Text Analysis Apis", + "score": null, + "host": "paralleldots-text-analysis-v1.p.rapidapi.com", + "api_list": [ + { + "name": "/abuse", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/abuse", + "description": "Abusive content specifier specifies whether the content is abusive or not.", + "method": "POST", + "required_parameters": [ + { + "name": "api_key", + "type": "STRING", + "description": "Apikey", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "Pass a statement", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/abuse\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/abuse\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/keywords", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/keywords", + "description": "Keyword Generator are powerful tools in text analysis that can be used to index data, generate tag clouds and accelerate the searching time. It generates an extensive list of relevant keywords and phrases to make research more context focussed.", + "method": "POST", + "required_parameters": [ + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "Pass a statement", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/keywords\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/keywords\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/multilang", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/multilang", + "description": "Sentiment Analysis in your prefered language.Understand the underlying tone of the message for sentences in French and Portuguese.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Pass a sentence in portuguese , spanish or chinese language.", + "default": "" + }, + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + }, + { + "name": "lang_code", + "type": "STRING", + "description": "for spanish type='es', portuguese type='pt' and for chinese type = 'cn'", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/multilang\"\nquerystring = {\"text\": \"\", \"api_key\": \"\", \"lang_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/multilang\"\nquerystring = {\"text\": \"\", \"api_key\": \"\", \"lang_code\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/ner", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/ner", + "description": "Named-entity recognition(NER) can identify individuals, companies, places, organization, cities and other various type of entities. API can extract this information from any type of text, web page or social media network.", + "method": "POST", + "required_parameters": [ + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "Pass a sentence", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/ner\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/ner\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/sentiment", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/sentiment", + "description": "Understand the social sentiment of your brand, product or service while monitoring online conversations. Sentiment Analysis is contexual mining of text which identifies and extracts subjective information in source material.", + "method": "POST", + "required_parameters": [ + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "Pass a statement", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/sentiment\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/sentiment\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/sentiment_social", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/sentiment_social", + "description": "Understand the social sentiment of your brand, product or service while monitoring online conversations through twitter, facebook etc..", + "method": "POST", + "required_parameters": [ + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "pass a statement", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/sentiment_social\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/sentiment_social\"\nquerystring = {\"api_key\": \"\", \"text\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/similarity", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/similarity", + "description": "Semantic Analysis API helps users cluster similar articles by understanding the relatedness between different content and streamlines research by eliminating redundant text contents.", + "method": "POST", + "required_parameters": [ + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + }, + { + "name": "text_1", + "type": "STRING", + "description": "Pass first statement", + "default": "" + }, + { + "name": "text_2", + "type": "STRING", + "description": "Pass a second statement", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/similarity\"\nquerystring = {\"api_key\": \"\", \"text_1\": \"\", \"text_2\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/similarity\"\nquerystring = {\"api_key\": \"\", \"text_1\": \"\", \"text_2\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/taxonomy", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/taxonomy", + "description": "Text Classification can be useful in understanding customer behaviour by categorizing conversations on social networks, feedback and other web sources. Search engines, newspapers, or e-commerce portals categorize their content or products to facilitate the search and navigation", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/taxonomy\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/taxonomy\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/intent", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/intent", + "description": "Analyzing the underlying intent associated with any textual data.This classifier tells whether the underlying intention behind a sentence is opinion, news, marketing, complaint, suggestion, appreciation, and query", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Pass a statement", + "default": "" + }, + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/intent\"\nquerystring = {\"text\": \"\", \"api_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/intent\"\nquerystring = {\"text\": \"\", \"api_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "/emotion", + "url": "https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/emotion", + "description": "Detecting emotion attached to textual data on social media, surveys and customer feedback.Our Emotion Analysis classifier is trained on our proprietary dataset and tells whether the underlying emotion behind a message is: Happy, Sad, Angry, Fearful, Excited, Funny or Indifferent.", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "Pass a statement", + "default": "" + }, + { + "name": "api_key", + "type": "STRING", + "description": "Give your apikey", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/emotion\"\nquerystring = {\"text\": \"\", \"api_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://paralleldots-text-analysis-v1.p.rapidapi.com/v2/emotion\"\nquerystring = {\"text\": \"\", \"api_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"paralleldots-text-analysis-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/text_to_audio_api.json b/toolbench/toolenv/tools/Communication/text_to_audio_api.json new file mode 100644 index 0000000000000000000000000000000000000000..78efaffe768c5f66a801d5d5f9a85bfc91fee9a6 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/text_to_audio_api.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Text to Audio API", + "tool_description":"This API will takes text or sentence and return speech of text in an audio file format.", + "title":"Text to Audio API", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/namansahore/api/text-to-audio-api/", + "host":"text-to-audio-api.p.rapidapi.com", + "api_list":[ + { + "name":"Audio", + "url":"https://text-to-audio-api.p.rapidapi.com/audio", + "description":"This will return audio of the given text.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"", + "default":"hello world" + } + ], + "code":"import requests\n\nurl = \"https://text-to-audio-api.p.rapidapi.com/audio\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-audio-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/text_to_audio_api/api.py b/toolbench/toolenv/tools/Communication/text_to_audio_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6d278d1f8f0325efa743480d326d9b5fe3b057d8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/text_to_audio_api/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def audio(text: str='hello world', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This will return audio of the given text." + + """ + url = f"https://text-to-audio-api.p.rapidapi.com/audio" + querystring = {} + if text: + querystring['text'] = text + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-to-audio-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/textbelt_sms.json b/toolbench/toolenv/tools/Communication/textbelt_sms.json new file mode 100644 index 0000000000000000000000000000000000000000..05dde4c5a048c223714793d6010a3e7b0eefacb8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/textbelt_sms.json @@ -0,0 +1,49 @@ +{ + "product_id": "api_ab7a75d1-32a0-43ef-b361-d58b5d02c618", + "tool_description": "Send SMS text messages", + "home_url": "https://rapidapi.com/r4chestnut/api/textbelt-sms/", + "name": "Textbelt SMS", + "title": "Textbelt SMS", + "pricing": "FREEMIUM", + "tool_name": "Textbelt SMS", + "score": { + "avgServiceLevel": 100, + "avgLatency": 286, + "avgSuccessRate": 72, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "textbelt-sms.p.rapidapi.com", + "api_list": [ + { + "name": "Send Text", + "url": "https://textbelt-sms.p.rapidapi.com/text", + "description": "Sends an SMS message", + "method": "POST", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "API key. (\"textbelt\" key allows a test message)", + "default": "textbelt" + }, + { + "name": "message", + "type": "STRING", + "description": "Text message body", + "default": "" + }, + { + "name": "phone", + "type": "STRING", + "description": "Recipient phone number", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://textbelt-sms.p.rapidapi.com/text\"\nquerystring = {\"key\": \"textbelt\", \"message\": \"\", \"phone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textbelt-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://textbelt-sms.p.rapidapi.com/text\"\nquerystring = {\"key\": \"textbelt\", \"message\": \"\", \"phone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textbelt-sms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/textit.json b/toolbench/toolenv/tools/Communication/textit.json new file mode 100644 index 0000000000000000000000000000000000000000..e3b8132a2e5afabe30a3ad59352339484739221b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/textit.json @@ -0,0 +1,39 @@ +{ + "product_id": "53aa507ae4b00287471a188a", + "tool_description": "Easily create interactive SMS applications anywhere in the world. At the core of TextIt lies our exclusive Flow engine. With Flows, anybody can set up or modify a complex SMS application without the need of a programmer or expensive consulting company.\r\nUsing a basic Android phone, you can launch your application instantly in any country while avoiding expensive set-up costs or external technical support.", + "home_url": "https://rapidapi.com/community/api/textit/", + "name": "TextIt", + "title": "TextIt", + "pricing": "FREE", + "tool_name": "TextIt", + "score": null, + "host": "community-textit.p.rapidapi.com", + "api_list": [ + { + "name": "Claim Relayers", + "url": "https://community-textit.p.rapidapi.com/relayers.json", + "description": "You can associate a new Android relayer to your account by sending a POST request to this URL with the following JSON data:", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-textit.p.rapidapi.com/relayers.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-textit.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-textit.p.rapidapi.com/relayers.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-textit.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Sending Messages", + "url": "https://community-textit.p.rapidapi.com/sms.json", + "description": "You can create new messages by making a POST request to this URL with the following JSON data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-textit.p.rapidapi.com/sms.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-textit.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-textit.p.rapidapi.com/sms.json\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-textit.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/textit/api.py b/toolbench/toolenv/tools/Communication/textit/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f91b589f53d325f1c88840e1ecdba88137c8fd10 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/textit/api.py @@ -0,0 +1,140 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def calls(relayer: str=None, phone: str=None, created_on: str=None, duration: str=None, call_type: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the incoming and outgoing calls for your organization, most recent first." + relayer: which relayer received or placed this call (int) (filterable: relayer) + phone: the phone number of the caller or callee depending on the call_type (string) (filterable: phone) + created_on: when the call was received or sent (datetime) (filterable: before and after) + duration: the duration of the call in seconds (int, 0 for missed calls) + call_type: one of the following strings: (filterable: call_type) mt_call - Outgoing Call mo_call - Incoming Call mo_miss - Missed Incoming Call + + """ + url = f"https://community-textit.p.rapidapi.com/calls.json" + querystring = {} + if relayer: + querystring['relayer'] = relayer + if phone: + querystring['phone'] = phone + if created_on: + querystring['created_on'] = created_on + if duration: + querystring['duration'] = duration + if call_type: + querystring['call_type'] = call_type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-textit.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def listing_sms_messages(relayer: str=None, phone: str=None, direction: str=None, text: str=None, created_on: str=None, sent_on: str=None, delivered_on: str=None, status: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the SMS activity for your organization, listing the most recent messages first." + relayer: the id of the Android relayer that sent or received this message (int) (filterable: relayer) + phone: the phone number of the sender or receiver, depending on direction (string) (filterable: phone) + direction: the direction of the SMS, either I for incoming messages or O for outgoing (string) (filterable: direction) + text: the text of the message received, not this is the logical view, this message may have been received as multiple text messages (string) + created_on: the datetime when this sms was either received by the relayer or created by TextIt (datetime) (filterable: before and after) + sent_on: for outgoing messages, the datetime when the relayer sent the message (null if not yet sent or an incoming message) (datetime) + delivered_on: for outgoing messages, the datetime when the relayer delivered the message (null if not yet sent or an incoming message) (datetime) + status: the status of this message, a string one of: (filterable: status) Q - Message is queued awaiting to be sent S - Message has been sent by the relayer D - Message was delivered to the recipient H - Incoming message was handled by TextIt F - Message was not sent due to a failure + + """ + url = f"https://community-textit.p.rapidapi.com/sms.json" + querystring = {} + if relayer: + querystring['relayer'] = relayer + if phone: + querystring['phone'] = phone + if direction: + querystring['direction'] = direction + if text: + querystring['text'] = text + if created_on: + querystring['created_on'] = created_on + if sent_on: + querystring['sent_on'] = sent_on + if delivered_on: + querystring['delivered_on'] = delivered_on + if status: + querystring['status'] = status + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-textit.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_relayers(relayer: str=None, phone: str=None, name: str=None, country: str=None, last_seen: str=None, power_level: str=None, power_status: str=None, power_source: str=None, network_type: str=None, pending_message_count: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "A GET returns the list of Android relayers for your organization, in the order of last activity date. Note that all status information for the device is as of the last time it was seen and can be null before the first sync." + relayer: the id of the the relayer (long) + phone: the phone number for the relayer (string) (filterable: phone) + name: the name of this relayer (string) + country: which country the sim card for this relayer is registered for (string, two letter country code) (filterable: country) + last_seen: the datetime when this relayer was last seen by TextIt (datetime) (filterable: before and after) + power_level: the power level of the device (int) + power_status: the power status, either STATUS_DISCHARGING or STATUS_CHARGING (string) + power_source: the source of power as reported by Android (string) + network_type: the type of network the device is connected to as reported by Android (string) + pending_message_count: how many messages are assigned to this relayer but not yet sent (int) + + """ + url = f"https://community-textit.p.rapidapi.com/relayers.json" + querystring = {} + if relayer: + querystring['relayer'] = relayer + if phone: + querystring['phone'] = phone + if name: + querystring['name'] = name + if country: + querystring['country'] = country + if last_seen: + querystring['last_seen'] = last_seen + if power_level: + querystring['power_level'] = power_level + if power_status: + querystring['power_status'] = power_status + if power_source: + querystring['power_source'] = power_source + if network_type: + querystring['network_type'] = network_type + if pending_message_count: + querystring['pending_message_count'] = pending_message_count + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-textit.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/tmt_live.json b/toolbench/toolenv/tools/Communication/tmt_live.json new file mode 100644 index 0000000000000000000000000000000000000000..98c9ff00b65d08d5fd65d323518c056d16f00052 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/tmt_live.json @@ -0,0 +1,34 @@ +{ + "tool_name":"TMT Live ", + "tool_description":"Live is the new Pay As You Go real-time Lookup service from TMT Analysis. We are a leading provider of mobile numbering information and data globally. The service is available either via an online look up or via our API.", + "title":"TMT Live ", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/tmt-analysis-tmt-analysis-default/api/tmt-live/", + "host":"tmt-live.p.rapidapi.com", + "api_list":[ + { + "name":"GET", + "url":"https://tmt-live.p.rapidapi.com/{number}", + "description":"Detailed global phone number and subscriber data intelligence to strengthen authentications, evaluate fraud risks, and enhance the user experience.", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"NUMBER", + "description":"", + "default":"40766610060" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://tmt-live.p.rapidapi.com/{number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tmt-live.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/tmt_live/api.py b/toolbench/toolenv/tools/Communication/tmt_live/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2064293e31d577c0f907781d36fe5a739d2aff7d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/tmt_live/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get(number: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Detailed global phone number and subscriber data intelligence to strengthen authentications, evaluate fraud risks, and enhance the user experience." + + """ + url = f"https://tmt-live.p.rapidapi.com/{number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tmt-live.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/tmt_teleshield.json b/toolbench/toolenv/tools/Communication/tmt_teleshield.json new file mode 100644 index 0000000000000000000000000000000000000000..890767b8584092f89d57fff3256b5f997e8f01e2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/tmt_teleshield.json @@ -0,0 +1,33 @@ +{ + "product_id": "api_b0fef468-e4da-4003-9996-b48f8e9981bf", + "tool_description": "TeleShield\u2122 from TMT Analysis gives you the ability to detect and stop telephony fraud scams. Access to authoritative data using the TMT infrastructure enables easy integration into your business processes, using our powerful suite of telephone fraud prevention APIs. This covers Origin Based Rating (OBR) fraud, International Revenue Share Fraud (IRSF) and other common telephony fraud risks.\n", + "home_url": "https://rapidapi.com/tmt-analysis-tmt-analysis-default/api/tmt-teleshield/", + "name": "TMT Teleshield ", + "title": "TMT Teleshield ", + "pricing": "FREEMIUM", + "tool_name": "TMT Teleshield ", + "score": null, + "host": "tmt-teleshield.p.rapidapi.com", + "api_list": [ + { + "name": "POST Teleshield", + "url": "https://tmt-teleshield.p.rapidapi.com/teleshield/00447592792463", + "description": "Insert description here", + "method": "POST", + "required_parameters": [ + { + "name": "number", + "type": "STRING", + "description": "The number in E.164 format.", + "default": "00447592792463" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://tmt-teleshield.p.rapidapi.com/teleshield/00447592792463\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tmt-teleshield.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://tmt-teleshield.p.rapidapi.com/teleshield/{number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tmt-teleshield.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/tmt_velocity/api.py b/toolbench/toolenv/tools/Communication/tmt_velocity/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2507667e31ff8eb0d88d3a2e4b58bb13c3ade7d1 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/tmt_velocity/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get(number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Test description" + number: The number in E.164 format. + + """ + url = f"https://tmt-velocity.p.rapidapi.com/{number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tmt-velocity.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/translation_cloud.json b/toolbench/toolenv/tools/Communication/translation_cloud.json new file mode 100644 index 0000000000000000000000000000000000000000..81133d1b1586b38e536af576d94a1a6d27784ed4 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/translation_cloud.json @@ -0,0 +1,226 @@ +{ + "product_id": "53aa37a8e4b0a798dbd19670", + "tool_description": "Simple to use API to get machine and human translation in over 50 languages. Powered by Translation Cloud's network of 15,000 linguists.", + "home_url": "https://rapidapi.com/alexburan/api/translation-cloud/", + "name": "Translation Cloud", + "title": "Translation Cloud", + "pricing": "FREE", + "tool_name": "Translation Cloud", + "score": null, + "host": "alexburan-translation-cloud.p.rapidapi.com", + "api_list": [ + { + "name": "Retrieve the number of available translators for a given language pair.", + "url": "https://alexburan-translation-cloud.p.rapidapi.com/available_translators", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "dst", + "type": "STRING", + "description": "The language abbreviation of the target language.", + "default": "" + }, + { + "name": "src", + "type": "STRING", + "description": "The abbreviation of the source language.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/available_translators\"\nquerystring = {\"dst\": \"\", \"src\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/available_translators\"\nquerystring = {\"dst\": \"\", \"src\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Get a list of available languages and their abbreviations.", + "url": "https://alexburan-translation-cloud.p.rapidapi.com/languages", + "description": "", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Get a translation file for the supplied project ID.", + "url": "https://alexburan-translation-cloud.p.rapidapi.com/get_translation_file/project", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "project_id", + "type": "STRING", + "description": "The ID of the project you wish to retrieve the translation for.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "test", + "type": "STRING", + "description": "Run as a test to validate post data. Must be either \"n\" or \"y\". Defaults to \"n\". If run as a test, a dummy translation file will be returned as the response. (Any integer greater than 0 will validate for a project ID for tests.)", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/get_translation_file/project\"\nquerystring = {\"project_id\": \"\", \"test\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/get_translation_file/project\"\nquerystring = {\"project_id\": \"\", \"test\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Get a translation for the supplied project ID.", + "url": "https://alexburan-translation-cloud.p.rapidapi.com/get_translation/project", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "project_id", + "type": "STRING", + "description": "The ID of the project you wish to retrieve the translation for.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "test", + "type": "STRING", + "description": "Run as a test to validate post data. Must be either \"n\" or \"y\". Defaults to \"n\". If run as a test, dummy values for text, translation, and price values will be used in the response.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/get_translation/project\"\nquerystring = {\"project_id\": \"\", \"test\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/get_translation/project\"\nquerystring = {\"project_id\": \"\", \"test\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Get price", + "url": "https://alexburan-translation-cloud.p.rapidapi.com/get_price/project", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "dst", + "type": "STRING", + "description": "The abbreviation of the target language.", + "default": "" + }, + { + "name": "src", + "type": "STRING", + "description": "The abbreviation of the source language.", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "The text to translate. Text may be a JSON encoded. If text is JSON encoded, it must be in the format: [\"This is segment 1.\", \"This is segment 2.\", \"This is segment 3.\"].", + "default": "" + }, + { + "name": "translation_type", + "type": "STRING", + "description": "Must be either \"machine\" or \"post_edit\".", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "file", + "type": "STRING", + "description": "A file containing text to translate. Supported formats are .po, .properties, .rrc, .strings, .xls, .xlsx, .xml, .resx, .xlf, and .yml. If uploading a file, \"text\" and \"text_is_json_encoded\" will be ignored. The \"text\" value will automatically be set from the data in the file.", + "default": "" + }, + { + "name": "text_is_json_encoded", + "type": "STRING", + "description": "If the text is json encoded or not. Must be either \"n\" or \"y\". Defaults to \"n\". If text is JSON encoded, it must be in the format: [\"This is segment 1.\", \"This is segment 2.\", \"This is segment 3.\"].", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/get_price/project\"\nquerystring = {\"dst\": \"\", \"src\": \"\", \"text\": \"\", \"translation_type\": \"\", \"file\": \"\", \"text_is_json_encoded\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/get_price/project\"\nquerystring = {\"dst\": \"\", \"src\": \"\", \"text\": \"\", \"translation_type\": \"\", \"file\": \"\", \"text_is_json_encoded\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Project", + "url": "https://alexburan-translation-cloud.p.rapidapi.com/create/project", + "description": "Create a new project", + "method": "POST", + "required_parameters": [ + { + "name": "dst", + "type": "STRING", + "description": "The abbreviation of the target language.", + "default": "" + }, + { + "name": "src", + "type": "STRING", + "description": "The abbreviation of the source language.", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "The text to translate. Text may be a JSON encoded. If text is JSON encoded, it must be in the format: [\"This is segment 1.\", \"This is segment 2.\", \"This is segment 3.\"].", + "default": "" + }, + { + "name": "translation_type", + "type": "STRING", + "description": "Must be either \"machine\" or \"post_edit\".", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "callback", + "type": "STRING", + "description": "URL to contact when this project is completed. Defaults to \"\". Sends the project ID as \"project_id\" in POST data. Only works when \"translation_type\" is set to \"post_edit\".", + "default": "" + }, + { + "name": "file", + "type": "STRING", + "description": "A file containing text to translate. Supported formats are .po, .properties, .rrc, .strings, .xls, .xlsx, .xml, .resx, .xlf, and .yml. If uploading a file, \"text\" and \"text_is_json_encoded\" will be ignored. The \"text\" value will automatically be set from the data in the file.", + "default": "" + }, + { + "name": "special_instructions", + "type": "STRING", + "description": "Special instructions to the translators. Defaults to \"\".", + "default": "" + }, + { + "name": "text_is_json_encoded", + "type": "STRING", + "description": "If the text is json encoded or not. Must be either \"n\" or \"y\". Defaults to \"n\". If text is JSON encoded, it must be in the format: [\"This is segment 1.\", \"This is segment 2.\", \"This is segment 3.\"].", + "default": "" + }, + { + "name": "test", + "type": "STRING", + "description": "Run as a test to validate post data. Must be either \"n\" or \"y\". Defaults to \"n\". If run as a test, your credit card will not be charged, and dummy values for translations, project IDs, and prices will be used in the response.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/create/project\"\nquerystring = {\"dst\": \"\", \"src\": \"\", \"text\": \"\", \"translation_type\": \"\", \"callback\": \"\", \"file\": \"\", \"special_instructions\": \"\", \"text_is_json_encoded\": \"\", \"test\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://alexburan-translation-cloud.p.rapidapi.com/create/project\"\nquerystring = {\"dst\": \"\", \"src\": \"\", \"text\": \"\", \"translation_type\": \"\", \"callback\": \"\", \"file\": \"\", \"special_instructions\": \"\", \"text_is_json_encoded\": \"\", \"test\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alexburan-translation-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/translator.json b/toolbench/toolenv/tools/Communication/translator.json new file mode 100644 index 0000000000000000000000000000000000000000..c7376f20e17c84fad860b9265fa79969c52018ed --- /dev/null +++ b/toolbench/toolenv/tools/Communication/translator.json @@ -0,0 +1,37 @@ +{ + "product_id": "api_058d3edc-3f6b-4a27-8c81-69648f7f023e", + "tool_description": "Language Translator API for my Site", + "home_url": "https://rapidapi.com/w3care3/api/translator7/", + "name": "Translator", + "title": "Translator", + "pricing": "FREE", + "tool_name": "Translator", + "score": null, + "host": "translator7.p.rapidapi.com", + "api_list": [ + { + "name": "response", + "url": "https://translator7.p.rapidapi.comhttps://kustomspk.online/rapid_api.php", + "description": "response of translation", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "translated", + "type": "STRING", + "description": "", + "default": "hi" + }, + { + "name": "lang", + "type": "STRING", + "description": "", + "default": "es" + } + ], + "code": "import requests\n\nurl = \"https://translator7.p.rapidapi.comhttps://kustomspk.online/rapid_api.php\"\nquerystring = {\"translated\": \"hi\", \"lang\": \"es\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"translator7.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://translator7.p.rapidapi.comhttps://kustomspk.online/rapid_api.php\"\nquerystring = {\"translated\": \"hi\", \"lang\": \"es\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"translator7.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/trenalyze_whatsapp.json b/toolbench/toolenv/tools/Communication/trenalyze_whatsapp.json new file mode 100644 index 0000000000000000000000000000000000000000..1c1004281c63f0145a3f2ce9d756def4a94229d0 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/trenalyze_whatsapp.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_27118375-29d6-46b7-b469-434f0603a98d", + "tool_description": "You can send OTP's, Marketing messages, e.t.c via WhatsApp using your own custom WhatsApp number which your customers know. This would increase trust being the message is from a familiar sender.", + "home_url": "https://rapidapi.com/uvietoboretreasure-I7Y-IpTLkG/api/trenalyze-whatsapp/", + "name": "Trenalyze WhatsApp", + "title": "Trenalyze WhatsApp", + "pricing": "FREE", + "tool_name": "Trenalyze WhatsApp", + "score": { + "avgServiceLevel": 100, + "avgLatency": 427, + "avgSuccessRate": 56, + "popularityScore": 9.2, + "__typename": "Score" + }, + "host": "trenalyze-whatsapp.p.rapidapi.com", + "api_list": [ + { + "name": "Send Message", + "url": "https://trenalyze-whatsapp.p.rapidapi.com/api/send", + "description": "Send", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trenalyze-whatsapp.p.rapidapi.com/api/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trenalyze-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://trenalyze-whatsapp.p.rapidapi.com/api/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trenalyze-whatsapp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/trnscrptr.json b/toolbench/toolenv/tools/Communication/trnscrptr.json new file mode 100644 index 0000000000000000000000000000000000000000..2da8c172441d5590d36a965334ba4a220c3462e9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/trnscrptr.json @@ -0,0 +1,76 @@ +{ + "tool_name": "Trnscrptr", + "tool_description": "Generated transcriptions from Podcasts and Youtube videos", + "title": "Trnscrptr", + "pricing": "FREE", + "score": { + "avgServiceLevel": 100, + "avgLatency": 390, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/joshisplutar/api/trnscrptr/", + "host": "trnscrptr.p.rapidapi.com", + "api_list": [ + { + "name": "/transcripts", + "url": "https://trnscrptr.p.rapidapi.com/transcripts", + "description": "Add your own transcription of a podcast/video", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "api-key", + "type": "STRING", + "description": "", + "default": "TEST_KEY" + } + ], + "code": "import requests\n\nurl = \"https://trnscrptr.p.rapidapi.com/transcripts\"\nquerystring = {\"api-key\": api_key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trnscrptr.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "/transcripts", + "url": "https://trnscrptr.p.rapidapi.com/transcripts", + "description": "Collection Get for all Transcripts", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trnscrptr.p.rapidapi.com/transcripts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trnscrptr.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "/transcripts/1", + "url": "https://trnscrptr.p.rapidapi.com/transcripts/1", + "description": "Retrieve the transcript of your podcast or video replacing 1 with your id", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trnscrptr.p.rapidapi.com/transcripts/1\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trnscrptr.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "/transcripts", + "url": "https://trnscrptr.p.rapidapi.com/transcripts", + "description": "Add your own transcription of a podcast/video", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trnscrptr.p.rapidapi.com/transcripts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trnscrptr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://trnscrptr.p.rapidapi.com/transcripts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trnscrptr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/trnscrptr/api.py b/toolbench/toolenv/tools/Communication/trnscrptr/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7ea50112a242bfe82cfe4f19d85bbdba76b26722 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/trnscrptr/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def transcripts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Collection Get for all Transcripts" + + """ + url = f"https://trnscrptr.p.rapidapi.com/transcripts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trnscrptr.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def transcripts_1(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve the transcript of your podcast or video replacing 1 with your id" + + """ + url = f"https://trnscrptr.p.rapidapi.com/transcripts/1" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trnscrptr.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/truecaller/api.py b/toolbench/toolenv/tools/Communication/truecaller/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b084486763f9adf588e0076f80cc99e70667ee2a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/truecaller/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def is_id(is_id: int=16092070065, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "phone number with country code + example: 16092070065" + + """ + url = f"https://truecaller.p.rapidapi.com/" + querystring = {} + if is_id: + querystring['id'] = is_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "truecaller.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/truecaller_v2.json b/toolbench/toolenv/tools/Communication/truecaller_v2.json new file mode 100644 index 0000000000000000000000000000000000000000..e0ed7a37e75017d2907bd2b2e3441a7b403e0943 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/truecaller_v2.json @@ -0,0 +1,96 @@ +{ + "product_id": "api_d7e1ca3f-604b-48ea-a407-464ee69c7bd5", + "tool_description": "", + "home_url": "https://rapidapi.com/DataCrawler/api/truecaller4/", + "name": "Truecaller_v2", + "title": "Truecaller", + "pricing": "FREEMIUM", + "tool_name": "Truecaller_v2", + "score": { + "avgServiceLevel": 100, + "avgLatency": 578, + "avgSuccessRate": 100, + "popularityScore": 9.8, + "__typename": "Score" + }, + "host": "truecaller4.p.rapidapi.com", + "api_list": [ + { + "name": "Test API", + "url": "https://truecaller4.p.rapidapi.com/api/v1/test", + "description": "This API is to test if server is up and running", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/test\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/test\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Details", + "url": "https://truecaller4.p.rapidapi.com/api/v1/getDetails", + "description": "This end point will display the search details for the number you are looking for.", + "method": "GET", + "required_parameters": [ + { + "name": "phone", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "countryCode", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/getDetails\"\nquerystring = {\"phone\": \"\", \"countryCode\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/getDetails\"\nquerystring = {\"phone\": \"\", \"countryCode\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Country Codes", + "url": "https://truecaller4.p.rapidapi.com/api/v1/getCountryCodes", + "description": "This will return list of all country codes.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/getCountryCodes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/getCountryCodes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Bulk Details", + "url": "https://truecaller4.p.rapidapi.com/api/v1/getDetailsBulk", + "description": "This end point will display the search details for the bulk number's you are looking for.", + "method": "GET", + "required_parameters": [ + { + "name": "countryCode", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "phoneNumbers", + "type": "STRING", + "description": "Comma separated number (Without Country Code)\nExample:- 9768XXXXXX,1400XXXXXX,1400XXXXXX", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/getDetailsBulk\"\nquerystring = {\"countryCode\": \"\", \"phoneNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://truecaller4.p.rapidapi.com/api/v1/getDetailsBulk\"\nquerystring = {\"countryCode\": \"\", \"phoneNumbers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"truecaller4.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ], + "standardized_name": "truecaller_v2" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/truecaller_v2/api.py b/toolbench/toolenv/tools/Communication/truecaller_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f83b1ff2ea136e86369d2b47ae7613232260e0af --- /dev/null +++ b/toolbench/toolenv/tools/Communication/truecaller_v2/api.py @@ -0,0 +1,94 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def test_api(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This API is to test if server is up and running" + + """ + url = f"https://truecaller4.p.rapidapi.com/api/v1/test" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "truecaller4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_details(phone: int, countrycode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This end point will display the search details for the number you are looking for." + + """ + url = f"https://truecaller4.p.rapidapi.com/api/v1/getdetails" + querystring = {'phone': phone, 'countryCode': countrycode, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "truecaller4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_country_codes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This will return list of all country codes." + + """ + url = f"https://truecaller4.p.rapidapi.com/api/v1/getcountrycodes" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "truecaller4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_bulk_details(countrycode: str, phonenumbers: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This end point will display the search details for the bulk number's you are looking for." + phonenumbers: Comma separated number (Without Country Code) +Example:- 9768XXXXXX,1400XXXXXX,1400XXXXXX + + """ + url = f"https://truecaller4.p.rapidapi.com/api/v1/getdetailsbulk" + querystring = {'countryCode': countrycode, 'phoneNumbers': phonenumbers, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "truecaller4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/trumpetbox_cloud.json b/toolbench/toolenv/tools/Communication/trumpetbox_cloud.json new file mode 100644 index 0000000000000000000000000000000000000000..aa602ebd3fd86012de2c4cf3ad9f2c095a52788d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/trumpetbox_cloud.json @@ -0,0 +1,461 @@ +{ + "tool_name": "TrumpetBox Cloud", + "tool_description": "Thousands of businesses rely on TrumpetBox Cloud to communicate with their audience via text message. With our API, developers can access many of our platform\u2019s features and integrate them with other websites or applications.", + "title": "TrumpetBox Cloud", + "pricing": "FREE", + "score": { + "avgServiceLevel": 70, + "avgLatency": 842, + "avgSuccessRate": 70, + "popularityScore": 9, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/Hightechteam/api/trumpetbox-cloud/", + "host": "trumpetbox-cloud.p.rapidapi.com", + "api_list": [ + { + "name": "AddressBook-CreateGroup", + "url": "https://trumpetbox-cloud.p.rapidapi.com/group", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "{{name}}" + }, + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/group\"\nquerystring = {\"name\": name, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Messages-GetSentMessagesFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/sent", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + }, + { + "name": "priority", + "type": "STRING", + "description": "Only get prioritized sent messages (Optional)\n1 = Yes\n0 = No (Default)", + "default": "\"{{priority}}\"" + }, + { + "name": "limit", + "type": "STRING", + "description": "Number of results to return, default is 10 (Optional)\n\n", + "default": "\"{{limit}}\"" + }, + { + "name": "api", + "type": "STRING", + "description": "Only get sent messages by API (Optional)\n1 = Yes\n0 = No (Default)", + "default": "\"{{api}}\"" + }, + { + "name": "device", + "type": "STRING", + "description": "Get messages only from specific device (Optional)", + "default": "\"{{device}}\"" + }, + { + "name": "page", + "type": "STRING", + "description": "Pagination number to navigate result sets (Optional)\n\n", + "default": "\"{{page}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/sent\"\nquerystring = {\"key\": key, \"priority\": priority, \"limit\": limit, \"api\": api, \"device\": device, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "AddressBook-DeleteGroupFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/group", + "description": " ", + "method": "DELETE", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "ID of contact group", + "default": "\"{{id}}\"" + }, + { + "name": "key", + "type": "STRING", + "description": "Your TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/group\"\nquerystring = {\"id\": id, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "AddressBook-GetContactsFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/contacts", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "Your TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/contacts\"\nquerystring = {\"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Messages-GetReceivedMessagesFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/received", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + }, + { + "name": "limit", + "type": "STRING", + "description": "Number of results to return, default is 10 (Optional)", + "default": "\"{{limit}}\"" + }, + { + "name": "page", + "type": "STRING", + "description": "Pagination number to navigate result sets (Optional)", + "default": "\"{{page}}\"" + }, + { + "name": "device", + "type": "STRING", + "description": "Get received messages from specific device (Optional)", + "default": "\"{{device}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/received\"\nquerystring = {\"key\": key, \"limit\": limit, \"page\": page, \"device\": device}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Devices-GetAllDeviceInfoFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/devices", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/devices\"\nquerystring = {\"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Messages-SendMessageFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com//", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "sim", + "type": "STRING", + "description": "", + "default": "{{sim}}" + }, + { + "name": "phone", + "type": "STRING", + "description": "", + "default": "{{phone}}" + }, + { + "name": "priority", + "type": "STRING", + "description": "", + "default": "{{priority}}" + }, + { + "name": "device", + "type": "STRING", + "description": "", + "default": "{{device}}" + }, + { + "name": "message", + "type": "STRING", + "description": "", + "default": "{{message}}" + }, + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com//\"\nquerystring = {\"sim\": sim, \"phone\": phone, \"priority\": priority, \"device\": device, \"message\": message, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "AddressBook-CreateContact", + "url": "https://trumpetbox-cloud.p.rapidapi.com/contact", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/contact\"\nquerystring = {\"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Devices-GetASingleDeviceInfoFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/device", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "ID of the device", + "default": "\"{{id}}\"" + }, + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/device\"\nquerystring = {\"id\": id, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Messages-GetPendingMessagesFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/pending", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "device", + "type": "STRING", + "description": "ID of the specific device you want to get pending messages (Optional)\n\n", + "default": "\"{{device}}\"" + }, + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/pending\"\nquerystring = {\"device\": device, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "AddressBook-DeleteContactFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/contact", + "description": "Delete a contact from your TrumpetBox Cloud platform.", + "method": "DELETE", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "", + "default": "\"{{API_KEY}}\"" + }, + { + "name": "id", + "type": "STRING", + "description": "", + "default": "\"{{id}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/contact\"\nquerystring = {\"key\": key, \"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "AddressBook-GetGroupsFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com/groups", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "Your TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/groups\"\nquerystring = {\"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "AddressBook-CreateGroup", + "url": "https://trumpetbox-cloud.p.rapidapi.com/group", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "", + "default": "{{name}}" + }, + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/group\"\nquerystring = {\"name\": \"{{name}}\", \"key\": \"\\\"{{API_KEY}}\\\"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/group\"\nquerystring = {\"name\": \"{{name}}\", \"key\": \"\\\"{{API_KEY}}\\\"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Messages-SendMessageFromAccount", + "url": "https://trumpetbox-cloud.p.rapidapi.com//", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "sim", + "type": "STRING", + "description": "", + "default": "{{sim}}" + }, + { + "name": "phone", + "type": "STRING", + "description": "", + "default": "{{phone}}" + }, + { + "name": "priority", + "type": "STRING", + "description": "", + "default": "{{priority}}" + }, + { + "name": "device", + "type": "STRING", + "description": "", + "default": "{{device}}" + }, + { + "name": "message", + "type": "STRING", + "description": "", + "default": "{{message}}" + }, + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com//\"\nquerystring = {\"sim\": \"{{sim}}\", \"phone\": \"{{phone}}\", \"priority\": \"{{priority}}\", \"device\": \"{{device}}\", \"message\": \"{{message}}\", \"key\": \"\\\"{{API_KEY}}\\\"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com//\"\nquerystring = {\"sim\": \"{{sim}}\", \"phone\": \"{{phone}}\", \"priority\": \"{{priority}}\", \"device\": \"{{device}}\", \"message\": \"{{message}}\", \"key\": \"\\\"{{API_KEY}}\\\"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "AddressBook-CreateContact", + "url": "https://trumpetbox-cloud.p.rapidapi.com/contact", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "TrumpetBox Cloud API KEY", + "default": "\"{{API_KEY}}\"" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/contact\"\nquerystring = {\"key\": \"\\\"{{API_KEY}}\\\"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://trumpetbox-cloud.p.rapidapi.com/contact\"\nquerystring = {\"key\": \"\\\"{{API_KEY}}\\\"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"trumpetbox-cloud.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/trumpetbox_cloud/api.py b/toolbench/toolenv/tools/Communication/trumpetbox_cloud/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fb97f9ded4e570cfee4262c4cd7c6709461f5abe --- /dev/null +++ b/toolbench/toolenv/tools/Communication/trumpetbox_cloud/api.py @@ -0,0 +1,182 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def messages_getsentmessagesfromaccount(key: str, priority: str, limit: str, api: str, device: str, page: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + key: TrumpetBox Cloud API KEY + priority: Only get prioritized sent messages (Optional) +1 = Yes +0 = No (Default) + limit: Number of results to return, default is 10 (Optional) + + + api: Only get sent messages by API (Optional) +1 = Yes +0 = No (Default) + device: Get messages only from specific device (Optional) + page: Pagination number to navigate result sets (Optional) + + + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/sent" + querystring = {'key': key, 'priority': priority, 'limit': limit, 'api': api, 'device': device, 'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def addressbook_getcontactsfromaccount(key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + key: Your TrumpetBox Cloud API KEY + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/contacts" + querystring = {'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_getreceivedmessagesfromaccount(key: str, limit: str, page: str, device: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + key: TrumpetBox Cloud API KEY + limit: Number of results to return, default is 10 (Optional) + page: Pagination number to navigate result sets (Optional) + device: Get received messages from specific device (Optional) + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/received" + querystring = {'key': key, 'limit': limit, 'page': page, 'device': device, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def devices_getalldeviceinfofromaccount(key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + key: TrumpetBox Cloud API KEY + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/devices" + querystring = {'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def devices_getasingledeviceinfofromaccount(is_id: str, key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + id: ID of the device + key: TrumpetBox Cloud API KEY + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/device" + querystring = {'id': is_id, 'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def messages_getpendingmessagesfromaccount(device: str, key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + device: ID of the specific device you want to get pending messages (Optional) + + + key: TrumpetBox Cloud API KEY + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/pending" + querystring = {'device': device, 'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def addressbook_getgroupsfromaccount(key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + key: Your TrumpetBox Cloud API KEY + + """ + url = f"https://trumpetbox-cloud.p.rapidapi.com/groups" + querystring = {'key': key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "trumpetbox-cloud.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/typing_biometrics_authentication.json b/toolbench/toolenv/tools/Communication/typing_biometrics_authentication.json new file mode 100644 index 0000000000000000000000000000000000000000..eaa0387d5a2d8944c2bde3cc1d9bc6619faca625 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/typing_biometrics_authentication.json @@ -0,0 +1,105 @@ +{ + "product_id": "58d11c74e4b0f281422bebbc", + "tool_description": "Use the way people type, on their keyboards, for authentication.", + "home_url": "https://rapidapi.com/cristiantypingdna/api/typing-biometrics-authentication/", + "name": "Typing Biometrics Authentication", + "title": "Typing Biometrics Authentication", + "pricing": "FREEMIUM", + "tool_name": "Typing Biometrics Authentication", + "score": null, + "host": "cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Verify typing pattern", + "url": "https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/verify/{id}", + "description": "To authenticate a user you need to record a new typing pattern, then you have to make the /verify request. The longer the text, the better the matching accuracy. We recommend to ask for 120+ chars from users. Shorter texts will produce more false positives/false negatives. However, our algorithms have proven to be very reliable even as low as 70~80 chars.", + "method": "POST", + "required_parameters": [ + { + "name": "tp", + "type": "STRING", + "description": "A typing pattern recorded with the TypingDNA JavaScript class", + "default": "" + }, + { + "name": "id", + "type": "STRING", + "description": "A string of your choice that identifies the user", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "quality", + "type": "NUMBER", + "description": "1, 2 , 3 or 4 default: 1, recommended: 2", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/verify/{id}\"\nquerystring = {\"tp\": \"\", \"quality\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/verify/{id}\"\nquerystring = {\"tp\": \"\", \"quality\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Match typing patterns", + "url": "https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/match", + "description": "If you want you can save your typing patterns yourself, so that you only use the /match request, which is the bread and butter of TypingDNA. In this case you don\u2019t have to provide any user id, you only have to send us two or more typing patterns and we will respond with a result (similar to a verify request, but you don\u2019t store the data with us at all).", + "method": "POST", + "required_parameters": [ + { + "name": "tp1", + "type": "STRING", + "description": "A new typing pattern recorded with the TypingDNA JavaScript class.", + "default": "" + }, + { + "name": "tp2", + "type": "STRING", + "description": "An old typing pattern recorded with the TypingDNA JavaScript class. Multiple old typing patterns should be separated by ;", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "quality", + "type": "NUMBER", + "description": "1, 2 , 3 or 4 default: 1, recommended: 2", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/match\"\nquerystring = {\"tp1\": \"\", \"tp2\": \"\", \"quality\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/match\"\nquerystring = {\"tp1\": \"\", \"tp2\": \"\", \"quality\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Save typing pattern", + "url": "https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/save/{id}", + "description": "To save/enroll a new user and/or a new typing pattern you have to make the /save request. For best accuracy, especially against a short text later, we recommend the enrolled typing patterns to be recorded on texts of 170 chars or more. We recommend to save at least 2 typing patterns per user in order to perform accurate authentications.", + "method": "POST", + "required_parameters": [ + { + "name": "tp", + "type": "STRING", + "description": "A typing pattern recorded with the TypingDNA JavaScript class", + "default": "" + }, + { + "name": "id", + "type": "STRING", + "description": "A string of your choice that identifies the user", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/save/{id}\"\nquerystring = {\"tp\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/save/{id}\"\nquerystring = {\"tp\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/typing_biometrics_authentication/api.py b/toolbench/toolenv/tools/Communication/typing_biometrics_authentication/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8cae731b5d78096dc96008c7f4e89daf8bdfba5d --- /dev/null +++ b/toolbench/toolenv/tools/Communication/typing_biometrics_authentication/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check_user(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "To check if a user exists and get the number of saved typing patterns. We recommend to save at least 2 typing patterns per user (170+ chars) in order to perform accurate authentications." + id: A string of your choice that identifies the user + + """ + url = f"https://cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com/user/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cristiandna-typing-biometrics-authentication-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/ulasan7.json b/toolbench/toolenv/tools/Communication/ulasan7.json new file mode 100644 index 0000000000000000000000000000000000000000..d331478b8c15ba5c2b06b53cb30c15829f504c76 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ulasan7.json @@ -0,0 +1,31 @@ +{ + "tool_name":"ulasan7", + "tool_description":"mengenmbangkan apliikasi", + "title":"ulasan7", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/imanrahayuda935-QUJHCs4gOUq/api/ulasan7/", + "host":"ulasan7.p.rapidapi.com", + "api_list":[ + { + "name":"ulasan7", + "url":"https://ulasan7.p.rapidapi.com/", + "description":"mengembangkan", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"api", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://ulasan7.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ulasan7.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/ulasan7/api.py b/toolbench/toolenv/tools/Communication/ulasan7/api.py new file mode 100644 index 0000000000000000000000000000000000000000..af617b1628ba9e0108f1db306298f59bb618c83c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/ulasan7/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ulasan7(api: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "mengembangkan" + + """ + url = f"https://ulasan7.p.rapidapi.com/" + querystring = {} + if api: + querystring['api'] = api + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ulasan7.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/unofficial_telegram_api/api.py b/toolbench/toolenv/tools/Communication/unofficial_telegram_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..472882728993a4479a777de07ce09d9cfdceb33a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/unofficial_telegram_api/api.py @@ -0,0 +1,56 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_user_info(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get user info from all accounts with customized handle. The API accepts both username(.e.g. dinonl) or user ID." + + """ + url = f"https://unofficial-telegram-api.p.rapidapi.com/getfullinfo" + querystring = {'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "unofficial-telegram-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_messages(is_id: str, from_id: int=None, limit: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get messages in all public chats, groups and channel. Note: The user ID per message can be used through getFullInfo call to get user details." + from_id: This will return all messages with ID that is bigger than the ID passed. + limit: If no limit provided, default = 20 + + """ + url = f"https://unofficial-telegram-api.p.rapidapi.com/gethistory/" + querystring = {'id': is_id, } + if from_id: + querystring['from_id'] = from_id + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "unofficial-telegram-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/upcall.json b/toolbench/toolenv/tools/Communication/upcall.json new file mode 100644 index 0000000000000000000000000000000000000000..13d432884eceba1c23b23bbd0159fdd85139a032 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/upcall.json @@ -0,0 +1,936 @@ +{ + "tool_name": "Upcall", + "tool_description": "Upcall provides phone callers through an API and web interface. Simply send us your phone numbers and our professional callers will call them for you within minutes. We are the next generation call center. Contact us for more info!", + "title": "Upcall", + "pricing": "FREE", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1163, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/upcall/api/upcall/", + "host": "upcall-upcall-v1.p.rapidapi.com", + "api_list": [ + { + "name": "fetchSpecificContact", + "url": "https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}", + "description": "Get a specific contact", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of contact to fetch", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "custom_fields", + "type": "NUMBER", + "description": "If set, custom fields will be displayed in the output", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}\"\nquerystring = {\"custom_fields\": custom_fields}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createCampaign", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns", + "description": "Create a new campaign", + "method": "POST", + "required_parameters": [ + { + "name": "campaign", + "type": "NUMBER", + "description": "Campaign data", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns\"\nquerystring = {\"campaign\": campaign}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchCustomFields", + "url": "https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}/custom_fields", + "description": "Get custom fields", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of contact", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}/custom_fields\"\nquerystring = {\"start_id\": start_id, \"limit\": limit, \"end_id\": end_id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchWebhooks", + "url": "https://upcall-upcall-v1.p.rapidapi.com/webhooks", + "description": "Get all webhooks", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "url", + "type": "NUMBER", + "description": "Filter. Filter collection by url", + "default": "Some()" + }, + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: url, kind", + "default": "Some()" + }, + { + "name": "kind", + "type": "NUMBER", + "description": "Filter. Filter collection by kind", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks\"\nquerystring = {\"url\": url, \"start_id\": start_id, \"end_id\": end_id, \"limit\": limit, \"sort\": sort, \"kind\": kind}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "updateWebhook", + "url": "https://upcall-upcall-v1.p.rapidapi.com/webhooks/{id}", + "description": "Update a webhook", + "method": "PATCH", + "required_parameters": [ + { + "name": "webhook", + "type": "NUMBER", + "description": "Webhook data", + "default": "Some()" + }, + { + "name": "id", + "type": "NUMBER", + "description": "ID of webhook", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks/{id}\"\nquerystring = {\"webhook\": webhook}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.patch(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createWebhook", + "url": "https://upcall-upcall-v1.p.rapidapi.com/webhooks", + "description": "Create a new webhook", + "method": "POST", + "required_parameters": [ + { + "name": "webhook", + "type": "NUMBER", + "description": "Webhook data", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks\"\nquerystring = {\"webhook\": webhook}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchOauthAuthorizedApplications", + "url": "https://upcall-upcall-v1.p.rapidapi.com/oauth/authorized_applications", + "description": "Fetch Oauth authorized applications", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/oauth/authorized_applications\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "updateContact", + "url": "https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}", + "description": "Update a contact", + "method": "PATCH", + "required_parameters": [ + { + "name": "contact", + "type": "NUMBER", + "description": "Contact data", + "default": "Some()" + }, + { + "name": "id", + "type": "NUMBER", + "description": "ID of contact to update", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "custom_fields", + "type": "NUMBER", + "description": "If set, custom fields will be displayed in the output", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}\"\nquerystring = {\"contact\": contact, \"custom_fields\": custom_fields}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.patch(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchCampaigns", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns", + "description": "Get all campaigns", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "min_start_date", + "type": "NUMBER", + "description": "Filter. Format: YYYY-MM-DD. Filter collection by min_start_date, required max_start_date too.", + "default": "Some()" + }, + { + "name": "max_updated_datetime", + "type": "NUMBER", + "description": "Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by max_updated_datetime, required min_updated_datetime too.", + "default": "Some()" + }, + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: name, status, kind, created_at, start_date", + "default": "Some()" + }, + { + "name": "min_created_datetime", + "type": "NUMBER", + "description": "Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by min_created_datetime, required max_created_datetime too.", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "max_created_datetime", + "type": "NUMBER", + "description": "Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by max_created_datetime, required min_created_datetime too.", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "name", + "type": "NUMBER", + "description": "Filter. Filter collection by name", + "default": "Some()" + }, + { + "name": "max_start_date", + "type": "NUMBER", + "description": "Filter. Format: YYYY-MM-DD. Filter collection by max_start_date, required mix_start_date too.", + "default": "Some()" + }, + { + "name": "min_updated_datetime", + "type": "NUMBER", + "description": "Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by min_updated_datetime, required max_updated_datetime too.", + "default": "Some()" + }, + { + "name": "language", + "type": "NUMBER", + "description": "Filter. Filter collection by language", + "default": "Some()" + }, + { + "name": "status", + "type": "NUMBER", + "description": "Filter. Filter collection by status", + "default": "Some()" + }, + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns\"\nquerystring = {\"min_start_date\": min_start_date, \"max_updated_datetime\": max_updated_datetime, \"sort\": sort, \"min_created_datetime\": min_created_datetime, \"limit\": limit, \"max_created_datetime\": max_created_datetime, \"end_id\": end_id, \"name\": name, \"max_start_date\": max_start_date, \"min_updated_datetime\": min_updated_datetime, \"language\": language, \"status\": status, \"start_id\": start_id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchCallsForCampaign", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/calls", + "description": "Get all calls for a campaign", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "status", + "type": "NUMBER", + "description": "Filter. Filter collection by status", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "caller_name", + "type": "NUMBER", + "description": "Filter. Filter collection by caller name", + "default": "Some()" + }, + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: status, called_at", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/calls\"\nquerystring = {\"status\": status, \"limit\": limit, \"start_id\": start_id, \"end_id\": end_id, \"caller_name\": caller_name, \"sort\": sort}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchWebhook", + "url": "https://upcall-upcall-v1.p.rapidapi.com/webhooks/{id}", + "description": "Get a specific webhook", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of webhook", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchContactAnswers", + "url": "https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}/answers", + "description": "Get contact's answers", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of contact", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "result", + "type": "NUMBER", + "description": "Filter. Filter collection by result", + "default": "Some()" + }, + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: answer_type, created_at", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}/answers\"\nquerystring = {\"end_id\": end_id, \"start_id\": start_id, \"limit\": limit, \"result\": result, \"sort\": sort}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchCampaign", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}", + "description": "Get a specific campaign", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchQuestionAnswers", + "url": "https://upcall-upcall-v1.p.rapidapi.com/questions/{id}/answers", + "description": "Get question's answers", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of question", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: created_at", + "default": "Some()" + }, + { + "name": "result", + "type": "NUMBER", + "description": "Filter. Filter collection by result", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/questions/{id}/answers\"\nquerystring = {\"start_id\": start_id, \"limit\": limit, \"end_id\": end_id, \"sort\": sort, \"result\": result}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchContacts", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/contacts", + "description": "Get contacts for a campaign", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: last_name, first_name, company, calls.status\n calls.called_at, calls.caller.user.first_name, calls.caller.user.last_name, urgency", + "default": "Some()" + }, + { + "name": "last_name", + "type": "NUMBER", + "description": "Filter. Filter collection by last_name", + "default": "Some()" + }, + { + "name": "urgency", + "type": "NUMBER", + "description": "Filter. Filter collection by urgency", + "default": "Some()" + }, + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "name", + "type": "NUMBER", + "description": "Filter. Filter collection by name", + "default": "Some()" + }, + { + "name": "company", + "type": "NUMBER", + "description": "Filter. Filter collection by company", + "default": "Some()" + }, + { + "name": "field_id", + "type": "NUMBER", + "description": "Filter. Filter collection by field_id", + "default": "Some()" + }, + { + "name": "phone", + "type": "NUMBER", + "description": "Filter. Filter collection by phone", + "default": "Some()" + }, + { + "name": "email", + "type": "NUMBER", + "description": "Filter. Filter collection by email", + "default": "Some()" + }, + { + "name": "custom_fields", + "type": "NUMBER", + "description": "If set, custom fields will be displayed in the output", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "status", + "type": "NUMBER", + "description": "Filter. Filter collection by status", + "default": "Some()" + }, + { + "name": "first_name", + "type": "NUMBER", + "description": "Filter. Filter collection by first_name", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/contacts\"\nquerystring = {\"sort\": sort, \"last_name\": last_name, \"urgency\": urgency, \"start_id\": start_id, \"name\": name, \"company\": company, \"field_id\": field_id, \"phone\": phone, \"email\": email, \"custom_fields\": custom_fields, \"limit\": limit, \"end_id\": end_id, \"status\": status, \"first_name\": first_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createContact", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/contacts", + "description": "Add a contact to a campaign", + "method": "POST", + "required_parameters": [ + { + "name": "contact", + "type": "NUMBER", + "description": "Contact data", + "default": "Some()" + }, + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "custom_fields", + "type": "NUMBER", + "description": "If set, custom fields will be displayed in the output", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/contacts\"\nquerystring = {\"contact\": contact, \"custom_fields\": custom_fields}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "revokeOauthAuthorizedApplication", + "url": "https://upcall-upcall-v1.p.rapidapi.com/oauth/authorized_applications/{id}", + "description": "Revoke Oauth authorized application", + "method": "DELETE", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of authorized application", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/oauth/authorized_applications/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "deleteContact", + "url": "https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}", + "description": "Delete contact", + "method": "DELETE", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of contact to delete", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/contacts/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "deleteCampaign", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}", + "description": "Delete a campaign", + "method": "DELETE", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "updateCampaign", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}", + "description": "Update a campaign", + "method": "PATCH", + "required_parameters": [ + { + "name": "campaign", + "type": "NUMBER", + "description": "Campaign data", + "default": "Some()" + }, + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}\"\nquerystring = {\"campaign\": campaign}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.patch(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchCampaignQuestions", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/questions", + "description": "Get campaign's questions", + "method": "GET", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/questions\"\nquerystring = {\"start_id\": start_id, \"end_id\": end_id, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "fetchCalls", + "url": "https://upcall-upcall-v1.p.rapidapi.com/calls", + "description": "Get all calls", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "status", + "type": "NUMBER", + "description": "Filter. Filter collection by status", + "default": "Some()" + }, + { + "name": "caller_name", + "type": "NUMBER", + "description": "Filter. Filter collection by caller name", + "default": "Some()" + }, + { + "name": "sort", + "type": "NUMBER", + "description": "Sort field. Available fields: status, called_at", + "default": "Some()" + }, + { + "name": "start_id", + "type": "NUMBER", + "description": "Object ID to fetch next page", + "default": "Some()" + }, + { + "name": "limit", + "type": "NUMBER", + "description": "Amount of records to return. 25 by default.", + "default": "Some()" + }, + { + "name": "end_id", + "type": "NUMBER", + "description": "Object ID to fetch previous page", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/calls\"\nquerystring = {\"status\": status, \"caller_name\": caller_name, \"sort\": sort, \"start_id\": start_id, \"limit\": limit, \"end_id\": end_id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "deleteWebhook", + "url": "https://upcall-upcall-v1.p.rapidapi.com/webhooks/{id}", + "description": "Delete a webhook", + "method": "DELETE", + "required_parameters": [ + { + "name": "id", + "type": "NUMBER", + "description": "ID of webhook", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "createCampaign", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns", + "description": "Create a new campaign", + "method": "POST", + "required_parameters": [ + { + "name": "campaign", + "type": "NUMBER", + "description": "Campaign data", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns\"\nquerystring = {\"campaign\": \"Some()\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns\"\nquerystring = {\"campaign\": \"Some()\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createWebhook", + "url": "https://upcall-upcall-v1.p.rapidapi.com/webhooks", + "description": "Create a new webhook", + "method": "POST", + "required_parameters": [ + { + "name": "webhook", + "type": "NUMBER", + "description": "Webhook data", + "default": "Some()" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks\"\nquerystring = {\"webhook\": \"Some()\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/webhooks\"\nquerystring = {\"webhook\": \"Some()\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "createContact", + "url": "https://upcall-upcall-v1.p.rapidapi.com/campaigns/Some()/contacts", + "description": "Add a contact to a campaign", + "method": "POST", + "required_parameters": [ + { + "name": "contact", + "type": "NUMBER", + "description": "Contact data", + "default": "Some()" + }, + { + "name": "id", + "type": "NUMBER", + "description": "ID of campaign", + "default": "Some()" + } + ], + "optional_parameters": [ + { + "name": "custom_fields", + "type": "NUMBER", + "description": "If set, custom fields will be displayed in the output", + "default": "Some()" + } + ], + "code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/Some()/contacts\"\nquerystring = {\"contact\": \"Some()\", \"custom_fields\": \"Some()\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{id}/contacts\"\nquerystring = {\"contact\": \"Some()\", \"custom_fields\": \"Some()\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"upcall-upcall-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/upcall/api.py b/toolbench/toolenv/tools/Communication/upcall/api.py new file mode 100644 index 0000000000000000000000000000000000000000..113667c216a2646ad51a6126e6deb220bba146e8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/upcall/api.py @@ -0,0 +1,477 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def fetchspecificcontact(is_id: int, custom_fields: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific contact" + id: ID of contact to fetch + custom_fields: If set, custom fields will be displayed in the output + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/contacts/{is_id}" + querystring = {} + if custom_fields: + querystring['custom_fields'] = custom_fields + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcustomfields(is_id: int, start_id: int=None, limit: int=None, end_id: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get custom fields" + id: ID of contact + start_id: Object ID to fetch next page + limit: Amount of records to return. 25 by default. + end_id: Object ID to fetch previous page + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/contacts/{is_id}/custom_fields" + querystring = {} + if start_id: + querystring['start_id'] = start_id + if limit: + querystring['limit'] = limit + if end_id: + querystring['end_id'] = end_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchwebhooks(url: int=None, start_id: int=None, end_id: int=None, limit: int=None, sort: int=None, kind: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all webhooks" + url: Filter. Filter collection by url + start_id: Object ID to fetch next page + end_id: Object ID to fetch previous page + limit: Amount of records to return. 25 by default. + sort: Sort field. Available fields: url, kind + kind: Filter. Filter collection by kind + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/webhooks" + querystring = {} + if url: + querystring['url'] = url + if start_id: + querystring['start_id'] = start_id + if end_id: + querystring['end_id'] = end_id + if limit: + querystring['limit'] = limit + if sort: + querystring['sort'] = sort + if kind: + querystring['kind'] = kind + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchoauthauthorizedapplications(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Fetch Oauth authorized applications" + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/oauth/authorized_applications" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcampaigns(min_start_date: int=None, max_updated_datetime: int=None, sort: int=None, min_created_datetime: int=None, limit: int=None, max_created_datetime: int=None, end_id: int=None, name: int=None, max_start_date: int=None, min_updated_datetime: int=None, language: int=None, status: int=None, start_id: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all campaigns" + min_start_date: Filter. Format: YYYY-MM-DD. Filter collection by min_start_date, required max_start_date too. + max_updated_datetime: Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by max_updated_datetime, required min_updated_datetime too. + sort: Sort field. Available fields: name, status, kind, created_at, start_date + min_created_datetime: Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by min_created_datetime, required max_created_datetime too. + limit: Amount of records to return. 25 by default. + max_created_datetime: Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by max_created_datetime, required min_created_datetime too. + end_id: Object ID to fetch previous page + name: Filter. Filter collection by name + max_start_date: Filter. Format: YYYY-MM-DD. Filter collection by max_start_date, required mix_start_date too. + min_updated_datetime: Filter. Format: YYYY-MM-DDTHH:MM:SS. Filter collection by min_updated_datetime, required max_updated_datetime too. + language: Filter. Filter collection by language + status: Filter. Filter collection by status + start_id: Object ID to fetch next page + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/campaigns" + querystring = {} + if min_start_date: + querystring['min_start_date'] = min_start_date + if max_updated_datetime: + querystring['max_updated_datetime'] = max_updated_datetime + if sort: + querystring['sort'] = sort + if min_created_datetime: + querystring['min_created_datetime'] = min_created_datetime + if limit: + querystring['limit'] = limit + if max_created_datetime: + querystring['max_created_datetime'] = max_created_datetime + if end_id: + querystring['end_id'] = end_id + if name: + querystring['name'] = name + if max_start_date: + querystring['max_start_date'] = max_start_date + if min_updated_datetime: + querystring['min_updated_datetime'] = min_updated_datetime + if language: + querystring['language'] = language + if status: + querystring['status'] = status + if start_id: + querystring['start_id'] = start_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcallsforcampaign(is_id: int, status: int=None, limit: int=None, start_id: int=None, end_id: int=None, caller_name: int=None, sort: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all calls for a campaign" + id: ID of campaign + status: Filter. Filter collection by status + limit: Amount of records to return. 25 by default. + start_id: Object ID to fetch next page + end_id: Object ID to fetch previous page + caller_name: Filter. Filter collection by caller name + sort: Sort field. Available fields: status, called_at + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{is_id}/calls" + querystring = {} + if status: + querystring['status'] = status + if limit: + querystring['limit'] = limit + if start_id: + querystring['start_id'] = start_id + if end_id: + querystring['end_id'] = end_id + if caller_name: + querystring['caller_name'] = caller_name + if sort: + querystring['sort'] = sort + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchwebhook(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific webhook" + id: ID of webhook + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/webhooks/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcontactanswers(is_id: int, end_id: int=None, start_id: int=None, limit: int=None, result: int=None, sort: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get contact's answers" + id: ID of contact + end_id: Object ID to fetch previous page + start_id: Object ID to fetch next page + limit: Amount of records to return. 25 by default. + result: Filter. Filter collection by result + sort: Sort field. Available fields: answer_type, created_at + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/contacts/{is_id}/answers" + querystring = {} + if end_id: + querystring['end_id'] = end_id + if start_id: + querystring['start_id'] = start_id + if limit: + querystring['limit'] = limit + if result: + querystring['result'] = result + if sort: + querystring['sort'] = sort + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcampaign(is_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a specific campaign" + id: ID of campaign + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchquestionanswers(is_id: int, start_id: int=None, limit: int=None, end_id: int=None, sort: int=None, result: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get question's answers" + id: ID of question + start_id: Object ID to fetch next page + limit: Amount of records to return. 25 by default. + end_id: Object ID to fetch previous page + sort: Sort field. Available fields: created_at + result: Filter. Filter collection by result + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/questions/{is_id}/answers" + querystring = {} + if start_id: + querystring['start_id'] = start_id + if limit: + querystring['limit'] = limit + if end_id: + querystring['end_id'] = end_id + if sort: + querystring['sort'] = sort + if result: + querystring['result'] = result + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcontacts(is_id: int, sort: int=None, last_name: int=None, urgency: int=None, start_id: int=None, name: int=None, company: int=None, field_id: int=None, phone: int=None, email: int=None, custom_fields: int=None, limit: int=None, end_id: int=None, status: int=None, first_name: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get contacts for a campaign" + id: ID of campaign + sort: Sort field. Available fields: last_name, first_name, company, calls.status + calls.called_at, calls.caller.user.first_name, calls.caller.user.last_name, urgency + last_name: Filter. Filter collection by last_name + urgency: Filter. Filter collection by urgency + start_id: Object ID to fetch next page + name: Filter. Filter collection by name + company: Filter. Filter collection by company + field_id: Filter. Filter collection by field_id + phone: Filter. Filter collection by phone + email: Filter. Filter collection by email + custom_fields: If set, custom fields will be displayed in the output + limit: Amount of records to return. 25 by default. + end_id: Object ID to fetch previous page + status: Filter. Filter collection by status + first_name: Filter. Filter collection by first_name + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{is_id}/contacts" + querystring = {} + if sort: + querystring['sort'] = sort + if last_name: + querystring['last_name'] = last_name + if urgency: + querystring['urgency'] = urgency + if start_id: + querystring['start_id'] = start_id + if name: + querystring['name'] = name + if company: + querystring['company'] = company + if field_id: + querystring['field_id'] = field_id + if phone: + querystring['phone'] = phone + if email: + querystring['email'] = email + if custom_fields: + querystring['custom_fields'] = custom_fields + if limit: + querystring['limit'] = limit + if end_id: + querystring['end_id'] = end_id + if status: + querystring['status'] = status + if first_name: + querystring['first_name'] = first_name + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcampaignquestions(is_id: int, start_id: int=None, end_id: int=None, limit: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get campaign's questions" + id: ID of campaign + start_id: Object ID to fetch next page + end_id: Object ID to fetch previous page + limit: Amount of records to return. 25 by default. + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/campaigns/{is_id}/questions" + querystring = {} + if start_id: + querystring['start_id'] = start_id + if end_id: + querystring['end_id'] = end_id + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fetchcalls(status: int=None, caller_name: int=None, sort: int=None, start_id: int=None, limit: int=None, end_id: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all calls" + status: Filter. Filter collection by status + caller_name: Filter. Filter collection by caller name + sort: Sort field. Available fields: status, called_at + start_id: Object ID to fetch next page + limit: Amount of records to return. 25 by default. + end_id: Object ID to fetch previous page + + """ + url = f"https://upcall-upcall-v1.p.rapidapi.com/calls" + querystring = {} + if status: + querystring['status'] = status + if caller_name: + querystring['caller_name'] = caller_name + if sort: + querystring['sort'] = sort + if start_id: + querystring['start_id'] = start_id + if limit: + querystring['limit'] = limit + if end_id: + querystring['end_id'] = end_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "upcall-upcall-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/url_qrcode.json b/toolbench/toolenv/tools/Communication/url_qrcode.json new file mode 100644 index 0000000000000000000000000000000000000000..0ac53fb75b3112330f10f00334b1d10fd0a49d28 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/url_qrcode.json @@ -0,0 +1,31 @@ +{ + "tool_name":"URL-QRCODE", + "tool_description":"This Is An API That Creates A Qrcode image From URL Inputs From The Web Browser. It Offers A Download Option And Saves The Qrcode Image Into The User's Device. The Image, When scanned, Redirects The User To The Respective URL.", + "title":"URL-QRCODE", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/arthaus-technology-arthaus-technology-default/api/url-qrcode/", + "host":"url-qrcode.p.rapidapi.com", + "api_list":[ + { + "name":"URL-qrcode", + "url":"https://url-qrcode.p.rapidapi.com/qrcode", + "description":"This is a QR code generator API for URLs from browsers", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"data", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://url-qrcode.p.rapidapi.com/qrcode\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"url-qrcode.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/url_qrcode/api.py b/toolbench/toolenv/tools/Communication/url_qrcode/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7c1cbf94218ad3f257fbf809658ed70a6b0bed8c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/url_qrcode/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def url_qrcode(data: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This is a QR code generator API for URLs from browsers" + + """ + url = f"https://url-qrcode.p.rapidapi.com/qrcode" + querystring = {} + if data: + querystring['data'] = data + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "url-qrcode.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/validate_phone.json b/toolbench/toolenv/tools/Communication/validate_phone.json new file mode 100644 index 0000000000000000000000000000000000000000..cf44fbd03788fb56cd2af1f255fecaf9fa5f90a3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/validate_phone.json @@ -0,0 +1,34 @@ +{ + "tool_name":"Validate Phone", + "tool_description":"“Validate Phone” API validates national and international phone numbers, get location information about phone number.", + "title":"Validate Phone", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/api-tier1-apitier-team/api/validate-phone/", + "host":"validate-phone.p.rapidapi.com", + "api_list":[ + { + "name":"Validate Phone", + "url":"https://validate-phone.p.rapidapi.com/v1/validate?", + "description":"“Validate Phone” API Validates single phone number or bulk phone numbers.", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"STRING", + "description":"", + "default":"17036971776" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://validate-phone.p.rapidapi.com/v1/validate?\"\nquerystring = {\"number\": number}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"validate-phone.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/validate_phone/api.py b/toolbench/toolenv/tools/Communication/validate_phone/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e1ab7601ae73f12b7ee2a67067a8bca0f87a8f3e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/validate_phone/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def validate_phone(number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "“Validate Phone” API Validates single phone number or bulk phone numbers." + + """ + url = f"https://validate-phone.p.rapidapi.com/v1/validate?" + querystring = {'number': number, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "validate-phone.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/validate_phone_by_api_ninjas.json b/toolbench/toolenv/tools/Communication/validate_phone_by_api_ninjas.json new file mode 100644 index 0000000000000000000000000000000000000000..63aae82c401e8e317a60d56cdf6634b26ce245e2 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/validate_phone_by_api_ninjas.json @@ -0,0 +1,44 @@ +{ + "tool_name":"Validate Phone by API-Ninjas", + "tool_description":"Check whether a phone number is valid and get its metadata. See more info at https://api-ninjas.com/api/validatephone.", + "title":"Validate Phone by API-Ninjas", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1205, + "avgSuccessRate":100, + "popularityScore":9.6, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/apininjas/api/validate-phone-by-api-ninjas/", + "host":"validate-phone-by-api-ninjas.p.rapidapi.com", + "api_list":[ + { + "name":"/v1/validatephone", + "url":"https://validate-phone-by-api-ninjas.p.rapidapi.com/v1/validatephone", + "description":"API Ninjas Validate Phone API endpoint. Returns metadata (including whether it is valid) for a given phone number.", + "method":"GET", + "required_parameters":[ + { + "name":"number", + "type":"STRING", + "description":"phone number to check. If country is not set, the 3-digit country code prefix needs to be included.", + "default":"+12065550100" + } + ], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"2-letter ISO-3166 country code the phone number belongs to.", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://validate-phone-by-api-ninjas.p.rapidapi.com/v1/validatephone\"\nquerystring = {\"number\": number}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"validate-phone-by-api-ninjas.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/validate_phone_by_api_ninjas/api.py b/toolbench/toolenv/tools/Communication/validate_phone_by_api_ninjas/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fd9eb3699adf4154f47e3d17fdf30218db5ad738 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/validate_phone_by_api_ninjas/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v1_validatephone(number: str, country: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API Ninjas Validate Phone API endpoint. Returns metadata (including whether it is valid) for a given phone number." + number: phone number to check. If country is not set, the 3-digit country code prefix needs to be included. + country: 2-letter ISO-3166 country code the phone number belongs to. + + """ + url = f"https://validate-phone-by-api-ninjas.p.rapidapi.com/v1/validatephone" + querystring = {'number': number, } + if country: + querystring['country'] = country + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "validate-phone-by-api-ninjas.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/veriphone.json b/toolbench/toolenv/tools/Communication/veriphone.json new file mode 100644 index 0000000000000000000000000000000000000000..2004a33d12b3e4b9f3bc4348d822a8ab98595bfb --- /dev/null +++ b/toolbench/toolenv/tools/Communication/veriphone.json @@ -0,0 +1,149 @@ +{ + "tool_name":"Veriphone", + "tool_description":"Global phone number verification in a free, fast, reliable JSON API", + "title":"Veriphone", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":438, + "avgSuccessRate":99, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/Veriphone/api/veriphone/", + "host":"veriphone.p.rapidapi.com", + "api_list":[ + { + "name":"verify", + "url":"https://veriphone.p.rapidapi.com/verify", + "description":"Global phone number verification", + "method":"GET", + "required_parameters":[ + { + "name":"phone", + "type":"STRING", + "description":"The phone number to verify", + "default":"+4915123577723" + } + ], + "optional_parameters":[ + { + "name":"default_country", + "type":"STRING", + "description":"The default country in a 2 letters ISO format. Example: US, RU. Optional: the country will be infered from the prefix, from this parameter or from the IP address (in that order).", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://veriphone.p.rapidapi.com/verify\"\nquerystring = {\"phone\": phone}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"veriphone.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "status":"error", + "status_code":"400", + "error_type":"Missing Parameter", + "error_message":"Phone parameter required. Format: ?phone=PHONE_NUMBER" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json;charset=utf-8", + "date":"Sat, 17 Aug 2019 12:27:12 GMT", + "server":"RapidAPI-1.0.28", + "x-cloud-trace-context":"83f6b48233b0fbb5732fbcbd5a775722;o=1", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.0.28", + "content-length":"148", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"example", + "url":"https://veriphone.p.rapidapi.com/example", + "description":"Get an example phone number for any country", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"country_code", + "type":"STRING", + "description":"The example number's country in a 2 letters ISO format. Example: US, RU. Optional: the country will be infered from the IP address if this parameter is absent or invalid.", + "default":"GB" + }, + { + "name":"type", + "type":"STRING", + "description":"The type of example number to return. Values: fixed_line, mobile , premium_rate, shared_cost, toll_free, voip", + "default":"mobile" + } + ], + "code":"import requests\n\nurl = \"https://veriphone.p.rapidapi.com/example\"\nquerystring = {\"country_code\": country_code, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"veriphone.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "status":"success", + "phone_type":"MOBILE", + "country_code":"GB", + "country_prefix":"44", + "international_number":"+44 7400 123456", + "local_number":"07400 123456", + "e164":"+447400123456" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json;charset=utf-8", + "date":"Thu, 26 Dec 2019 14:55:18 GMT", + "server":"RapidAPI-1.0.32", + "x-cloud-trace-context":"d24309a90d9dd7912b50a4c5b9c6ff59", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.0.32", + "content-length":"186", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/veriphone/api.py b/toolbench/toolenv/tools/Communication/veriphone/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b91ab140e3ec6ed3eb63cc8466d4e3ca452593f3 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/veriphone/api.py @@ -0,0 +1,60 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def verify(phone: str, default_country: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Global phone number verification" + phone: The phone number to verify + default_country: The default country in a 2 letters ISO format. Example: US, RU. Optional: the country will be infered from the prefix, from this parameter or from the IP address (in that order). + + """ + url = f"https://veriphone.p.rapidapi.com/verify" + querystring = {'phone': phone, } + if default_country: + querystring['default_country'] = default_country + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "veriphone.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def example(country_code: str='GB', type: str='mobile', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get an example phone number for any country" + country_code: The example number's country in a 2 letters ISO format. Example: US, RU. Optional: the country will be infered from the IP address if this parameter is absent or invalid. + type: The type of example number to return. Values: fixed_line, mobile , premium_rate, shared_cost, toll_free, voip + + """ + url = f"https://veriphone.p.rapidapi.com/example" + querystring = {} + if country_code: + querystring['country_code'] = country_code + if type: + querystring['type'] = type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "veriphone.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/viber.json b/toolbench/toolenv/tools/Communication/viber.json new file mode 100644 index 0000000000000000000000000000000000000000..fac76186282462d7c221fb73b502aa114dee0944 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/viber.json @@ -0,0 +1,726 @@ +{ + "product_id": "7b113062-4d22-4ae7-8b7b-c575d6bb4af2", + "tool_description": "With Viber\u2019s APIs, you can create unique experiences for users at scale.", + "home_url": "https://rapidapi.com/zakutynsky/api/Viber/", + "name": "Viber", + "title": "Viber", + "pricing": "FREE", + "tool_name": "Viber", + "score": null, + "host": "ViberzakutynskyV1.p.rapidapi.com", + "api_list": [ + { + "name": "deleteAllWebhooks", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/deleteAllWebhooks", + "description": "Cancel webhooks event", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/deleteAllWebhooks\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/deleteAllWebhooks\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getAccountInfo", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/getAccountInfo", + "description": "Fetch the account\u2019s details as registered in Viber. The account admin will be able to edit most of these details from his Viber client.", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/getAccountInfo\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/getAccountInfo\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getOnlineStatus", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/getOnlineStatus", + "description": "Fetch the online status of a given subscribed account members. The API supports up to 100 user id per request and those users must be subscribed to the account.", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "ids", + "type": "LIST", + "description": "Unique Viber user ids", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/getOnlineStatus\"\nquerystring = {\"token\": \"\", \"ids\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/getOnlineStatus\"\nquerystring = {\"token\": \"\", \"ids\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "getUserDetails", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/getUserDetails", + "description": "Fetch the details of a specific Viber user based on his unique user ID. The user ID can be obtained from the callbacks sent to the account regarding user\u2019s actions. This request can be sent twice during a 12 hours period for each user ID.", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "id", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/getUserDetails\"\nquerystring = {\"token\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/getUserDetails\"\nquerystring = {\"token\": \"\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendBroadcastMessage", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendBroadcastMessage", + "description": "Send messages to multiple Viber users who subscribe to the account. Sending a message to a user will be possible only after the user has subscribed to the Public Account by pressing the subscribe button or by sending a message, or by sending a message to a bot. The ability to send broadcast messages is only opened on application and approval from Viber account managers.", + "method": "POST", + "required_parameters": [ + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "richMedia", + "type": "JSON", + "description": "Carousel object", + "default": "" + }, + { + "name": "broadcastList", + "type": "LIST", + "description": "Recipients for the message.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendBroadcastMessage\"\nquerystring = {\"senderName\": \"\", \"senderAvatar\": \"\", \"minApiVersion\": \"\", \"token\": \"\", \"richMedia\": \"\", \"broadcastList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendBroadcastMessage\"\nquerystring = {\"senderName\": \"\", \"senderAvatar\": \"\", \"minApiVersion\": \"\", \"token\": \"\", \"richMedia\": \"\", \"broadcastList\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendCarouselContentMessage", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendCarouselContentMessage", + "description": "The Carousel Content Message type allows a user to scroll through a list of items, each composed of an image, description and call to action button.", + "method": "POST", + "required_parameters": [ + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + }, + { + "name": "richMedia", + "type": "JSON", + "description": "Carousel object", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendCarouselContentMessage\"\nquerystring = {\"minApiVersion\": \"\", \"receiver\": \"\", \"richMedia\": \"\", \"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendCarouselContentMessage\"\nquerystring = {\"minApiVersion\": \"\", \"receiver\": \"\", \"richMedia\": \"\", \"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendContact", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendContact", + "description": "Send contact messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "contactName", + "type": "STRING", + "description": "Name of the contact", + "default": "" + }, + { + "name": "contactPhone", + "type": "STRING", + "description": "Phone number of the contact", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendContact\"\nquerystring = {\"receiver\": \"\", \"token\": \"\", \"contactName\": \"\", \"senderAvatar\": \"\", \"contactPhone\": \"\", \"trackingData\": \"\", \"senderName\": \"\", \"minApiVersion\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendContact\"\nquerystring = {\"receiver\": \"\", \"token\": \"\", \"contactName\": \"\", \"senderAvatar\": \"\", \"contactPhone\": \"\", \"trackingData\": \"\", \"senderName\": \"\", \"minApiVersion\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendFile", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendFile", + "description": "Send file messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "media", + "type": "STRING", + "description": "URL of the file. Max size 50 MB. See forbidden file formats for unsupported file types", + "default": "" + }, + { + "name": "fileName", + "type": "STRING", + "description": "Name of the file. File name should include extension. Max 256 characters (including file extension). Sending a file without extension or with the wrong extension might cause the client to be unable to open the file", + "default": "" + }, + { + "name": "size", + "type": "NUMBER", + "description": "Size of the file in bytes", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendFile\"\nquerystring = {\"token\": \"\", \"media\": \"\", \"fileName\": \"\", \"size\": \"\", \"senderAvatar\": \"\", \"senderName\": \"\", \"receiver\": \"\", \"minApiVersion\": \"\", \"trackingData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendFile\"\nquerystring = {\"token\": \"\", \"media\": \"\", \"fileName\": \"\", \"size\": \"\", \"senderAvatar\": \"\", \"senderName\": \"\", \"receiver\": \"\", \"minApiVersion\": \"\", \"trackingData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendLocation", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendLocation", + "description": "Send location messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "coordinates", + "type": "MAP", + "description": "Location coordinates", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendLocation\"\nquerystring = {\"senderAvatar\": \"\", \"coordinates\": \"\", \"senderName\": \"\", \"token\": \"\", \"minApiVersion\": \"\", \"trackingData\": \"\", \"receiver\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendLocation\"\nquerystring = {\"senderAvatar\": \"\", \"coordinates\": \"\", \"senderName\": \"\", \"token\": \"\", \"minApiVersion\": \"\", \"trackingData\": \"\", \"receiver\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendPicture", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendPicture", + "description": "Send picture messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + }, + { + "name": "text", + "type": "STRING", + "description": "Description of the photo.", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "media", + "type": "STRING", + "description": "URL of the image (JPEG). Max size 1 MB. Only JPEG format is supported. Other image formats as well as animated GIFs can be sent as URL messages or file messages", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "thumbnail", + "type": "STRING", + "description": "URL of a reduced size image (JPEG). Max size 100 kb. Recommended: 400x400. Only JPEG format is supported", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + }, + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendPicture\"\nquerystring = {\"thumbnail\": \"\", \"receiver\": \"\", \"trackingData\": \"\", \"text\": \"\", \"senderName\": \"\", \"senderAvatar\": \"\", \"token\": \"\", \"minApiVersion\": \"\", \"media\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendPicture\"\nquerystring = {\"thumbnail\": \"\", \"receiver\": \"\", \"trackingData\": \"\", \"text\": \"\", \"senderName\": \"\", \"senderAvatar\": \"\", \"token\": \"\", \"minApiVersion\": \"\", \"media\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendSticker", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendSticker", + "description": "Send sticker messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + }, + { + "name": "stickerId", + "type": "STRING", + "description": "Unique Viber sticker ID. For examples visit the https://developers.viber.com/docs/tools/sticker-ids page", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "contactName", + "type": "STRING", + "description": "Name of the contact", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendSticker\"\nquerystring = {\"receiver\": \"\", \"stickerId\": \"\", \"senderName\": \"\", \"contactName\": \"\", \"senderAvatar\": \"\", \"minApiVersion\": \"\", \"token\": \"\", \"trackingData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendSticker\"\nquerystring = {\"receiver\": \"\", \"stickerId\": \"\", \"senderName\": \"\", \"contactName\": \"\", \"senderAvatar\": \"\", \"minApiVersion\": \"\", \"token\": \"\", \"trackingData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendTextMessage", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendTextMessage", + "description": "Send text messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "text", + "type": "STRING", + "description": "The text of the message", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + }, + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendTextMessage\"\nquerystring = {\"minApiVersion\": \"\", \"text\": \"\", \"senderAvatar\": \"\", \"senderName\": \"\", \"receiver\": \"\", \"token\": \"\", \"trackingData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendTextMessage\"\nquerystring = {\"minApiVersion\": \"\", \"text\": \"\", \"senderAvatar\": \"\", \"senderName\": \"\", \"receiver\": \"\", \"token\": \"\", \"trackingData\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendUrl", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendUrl", + "description": "Send url messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "media", + "type": "STRING", + "description": "URL", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + }, + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendUrl\"\nquerystring = {\"media\": \"\", \"minApiVersion\": \"\", \"trackingData\": \"\", \"senderName\": \"\", \"token\": \"\", \"receiver\": \"\", \"senderAvatar\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendUrl\"\nquerystring = {\"media\": \"\", \"minApiVersion\": \"\", \"trackingData\": \"\", \"senderName\": \"\", \"token\": \"\", \"receiver\": \"\", \"senderAvatar\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "sendVideo", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/sendVideo", + "description": "Send video messages to Viber users who subscribe to the account. ", + "method": "POST", + "required_parameters": [ + { + "name": "size", + "type": "NUMBER", + "description": "Size of the video in bytes", + "default": "" + }, + { + "name": "media", + "type": "STRING", + "description": "URL of the video (MP4, H264). Max size 50 MB. Only MP4 and H264 are supported", + "default": "" + }, + { + "name": "senderName", + "type": "STRING", + "description": "The sender\u2019s name to display", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + }, + { + "name": "receiver", + "type": "STRING", + "description": "Unique Viber user id", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "duration", + "type": "NUMBER", + "description": "Video duration in seconds; will be displayed to the receiver. Max 180 seconds", + "default": "" + }, + { + "name": "trackingData", + "type": "STRING", + "description": "Allow the account to track messages and user\u2019s replies. Sent tracking_data value will be passed back with user\u2019s reply", + "default": "" + }, + { + "name": "thumbnail", + "type": "STRING", + "description": "URL of a reduced size image (JPEG). Max size 100 kb. Recommended: 400x400. Only JPEG format is supported", + "default": "" + }, + { + "name": "senderAvatar", + "type": "STRING", + "description": "The sender\u2019s avatar URL", + "default": "" + }, + { + "name": "minApiVersion", + "type": "STRING", + "description": "Minimal API version required by clients for this message ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendVideo\"\nquerystring = {\"duration\": \"\", \"size\": \"\", \"media\": \"\", \"trackingData\": \"\", \"senderName\": \"\", \"thumbnail\": \"\", \"senderAvatar\": \"\", \"minApiVersion\": \"\", \"token\": \"\", \"receiver\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/sendVideo\"\nquerystring = {\"duration\": \"\", \"size\": \"\", \"media\": \"\", \"trackingData\": \"\", \"senderName\": \"\", \"thumbnail\": \"\", \"senderAvatar\": \"\", \"minApiVersion\": \"\", \"token\": \"\", \"receiver\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "setWebhook", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/setWebhook", + "description": "Webhook will be used for receiving callbacks and user messages from Viber.", + "method": "POST", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": " Account webhook URL to receive callbacks & messages from users. Webhook URL must use SSL.", + "default": "" + }, + { + "name": "token", + "type": "CREDENTIALS", + "description": "Your viber token", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "eventTypes", + "type": "LIST", + "description": "Indicates the types of Viber events that the account owner would like to be notified about. Don\u2019t include this parameter in your request to get all events", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/setWebhook\"\nquerystring = {\"url\": \"\", \"token\": \"\", \"eventTypes\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/setWebhook\"\nquerystring = {\"url\": \"\", \"token\": \"\", \"eventTypes\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "webhookEvent", + "url": "https://ViberzakutynskyV1.p.rapidapi.com/webhookEvent", + "description": "This webhook will be used for receiving callbacks and user messages from Viber.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "token", + "type": "STRING", + "description": "Your viber token", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/webhookEvent\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ViberzakutynskyV1.p.rapidapi.com/webhookEvent\"\nquerystring = {\"token\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ViberzakutynskyV1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/vpn_accounts.json b/toolbench/toolenv/tools/Communication/vpn_accounts.json new file mode 100644 index 0000000000000000000000000000000000000000..3a5d0295b7265ee369714f97d6430622a4989398 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/vpn_accounts.json @@ -0,0 +1,120 @@ +{ + "tool_name":"VPN Accounts ", + "tool_description":"Get access to hundreds of L2TP and Open VPN Accounts to you for your security or in your next big project. Powered by Turbo VPN, Express VPN, VPN Gate, SurfShark and VPN Book. Suggest more protocols to be added.", + "title":"VPN Accounts ", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/habertech9-Fouyqj6KV2G/api/vpn-accounts/", + "host":"vpn-accounts.p.rapidapi.com", + "api_list":[ + { + "name":"OVPN From Ip", + "url":"https://vpn-accounts.p.rapidapi.com/getOvpnForIp/{ipaddress}", + "description":"Get the .ovpn configuration file from the IP Address.", + "method":"GET", + "required_parameters":[ + { + "name":"ipaddress", + "type":"string", + "description":"", + "default":"163.182.174.159" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://vpn-accounts.p.rapidapi.com/getOvpnForIp/{ipaddress}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vpn-accounts.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "Content-Type":"application/json" + }, + "schema":{ + "type":"object", + "properties":{ + "status":{ + "type":"string" + }, + "country":{ + "type":"string" + }, + "ip":{ + "type":"string" + }, + "protocol":{ + "type":"string" + }, + "TCP":{ + "type":"string" + }, + "UDP":{ + "type":"string" + } + } + } + }, + { + "name":"Get All VPN Accounts", + "url":"https://vpn-accounts.p.rapidapi.com/getVpnAccounts", + "description":"Fetches all the VPN Accounts for all the Protocols.\nUse the URL field in the OpenVPN list to get the [.ovpn]('https://allweneed12.blogspot.com/2022/12/what-is-ovpn-file.html') file.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://vpn-accounts.p.rapidapi.com/getVpnAccounts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vpn-accounts.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "Content-Type":"application/json" + }, + "schema":{ + "type":"object", + "properties":{ + "pptp":{ + "type":"array" + }, + "l2tp":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "country":{ + "type":"string" + }, + "ip":{ + "type":"string" + }, + "username:":{ + "type":"string" + }, + "password":{ + "type":"string" + } + } + } + }, + "openvpn":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "country":{ + "type":"string" + }, + "ip":{ + "type":"string" + }, + "url":{ + "type":"string" + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/vpn_accounts/api.py b/toolbench/toolenv/tools/Communication/vpn_accounts/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b7cc7ef567ef13b3222685fdb831fc65a8d16b1a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/vpn_accounts/api.py @@ -0,0 +1,51 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ovpn_from_ip(ipaddress: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the .ovpn configuration file from the IP Address." + + """ + url = f"https://vpn-accounts.p.rapidapi.com/getovpnforip/{ipaddress}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "vpn-accounts.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_all_vpn_accounts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Fetches all the VPN Accounts for all the Protocols. + Use the URL field in the OpenVPN list to get the [.ovpn]('https://allweneed12.blogspot.com/2022/12/what-is-ovpn-file.html') file." + + """ + url = f"https://vpn-accounts.p.rapidapi.com/getvpnaccounts" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "vpn-accounts.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/vybit_notifications.json b/toolbench/toolenv/tools/Communication/vybit_notifications.json new file mode 100644 index 0000000000000000000000000000000000000000..9b1eb83326f65405f4673645dee139dbd786f713 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/vybit_notifications.json @@ -0,0 +1,33 @@ +{ + "product_id": "api_3bb490f1-6687-4c6f-ad9f-c4f118e48684", + "tool_description": "Vybit (VIBE-it) sends personalized push notifications using sounds that you record or choose from thousands of searchable sounds. Put the information in the sound! This API describes how to trigger a specific vyb notification. Learn more at https://www.vybit.net.", + "home_url": "https://rapidapi.com/brady-UvvGnDzIw/api/vybit-notifications1/", + "name": "Vybit Notifications", + "title": "Vybit Notifications", + "pricing": "FREE", + "tool_name": "Vybit Notifications", + "score": null, + "host": "vybit-notifications1.p.rapidapi.com", + "api_list": [ + { + "name": "Vyb POST trigger with notification payload", + "url": "https://vybit-notifications1.p.rapidapi.com/cpmu3o9mio3xqof2", + "description": "Note that notification parameters included in the post will override the default notification settings for the vyb.", + "method": "POST", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "", + "default": "cpmu3o9mio3xqof2" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://vybit-notifications1.p.rapidapi.com/cpmu3o9mio3xqof2\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vybit-notifications1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://vybit-notifications1.p.rapidapi.com/{key}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vybit-notifications1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/w388gnet.json b/toolbench/toolenv/tools/Communication/w388gnet.json new file mode 100644 index 0000000000000000000000000000000000000000..a95059a98f5c207614f3256ed4c9dea1bae7be25 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/w388gnet.json @@ -0,0 +1,24 @@ +{ + "tool_name":"w388gnet", + "tool_description":"W388 - Chinh Phục Thế Giới Cá Cược Cùng Trải Nghiệm Đỉnh Cao", + "title":"w388gnet", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/w388gnet/api/w388gnet/", + "host":"w388gnet.p.rapidapi.com", + "api_list":[ + { + "name":"w388gnet", + "url":"https://w388gnet.p.rapidapi.com/", + "description":"[W388](https://w388g.net/) - Thương hiệu cá cược làm chao đảo làng cá cược nhờ nhiều trò chơi hấp dẫn cũng như dịch vụ đặc biệt. Liệu có thật sự như những lời đánh giá này?\nWebsite: https://w388g.net/\nThông tin liên hệ\nĐịa chỉ: 6 Ng.48 P. D. Quảng Hàm, Quan Hoa, Cầu Giấy, Hà Nội\nEmail: lythetuong2901@gmail.com\n#w388, #w388_net, #nha_cai_w388", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://w388gnet.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"w388gnet.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/w388gnet/api.py b/toolbench/toolenv/tools/Communication/w388gnet/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9e052945af6eae3bb73bd56ca61bdb95e36bc1f8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/w388gnet/api.py @@ -0,0 +1,34 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def w388gnet(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "[W388](https://w388g.net/) - Thương hiệu cá cược làm chao đảo làng cá cược nhờ nhiều trò chơi hấp dẫn cũng như dịch vụ đặc biệt. Liệu có thật sự như những lời đánh giá này? + Website: https://w388g.net/ + Thông tin liên hệ + Địa chỉ: 6 Ng.48 P. D. Quảng Hàm, Quan Hoa, Cầu Giấy, Hà Nội + Email: lythetuong2901@gmail.com + #w388, #w388_net, #nha_cai_w388" + + """ + url = f"https://w388gnet.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "w388gnet.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/wa_application_api.json b/toolbench/toolenv/tools/Communication/wa_application_api.json new file mode 100644 index 0000000000000000000000000000000000000000..c69f42a1c81bfee36ed9e47b1cd22e30f706421b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/wa_application_api.json @@ -0,0 +1,99 @@ +{ + "product_id": "api_15be3a9e-dd14-43d5-80d7-1778c1ec6194", + "tool_description": "WhatsApp Cloud API. This API deals with a chatting platform based on WhatsApp. The user can send and receive text and media messages through WhatsApp in private chats with the endpoints that are created for the user.\n\nBefore using this API you must log in in wa\nLog In\n- send GET request to /login path\n- you will receive in 4-5 sec QR code for authorization\n- scan this QR to sign in app\n\nSend a text message:\nYou can send messages to other recipients:\n- send a POST request to /send/message end...", + "home_url": "https://rapidapi.com/kossavch-N2zXLee6zMJ/api/wa-application-api/", + "name": "wa-application-api", + "title": "wa-application-api", + "pricing": "FREE", + "tool_name": "wa-application-api", + "score": { + "avgServiceLevel": 0, + "avgLatency": 205, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "wa-application-api.p.rapidapi.com", + "api_list": [ + { + "name": "/send/ptt/{clientPhone}", + "url": "https://wa-application-api.p.rapidapi.com/send/ptt/{clientPhone}", + "description": "send message\n\nIMPORTANT: for using or test this endpoint make sure that you login with your device", + "method": "POST", + "required_parameters": [ + { + "name": "clientPhone", + "type": "STRING", + "description": "**{clientPhone}** this is phone number of your device with which you login in this API using **/login** endpoint", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/ptt/{clientPhone}\"\nquerystring = {\"clientPhone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/ptt/{clientPhone}\"\nquerystring = {\"clientPhone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "/send/location/{clientPhone}", + "url": "https://wa-application-api.p.rapidapi.com/send/location/{clientPhone}", + "description": "send message\n\nIMPORTANT: for using or test this endpoint make sure that you login with your device", + "method": "POST", + "required_parameters": [ + { + "name": "clientPhone", + "type": "STRING", + "description": "**{clientPhone}** this is phone number of your device with which you login in this API using **/login** endpoint", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/location/{clientPhone}\"\nquerystring = {\"clientPhone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/location/{clientPhone}\"\nquerystring = {\"clientPhone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "/send/file/{clientPhone}", + "url": "https://wa-application-api.p.rapidapi.com/send/file/{clientPhone}", + "description": "send message\n\nIMPORTANT: for using or test this endpoint make sure that you login with your device", + "method": "POST", + "required_parameters": [ + { + "name": "clientPhone", + "type": "STRING", + "description": "**{clientPhone}** this is phone number of your device with which you login in this API using **/login** endpoint", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/file/{clientPhone}\"\nquerystring = {\"clientPhone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/file/{clientPhone}\"\nquerystring = {\"clientPhone\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "/send/message/{clientPhone}", + "url": "https://wa-application-api.p.rapidapi.com/send/message/string", + "description": "send message\n\nIMPORTANT: for using or test this endpoint make sure that you login with your device", + "method": "POST", + "required_parameters": [ + { + "name": "clientPhone", + "type": "STRING", + "description": "**{clientPhone}** this is phone number of your device with which you login in this API using **/login** endpoint", + "default": "string" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/message/string\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wa-application-api.p.rapidapi.com/send/message/{clientphone}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wa-application-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/war_coverage_across_the_global.json b/toolbench/toolenv/tools/Communication/war_coverage_across_the_global.json new file mode 100644 index 0000000000000000000000000000000000000000..414db88081f19e5af0f75cc65c11220d01886095 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/war_coverage_across_the_global.json @@ -0,0 +1,50 @@ +{ + "tool_name":"War coverage across the global", + "tool_description":"This api share the information about wars across the global and its coverage by major news outlets", + "title":"War coverage across the global", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/d4remy/api/war-coverage-across-the-global/", + "host":"war-coverage-across-the-global.p.rapidapi.com", + "api_list":[ + { + "name":"Get All War Information", + "url":"https://war-coverage-across-the-global.p.rapidapi.com/news", + "description":"This will give all the new about war across the global", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://war-coverage-across-the-global.p.rapidapi.com/news\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"war-coverage-across-the-global.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"Get war news from specific source", + "url":"https://war-coverage-across-the-global.p.rapidapi.com/news/{newspaperid}", + "description":"This end point will give you the detail articles from the news source you specify", + "method":"GET", + "required_parameters":[ + { + "name":"newspaperid", + "type":"string", + "description":"", + "default":"thetimes" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://war-coverage-across-the-global.p.rapidapi.com/news/{newspaperid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"war-coverage-across-the-global.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/war_coverage_across_the_global/api.py b/toolbench/toolenv/tools/Communication/war_coverage_across_the_global/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7ac8765161128af7ae6f6193397aa244e798bbce --- /dev/null +++ b/toolbench/toolenv/tools/Communication/war_coverage_across_the_global/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_all_war_information(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This will give all the new about war across the global" + + """ + url = f"https://war-coverage-across-the-global.p.rapidapi.com/news" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "war-coverage-across-the-global.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_war_news_from_specific_source(newspaperid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This end point will give you the detail articles from the news source you specify" + + """ + url = f"https://war-coverage-across-the-global.p.rapidapi.com/news/{newspaperid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "war-coverage-across-the-global.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/wassenger.json b/toolbench/toolenv/tools/Communication/wassenger.json new file mode 100644 index 0000000000000000000000000000000000000000..7e4533b5d9e44efadb93455e3408bda9a8a463ae --- /dev/null +++ b/toolbench/toolenv/tools/Communication/wassenger.json @@ -0,0 +1,1139 @@ +{ + "product_id": "api_c3b6624c-13de-49a7-bc6c-116d930cf578", + "tool_description": "WhatsApp Cloud API", + "home_url": "https://rapidapi.com/wassenger/api/wassenger/", + "name": "Wassenger", + "title": "Wassenger", + "pricing": "PAID", + "tool_name": "Wassenger", + "score": null, + "host": "wassenger.p.rapidapi.com", + "api_list": [ + { + "name": "createWebhook", + "url": "https://wassenger.p.rapidapi.com/webhooks", + "description": "Register new webhook endpoint URL for callback notifications.\n\nIf you do not know what webhooks are, [read this article](https://markheath.net/post/basic-introduction-webhooks).\n\n**Note**: webhook endpoint URL must be reachable at public Internet level\nand use a valid domain with proper DNS resolution. E.g: https://mycompany.com/webhook\n\nOur server will make an [HTTP request](https://www.tutorialspoint.com/http/http_requests.htm)\nto the remote endpoint URL you provide every time a new message/device event happens.\n\nInformation will be encoded in [JSON](https://www.json.org/) format as part of the HTTP body data.\n\nYour server must accept read the body in the HTTP POST request and process it accodingly.\n\nServer should reply with a 200 HTTP status code. Otherwise, it will be considered as a\nfailed notification and it will be retried.\n\n### Common questions\n\n#### How data will be notified to my server?\n\nWe notify you by making an HTTP POST method request with a JSON encoded body.\n\n#### How to implement a webhooks server?\n\nThis would drastically depend on the technology / programming language you use, but options are multiple here.\n\nBasically, you would simply need an HTTP server running on Internet that can accept HTTP POST requests.\n\nYou can also take a look at this resources for more information:\n\n- [Webhook Tester](https://webhook.site)\n- [What are Webhooks](https://codeburst.io/what-are-webhooks-b04ec2bf9ca2)\n- [Handling Webhook Requests in PHP](https://lornajane.net/posts/2017/handling-incoming-webhooks-in-php)\n- [Webhook server in Go](https://github.com/adnanh/webhook)\n\n#### How to secure a webhook server?\n\nFirstly, we strongly recommend you to use HTTPS (HTTP + TLS encryption) in your server.\n\nSecondly, you can use a custom URL query param with a secret key that only you know.\nExample: https://mycompany.com/webhooks?secret=some-secret-password\n\n#### What webhook events are supported?\n\nWe currently support the following event types:\n\n- **message:in:new**: On every new incoming message sent by users or groups to your device (restricted to I/O plans)\n- **message:out:sent**: On every successfully delivered message\n- **message:out:failed**: On every failed message delivery (max retries exceeded or phone number not found)\n\n#### How webhook events are structured?\n\n##### Inbound message event\n\n**Event**: `message:in:new`\n\nSimple text message event:\n\n```json\n{\n \"id\": \"3EB03EBAF8863B42C301\",\n \"object\": \"message\",\n \"event\": \"message:in:new\",\n \"created\": 1552751283,\n \"device\": {\n \"id\": \"5c8bd1983cf303001b904bbc\",\n \"phone\": \"1987654321\",\n \"alias\": \"Chatbot\",\n \"plan\": \"io-business\",\n \"version\": 1\n },\n \"data\": {\n \"id\": \"3EB03EBAF8863B42C301\",\n \"type\": \"text\",\n \"flow\": \"inbound\",\n \"from\": \"123456789@c.us\",\n \"fromNumber\": \"+123456789\",\n \"to\": \"1987654321@c.us\",\n \"toNumber\": \"+1987654321\",\n \"date\": \"2019-03-16T15:48:02.000Z\",\n \"timestamp\": 1552751282,\n \"body\": \"Hello! This is an income sample message\",\n \"chat\": {\n \"id\": \"123456789@c.us\",\n \"name\": \"John Wick\",\n \"date\": \"2019-03-16T15:40:17.000Z\",\n \"type\": \"chat\",\n \"stats\": {\n \"localMessages\": 72,\n \"inboundMessages\": 0,\n \"outboundMessages\": 0\n },\n \"contact\": {\n \"id\": \"123456789@c.us\",\n \"type\": \"user\",\n \"name\": \"John Wick\",\n \"shortName\": \"John Wick\",\n \"displayName\": \"John Wick\",\n \"formattedName\": \"John Wick\",\n \"formattedShortName\": \"John Wick\",\n \"syncedAt\": \"2019-03-16T15:48:03.464Z\",\n \"phone\": \"123456789\",\n \"imageUrl\": \"https://pps.whatsapp.net/v/t61.1111-1/1234567_1234567_1234567_n.jpg?oe=1234567&oh=123456712345671234567\"\n }\n },\n \"meta\": {\n \"containsEmoji\": false,\n \"isGif\": false,\n \"isStar\": false,\n \"isGroup\": false,\n \"isForwarded\": false,\n \"isNotification\": false,\n \"isLive\": false,\n \"isBroadcast\": false,\n \"isBizNotification\": false,\n \"isDoc\": false,\n \"isLinkPreview\": false,\n \"isPSA\": false,\n \"isRevoked\": false,\n \"isUnreadType\": false,\n \"rtl\": false,\n \"isFailed\": false,\n \"notifyName\": \"\"\n }\n }\n}\n```\n\n##### Outbound events\n\nData will be structured as an array of objects, such as the following example:\n\n```json\n[\n {\n \"event\": \"\",\n \"date\": \"2018-12-08T15:01:48.518Z\",\n ...\n },\n {\n \"event\": \"\",\n \"date\": \"2018-12-08T15:01:48.518Z\",\n ...\n },\n {\n \"event\": \"\",\n \"date\": \"2018-12-08T15:01:48.518Z\",\n ...\n },\n ...\n]\n```\n\nBelow you will find a featured example of how a webhook callback object looks like.\n\n#### How many JSON objects are included per HTTP request body?\n\nA maximum of 25 objects will be included per HTTP POST request.\n\n#### What happens in case of notification failure?\n\nWe will retry the request several times until it succeds.\n\nIn case of multiple failures in a row (> 10), we will notify you about the issue via email.\n\nIn case of persistent failures over several hours (> 60), our system will disable the webhook\nendpoint and will notify you via email about the incident.\n\nYou could later re-enable the webhook once the issue is fixed in your end.\n\n### Security advice\n\nWe strongly recommend you to use HTTPS instead of HTTP since communication would be encrypted and secure.\n\n### Examples\n\nFull example of a JSON POST body for a message sent event:\n```json\n[\n {\n \"event\": \"message:out:sent\",\n \"date\": \"2018-12-08T15:01:48.518Z\",\n \"message\": \"Message was delivered successfully\",\n \"entity\": \"message\",\n \"entityId\": \"5bf612faa893b00016c0f13d\",\n \"entityUrl\": \"https://api.domain.com/v1/messages/5bf612faa893b00016c0f13d\",\n \"user\": \"5bd75ab235623e00162a73dc\",\n \"data\": {\n \"id\": \"5bf612faa893b00016c0f13d\",\n \"phone\": \"+6282288354711\",\n \"status\": \"processed\",\n \"deliveryStatus\": \"delivered\",\n \"createdAt\": \"2018-11-22T02:22:50.955Z\",\n \"sentAt\": \"2018-11-22T02:29:29.254Z\",\n \"failedAt\": null,\n \"processedAt\": \"2018-11-22T02:28:54.818Z\",\n \"webhookStatus\": \"pending\",\n \"message\": \"This is an automated message sent from waplatform API\",\n \"priority\": \"normal\",\n \"schedule\": {\n \"enabled\": false\n },\n \"retry\": {\n \"count\": 1,\n \"lastRetryAt\": \"2018-11-22T02:25:58.414Z\"\n },\n \"device\": {\n \"id\": \"3bf5d1ff2ff2bd001696ac42\",\n \"phone\": \"+1234567890\",\n \"alias\": \"My WA Delivery Device\",\n \"description\": \"Device 1 for customer support and product notifications\",\n \"status\": \"verified\",\n \"session\": {\n \"status\": \"online\",\n \"error\": false,\n \"lastSyncAt\": \"2018-12-02T10:11:16.008Z\"\n },\n \"createdAt\": \"2018-11-20T09:21:03.898Z\",\n \"queue\": {\n \"total\": 100,\n \"size\": 0,\n \"available\": 100\n },\n \"googleAccount\": \"5bd75b6335623e00162a73df\",\n \"profile\": {\n \"name\": \"+628995445601\",\n \"info\": null,\n \"lastSyncAt\": \"2018-11-22T22:14:33.334Z\",\n \"imagePath\": \"/v1/devices/3bf5d1ff2ff2bd001696ac42/profile/image\"\n },\n \"settings\": {\n \"autoReply\": {\n \"enabled\": false\n },\n \"autoRemove\": {\n \"enabled\": false,\n \"skip\": 100,\n \"action\": \"remove\",\n \"hour\": 3,\n \"utcHour\": 3\n }\n },\n \"metrics\": {\n \"chats\": {\n \"open\": 0,\n \"removed\": 0,\n \"updatedAt\": \"2018-11-20T09:21:03.893Z\"\n }\n },\n \"bandwidth\": {\n \"status\": \"pending\",\n \"downstream\": 1,\n \"upstream\": 1\n },\n \"billing\": {\n \"subscription\": {\n \"status\": \"active\",\n \"plan\": \"basic\",\n \"price\": 9.5,\n \"startedAt\": \"2018-11-20T09:21:03.892Z\",\n \"endsAt\": \"2018-12-20T09:21:01.000Z\",\n \"changedAt\": \"2018-11-20T09:21:03.892Z\",\n \"usage\": {\n \"textMessages\": 565,\n \"mediaMessages\": 0,\n \"failedMessages\": 103,\n \"filesSize\": 0\n }\n }\n },\n \"links\": {\n \"device\": {\n \"method\": \"GET\",\n \"url\": \"https://api.domain.com/v1/devices/3bf5d1ff2ff2bd001696ac42\"\n },\n \"scan\": {\n \"method\": \"GET\",\n \"url\": \"https://api.domain.com/v1/devices/3bf5d1ff2ff2bd001696ac42/scan\"\n },\n \"sync\": {\n \"method\": \"GET\",\n \"url\": \"https://api.domain.com/v1/devices/3bf5d1ff2ff2bd001696ac42/sync\"\n },\n \"health\": {\n \"method\": \"GET\",\n \"url\": \"https://api.domain.com/v1/devices/3bf5d1ff2ff2bd001696ac42/health\"\n },\n \"profileImage\": {\n \"method\": \"GET\",\n \"url\": \"https://api.domain.com/v1/devices/3bf5d1ff2ff2bd001696ac42/profile/image\"\n },\n \"messages\": {\n \"method\": \"GET\",\n \"url\": \"https://api.domain.com/v1/messages?devices=3bf5d1ff2ff2bd001696ac42\"\n }\n },\n \"stats\": {\n \"total\": {\n \"sent\": 565,\n \"failed\": 103,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 13331,\n \"totalUpstreamSpeed\": 0\n },\n \"minutes\": {\n \"sent\": 4,\n \"failed\": 0,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 48,\n \"totalUpstreamSpeed\": 0\n },\n \"quarter\": {\n \"sent\": 4,\n \"failed\": 0,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 48,\n \"totalUpstreamSpeed\": 0\n },\n \"hour\": {\n \"sent\": 10,\n \"failed\": 1,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 114,\n \"totalUpstreamSpeed\": 0\n },\n \"day\": {\n \"sent\": 10,\n \"failed\": 1,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 114,\n \"totalUpstreamSpeed\": 0\n },\n \"week\": {\n \"sent\": 10,\n \"failed\": 1,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 114,\n \"totalUpstreamSpeed\": 0\n },\n \"month\": {\n \"sent\": 565,\n \"failed\": 103,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 13331,\n \"totalUpstreamSpeed\": 0\n },\n \"year\": {\n \"sent\": 565,\n \"failed\": 103,\n \"media\": 0,\n \"totalUpstreamSize\": 0,\n \"totalDeliveryTime\": 13331,\n \"totalUpstreamSpeed\": 0\n }\n }\n }\n }\n },\n ...\n]\n```\n", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/webhooks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/webhooks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "resetDevice", + "url": "https://wassenger.p.rapidapi.com/devices/{deviceId}/reset", + "description": "Reset device session and delete all data, including chats, contacts and inbound stored messages.\n\nQueued messages will remain in the queue by default, unless the `emptyQueue` query param is set to `true`.\n\n\n\n**Important**:\n\nThis action will make the device unoperative for about 2-3 minutes.\n\nDevice authorization will be required in order to make it operative again.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "wait", + "type": "BOOLEAN", + "description": "Wait the device to be available. This may delay the server response up to 2 minutes. Please, increase the HTTP request response timeout tolerance.", + "default": "" + }, + { + "name": "emptyQueue", + "type": "BOOLEAN", + "description": "Delete all existent queued messages in the current device.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/reset\"\nquerystring = {\"wait\": \"\", \"emptyQueue\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/reset\"\nquerystring = {\"wait\": \"\", \"emptyQueue\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "deviceAutoreply", + "url": "https://wassenger.p.rapidapi.com/devices/{deviceId}/autoreply", + "description": "Enable/disable messages auto-reply capability in the device.\n\nThis automation allows you to incoming messages from users with a predefined generic message.\n\nArbitrary answers based on user's incoming message is not currently possible.\n\n**NOTE**: this capability is limited to devices with the following plans:\n\n- **Enterprise**", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/autoreply\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/autoreply\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "deviceAutoremoveChats", + "url": "https://wassenger.p.rapidapi.com/devices/{deviceId}/removechats", + "description": "Configure automatic chats clean up/removal task in your device.\n\n\n\nThis feature is particularly useful for devices sending thousands of messages to different numbers.\n\nIf enabled, our system would take care of automatically removing old chats every few minutes from your device session.\n\n#### Why does this feature exist?\n\nHaving many chats open would decrease the performance or even make your device non-operative. We recommend enabling this feature if you plan to deliver messages to thousands of different users.\n\nWe recommend customers with medium to high delivery volume to enable this feature.\n\n#### How often would the chats be removed?\n\nChats would be removed every 2 minutes.\n\nIf the device session is not online, chats will be removed as long as the session is operative again.\n\n#### What is the default maximum open chats limit?\n\nIf enabled, by default it would allow up to 500 active chats. You can customize the maximum limit from 100 to 1000 chats.\n\n#### How does having hundreds of chat affect performance?\n\nAccording to our tests, having more than 500 open chat can impact the performance of your device and decrease message delivery speed.\n\nUnless strictly necessary, please consider a lower value.\n\n#### I do not want to remove all chats. Can I skip some of them?\n\nYes, you can.\n\nIn case you do not want to remove certain chats, you can add up to 100 phone numbers to the whitelist.\n\n#### What kind of chats would be removed?\n\nOnly user chats are affected by this.\n\nGroup chats, broadcast lists and pinned user chats are ignored and will not be deleted.\n\n#### How does the clean up criteria works?\n\nIt is quite simple: we remove the oldest chats once the maximum allowed chats was exceeded.\n\nWorth noting that we do not count group/broadcast/pinned chats.\n\n#### What device plans support this feature?\n\nThis feature is limited to devices with the following plans:\n\n- **Business**\n\n- **Enterprise**", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/removechats\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/removechats\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "uploadFile", + "url": "https://wassenger.p.rapidapi.com/files", + "description": "Upload one or multiple files from remote URLs or traditional HTTP POST client upload. It supports raw, multipart bodies and JSON bodies.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "tags", + "type": "STRING", + "description": "Optional file name tags comma separeted.", + "default": "" + }, + { + "name": "filename", + "type": "STRING", + "description": "Optional file name to identify the file. Default to upload inferred file name.", + "default": "" + }, + { + "name": "reference", + "type": "STRING", + "description": "Optional file reference identifier metadata. Useful for searching and filtering files.", + "default": "" + }, + { + "name": "format", + "type": "STRING", + "description": "File native presentation format. Defaults to native file format inferred based on its MIME type.", + "default": "\"gif\"" + }, + { + "name": "deviceId", + "type": "STRING", + "description": "Optional device ID to associate file by using its linked Google Account. Use this parameter if you do not know the Google Account email or ID.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/files\"\nquerystring = {\"tags\": \"\", \"filename\": \"\", \"reference\": \"\", \"format\": \"\\\"gif\\\"\", \"deviceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/files\"\nquerystring = {\"tags\": \"\", \"filename\": \"\", \"reference\": \"\", \"format\": \"\\\"gif\\\"\", \"deviceId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "createMessage", + "url": "https://wassenger.p.rapidapi.com/messages", + "description": "Send new text, media or location message to a given phone number or group.\n\nNote that some message features could not be available because of your device's subscription plan.\n\n\n\nOptional features available per subscription plan are:\n\n- **Group messages** - (only professional, business or enterprise plans)\n\n- **Media messages** - Send image, documents or binary archives (only for professional, business or enterprise plans)\n\n- **Priority message** - (only I/O or business/enterprise plans)\n\n- **Scheduled messages** - Send messages in a predefined date/time (only professional (I/O) and business or enterprise (Gateway) plans)\n\n\n\nPlease, see the device subscription plans table in order to get more details about the allowed features per plan.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/messages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/messages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "enableWebhook", + "url": "https://wassenger.p.rapidapi.com/webhooks/{webhookId}/enable", + "description": "Enable or re-enable specific webhook endpoint.\n\nYou would be typically required after too many failures in a row, which would automatically disabled the webhook endpoint and would required manual intervention to re-enable the webhook.\n\nWebhooks are automatically disabled after 20 or more notification failures in a row.\n\nWebhooks are typically called every minute if there are new events to be notified.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/webhooks/{webhookId}/enable\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/webhooks/{webhookId}/enable\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "createDevice", + "url": "https://wassenger.p.rapidapi.com/devices", + "description": "Create new device with a specific monthly subscription plan (basic, professional, business or enterprise).\n\n\n\nAfter device creation, you would need to authorize it by scanning the QR code the user device.\n\nSee `/devices/{id}/scan` endpoint for more information.\n\n\n\nBilling would start right after the device creation.\n\nBy default, you can create and run up 5 devices, but you can contact us if you need more devices and we will increase the devices quota limit.\n\n\n\n**Note**: experimental endpoint. Contact support if you experience any issues.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "rebootDevice", + "url": "https://wassenger.p.rapidapi.com/devices/{deviceId}/reboot", + "description": "Reboot device session without deleting data.\n\n**Warning**:\n\nThis action will make the device unavailable during one minute and no messages will be sent or received during that time.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "wait", + "type": "BOOLEAN", + "description": "Wait the device session to be available. This may delay the server response up to 90 seconds. Please, increase the HTTP request response timeout tolerance.", + "default": "" + }, + { + "name": "force", + "type": "BOOLEAN", + "description": "Force device reboot even if it is already stopped.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/reboot\"\nquerystring = {\"wait\": \"\", \"force\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/reboot\"\nquerystring = {\"wait\": \"\", \"force\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "properties": { + "alias": { + "type": "string" + }, + "billing": { + "properties": { + "subscription": { + "properties": { + "cancelledAt": { + "format": "date-time", + "type": "string" + }, + "changedAt": { + "format": "date-time", + "type": "string" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "endsAt": { + "format": "date-time", + "type": "string" + }, + "isTrial": { + "type": "boolean" + }, + "plan": { + "enum": [ + "free", + "basic", + "business", + "enterprise", + "professional", + "gateway-basic", + "gateway-business", + "gateway-enterprise", + "gateway-professional", + "io-basic", + "io-professional", + "io-business", + "io-enterprise" + ], + "type": "string" + }, + "planCode": { + "default": "free", + "type": "string" + }, + "previousPlan": { + "enum": [ + "free", + "basic", + "business", + "enterprise", + "professional", + "gateway-basic", + "gateway-business", + "gateway-enterprise", + "gateway-professional", + "io-basic", + "io-professional", + "io-business", + "io-enterprise" + ], + "type": "string" + }, + "product": { + "default": "gateway", + "enum": [ + "io", + "gateway", + "support" + ], + "type": "string" + }, + "startedAt": { + "format": "date-time", + "type": "string" + }, + "startsAt": { + "format": "date-time", + "type": "string" + }, + "status": { + "default": "active", + "enum": [ + "active", + "disabled", + "cancelled", + "unpaid", + "past_due" + ], + "type": "string" + }, + "trialEndsAt": { + "format": "date-time", + "type": "string" + }, + "updatedAt": { + "format": "date-time", + "type": "string" + }, + "usage": { + "properties": { + "failedMessages": { + "type": "number" + }, + "filesSize": { + "type": "number" + }, + "mediaMessages": { + "type": "number" + }, + "textMessages": { + "type": "number" + } + }, + "title": "usage", + "type": "object" + }, + "users": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "subscriptionHistory": { + "items": { + "properties": { + "cancelledAt": { + "format": "date-time", + "type": "string" + }, + "changedAt": { + "format": "date-time", + "type": "string" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "endsAt": { + "format": "date-time", + "type": "string" + }, + "isTrial": { + "type": "boolean" + }, + "plan": { + "enum": [ + "free", + "basic", + "business", + "enterprise", + "professional", + "gateway-basic", + "gateway-business", + "gateway-enterprise", + "gateway-professional", + "io-basic", + "io-professional", + "io-business", + "io-enterprise" + ], + "type": "string" + }, + "planCode": { + "default": "free", + "type": "string" + }, + "previousPlan": { + "enum": [ + "free", + "basic", + "business", + "enterprise", + "professional", + "gateway-basic", + "gateway-business", + "gateway-enterprise", + "gateway-professional", + "io-basic", + "io-professional", + "io-business", + "io-enterprise" + ], + "type": "string" + }, + "product": { + "default": "gateway", + "enum": [ + "io", + "gateway", + "support" + ], + "type": "string" + }, + "startedAt": { + "format": "date-time", + "type": "string" + }, + "startsAt": { + "format": "date-time", + "type": "string" + }, + "status": { + "default": "active", + "enum": [ + "active", + "disabled", + "cancelled", + "unpaid", + "past_due" + ], + "type": "string" + }, + "trialEndsAt": { + "format": "date-time", + "type": "string" + }, + "updatedAt": { + "format": "date-time", + "type": "string" + }, + "usage": { + "properties": { + "failedMessages": { + "type": "number" + }, + "filesSize": { + "type": "number" + }, + "mediaMessages": { + "type": "number" + }, + "textMessages": { + "type": "number" + } + }, + "title": "usage", + "type": "object" + }, + "users": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "cancelAt": { + "format": "date-time", + "type": "string" + }, + "deletedAt": { + "format": "date-time", + "type": "string" + }, + "description": { + "type": "string" + }, + "disabledAt": { + "format": "date-time", + "type": "string" + }, + "groupChats": { + "properties": { + "chats": { + "items": { + "properties": { + "isArchive": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean" + }, + "isReadOnly": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "kind": { + "default": "group", + "enum": [ + "group", + "contact", + "broadcast" + ], + "type": "string" + }, + "lastMessageAt": { + "format": "date-time", + "type": "string" + }, + "name": { + "type": "string" + }, + "unreadCount": { + "type": "number" + }, + "updatedAt": { + "format": "date-time", + "type": "string" + }, + "wid": { + "type": "string" + } + }, + "title": "Device", + "type": "object" + }, + "type": "array" + }, + "lastSyncAt": { + "description": "Last group chats synchronization date.", + "format": "date-time", + "type": "string" + } + }, + "title": "groupChats", + "type": "object" + }, + "id": { + "description": "Device resource ID", + "type": "string" + }, + "info": { + "properties": { + "battery": { + "type": "number" + }, + "isBatteryPlugged": { + "type": "boolean" + }, + "isBusiness": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "name": { + "type": "string" + }, + "platform": { + "properties": { + "buildNumber": { + "type": "string" + }, + "manufacturer": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "title": "platform", + "type": "object" + }, + "protocolVersion": { + "type": "string" + }, + "updatedAt": { + "format": "date-time", + "type": "string" + }, + "waVersion": { + "type": "string" + } + }, + "title": "info", + "type": "object" + }, + "lastMessage": { + "type": "string" + }, + "lastMessageAt": { + "format": "date-time", + "type": "string" + }, + "logs": { + "items": { + "properties": { + "count": { + "type": "number" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "event": { + "type": "string" + }, + "level": { + "default": "info", + "enum": [ + "info", + "error", + "alert", + "warning", + "debug", + "notify", + "internal", + "standard" + ], + "type": "string" + }, + "message": { + "type": "string" + } + }, + "title": "Device", + "type": "object" + }, + "type": "array" + }, + "metrics": { + "properties": { + "contacts": { + "type": "number" + }, + "openChats": { + "type": "number" + } + }, + "title": "metrics", + "type": "object" + }, + "notifications": { + "properties": { + "authorize": { + "title": "Device", + "type": "object" + }, + "error": { + "title": "Device", + "type": "object" + }, + "online": { + "title": "Device", + "type": "object" + }, + "trialExpiration": { + "title": "Device", + "type": "object" + }, + "usageAlert": { + "title": "Device", + "type": "object" + }, + "usageExceeded": { + "title": "Device", + "type": "object" + } + }, + "type": "object" + }, + "phone": { + "type": "string" + }, + "profile": { + "properties": { + "image": { + "type": "string" + }, + "info": { + "type": "string" + }, + "lastSyncAt": { + "format": "date-time", + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "title": "profile", + "type": "object" + }, + "queue": { + "properties": { + "messages": { + "type": "number" + } + }, + "title": "queue", + "type": "object" + }, + "session": { + "properties": { + "appVersion": { + "type": "string" + }, + "lastSyncAt": { + "format": "date-time", + "type": "string" + }, + "logs": { + "items": { + "properties": { + "count": { + "type": "number" + }, + "createdAt": { + "format": "date-time", + "type": "string" + }, + "event": { + "type": "string" + }, + "level": { + "default": "info", + "enum": [ + "info", + "error", + "alert", + "warning", + "debug", + "notify", + "internal", + "standard" + ], + "type": "string" + }, + "message": { + "type": "string" + } + }, + "title": "Device", + "type": "object" + }, + "type": "array" + }, + "status": { + "default": "new", + "enum": [ + "online", + "offline", + "timeout", + "timeout_sync", + "conflict", + "blocked", + "error", + "new", + "loading", + "authorize", + "authorizing", + "offline:panel", + "offline:modal" + ], + "type": "string" + }, + "uptime": { + "type": "number" + } + }, + "title": "session", + "type": "object" + }, + "settings": { + "properties": { + "autoRemove": { + "properties": { + "enabled": { + "default": true, + "type": "boolean" + }, + "max": { + "default": 600, + "type": "number" + } + }, + "title": "autoRemove", + "type": "object" + }, + "autoReply": { + "properties": { + "enabled": { + "type": "boolean" + }, + "message": { + "type": "string" + } + }, + "title": "autoReply", + "type": "object" + }, + "concurrency": { + "description": "Messages delivery speed concurrency. Defaults to subscription plan default concurrency.", + "type": "number" + }, + "deliverySpeed": { + "description": "Maximum messages delivery speed per minute for the current device. Maximum plan delivery speed limit applies here. Use \"0\" for default plan delivery speed or define a custom allowed value for custom delivery speed control.", + "enum": [ + 250, + 200, + 180, + 160, + 140, + 120, + 100, + 90, + 80, + 70, + 60, + 50, + 40, + 30, + 20, + 15, + 10, + 9, + 8, + 7, + 6, + 5, + 4, + 3, + 2, + 1, + 0.9, + 0.8, + 0.7, + 0.6, + 0.5, + 0.4, + 0.3, + 0.2, + 0.1, + 0 + ], + "type": "number" + }, + "isNewNumber": { + "description": "If the number was created as a new number, this field will be \"true\".", + "type": "boolean" + }, + "newNumberEndsAt": { + "description": "If the number was created as a new number, this field stores the date limit where the new number anti-abuse policy applies, tipically up to 1 month.", + "format": "date-time", + "type": "string" + }, + "rebootPolicy": { + "default": "disabled", + "description": "Optionally enable automatic session reboot policy for the current device in a specific interval. This might help you to avoid performance or memory issues in long running sessions, which is especially helpful in I/O devices where the session is tipically running for long hours or days. The system will automatically reboot your device session without having to re-authorize it every time or requiring any manual intervention. Reboot will cause up to 2 minutes downtime and message processing delay, but no messages will be lost during the process.", + "enum": [ + "disabled", + "1h", + "2h", + "3h", + "4h", + "5h", + "6h", + "8h", + "12h", + "24h" + ], + "type": "string" + }, + "retentionPolicy": { + "default": "plan_defaults", + "description": "Data retention policy applied to device's storage in the system, including inbound/outbound messages, chats, contacts and files. A custom data retention policy can be used to automatically delete messages once they are processed or after a specific amount ot time (e.g: 1 hour or 1 day). Once the maximum retention is exceede, message data will not be accessible from the Web Console or API anymore. If you take want to keep track of data, we recommend you to query the messages via API and store them in your own system.", + "type": "string" + } + }, + "title": "settings", + "type": "object" + }, + "stats": { + "properties": { + "day": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "hour": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "minutes": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "month": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "quarter": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "total": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "week": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + }, + "year": { + "properties": { + "failed": { + "type": "number" + }, + "media": { + "type": "number" + }, + "sent": { + "type": "number" + }, + "totalDeliveryTime": { + "type": "number" + }, + "totalUpstreamSize": { + "type": "number" + }, + "totalUpstreamSpeed": { + "type": "number" + } + }, + "title": "Device", + "type": "object" + } + }, + "type": "object" + }, + "status": { + "default": 50, + "enum": [ + "invalid", + "banned", + "removed", + "disabled", + "pending", + "authorized", + "verified", + "operative" + ], + "type": "number" + }, + "user": { + "type": "string" + }, + "version": { + "default": 2, + "type": "number" + }, + "wid": { + "type": "string" + } + }, + "required": [ + "user", + "alias" + ], + "title": "Device", + "type": "object" + } + }, + { + "name": "deviceReadChats", + "url": "https://wassenger.p.rapidapi.com/devices/{deviceId}/readchats", + "description": "Report on-demand unread messages within one or multiple chats as read messages, simulating user-behavior with the blue double-check after reading messages.\n\n\n\nBy calling this endpoint, you can arbitrary report as read messages all unread messages within one or multiple chats.\n\n\n\nAlternatively, you can report read messages per chat everytime you send a message to a user/group target by simply adding the JSON field `sendReadAck: true` in the API request body.\n\nFor more details, see the [Messages > Send message endpoint](#operation/createMessage) documentation.\n\n\n\n**Note**: in case you have disabled read confirmation in WhatsApp Settings > Account > Privacy, this configuration will have no effect.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/readchats\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/devices/{deviceId}/readchats\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "syncDeviceChatMessages", + "url": "https://wassenger.p.rapidapi.com/io/{deviceId}/sync", + "description": "Synchronizes device messages across chats, default the most recent 50 chats, 50 most recent messages first.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "messages", + "type": "NUMBER", + "description": "Maximum messages to sync per chat", + "default": 50 + }, + { + "name": "size", + "type": "NUMBER", + "description": "Maximum most recent chats to sync", + "default": 20 + } + ], + "code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/io/{deviceId}/sync\"\nquerystring = {\"messages\": 50, \"size\": 20}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wassenger.p.rapidapi.com/io/{deviceId}/sync\"\nquerystring = {\"messages\": 50, \"size\": 20}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wassenger.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/wassenger/api.py b/toolbench/toolenv/tools/Communication/wassenger/api.py new file mode 100644 index 0000000000000000000000000000000000000000..704405d61d51f6277cb7201fad6ad22b143907a8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/wassenger/api.py @@ -0,0 +1,907 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getdevicefiles(size: int=20, after: str=None, page: int=None, ids: str=None, before: str=None, type: str='"image"', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search inbound files in current device" + size: Results page size + after: Messages created after the given date + page: Results page number (starting from 0) + ids: Filter files by IDs + before: Messages created before the given date + type: Filter files by media type + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/files" + querystring = {} + if size: + querystring['size'] = size + if after: + querystring['after'] = after + if page: + querystring['page'] = page + if ids: + querystring['ids'] = ids + if before: + querystring['before'] = before + if type: + querystring['type'] = type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getqueuestatus(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get current device queue stats." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/queue" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicechats(type: str='"chat"', phone: str=None, broadcast: str=None, page: int=None, group: str=None, before: str=None, ids: str=None, after: str=None, size: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List device session chats, optionally filtered by search params." + type: Filter messages by chat type + phone: Filter chats by phone numbers or WIDs + broadcast: Filter chats by broadcast list WID + page: Results page number (starting from 0) + group: Filter messages by group WIDs + before: Messages created before the given date + ids: Filter messages by chat ID + after: Messages created after the given date + size: Results page size + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/chats" + querystring = {} + if type: + querystring['type'] = type + if phone: + querystring['phone'] = phone + if broadcast: + querystring['broadcast'] = broadcast + if page: + querystring['page'] = page + if group: + querystring['group'] = group + if before: + querystring['before'] = before + if ids: + querystring['ids'] = ids + if after: + querystring['after'] = after + if size: + querystring['size'] = size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def syncdevice(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Force device status synchronization. + + Only one device synchronization allowed every 60 seconds." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/sync" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def searchfiles(ext: str=None, filename: str=None, tags: str=None, googleaccount: str=None, format: str='[ + "gif" +]', kind: str='[ + "image" +]', page: int=None, origin: str='"remote"', ids: str=None, mime: str=None, device: str=None, after: str=None, sha2: str=None, reference: str=None, filesize: str=None, size: int=20, search: str=None, status: str='[ + "any" +]', before: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List files, optionally using multiple search filters." + format: Filter files by format type. If not present, files with any format will be returned + ids: Filter files by IDs + after: Deliver at after the given date + sha2: Find a file by its SHA2 checksum value + search: Search files by filename, tags or reference + before: Deliver at before the given date + + """ + url = f"https://wassenger.p.rapidapi.com/files" + querystring = {} + if ext: + querystring['ext'] = ext + if filename: + querystring['filename'] = filename + if tags: + querystring['tags'] = tags + if googleaccount: + querystring['googleAccount'] = googleaccount + if format: + querystring['format'] = format + if kind: + querystring['kind'] = kind + if page: + querystring['page'] = page + if origin: + querystring['origin'] = origin + if ids: + querystring['ids'] = ids + if mime: + querystring['mime'] = mime + if device: + querystring['device'] = device + if after: + querystring['after'] = after + if sha2: + querystring['sha2'] = sha2 + if reference: + querystring['reference'] = reference + if filesize: + querystring['filesize'] = filesize + if size: + querystring['size'] = size + if search: + querystring['search'] = search + if status: + querystring['status'] = status + if before: + querystring['before'] = before + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getwebhook(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get webhook details by ID" + + """ + url = f"https://wassenger.p.rapidapi.com/webhooks/{webhookid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def deviceprofile(include: str='"profileImage"', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device WhatsApp profile information, including public alias, status description and profile image." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/profile" + querystring = {} + if include: + querystring['include'] = include + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getwebhooks(page: int=None, size: int=20, devices: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get active webhooks, optionally filtered by search params. + + If you do not know what webhooks are, [read this article](https://markheath.net/post/basic-introduction-webhooks)." + page: Results page number (starting from 0) + size: Results page size + devices: Filter webhooks by device IDs + + """ + url = f"https://wassenger.p.rapidapi.com/webhooks" + querystring = {} + if page: + querystring['page'] = page + if size: + querystring['size'] = size + if devices: + querystring['devices'] = devices + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicecontactdetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device contact details by WhatsApp ID. You can retrieve information from users and groups." + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/contacts/{contactwid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def syncdevicechatmessages(size: int=50, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Synchronizes device chat's messages and return them." + size: Maximum most recent messages to sync + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/chats/{chatwid}/sync" + querystring = {} + if size: + querystring['size'] = size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getmessage(include: str='[ + "logs" +]', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get outbound message details." + + """ + url = f"https://wassenger.p.rapidapi.com/messages/{messageid}" + querystring = {} + if include: + querystring['include'] = include + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicebyid(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device details by ID" + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdeviceinvoicepdf(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Download invoice PDF document by its reference ID" + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/invoices/{invoiceid}/pdf" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def searchmessages(devices: str=None, webhookstatus: str='[ + "invalid" +]', ids: str=None, waids: str=None, before: str=None, device: str=None, search: str=None, group: str=None, include: str='[ + "device" +]', status: str='[ + "any" +]', after: str=None, phone: str=None, priority: str='[ + "low" +]', deliverystatus: str='[ + "sent" +]', size: int=20, page: int=None, reference: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search messages, optionally filtered by search params." + waids: Search messages by WhatsApp ID. Multiple IDs allowed separated by comma. + before: Deliver at before the given date + device: Search messages by origin device ID or device phone number + search: Search messages by target phone, group, broadcast or message ID + after: Deliver at after the given date + size: Results page size + page: Results page number (starting from 0) + + """ + url = f"https://wassenger.p.rapidapi.com/messages" + querystring = {} + if devices: + querystring['devices'] = devices + if webhookstatus: + querystring['webhookStatus'] = webhookstatus + if ids: + querystring['ids'] = ids + if waids: + querystring['waIds'] = waids + if before: + querystring['before'] = before + if device: + querystring['device'] = device + if search: + querystring['search'] = search + if group: + querystring['group'] = group + if include: + querystring['include'] = include + if status: + querystring['status'] = status + if after: + querystring['after'] = after + if phone: + querystring['phone'] = phone + if priority: + querystring['priority'] = priority + if deliverystatus: + querystring['deliveryStatus'] = deliverystatus + if size: + querystring['size'] = size + if page: + querystring['page'] = page + if reference: + querystring['reference'] = reference + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def searchdevices(size: int=20, page: int=None, status: str='any', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List user devices, optionally filtered by search params." + + """ + url = f"https://wassenger.p.rapidapi.com/devices" + querystring = {} + if size: + querystring['size'] = size + if page: + querystring['page'] = page + if status: + querystring['status'] = status + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicefiledetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device file details by ID." + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/files/{fileid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def downloadfile(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Download file content based on its MIME type." + + """ + url = f"https://wassenger.p.rapidapi.com/files/{fileid}/download" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdeviceinvoices(all: bool=None, limit: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device invoices of current and past billing periods. + + Invoices can also be viewed as HTML and PDF." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/invoices" + querystring = {} + if all: + querystring['all'] = all + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def devicehealth(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get current device health status. + + Possible status are: + + - **new** - Device was recently created and not authorized yet. + + - **error** - Device failed multiple times and is not currently available. + + - **loading** - Device session is loading and not ready yet. + + - **authorize** - Device session needs authorization via QR code. + + - **authorizing** - Device session is authorizing. + + - **offline** - Device is offline and cannot be reached via network. This is typically an operational issue. + + - **online** - Device is online and authorized." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/health" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicecontacts(broadcast: str=None, page: int=None, after: str=None, ids: str=None, before: str=None, type: str='"user"', phone: str=None, group: str=None, size: int=20, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List device contacts, optionally filtered by search params." + broadcast: Filter contacts by broadlist WIDs + page: Results page number (starting from 0) + after: Contacts created after the given date + ids: Filter contacts by chat ID + before: Contacts created before the given date + type: Filter contacts by chat type + phone: Filter contacts by phone numbers or WIDs + group: Filter contacts by group WIDs + size: Results page size + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/contacts" + querystring = {} + if broadcast: + querystring['broadcast'] = broadcast + if page: + querystring['page'] = page + if after: + querystring['after'] = after + if ids: + querystring['ids'] = ids + if before: + querystring['before'] = before + if type: + querystring['type'] = type + if phone: + querystring['phone'] = phone + if group: + querystring['group'] = group + if size: + querystring['size'] = size + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getfile(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get file details looking by file ID" + + """ + url = f"https://wassenger.p.rapidapi.com/files/{fileid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicechatdetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device chat details by WhatsApp ID. You can retrieve information from both users and groups." + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/chats/{chatwid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scanqr(force: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get scan QR image to create session + + If the device is already authenticated, it would return an error unless you pass the query param `force=true`. + + + + **Note**: this endpoint might sometimes return an error the first time the QR code is requested. Simply retry the request until you get a valid response status." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/scan" + querystring = {} + if force: + querystring['force'] = force + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def previewfile(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Download file preview image, if available in the given file." + + """ + url = f"https://wassenger.p.rapidapi.com/files/{fileid}/preview" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getpricing(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve plans pricing metadata" + + """ + url = f"https://wassenger.p.rapidapi.com/pricing" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def deviceprofileimage(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device WhatsApp account profile image in JPEG format. Only authorized devices can return the profile image." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/profile/image" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def downloaddevicefiledetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Download device file contents by ID." + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/files/{fileid}/download" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicegroupchats(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device group chats and broadcast lists where the WhastApp account is member of." + + """ + url = f"https://wassenger.p.rapidapi.com/devices/{deviceid}/groups" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicemessagedetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get device message details by ID." + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/messages/{messagewid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getdevicemessages(ack: str='[ + "sent" +]', end: str=None, before: str=None, type: str='"notification"', is_from: str=None, size: int=20, flow: str='"in"', page: int=None, begin: str=None, to: str=None, after: str=None, chat: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search device messages, optionally filtered by search params." + ack: Filter messages by delivery ACK status + end: Return oldest messages starting from the given message ID + before: Messages created before the given date + type: Filter messages by chat type + is_from: Return messages sent from a given phone number or WhatsApp WID + size: Results page size + flow: Filter by inbound or outbound messages + page: Results page number (starting from 0) + begin: Return newest messages starting from the given message ID + to: Return messages received to the given phone number or WhatsApp WID + after: Messages created after the given date + chat: Filter messages by chat ID + + """ + url = f"https://wassenger.p.rapidapi.com/io/{deviceid}/messages" + querystring = {} + if ack: + querystring['ack'] = ack + if end: + querystring['end'] = end + if before: + querystring['before'] = before + if type: + querystring['type'] = type + if is_from: + querystring['from'] = is_from + if size: + querystring['size'] = size + if flow: + querystring['flow'] = flow + if page: + querystring['page'] = page + if begin: + querystring['begin'] = begin + if to: + querystring['to'] = to + if after: + querystring['after'] = after + if chat: + querystring['chat'] = chat + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wassenger.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/wavecell_sms.json b/toolbench/toolenv/tools/Communication/wavecell_sms.json new file mode 100644 index 0000000000000000000000000000000000000000..18c991d39d38fcd450ff5e8c07b665f77deab01e --- /dev/null +++ b/toolbench/toolenv/tools/Communication/wavecell_sms.json @@ -0,0 +1,123 @@ +{ + "tool_name": "Wavecell SMS", + "tool_description": "Wavecell SMS API allows registered users to send SMS worldwide using a simple , fast and reliable HTTP API.\r\n\r\nSend messages in minutes - Get your free trial at : http://www.wavecell.com", + "title": "Wavecell SMS", + "pricing": "FREE", + "score": { + "avgServiceLevel": 0, + "avgLatency": 39, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/wavecell/api/wavecell-sms/", + "host": "wavecell.p.rapidapi.com", + "api_list": [ + { + "name": "Get delivery status", + "url": "https://wavecell.p.rapidapi.com/getDLRApi.asmx/SMSDLR", + "description": "This API should be used to retrieve the current delivery status of a message sent using Wavecell.", + "method": "GET", + "required_parameters": [ + { + "name": "AccountID", + "type": "STRING", + "description": "Your Wavecell Accountid", + "default": "" + }, + { + "name": "Subaccountid", + "type": "STRING", + "description": "Your Wavecell subaccountid", + "default": "" + }, + { + "name": "Password", + "type": "STRING", + "description": "Your Wavecell password", + "default": "" + }, + { + "name": "umid", + "type": "STRING", + "description": "The Unique Message ID of the SMS for which you want to retrieve the delivery status", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wavecell.p.rapidapi.com/getDLRApi.asmx/SMSDLR\"\nquerystring = {\"AccountID\": accountid, \"Subaccountid\": subaccountid, \"Password\": password, \"umid\": umid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wavecell.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "SMS-MT - Send SMS (POST)", + "url": "https://wavecell.p.rapidapi.com/Send.asmx/SendMT", + "description": "Send a SMS messaging using Wavecell HTTP POST", + "method": "POST", + "required_parameters": [ + { + "name": "Source", + "type": "STRING", + "description": "This is the sender Id the message will appear from, TPOA. Only available on agreed routes with your account manager.", + "default": "33123456789" + }, + { + "name": "SubAccountId", + "type": "STRING", + "description": "Your Wavecell Sub Account ID", + "default": "MySubAccountID" + }, + { + "name": "Encoding", + "type": "STRING", + "description": "The encoding format of the message", + "default": "ASCII" + }, + { + "name": "UMID", + "type": "STRING", + "description": "", + "default": "0" + }, + { + "name": "Password", + "type": "STRING", + "description": "Your Wavecell Password", + "default": "MyPassword" + }, + { + "name": "Destination", + "type": "STRING", + "description": "The destination phone number (MSISDN) to send to. This must be in international format without \"+\" such as 33123456789. 33 is the country code and 123456789 is the mobile number", + "default": "33123456789" + }, + { + "name": "ScheduledDateTime", + "type": "STRING", + "description": "Specify this if you wish to schedule your message up to 7 days in advance, to be specified in UTC Time. Specify this parameter blank if you do not want to schedule your message. Set 0 if not required.", + "default": "2012-29-08T17:00:00" + }, + { + "name": "AccountId", + "type": "STRING", + "description": "Your Wavecell Account ID", + "default": "MyaccountID" + }, + { + "name": "Body", + "type": "STRING", + "description": "The message text", + "default": "Hello World!" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://wavecell.p.rapidapi.com/Send.asmx/SendMT\"\nquerystring = {\"Source\": \"33123456789\", \"SubAccountId\": \"MySubAccountID\", \"Encoding\": \"ASCII\", \"UMID\": \"0\", \"Password\": \"MyPassword\", \"Destination\": \"33123456789\", \"ScheduledDateTime\": \"2012-29-08T17:00:00\", \"AccountId\": \"MyaccountID\", \"Body\": \"Hello World!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wavecell.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://wavecell.p.rapidapi.com/Send.asmx/SendMT\"\nquerystring = {\"Source\": \"33123456789\", \"SubAccountId\": \"MySubAccountID\", \"Encoding\": \"ASCII\", \"UMID\": \"0\", \"Password\": \"MyPassword\", \"Destination\": \"33123456789\", \"ScheduledDateTime\": \"2012-29-08T17:00:00\", \"AccountId\": \"MyaccountID\", \"Body\": \"Hello World!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"wavecell.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/wavecell_sms/api.py b/toolbench/toolenv/tools/Communication/wavecell_sms/api.py new file mode 100644 index 0000000000000000000000000000000000000000..62a517390cfe8bdf9160b3451b4fb7da2f16d8fd --- /dev/null +++ b/toolbench/toolenv/tools/Communication/wavecell_sms/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_delivery_status(accountid: str, subaccountid: str, password: str, umid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This API should be used to retrieve the current delivery status of a message sent using Wavecell." + accountid: Your Wavecell Accountid + subaccountid: Your Wavecell subaccountid + password: Your Wavecell password + umid: The Unique Message ID of the SMS for which you want to retrieve the delivery status + + """ + url = f"https://wavecell.p.rapidapi.com/getdlrapi.asmx/smsdlr" + querystring = {'AccountID': accountid, 'Subaccountid': subaccountid, 'Password': password, 'umid': umid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "wavecell.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/weather_dataset.json b/toolbench/toolenv/tools/Communication/weather_dataset.json new file mode 100644 index 0000000000000000000000000000000000000000..24de26989213615a71dfcfcc5f127652a22aaf9b --- /dev/null +++ b/toolbench/toolenv/tools/Communication/weather_dataset.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Weather_dataSet", + "tool_description":"Weather_data Set on Django Project", + "title":"Weather_dataSet", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":7, + "avgSuccessRate":100, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/weatherapi.me/api/weather_dataset/", + "host":"weather_dataset.p.rapidapi.com", + "api_list":[ + { + "name":"Weather_dataSet", + "url":"https://weather_dataset.p.rapidapi.com/data", + "description":"Check The Weather Api Process", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"data", + "type":"STRING", + "description":"Check The weather data into Weather_API Process", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://weather_dataset.p.rapidapi.com/data\"\nquerystring = {\"data\": data}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weather_dataset.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/weather_dataset/api.py b/toolbench/toolenv/tools/Communication/weather_dataset/api.py new file mode 100644 index 0000000000000000000000000000000000000000..4a2c7306d70c90e80e89c8190b8beb2f92e81cf8 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/weather_dataset/api.py @@ -0,0 +1,32 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def weather_dataset(data: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check The Weather Api Process" + data: Check The weather data into Weather_API Process + + """ + url = f"https://weather_dataset.p.rapidapi.com/data" + querystring = {} + if data: + querystring['data'] = data + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "weather_dataset.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/web_push_notifications_server.json b/toolbench/toolenv/tools/Communication/web_push_notifications_server.json new file mode 100644 index 0000000000000000000000000000000000000000..0225b59bc37e1388731b370b3d927ee3ed89ac63 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/web_push_notifications_server.json @@ -0,0 +1,297 @@ +{ + "tool_name": "Web Push Notifications Server", + "tool_description": "Simple server which provides Web Push Notifications service to frontend applications.", + "title": "Web Push Notifications Server", + "pricing": "FREE", + "score": { + "avgServiceLevel": 100, + "avgLatency": 750, + "avgSuccessRate": 100, + "popularityScore": 9.3, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/", + "host": "web-push-notifications-server.p.rapidapi.com", + "api_list": [ + { + "name": "Subscribe to push notifications", + "url": "https://web-push-notifications-server.p.rapidapi.com/subscribe", + "description": "**This endpoint won't work by using RapidAPI URL**\n\nCheck this tutorials:\n- [How to setup frontend web app too which your visitors will subscribe?](https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/tutorials/how-to-setup-frontend-web-app-too-which-your-visitors-will-subscribe%3F)\n- [Why subscribe endpoint can't work by using RapidAPI's URL?](https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/tutorials/why-subscribe-endpoint-can't-work-by-using-rapidapi's-url%3F)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/subscribe\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Owner Info", + "url": "https://web-push-notifications-server.p.rapidapi.com/owner/{owner_id}", + "description": "Fetch owner's details", + "method": "GET", + "required_parameters": [ + { + "name": "X-WPN-Secret", + "type": "STRING", + "description": "Enter owner's secret", + "default": "-your-secret-here-" + }, + { + "name": "owner-id", + "type": "string", + "description": "", + "default": "-your-owner-id-here-" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/{owner_id}\"\nquerystring = {\"X-WPN-Secret\": x_wpn_secret}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Owner", + "url": "https://web-push-notifications-server.p.rapidapi.com/owner/{owner_id}", + "description": "Remove the owner & delete all the subscribers", + "method": "DELETE", + "required_parameters": [ + { + "name": "X-WPN-Secret", + "type": "STRING", + "description": "Enter owner's secret", + "default": "-your-secret-here-" + }, + { + "name": "owner-id", + "type": "string", + "description": "", + "default": "-your-owner-id-here-" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/{owner_id}\"\nquerystring = {\"X-WPN-Secret\": x_wpn_secret}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "message": "Owner successfully deleted", + "owner": { + "ownerId": "61cbe6f89abe0119d3949468", + "origin": "https://test.com", + "secret": "nGbXFCixuZn95XJtlQyZJVVRPSFlcpracnzPS7/gUBZPCOTNevlk69DhgPkB0xYMMMuZPibEikLJYl/1P6L1TA==", + "subscriberCount": 1, + "uptime": "0.3293 sec" + } + }, + "headers": { + "cache-control": "public, max-age=0, must-revalidate", + "content-length": "257", + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "owner": { + "type": "object", + "properties": { + "ownerId": { + "type": "string" + }, + "origin": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "subscriberCount": { + "type": "integer" + }, + "uptime": { + "type": "string" + } + } + } + } + } + }, + { + "name": "Create Owner", + "url": "https://web-push-notifications-server.p.rapidapi.com/owner/", + "description": "Register the owner for the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) you own", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "message": "The owner is registered to the given origin on a temporary basis! To verify your ownership of the origin you must send a push subscription request from the given origin as per instructions.", + "owner": { + "ownerId": "Owner ID here", + "secret": "Secret here", + "origin": "https://test.com" + }, + "uptime": "0.1667 sec" + }, + "headers": { + "cache-control": "public, max-age=0, must-revalidate", + "content-length": "400", + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "owner": { + "type": "object", + "properties": { + "ownerId": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "origin": { + "type": "string" + } + } + }, + "uptime": { + "type": "string" + } + } + } + }, + { + "name": "Send push notifications", + "url": "https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/{owner_id}", + "description": "Send push notifications to your website visitors", + "method": "POST", + "required_parameters": [ + { + "name": "X-WPN-Secret", + "type": "STRING", + "description": "Enter owner's secret", + "default": "-your-secret-here-" + }, + { + "name": "owner-id", + "type": "string", + "description": "", + "default": "-your-owner-id-here-" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/{owner_id}\"\nquerystring = {\"X-WPN-Secret\": x_wpn_secret}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Index", + "url": "https://web-push-notifications-server.p.rapidapi.com/", + "description": "Endpoint to fetch server information", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "apiDocumentation": "https://documenter.getpostman.com/view/8974666/UVRHi3PB", + "uptime": "0.0379 sec", + "message": "Welcome to Dhyey's Web Push Notification (WPN) server. Now you can send push notifications to web clients/browsers without handling the servers on your own with these simple APIs. Check out our github repo - https://git.io/JDkXq." + }, + "headers": { + "cache-control": "public, max-age=86400", + "content-length": "351", + "content-type": "application/json; charset=utf-8" + }, + "schema": { + "type": "object", + "properties": { + "apiDocumentation": { + "type": "string" + }, + "uptime": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + }, + { + "name": "Subscribe to push notifications", + "url": "https://web-push-notifications-server.p.rapidapi.com/subscribe", + "description": "**This endpoint won't work by using RapidAPI URL**\n\nCheck this tutorials:\n- [How to setup frontend web app too which your visitors will subscribe?](https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/tutorials/how-to-setup-frontend-web-app-too-which-your-visitors-will-subscribe%3F)\n- [Why subscribe endpoint can't work by using RapidAPI's URL?](https://rapidapi.com/dhyeythumar/api/web-push-notifications-server/tutorials/why-subscribe-endpoint-can't-work-by-using-rapidapi's-url%3F)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/subscribe\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/subscribe\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Create Owner", + "url": "https://web-push-notifications-server.p.rapidapi.com/owner/", + "description": "Register the owner for the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) you own", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "owner": { + "type": "object", + "properties": { + "ownerId": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "origin": { + "type": "string" + } + } + }, + "uptime": { + "type": "string" + } + } + } + }, + { + "name": "Send push notifications", + "url": "https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-", + "description": "Send push notifications to your website visitors", + "method": "POST", + "required_parameters": [ + { + "name": "owner-id", + "type": "string", + "description": "", + "default": "-your-owner-id-here-" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/-your-owner-id-here-\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://web-push-notifications-server.p.rapidapi.com/owner/sendNotification/{owner_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"web-push-notifications-server.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/web_push_notifications_server/api.py b/toolbench/toolenv/tools/Communication/web_push_notifications_server/api.py new file mode 100644 index 0000000000000000000000000000000000000000..daef0c0c7762780c3c745584495d0e1d8f98b803 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/web_push_notifications_server/api.py @@ -0,0 +1,51 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def owner_info(x_wpn_secret: str, owner_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Fetch owner's details" + x_wpn_secret: Enter owner's secret + + """ + url = f"https://web-push-notifications-server.p.rapidapi.com/owner/{owner_id}" + querystring = {'X-WPN-Secret': x_wpn_secret, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "web-push-notifications-server.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def index(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Endpoint to fetch server information" + + """ + url = f"https://web-push-notifications-server.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "web-push-notifications-server.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/what_is_my_ip.json b/toolbench/toolenv/tools/Communication/what_is_my_ip.json new file mode 100644 index 0000000000000000000000000000000000000000..e4fb1116e6bb3baf55f6a65bc7704dddb0e36d7a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/what_is_my_ip.json @@ -0,0 +1,27 @@ +{ + "tool_name":"What is My IP", + "tool_description":"GET CURRENT IP ADDRESS AND USER AGENT", + "title":"What is My IP", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/rahilkasaragod198/api/what-is-my-ip2/", + "host":"what-is-my-ip2.p.rapidapi.com", + "api_list":[ + { + "name":"get ip address and more details", + "url":"https://what-is-my-ip2.p.rapidapi.com/ip", + "description":"get ip address", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://what-is-my-ip2.p.rapidapi.com/ip\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"what-is-my-ip2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/what_is_my_ip/api.py b/toolbench/toolenv/tools/Communication/what_is_my_ip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ad7b6bb9b50067f8a1c17a052e96760287300f75 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/what_is_my_ip/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_ip_address_and_more_details(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get ip address" + + """ + url = f"https://what-is-my-ip2.p.rapidapi.com/ip" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "what-is-my-ip2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/whatlanguage_net.json b/toolbench/toolenv/tools/Communication/whatlanguage_net.json new file mode 100644 index 0000000000000000000000000000000000000000..4689b96cf2242bae8722b77051be75ea041e388a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatlanguage_net.json @@ -0,0 +1,63 @@ +{ + "product_id": "53aa497de4b008bb2ef85f12", + "tool_description": "Accurately detect the language of text, websites or files. You can identify 110 languages with an accuracy of more than 99%.", + "home_url": "https://rapidapi.com/nicksnels/api/whatlanguage-net/", + "name": "WhatLanguage.net", + "title": "WhatLanguage.net", + "pricing": "FREEMIUM", + "tool_name": "WhatLanguage.net", + "score": null, + "host": "whatlanguage.p.rapidapi.com", + "api_list": [ + { + "name": "Detect language of text string(s) or url(s) of file(s)", + "url": "https://whatlanguage.p.rapidapi.com/detect/", + "description": "Detect the language of one or more URLs", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "encoding", + "type": "STRING", + "description": "Encoding used to URL encode the url parameter. If you do not specify an encoding parameter, we will look at the charset of your request. If that is not supplied we will assume you URL encoded your url parameter in UTF-8.", + "default": "UTF-8" + }, + { + "name": "format", + "type": "STRING", + "description": "Format of response. Available formats are: json or xml", + "default": "json or xml" + }, + { + "name": "prettyprint", + "type": "STRING", + "description": "Returns a human readable response (pretty printed) with indentations and line breaks when set to true. Available values are: true or false", + "default": "true or false" + }, + { + "name": "q", + "type": "STRING", + "description": "Text from which you want to identify the language. (Please see README - either the q or the url or the file parameter need to be specified)", + "default": "You want to identify the language from this text" + }, + { + "name": "url", + "type": "STRING", + "description": "URL from which you want to identify the language. URL can start with http://, https:// or ftp:// . (Please see README - either the q or the url or the file parameter need to be specified)", + "default": "http://www.facebook.com" + }, + { + "name": "file", + "type": "BINARY", + "description": "File from which you want to identify the language. (Please see README - either the q or the url or the file parameter need to be specified)", + "default": "file" + } + ], + "code": "import requests\n\nurl = \"https://whatlanguage.p.rapidapi.com/detect/\"\nquerystring = {\"encoding\": \"UTF-8\", \"format\": \"json or xml\", \"prettyprint\": \"true or false\", \"q\": \"You want to identify the language from this text\", \"url\": \"http://www.facebook.com\", \"file\": \"file\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatlanguage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatlanguage.p.rapidapi.com/detect/\"\nquerystring = {\"encoding\": \"UTF-8\", \"format\": \"json or xml\", \"prettyprint\": \"true or false\", \"q\": \"You want to identify the language from this text\", \"url\": \"http://www.facebook.com\", \"file\": \"file\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatlanguage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whatlanguage_net/api.py b/toolbench/toolenv/tools/Communication/whatlanguage_net/api.py new file mode 100644 index 0000000000000000000000000000000000000000..6a1c012ba9ededa0e9e7369c4073e61923590b73 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatlanguage_net/api.py @@ -0,0 +1,44 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def detect_language_of_text_string_s_or_url_s(q: str='Is this English or Dutch?', encoding: str='UTF-8', format: str='json or xml', prettyprint: str='true or false', url: str='http://www.facebook.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Detect the language of one or more text strings" + q: Text from which you want to identify the language. (Please see README - either the q or the url parameter need to be specified) + encoding: Encoding used to URL encode the text from the q parameter. If you do not specify an encoding parameter, we will look at the charset of your request. If that is not supplied we will assume you URL encoded your text from the q parameter in UTF-8. + format: Format of response. Available formats are: json or xml + prettyprint: Returns a human readable response (pretty printed) with indentations and line breaks when set to true. Available values are: true or false + url: URL from which you want to identify the language. URL can start with http://, https:// or ftp:// . (Please see README - either the q or the url parameter need to be specified) + + """ + url = f"https://whatlanguage.p.rapidapi.com/detect" + querystring = {} + if q: + querystring['q'] = q + if encoding: + querystring['encoding'] = encoding + if format: + querystring['format'] = format + if prettyprint: + querystring['prettyprint'] = prettyprint + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatlanguage.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/whatsapp_private.json b/toolbench/toolenv/tools/Communication/whatsapp_private.json new file mode 100644 index 0000000000000000000000000000000000000000..524a569a58c9577cedf4a139a59fcfdf5e8bd5b9 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsapp_private.json @@ -0,0 +1,395 @@ +{ + "tool_name": "Whatsapp Private", + "tool_description": "Whatsapp api private NOT OFFICIAL", + "title": "Whatsapp Private", + "pricing": "PAID", + "score": null, + "home_url": "https://rapidapi.com/anggashela/api/whatsapp-private/", + "host": "whatsapp-private.p.rapidapi.com", + "api_list": [ + { + "name": "ReadHistoryMessage", + "url": "https://whatsapp-private.p.rapidapi.com/message/{sessionid}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "size", + "type": "NUMBER", + "description": "", + "default": 20 + }, + { + "name": "start_date", + "type": "STRING", + "description": "", + "default": "2020/03/12" + }, + { + "name": "page", + "type": "NUMBER", + "description": "", + "default": "" + }, + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 8975115906 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/message/{sessionid}\"\nquerystring = {\"size\": size, \"start_date\": start_date, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "SendMessage", + "url": "https://whatsapp-private.p.rapidapi.com/message/08975115906/send_msg", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "to_no", + "type": "STRING", + "description": "", + "default": "081393699199" + }, + { + "name": "text", + "type": "STRING", + "description": "", + "default": "test ajaa a" + }, + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/message/08975115906/send_msg\"\nquerystring = {\"to_no\": to_no, \"text\": text, \"file\": file}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "PausedSession", + "url": "https://whatsapp-private.p.rapidapi.com/account/{sessionid}/pause", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 8975115909 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/pause\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetSessionDetail", + "url": "https://whatsapp-private.p.rapidapi.com/account/{sessionid}", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 89751159011 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "GetListAccount", + "url": "https://whatsapp-private.p.rapidapi.com/admin/account", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "size", + "type": "NUMBER", + "description": "", + "default": 20 + }, + { + "name": "page", + "type": "NUMBER", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/admin/account\"\nquerystring = {\"size\": size, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "LogoutSession", + "url": "https://whatsapp-private.p.rapidapi.com/account/{sessionid}/logout", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 8975115906 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/logout\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "ResumeSession", + "url": "https://whatsapp-private.p.rapidapi.com/account/{sessionid}/resume", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 8975115906 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/resume\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "LoginSession", + "url": "https://whatsapp-private.p.rapidapi.com/account/{sessionid}/login", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 8975115906 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "CreateSession", + "url": "https://whatsapp-private.p.rapidapi.com/admin/account/create", + "description": "how to add session id \nrespone code :1 jika berhasil,\nrespone code :-1 jika no wa / session sudah ada dan aktif\nrespone code : 0 jika param tidak lengkap", + "method": "POST", + "required_parameters": [ + { + "name": "callbackNewMsg", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + }, + { + "name": "callbackChatStatus", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + }, + { + "name": "callbackStatus", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + }, + { + "name": "sessionId", + "type": "STRING", + "description": "", + "default": "08975115906" + }, + { + "name": "Content-Type", + "type": "STRING", + "description": "", + "default": "application/json" + } + ], + "optional_parameters": [ + { + "name": "callbackQr", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + } + ], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/admin/account/create\"\nquerystring = {\"callbackNewMsg\": callbacknewmsg, \"callbackChatStatus\": callbackchatstatus, \"callbackStatus\": callbackstatus, \"callbackQr\": callbackqr, \"sessionId\": sessionid, \"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "DeleteAccount", + "url": "https://whatsapp-private.p.rapidapi.com/admin/account/{sessionid}/delete", + "description": " ", + "method": "DELETE", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 85846287537 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/admin/account/{sessionid}/delete\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Activate", + "url": "https://whatsapp-private.p.rapidapi.com/account/{sessionid}/activate", + "description": "EVADE Conflict", + "method": "GET", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 8975115906 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/activate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "SendMessage", + "url": "https://whatsapp-private.p.rapidapi.com/message/08975115906/send_msg", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "to_no", + "type": "STRING", + "description": "", + "default": "081393699199" + }, + { + "name": "text", + "type": "STRING", + "description": "", + "default": "test ajaa a" + }, + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/message/08975115906/send_msg\"\nquerystring = {\"to_no\": \"081393699199\", \"text\": \"test ajaa a\", \"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/message/08975115906/send_msg\"\nquerystring = {\"to_no\": \"081393699199\", \"text\": \"test ajaa a\", \"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "GetSessionDetail", + "url": "https://whatsapp-private.p.rapidapi.com/account/89751159011", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "sessionId", + "type": "NUMBER", + "description": "", + "default": 89751159011 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/89751159011\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/account/{sessionid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "CreateSession", + "url": "https://whatsapp-private.p.rapidapi.com/admin/account/create", + "description": "how to add session id \nrespone code :1 jika berhasil,\nrespone code :-1 jika no wa / session sudah ada dan aktif\nrespone code : 0 jika param tidak lengkap", + "method": "POST", + "required_parameters": [ + { + "name": "callbackNewMsg", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + }, + { + "name": "callbackChatStatus", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + }, + { + "name": "callbackStatus", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + }, + { + "name": "sessionId", + "type": "STRING", + "description": "", + "default": "08975115906" + } + ], + "optional_parameters": [ + { + "name": "callbackQr", + "type": "STRING", + "description": "", + "default": "http://0b32f63d7cf5.ngrok.io" + } + ], + "code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/admin/account/create\"\nquerystring = {\"callbackNewMsg\": \"http://0b32f63d7cf5.ngrok.io\", \"callbackChatStatus\": \"http://0b32f63d7cf5.ngrok.io\", \"callbackStatus\": \"http://0b32f63d7cf5.ngrok.io\", \"callbackQr\": \"http://0b32f63d7cf5.ngrok.io\", \"sessionId\": \"08975115906\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private.p.rapidapi.com/admin/account/create\"\nquerystring = {\"callbackNewMsg\": \"http://0b32f63d7cf5.ngrok.io\", \"callbackChatStatus\": \"http://0b32f63d7cf5.ngrok.io\", \"callbackStatus\": \"http://0b32f63d7cf5.ngrok.io\", \"callbackQr\": \"http://0b32f63d7cf5.ngrok.io\", \"sessionId\": \"08975115906\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whatsapp_private/api.py b/toolbench/toolenv/tools/Communication/whatsapp_private/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8b74768db804b9d2293fee900f01416b328231a7 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsapp_private/api.py @@ -0,0 +1,155 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def readhistorymessage(size: int, start_date: str, page: int, sessionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private.p.rapidapi.com/message/{sessionid}" + querystring = {'size': size, 'start_date': start_date, 'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def pausedsession(sessionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/pause" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getlistaccount(size: int, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private.p.rapidapi.com/admin/account" + querystring = {'size': size, 'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def logoutsession(sessionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/logout" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def resumesession(sessionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/resume" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def loginsession(sessionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/login" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def activate(sessionid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "EVADE Conflict" + + """ + url = f"https://whatsapp-private.p.rapidapi.com/account/{sessionid}/activate" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/whatsapp_private_api.json b/toolbench/toolenv/tools/Communication/whatsapp_private_api.json new file mode 100644 index 0000000000000000000000000000000000000000..2516fb307853c760f81fb01973ec5cf787496269 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsapp_private_api.json @@ -0,0 +1,527 @@ +{ + "tool_name": "Whatsapp Private API", + "tool_description": "WhatsApp Private API is an unofficial API that allows developers to access WhatsApp's messaging platform outside of the official WhatsApp application. This API is not supported or endorsed by WhatsApp and its use violates WhatsApp's terms of service. The WhatsApp Private API provides developers with a way to interact with WhatsApp's messaging platform, allowing them to automate tasks, send and receive messages, and manage contacts. However, due to the unofficial nature of the API, there is a...", + "title": "Whatsapp Private API", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 90, + "avgLatency": 541, + "avgSuccessRate": 35, + "popularityScore": 9.4, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/prabunesia-prabunesia-default/api/whatsapp-private-api/", + "host": "whatsapp-private-api.p.rapidapi.com", + "api_list": [ + { + "name": "SendMessage", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/conversation", + "description": "API for send message", + "method": "POST", + "required_parameters": [ + { + "name": "KeyApi", + "type": "STRING", + "description": "", + "default": "95e2b258-0260-4272-8016-8d24054e14dd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation\"\nquerystring = {\"KeyApi\": keyapi}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "UpdateProject", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects", + "description": "API for update project", + "method": "PUT", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "name": "Gapura", + "callback_url": "https://sungokon.com", + "updated_at": "2022-07-14T18:34:17+07:00", + "created_at": "2022-07-14T11:32:33+07:00" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "DeleteMessage", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/conversation/msg/delete", + "description": "API for delete message", + "method": "POST", + "required_parameters": [ + { + "name": "KeyApi", + "type": "STRING", + "description": "", + "default": "95e2b258-0260-4272-8016-8d24054e14dd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation/msg/delete\"\nquerystring = {\"KeyApi\": keyapi}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "GetContacts", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/contacts", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "KeyApi", + "type": "STRING", + "description": "", + "default": "95e2b258-0260-4272-8016-8d24054e14dd" + }, + { + "name": "account_id", + "type": "STRING", + "description": "", + "default": "50dd81b7-4e18-4c5a-ad7a-36c723ab955f" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/contacts\"\nquerystring = {\"KeyApi\": keyapi, \"account_id\": account_id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "CreateProject", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects", + "description": "API for create project", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "MarkRead", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/conversation/mark-read", + "description": "API for mark as read message", + "method": "POST", + "required_parameters": [ + { + "name": "KeyApi", + "type": "STRING", + "description": "", + "default": "95e2b258-0260-4272-8016-8d24054e14dd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation/mark-read\"\nquerystring = {\"KeyApi\": keyapi}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "CreateAccount", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/accounts", + "description": "API for create wa instance", + "method": "POST", + "required_parameters": [ + { + "name": "KeyApi", + "type": "STRING", + "description": "use api_sec value from create project", + "default": "95e2b258-0260-4272-8016-8d24054e14dd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/accounts\"\nquerystring = {\"KeyApi\": keyapi}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "name": "WA-TEST" + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "GetAccount", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/accounts", + "description": "API for get list account under the projects", + "method": "GET", + "required_parameters": [ + { + "name": "KeyApi", + "type": "STRING", + "description": "", + "default": "KJaASDASD" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/accounts\"\nquerystring = {\"KeyApi\": keyapi}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "SendMessage", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/conversation", + "description": "API for send message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "DeleteMessage", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/conversation/msg/delete", + "description": "API for delete message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation/msg/delete\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation/msg/delete\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "CreateProject", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects", + "description": "API for create project", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/admin/projects\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "MarkRead", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/conversation/mark-read", + "description": "API for mark as read message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation/mark-read\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/conversation/mark-read\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "CreateAccount", + "url": "https://whatsapp-private-api.p.rapidapi.com/v1/accounts", + "description": "API for create wa instance", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/accounts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-private-api.p.rapidapi.com/v1/accounts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-private-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whatsapp_private_api/api.py b/toolbench/toolenv/tools/Communication/whatsapp_private_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..712639e1a22861e90d9dbc8dc9c0b61070332531 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsapp_private_api/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getcontacts(keyapi: str, account_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://whatsapp-private-api.p.rapidapi.com/v1/contacts" + querystring = {'KeyApi': keyapi, 'account_id': account_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getaccount(keyapi: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API for get list account under the projects" + + """ + url = f"https://whatsapp-private-api.p.rapidapi.com/v1/accounts" + querystring = {'KeyApi': keyapi, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whatsapp-private-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/whatsapp_sms_voice.json b/toolbench/toolenv/tools/Communication/whatsapp_sms_voice.json new file mode 100644 index 0000000000000000000000000000000000000000..d54cc3fb7ab910ca118eb348e0dc17d1ecd2d84a --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsapp_sms_voice.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_db5637c2-78ee-483e-8202-df3a6f4366da", + "tool_description": "The comprehensive range of APIs available within this project empowers you to deliver notifications to individuals in your customer database through diverse channels. These notifications can be sent in various formats, including text messages via WhatsApp and SMS, as well as through voice-based communication methods. This flexibility ensures that you can effectively reach your customers through their preferred communication channels, enhancing the overall engagement and user experience.", + "home_url": "https://rapidapi.com/le-bahut-le-bahut-default/api/whatsapp-sms-voice/", + "name": "WhatsApp, SMS & Voice", + "title": "WhatsApp, SMS & Voice", + "pricing": "FREE", + "tool_name": "WhatsApp, SMS & Voice", + "score": { + "avgServiceLevel": 67, + "avgLatency": 43385, + "avgSuccessRate": 67, + "popularityScore": 9.3, + "__typename": "Score" + }, + "host": "whatsapp-sms-voice.p.rapidapi.com", + "api_list": [ + { + "name": "WhatsApp", + "url": "https://whatsapp-sms-voice.p.rapidapi.com/message/sendMsgToContact", + "description": "Below are the definitions of the fields required for the API to work:\n\n\"content\": This field represents the content of the notification you want to send through the API. \n\n\"contact\": The contact field specifies the phone number or contact information of the recipient to whom the notification will be sent. The format should be as follows 212xxxxxxxxx\n\n\"owner\": The owner field identifies the owner or sender of the notification. This is the email you used to sign up for the product on jaarvis.io\n\n\"deviceId\": This is the ID of your device on the Jaarvis platform\n\n\"mediaPath\": The mediaPath field is used to specify the path or URL of any media content that you want to include in the notification. It could be a picture or an mp4 video that does notexceed 4mb.\n\nTo use this JSON object as a payload for a POST request API, you would typically pass it as the request body in your HTTP POST request. The API endpoint should be set to the appropriate URL for the notification service, and you should ensure that you provide valid values for the \"content\", \"contact\", and \"owner\" fields, as these are likely required fields for the notification to be successfully sent. If the \"deviceId\" and \"mediaPath\" fields are optional for the API, you can include them in the request payload as needed.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsapp-sms-voice.p.rapidapi.com/message/sendMsgToContact\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-sms-voice.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsapp-sms-voice.p.rapidapi.com/message/sendMsgToContact\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsapp-sms-voice.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whatsly.json b/toolbench/toolenv/tools/Communication/whatsly.json new file mode 100644 index 0000000000000000000000000000000000000000..e43ed9c46ddd5c7f076f8cebee2a3e8b5a21c7be --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsly.json @@ -0,0 +1,63 @@ +{ + "product_id": "api_dd90c688-11fb-4dbc-8746-d260cf6cd4d6", + "tool_description": "A powerful WhatsApp Multi-Device Beta API that allows you to easily send unlimited WhatsApp messages in seconds.", + "home_url": "https://rapidapi.com/extreme-coders-extreme-coders-default/api/whatsly/", + "name": "Whatsly", + "title": "Whatsly", + "pricing": "FREEMIUM", + "tool_name": "Whatsly", + "score": { + "avgServiceLevel": 0, + "avgLatency": 281, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "whatsly.p.rapidapi.com", + "api_list": [ + { + "name": "Send Button Message", + "url": "https://whatsly.p.rapidapi.com/send-button", + "description": "If your messages aren't sent check your instance status for connection/login problems. You can also check the endpoint or parameters to if you are using the wrong format you can find the error here.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/send-button\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/send-button\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Get QR Code", + "url": "https://whatsly.p.rapidapi.com/generate-qr", + "description": "Returns the **QR** code in the current session if there is one. We should be passing the **mobile number** as a parameter.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/generate-qr\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/generate-qr\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Send Media Message", + "url": "https://whatsly.p.rapidapi.com/send-media", + "description": "If your messages aren't sent check your instance status for connection/login problems. You can also check the endpoint or parameters to if you are using the wrong format you can find the error here.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/send-media\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/send-media\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Send Text Message", + "url": "https://whatsly.p.rapidapi.com/send-message", + "description": "If your messages aren't sent check your instance status for connection/login problems. You can also check the endpoint or parameters to if you are using the wrong format you can find the error here.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/send-message\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsly.p.rapidapi.com/send-message\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsly.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whatsspot.json b/toolbench/toolenv/tools/Communication/whatsspot.json new file mode 100644 index 0000000000000000000000000000000000000000..0f35aead49e7c621633be1bddb396e97d8dc06c5 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whatsspot.json @@ -0,0 +1,79 @@ +{ + "product_id": "api_ef954f03-2349-48c9-88aa-adc4b3938040", + "tool_description": "Send free Whatsapp message from your mobile number directly from your website or app.", + "home_url": "https://rapidapi.com/whatsspot-whatsspot-default/api/whatsspot/", + "name": "WhatsSpot", + "title": "WhatsSpot", + "pricing": "FREE", + "tool_name": "WhatsSpot", + "score": null, + "host": "whatsspot.p.rapidapi.com", + "api_list": [ + { + "name": "List Message", + "url": "https://whatsspot.p.rapidapi.com/message/list", + "description": "Send List Message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Fast Button Message", + "url": "https://whatsspot.p.rapidapi.com/message/fast/button", + "description": "Message with buttons in it", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/fast/button\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/fast/button\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Fast List Message", + "url": "https://whatsspot.p.rapidapi.com/message/fast/list", + "description": "Send List Message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/fast/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/fast/list\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Fast Text Message", + "url": "https://whatsspot.p.rapidapi.com/message/fast/text", + "description": "Send WhatsApp text message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/fast/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/fast/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Button Message", + "url": "https://whatsspot.p.rapidapi.com/message/button", + "description": "Message with buttons in it", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/button\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/button\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Text Message", + "url": "https://whatsspot.p.rapidapi.com/message/text", + "description": "Send WhatsApp text message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whatsspot.p.rapidapi.com/message/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whatsspot.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whin.json b/toolbench/toolenv/tools/Communication/whin.json new file mode 100644 index 0000000000000000000000000000000000000000..e7066f5bdcd9ec2e1a217804981fbcdcaa88dbaa --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whin.json @@ -0,0 +1,410 @@ +{ + "tool_name": "whin", + "tool_description": "Send and receive any message type to your WhatsApp, or to whatsapp groups with a shared gateway.", + "title": "whin", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 99, + "avgLatency": 415, + "avgSuccessRate": 99, + "popularityScore": 9.9, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/inutil-inutil-default/api/whin2/", + "host": "whin2.p.rapidapi.com", + "api_list": [ + { + "name": "send to groups", + "url": "https://whin2.p.rapidapi.com/send2group", + "description": "This endpoint will send a message to a whatsapp group. You need the group-id to route the message. Check this [video](https://youtu.be/wD0DWoua0L4) lo learn how to use it.", + "method": "POST", + "required_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "Enter the group identification (gid) provided by whin when you requested a group. Check the [video](https://youtu.be/wD0DWoua0L4) to learn how to get it.", + "default": "120363027787407242" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/send2group\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "send", + "url": "https://whin2.p.rapidapi.com/send", + "description": "It will send you a whatsapp. Learn how to use this endpoint: a text on this [video](https://youtu.be/MqAbY6Gu8yM), or this one for [media](https://youtu.be/qq3prJTVMRg) file types.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "personal listener", + "url": "https://whin2.p.rapidapi.com/webhk", + "description": "The response is an url that you have to use as a webhook destination at the origin service. The content sent to it will be routed as a message to a whatsapp group owned by the user, or to the user.\nLearn use-cases on these videos: [grafana alerts](https://youtu.be/RvVgg0qwNDk),[Shelly notifications](https://youtu.be/B6MLlBUkyvo), [synology notifications](https://youtu.be/zeAJNuXYqH4).", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "Each whatsapp group will have its own webhook address; set the group-id on this field to get a unique valid url and deliver webhooks as messages on each whatsapp group. Learn how to get a valid value [here](https://rapidapi.com/inutil-inutil-default/api/whin2/tutorials/how-to-use-the-groups-category-to-send-and-receive-whatsapps-to%2Ffrom-groups%3F-1).", + "default": "1234567890123" + }, + { + "name": "origin", + "type": "ENUM", + "description": "This is the service that is sending Webhooks to your whin personal receiver. If the origin service is nos listed you can select `Do not include in request`, or leave the value blank, and whin will do its best to parse the payload received.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/webhk\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "create a group", + "url": "https://whin2.p.rapidapi.com/creategroup", + "description": "This API will create a group, it will add you, and will promote you to Admin of the group. Check this [video](https://youtu.be/wD0DWoua0L4) to learn how to use it.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/creategroup\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "group invite link", + "url": "https://whin2.p.rapidapi.com/getlink", + "description": "the endpoint returns an invite link url for a group you own.", + "method": "GET", + "required_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "the group id of which you want to get an invite link url", + "default": "98327493279327" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/getlink\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "list groups", + "url": "https://whin2.p.rapidapi.com/mygroups", + "description": "This endpoint returns a list of the groups you created through whin.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/mygroups\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "hk receiver", + "url": "https://whin2.p.rapidapi.com/hk/{user}/{service}", + "description": "this endpoint shall be used by the origin services, it's **NOT** to be used on the playground.", + "method": "GET", + "required_parameters": [ + { + "name": "user", + "type": "string", + "description": "", + "default": "rapidapi-username" + } + ], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "", + "default": "120363044823414490" + }, + { + "name": "service", + "type": "string", + "description": "", + "default": "origin-service" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hk/{user}/{service}\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "hk receiver", + "url": "https://whin2.p.rapidapi.com/hk/{user}/{service}", + "description": "this endpoint shall be triggered by origin services, it's **NOT** to be used on the playground.", + "method": "POST", + "required_parameters": [ + { + "name": "user", + "type": "string", + "description": "", + "default": "rapidapi-username" + } + ], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "", + "default": "120363044823414490" + }, + { + "name": "service", + "type": "string", + "description": "", + "default": "origin-service" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hk/{user}/{service}\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "hook receiver", + "url": "https://whin2.p.rapidapi.com/hook/{user}", + "description": "This endpoint shall be triggered by the webhook origin and is not intended to be used through this frontend.", + "method": "POST", + "required_parameters": [ + { + "name": "user", + "type": "string", + "description": "", + "default": "your-RapidAPI-username" + } + ], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "", + "default": "120363044823414490" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hook/{user}\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "hook receiver", + "url": "https://whin2.p.rapidapi.com/hook/{user}", + "description": "This endpoint shall be triggered by the webhook origin and is not intended to be used through this frontend.", + "method": "GET", + "required_parameters": [ + { + "name": "user", + "type": "string", + "description": "", + "default": "your-RapidAPI-username" + } + ], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "", + "default": "120363044823414490" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hook/{user}\"\nquerystring = {\"gid\": gid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "set url", + "url": "https://whin2.p.rapidapi.com/seturl", + "description": "Set a whin-receive endpoint. Learn how to use it on this [video](https://youtu.be/8WyG_becZXM). This is the valid url where the whatsapps you send to whin, or are written on a whatsapp group, will be delivered. The url has to be accessible from the internet; this endpoint expects a 200 response from the destination, otherwise it wont be set.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/seturl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "show url", + "url": "https://whin2.p.rapidapi.com/showurl", + "description": "This endpoint is used to request the webhook routes created on your account. \nLearn how to use it on this [video](https://youtu.be/8WyG_becZXM)", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/showurl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "websocket checker", + "url": "https://whin2.p.rapidapi.com/wskchk", + "description": "Whin-receive (thick-client) websockets checker. \nThis endpoint is **ONLY** used to authorize websocket connections to the backend by thick clients. The Response is a token needed to complete handshaking.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/wskchk\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "signup", + "url": "https://whin2.p.rapidapi.com/signup", + "description": "This endpoint is **ONLY** used to enter the code you received to signup. Follow this [video](https://youtu.be/uOZ-oH4kP58), or read the [tutorial](https://rapidapi.com/inutil-inutil-default/api/whin2/tutorials/what-to-do-to-start-using-whin%3F-1), to learn how to start using whin.", + "method": "GET", + "required_parameters": [ + { + "name": "code", + "type": "NUMBER", + "description": "", + "default": "12345" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/signup\"\nquerystring = {\"code\": code}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "delete url", + "url": "https://whin2.p.rapidapi.com/delurl", + "description": "This endpoint will erase the url you set to receive the whatsapps sent to whin. Learn how to use it on this [video](https://youtu.be/8WyG_becZXM).", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/delurl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "send to groups", + "url": "https://whin2.p.rapidapi.com/send2group", + "description": "This endpoint will send a message to a whatsapp group. You need the group-id to route the message. Check this [video](https://youtu.be/wD0DWoua0L4) lo learn how to use it.", + "method": "POST", + "required_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "Enter the group identification (gid) provided by whin when you requested a group. Check the [video](https://youtu.be/wD0DWoua0L4) to learn how to get it.", + "default": "120363027787407242" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/send2group\"\nquerystring = {\"gid\": \"120363027787407242\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/send2group\"\nquerystring = {\"gid\": \"120363027787407242\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "send", + "url": "https://whin2.p.rapidapi.com/send", + "description": "It will send you a whatsapp. Learn how to use this endpoint: a text on this [video](https://youtu.be/MqAbY6Gu8yM), or this one for [media](https://youtu.be/qq3prJTVMRg) file types.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/send\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "hk receiver", + "url": "https://whin2.p.rapidapi.com/hk/rapidapi-username/origin-service", + "description": "this endpoint shall be triggered by origin services, it's **NOT** to be used on the playground.", + "method": "POST", + "required_parameters": [ + { + "name": "user", + "type": "string", + "description": "", + "default": "rapidapi-username" + } + ], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "", + "default": "120363044823414490" + }, + { + "name": "service", + "type": "string", + "description": "", + "default": "origin-service" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hk/rapidapi-username/origin-service\"\nquerystring = {\"gid\": \"120363044823414490\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hk/{user}/{service}\"\nquerystring = {\"gid\": \"120363044823414490\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "hook receiver", + "url": "https://whin2.p.rapidapi.com/hook/your-RapidAPI-username", + "description": "This endpoint shall be triggered by the webhook origin and is not intended to be used through this frontend.", + "method": "POST", + "required_parameters": [ + { + "name": "user", + "type": "string", + "description": "", + "default": "your-RapidAPI-username" + } + ], + "optional_parameters": [ + { + "name": "gid", + "type": "STRING", + "description": "", + "default": "120363044823414490" + } + ], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hook/your-RapidAPI-username\"\nquerystring = {\"gid\": \"120363044823414490\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/hook/{user}\"\nquerystring = {\"gid\": \"120363044823414490\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "set url", + "url": "https://whin2.p.rapidapi.com/seturl", + "description": "Set a whin-receive endpoint. Learn how to use it on this [video](https://youtu.be/8WyG_becZXM). This is the valid url where the whatsapps you send to whin, or are written on a whatsapp group, will be delivered. The url has to be accessible from the internet; this endpoint expects a 200 response from the destination, otherwise it wont be set.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/seturl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whin2.p.rapidapi.com/seturl\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whin2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/whin/api.py b/toolbench/toolenv/tools/Communication/whin/api.py new file mode 100644 index 0000000000000000000000000000000000000000..89cc1ac9c8f5ac96e6639dec2a7a4f7715371a02 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/whin/api.py @@ -0,0 +1,234 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def personal_listener(gid: str='1234567890123', origin: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The response is an url that you have to use as a webhook destination at the origin service. The content sent to it will be routed as a message to a whatsapp group owned by the user, or to the user. + Learn use-cases on these videos: [grafana alerts](https://youtu.be/RvVgg0qwNDk),[Shelly notifications](https://youtu.be/B6MLlBUkyvo), [synology notifications](https://youtu.be/zeAJNuXYqH4)." + gid: Each whatsapp group will have its own webhook address; set the group-id on this field to get a unique valid url and deliver webhooks as messages on each whatsapp group. Learn how to get a valid value [here](https://rapidapi.com/inutil-inutil-default/api/whin2/tutorials/how-to-use-the-groups-category-to-send-and-receive-whatsapps-to%2Ffrom-groups%3F-1). + origin: This is the service that is sending Webhooks to your whin personal receiver. If the origin service is nos listed you can select `Do not include in request`, or leave the value blank, and whin will do its best to parse the payload received. + + """ + url = f"https://whin2.p.rapidapi.com/webhk" + querystring = {} + if gid: + querystring['gid'] = gid + if origin: + querystring['origin'] = origin + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def create_a_group(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This API will create a group, it will add you, and will promote you to Admin of the group. Check this [video](https://youtu.be/wD0DWoua0L4) to learn how to use it." + + """ + url = f"https://whin2.p.rapidapi.com/creategroup" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def group_invite_link(gid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "the endpoint returns an invite link url for a group you own." + gid: the group id of which you want to get an invite link url + + """ + url = f"https://whin2.p.rapidapi.com/getlink" + querystring = {'gid': gid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_groups(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint returns a list of the groups you created through whin." + + """ + url = f"https://whin2.p.rapidapi.com/mygroups" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hk_receiver(user: str, gid: str='120363044823414490', service: str='origin-service', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "this endpoint shall be used by the origin services, it's **NOT** to be used on the playground." + + """ + url = f"https://whin2.p.rapidapi.com/hk/{user}/{service}" + querystring = {} + if gid: + querystring['gid'] = gid + if service: + querystring['service'] = service + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hook_receiver(user: str, gid: str='120363044823414490', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint shall be triggered by the webhook origin and is not intended to be used through this frontend." + + """ + url = f"https://whin2.p.rapidapi.com/hook/{user}" + querystring = {} + if gid: + querystring['gid'] = gid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def show_url(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is used to request the webhook routes created on your account. + Learn how to use it on this [video](https://youtu.be/8WyG_becZXM)" + + """ + url = f"https://whin2.p.rapidapi.com/showurl" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def websocket_checker(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Whin-receive (thick-client) websockets checker. + This endpoint is **ONLY** used to authorize websocket connections to the backend by thick clients. The Response is a token needed to complete handshaking." + + """ + url = f"https://whin2.p.rapidapi.com/wskchk" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def signup(code: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint is **ONLY** used to enter the code you received to signup. Follow this [video](https://youtu.be/uOZ-oH4kP58), or read the [tutorial](https://rapidapi.com/inutil-inutil-default/api/whin2/tutorials/what-to-do-to-start-using-whin%3F-1), to learn how to start using whin." + + """ + url = f"https://whin2.p.rapidapi.com/signup" + querystring = {'code': code, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def delete_url(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint will erase the url you set to receive the whatsapps sent to whin. Learn how to use it on this [video](https://youtu.be/8WyG_becZXM)." + + """ + url = f"https://whin2.p.rapidapi.com/delurl" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "whin2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/yesapi/api.py b/toolbench/toolenv/tools/Communication/yesapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8ef5049448a9cd9473c41cba8856d0fb9a510523 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/yesapi/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def natural_language(language: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return YES in many natural languages" + language: Natural Language + + """ + url = f"https://yesapi.p.rapidapi.com/natural/{language}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yesapi.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/yippiemove.json b/toolbench/toolenv/tools/Communication/yippiemove.json new file mode 100644 index 0000000000000000000000000000000000000000..1b0ed6bfddada57ebe6975dcaced7437f15b4018 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/yippiemove.json @@ -0,0 +1,77 @@ +{ + "product_id": "53aa348ae4b0a9b1348d9131", + "tool_description": "YippieMove is the world's most powerful email migration tool. Regardless if you're planning to migrate one, one hundred or thousands of accounts, YippieMove is your best friend.", + "home_url": "https://rapidapi.com/vpetersson/api/yippiemove/", + "name": "YippieMove", + "title": "YippieMove", + "pricing": "FREE", + "tool_name": "YippieMove", + "score": null, + "host": "yippiemove.p.rapidapi.com", + "api_list": [ + { + "name": "Add the Email Part of a Job", + "url": "https://yippiemove.p.rapidapi.com/v1/users/{User ID}/move_jobs/email_part/", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "User ID", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "user-id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://yippiemove.p.rapidapi.com/v1/users/{User ID}/move_jobs/email_part/\"\nquerystring = {\"User ID\": \"\", \"user-id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"yippiemove.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://yippiemove.p.rapidapi.com/v1/users/{User ID}/move_jobs/email_part/\"\nquerystring = {\"User ID\": \"\", \"user-id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"yippiemove.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add Specific Move Jobs", + "url": "https://yippiemove.p.rapidapi.com/v1/users/{User ID}/move_jobs/{Move Job ID}/", + "description": "", + "method": "POST", + "required_parameters": [ + { + "name": "User ID", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "Move Job ID", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "user-id", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "move-job-id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://yippiemove.p.rapidapi.com/v1/users/{User ID}/move_jobs/{Move Job ID}/\"\nquerystring = {\"User ID\": \"\", \"Move Job ID\": \"\", \"user-id\": \"\", \"move-job-id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"yippiemove.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://yippiemove.p.rapidapi.com/v1/users/{User ID}/move_jobs/{Move Job ID}/\"\nquerystring = {\"User ID\": \"\", \"Move Job ID\": \"\", \"user-id\": \"\", \"move-job-id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"yippiemove.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/yippiemove/api.py b/toolbench/toolenv/tools/Communication/yippiemove/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3a79d625b06a8aca3f740d91a6aa6dacbbd28f4c --- /dev/null +++ b/toolbench/toolenv/tools/Communication/yippiemove/api.py @@ -0,0 +1,207 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_list_of_move_jobs(user_id: str, owner_id: str=None, created_at_gt: str=None, created_at_lt: str=None, offset: str=None, limit: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + user_id: User ID + owner_id: filter by owner. + created_at_gt: filter by created_at greater than the specified ISO date string. + created_at_lt: filter by created_at lesser than the specified ISO date string. + offset: an integer count of results to skip. + limit: an integer number of maximum results to return. Must be less than 201. Defaults to 200. + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/users/{user_id}/move_jobs/" + querystring = {'user-id': user_id, } + if owner_id: + querystring['owner__id'] = owner_id + if created_at_gt: + querystring['created_at__gt'] = created_at_gt + if created_at_lt: + querystring['created_at__lt'] = created_at_lt + if offset: + querystring['offset'] = offset + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_list_of_users(created_at_gt: str=None, created_at_lt: str=None, offset: str=None, limit: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + created_at_gt: filter by created_at greater than the specified ISO date string. + created_at_lt: filter by created_at lesser than the specified ISO date string. + offset: an integer count of results to skip. + limit: an integer number of maximum results to return. Must be less than 201. Defaults to 200. + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/users/" + querystring = {} + if created_at_gt: + querystring['created_at__gt'] = created_at_gt + if created_at_lt: + querystring['created_at__lt'] = created_at_lt + if offset: + querystring['offset'] = offset + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_a_list_of_email_folders_for_a_particular_account(user_id: str, move_job_id: str, source_destination: str, owner_id: str=None, created_at_gt: str=None, created_at_lt: str=None, offset: str=None, limit: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + owner_id: filter by owner. + created_at_gt: filter by created_at greater than the specified ISO date string. + created_at_lt: filter by created_at lesser than the specified ISO date string. + offset: an integer count of results to skip. + limit: an integer number of maximum results to return. Must be less than 201. Defaults to 200. + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/users/{user_id}/move_jobs/{move_job_id}/accounts/{source_destination}/email_folders/" + querystring = {'user-id': user_id, 'move-job-id': move_job_id, 'source-destination': source_destination, } + if owner_id: + querystring['owner__id'] = owner_id + if created_at_gt: + querystring['created_at__gt'] = created_at_gt + if created_at_lt: + querystring['created_at__lt'] = created_at_lt + if offset: + querystring['offset'] = offset + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_a_list_of_providers(offset: str=None, limit: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + offset: An integer count of results to skip. + limit: An integer number of maximum results to return. Must be less than 201. Defaults to 200. + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/providers/" + querystring = {} + if offset: + querystring['offset'] = offset + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def view_specific_users(user_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + user_id: User ID + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/users/{user_id}" + querystring = {'user-id': user_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_the_email_part_of_a_job(user_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/users/{user_id}/move_jobs/email_part/" + querystring = {'user-id': user_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def view_specific_move_jobs(user_id: str, move_job_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "" + user_id: User ID + move_job_id: Move Job ID + + """ + url = f"https://yippiemove.p.rapidapi.com/v1/users/{user_id}/move_jobs/{move_job_id}/" + querystring = {'user-id': user_id, 'move-job-id': move_job_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "yippiemove.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Communication/zipwhip.json b/toolbench/toolenv/tools/Communication/zipwhip.json new file mode 100644 index 0000000000000000000000000000000000000000..2fea59a19d1ff1e82007aa6d5834cd92ef6de888 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/zipwhip.json @@ -0,0 +1,761 @@ +{ + "product_id": "53aa5b20e4b07e1f4ebec239", + "tool_description": "Cloud texting for toll free,\r\nlandline,\r\nand mobile numbers\r\nSend and receive text messages\r\nfrom your laptop, desktop, or\r\ntablet computer using your\r\nexisting mobile or landline\r\nphone number.", + "home_url": "https://rapidapi.com/community/api/zipwhip/", + "name": "Zipwhip", + "title": "Zipwhip", + "pricing": "FREE", + "tool_name": "Zipwhip", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1259, + "avgSuccessRate": 6, + "popularityScore": 0.2, + "__typename": "Score" + }, + "host": "community-zipwhip.p.rapidapi.com", + "api_list": [ + { + "name": "user/save", + "url": "https://community-zipwhip.p.rapidapi.com/user/save", + "description": "Save details about the user associated with the provided session", + "method": "GET", + "required_parameters": [ + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/user/save\"\nquerystring = {\"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/user/save\"\nquerystring = {\"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "group/save", + "url": "https://community-zipwhip.p.rapidapi.com/group/save", + "description": "Create a group. A named group is a unique set of contacts that are referenced similar to a contact A group is defined as device:/xxxxxxxxxx/xx. After the :/, this is the phone number associated with the account you are sending messages under. The /xx is the id for the group.", + "method": "GET", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "This is the name of the group that you would like to associate with a group of contacts when using group/save.", + "default": "" + }, + { + "name": "type", + "type": "STRING", + "description": "This is used to identify the type of group you wish to create. For now, please use 'Group'", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "textline", + "type": "STRING", + "description": "If the group is being created within a landline or toll-free number than this parameter is required. This is the routing information for sending out the group message. Example format textline:/xxxxxxxxxx?carrier=xxx. After the :/ this is the logged in number's phone number. The carrier is equal to the carrier returned from user/get.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/save\"\nquerystring = {\"name\": \"\", \"type\": \"\", \"session\": \"\", \"textline\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/save\"\nquerystring = {\"name\": \"\", \"type\": \"\", \"session\": \"\", \"textline\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "group/addmember", + "url": "https://community-zipwhip.p.rapidapi.com/group/addmember", + "description": "Once a group is created via the group/save call, you then need to populate members.", + "method": "GET", + "required_parameters": [ + { + "name": "address", + "type": "STRING", + "description": "For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555", + "default": "" + }, + { + "name": "group", + "type": "STRING", + "description": "The address that identifies the group in the logged in account. Format will be similar to: device:/xxxxxxxxxx/xx.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "city", + "type": "STRING", + "description": "The name city where the contact resides.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "The email address of the contact being saved.", + "default": "" + }, + { + "name": "firstName", + "type": "STRING", + "description": "The first name of the contact being saved.", + "default": "" + }, + { + "name": "lastName", + "type": "STRING", + "description": "The last name of the contact being saved.", + "default": "" + }, + { + "name": "loc", + "type": "STRING", + "description": "Notes about the contact, limit 255 characters.", + "default": "" + }, + { + "name": "notes", + "type": "STRING", + "description": "Notes about the contact, limit 255 characters.", + "default": "" + }, + { + "name": "state", + "type": "STRING", + "description": "The state where the contact resides.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/addmember\"\nquerystring = {\"address\": \"\", \"group\": \"\", \"session\": \"\", \"city\": \"\", \"email\": \"\", \"firstName\": \"\", \"lastName\": \"\", \"loc\": \"\", \"notes\": \"\", \"state\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/addmember\"\nquerystring = {\"address\": \"\", \"group\": \"\", \"session\": \"\", \"city\": \"\", \"email\": \"\", \"firstName\": \"\", \"lastName\": \"\", \"loc\": \"\", \"notes\": \"\", \"state\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "message/delete", + "url": "https://community-zipwhip.p.rapidapi.com/message/delete", + "description": "Marks the given message as deleted in Zipwhip's database.", + "method": "GET", + "required_parameters": [ + { + "name": "message", + "type": "STRING", + "description": "The message ID being modified. In all cases the method will take multiple messages as parameters.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/delete\"\nquerystring = {\"message\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/delete\"\nquerystring = {\"message\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "contact/delete", + "url": "https://community-zipwhip.p.rapidapi.com/contact/delete", + "description": "This method can take one or more contact ID(s) and delete those records from Zipwhip. A contact's ID is available from contact/list or part of the return from message/send.", + "method": "GET", + "required_parameters": [ + { + "name": "contact", + "type": "STRING", + "description": "This is the contact ID that is return from contact/list. A contact ID is also part of the return from message/send.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/contact/delete\"\nquerystring = {\"contact\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/contact/delete\"\nquerystring = {\"contact\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "message/list", + "url": "https://community-zipwhip.p.rapidapi.com/message/list", + "description": "Retrieves messages for account. A start of 0 provides newest to oldest messages.", + "method": "GET", + "required_parameters": [ + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "limit", + "type": "STRING", + "description": "Limit the number of elements returned when paging.", + "default": "" + }, + { + "name": "start", + "type": "STRING", + "description": "When paging through content, this field is used to tell the controller what element to start at for the next page.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/list\"\nquerystring = {\"session\": \"\", \"limit\": \"\", \"start\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/list\"\nquerystring = {\"session\": \"\", \"limit\": \"\", \"start\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "* user/login", + "url": "https://community-zipwhip.p.rapidapi.com/user/login", + "description": "Takes a username and password and returns json with the account's session key. A sessionkey lasts forever, so it is best to store the sessionkey and use it for future purposes.", + "method": "GET", + "required_parameters": [ + { + "name": "username", + "type": "STRING", + "description": "For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555", + "default": "" + }, + { + "name": "password", + "type": "STRING", + "description": "Password associated with phone number being entered in user/login.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/user/login\"\nquerystring = {\"username\": \"\", \"password\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/user/login\"\nquerystring = {\"username\": \"\", \"password\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "sessions": null, + "success": false, + "response": "Please enter your user name, phone number, or password." + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "group/get", + "url": "https://community-zipwhip.p.rapidapi.com/group/get", + "description": "Retreive details about an existing group. This call can be used to review the members of the group.", + "method": "GET", + "required_parameters": [ + { + "name": "name", + "type": "STRING", + "description": "This is the name of the group that you would like to associate with a group of contacts when using group/save.", + "default": "" + }, + { + "name": "type", + "type": "STRING", + "description": "This is used to identify the type of group you wish to create. For now, please use 'Group'", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "textline", + "type": "STRING", + "description": "If the group is being created within a landline or toll-free number than this parameter is required. This is the routing information for sending out the group message. Example format textline:/xxxxxxxxxx?carrier=xxx. After the :/ this is the logged in number's phone number. The carrier is equal to the carrier returned from user/get.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/get\"\nquerystring = {\"name\": \"\", \"type\": \"\", \"session\": \"\", \"textline\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/get\"\nquerystring = {\"name\": \"\", \"type\": \"\", \"session\": \"\", \"textline\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "group/removemember", + "url": "https://community-zipwhip.p.rapidapi.com/group/removemember", + "description": "Remove a group member. This is useful if a group member has requested to opt-out of notifications.", + "method": "GET", + "required_parameters": [ + { + "name": "group", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + }, + { + "name": "member", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/removemember\"\nquerystring = {\"group\": \"\", \"member\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/removemember\"\nquerystring = {\"group\": \"\", \"member\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "message/read", + "url": "https://community-zipwhip.p.rapidapi.com/message/read", + "description": "Marks the given message as read in Zipwhip's database.", + "method": "GET", + "required_parameters": [ + { + "name": "messages", + "type": "STRING", + "description": "The message ID being modified. In all cases the method will take multiple messages as parameters.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/read\"\nquerystring = {\"messages\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/read\"\nquerystring = {\"messages\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "conversation/delete", + "url": "https://community-zipwhip.p.rapidapi.com/conversation/delete", + "description": "Deletes the conversation based on the provided conversation ID. It also deletes the associated messages.", + "method": "GET", + "required_parameters": [ + { + "name": "fingerprint", + "type": "STRING", + "description": "The unique identifier for a conversation. This can be retrieved from a conversation/list.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/conversation/delete\"\nquerystring = {\"fingerprint\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/conversation/delete\"\nquerystring = {\"fingerprint\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "contact/save", + "url": "https://community-zipwhip.p.rapidapi.com/contact/save", + "description": "Save details about the contact for the given phone number.", + "method": "GET", + "required_parameters": [ + { + "name": "address", + "type": "STRING", + "description": "For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "city", + "type": "STRING", + "description": "The name city where the contact resides.", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "The email address of the contact being saved.", + "default": "" + }, + { + "name": "firstName", + "type": "STRING", + "description": "The first name of the contact being saved.", + "default": "" + }, + { + "name": "lastName", + "type": "STRING", + "description": "Notes about the contact, limit 255 characters.", + "default": "" + }, + { + "name": "loc", + "type": "STRING", + "description": "Notes about the contact, limit 255 characters.", + "default": "" + }, + { + "name": "notes", + "type": "STRING", + "description": "Notes about the contact, limit 255 characters.", + "default": "" + }, + { + "name": "state", + "type": "STRING", + "description": "The state where the contact resides.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/contact/save\"\nquerystring = {\"address\": \"\", \"session\": \"\", \"city\": \"\", \"email\": \"\", \"firstName\": \"\", \"lastName\": \"\", \"loc\": \"\", \"notes\": \"\", \"state\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/contact/save\"\nquerystring = {\"address\": \"\", \"session\": \"\", \"city\": \"\", \"email\": \"\", \"firstName\": \"\", \"lastName\": \"\", \"loc\": \"\", \"notes\": \"\", \"state\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "*message/send", + "url": "https://community-zipwhip.p.rapidapi.com/message/send", + "description": "Sends a message from the logged in user's phone number.", + "method": "GET", + "required_parameters": [ + { + "name": "contacts", + "type": "STRING", + "description": "This is the contact ID that is return from contact/list. A contact ID is also part of the return from message/send.", + "default": "" + }, + { + "name": "body", + "type": "STRING", + "description": "The message body that you would like to send. This is a maximum of 160 ASCII characters or 140 Bytes.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/send\"\nquerystring = {\"contacts\": \"\", \"body\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/message/send\"\nquerystring = {\"contacts\": \"\", \"body\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "conversation/list", + "url": "https://community-zipwhip.p.rapidapi.com/conversation/list", + "description": "Deletes the conversation based on the provided conversation ID. It also deletes the associated messages.", + "method": "GET", + "required_parameters": [ + { + "name": "fingerprint", + "type": "STRING", + "description": "The unique identifier for a conversation. This can be retrieved from a conversation/list.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/conversation/list\"\nquerystring = {\"fingerprint\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/conversation/list\"\nquerystring = {\"fingerprint\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "contact/list", + "url": "https://community-zipwhip.p.rapidapi.com/contact/list", + "description": "This method returns all contacts associated with session provided.", + "method": "GET", + "required_parameters": [ + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "page", + "type": "STRING", + "description": "For paginated results iterate over the requested page(s) for all available content.", + "default": "" + }, + { + "name": "pageSize", + "type": "STRING", + "description": "Specify the number of results returned for a paginated method.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/contact/list\"\nquerystring = {\"session\": \"\", \"page\": \"\", \"pageSize\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/contact/list\"\nquerystring = {\"session\": \"\", \"page\": \"\", \"pageSize\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "group/delete", + "url": "https://community-zipwhip.p.rapidapi.com/group/delete", + "description": "Delete the group. This is similar to deleting a contact, no message objects will be affected by deleting the group.", + "method": "GET", + "required_parameters": [ + { + "name": "address", + "type": "STRING", + "description": "For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/delete\"\nquerystring = {\"address\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/group/delete\"\nquerystring = {\"address\": \"\", \"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "conversation/get", + "url": "https://community-zipwhip.p.rapidapi.com/conversation/get", + "description": "Retrieves conversation details and messages that specific to the conversation ID provided.", + "method": "GET", + "required_parameters": [ + { + "name": "fingerprint", + "type": "STRING", + "description": "The unique identifier for a conversation. This can be retrieved from a conversation/list.", + "default": "" + }, + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + }, + { + "name": "limit", + "type": "STRING", + "description": "Limit the number of elements returned when paging.", + "default": "" + }, + { + "name": "start", + "type": "STRING", + "description": "When paging through content, this field is used to tell the controller what element to start at for the next page.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/conversation/get\"\nquerystring = {\"fingerprint\": \"\", \"session\": \"\", \"limit\": \"\", \"start\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/conversation/get\"\nquerystring = {\"fingerprint\": \"\", \"session\": \"\", \"limit\": \"\", \"start\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": false, + "response": { + "desc": "Forbidden", + "code": 403, + "path": "" + }, + "sessions": null + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "user/get", + "url": "https://community-zipwhip.p.rapidapi.com/user/get", + "description": "Provides information about the logged in user or account associated with sessionKey passed in.", + "method": "GET", + "required_parameters": [ + { + "name": "session", + "type": "STRING", + "description": "This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/user/get\"\nquerystring = {\"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://community-zipwhip.p.rapidapi.com/user/get\"\nquerystring = {\"session\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"community-zipwhip.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "success": true, + "response": {} + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "zipwhip" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Communication/zipwhip/api.py b/toolbench/toolenv/tools/Communication/zipwhip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0c7b93d78526036cfdbcea1253cb4064b07b3f55 --- /dev/null +++ b/toolbench/toolenv/tools/Communication/zipwhip/api.py @@ -0,0 +1,485 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def user_save(session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Save details about the user associated with the provided session" + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/user/save" + querystring = {'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def group_save(name: str, type: str, session: str, textline: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Create a group. A named group is a unique set of contacts that are referenced similar to a contact A group is defined as device:/xxxxxxxxxx/xx. After the :/, this is the phone number associated with the account you are sending messages under. The /xx is the id for the group." + name: This is the name of the group that you would like to associate with a group of contacts when using group/save. + type: This is used to identify the type of group you wish to create. For now, please use 'Group' + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + textline: If the group is being created within a landline or toll-free number than this parameter is required. This is the routing information for sending out the group message. Example format textline:/xxxxxxxxxx?carrier=xxx. After the :/ this is the logged in number's phone number. The carrier is equal to the carrier returned from user/get. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/group/save" + querystring = {'name': name, 'type': type, 'session': session, } + if textline: + querystring['textline'] = textline + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def group_addmember(address: str, group: str, session: str, city: str=None, email: str=None, firstname: str=None, lastname: str=None, loc: str=None, notes: str=None, state: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Once a group is created via the group/save call, you then need to populate members." + address: For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555 + group: The address that identifies the group in the logged in account. Format will be similar to: device:/xxxxxxxxxx/xx. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + city: The name city where the contact resides. + email: The email address of the contact being saved. + firstname: The first name of the contact being saved. + lastname: The last name of the contact being saved. + loc: Notes about the contact, limit 255 characters. + notes: Notes about the contact, limit 255 characters. + state: The state where the contact resides. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/group/addmember" + querystring = {'address': address, 'group': group, 'session': session, } + if city: + querystring['city'] = city + if email: + querystring['email'] = email + if firstname: + querystring['firstName'] = firstname + if lastname: + querystring['lastName'] = lastname + if loc: + querystring['loc'] = loc + if notes: + querystring['notes'] = notes + if state: + querystring['state'] = state + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def message_delete(message: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Marks the given message as deleted in Zipwhip's database." + message: The message ID being modified. In all cases the method will take multiple messages as parameters. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/message/delete" + querystring = {'message': message, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contact_delete(contact: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method can take one or more contact ID(s) and delete those records from Zipwhip. A contact's ID is available from contact/list or part of the return from message/send." + contact: This is the contact ID that is return from contact/list. A contact ID is also part of the return from message/send. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/contact/delete" + querystring = {'contact': contact, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def message_list(session: str, limit: str=None, start: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieves messages for account. A start of 0 provides newest to oldest messages." + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + limit: Limit the number of elements returned when paging. + start: When paging through content, this field is used to tell the controller what element to start at for the next page. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/message/list" + querystring = {'session': session, } + if limit: + querystring['limit'] = limit + if start: + querystring['start'] = start + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def user_login(username: str, password: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Takes a username and password and returns json with the account's session key. A sessionkey lasts forever, so it is best to store the sessionkey and use it for future purposes." + username: For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555 + password: Password associated with phone number being entered in user/login. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/user/login" + querystring = {'username': username, 'password': password, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def group_get(name: str, type: str, session: str, textline: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retreive details about an existing group. This call can be used to review the members of the group." + name: This is the name of the group that you would like to associate with a group of contacts when using group/save. + type: This is used to identify the type of group you wish to create. For now, please use 'Group' + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + textline: If the group is being created within a landline or toll-free number than this parameter is required. This is the routing information for sending out the group message. Example format textline:/xxxxxxxxxx?carrier=xxx. After the :/ this is the logged in number's phone number. The carrier is equal to the carrier returned from user/get. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/group/get" + querystring = {'name': name, 'type': type, 'session': session, } + if textline: + querystring['textline'] = textline + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def group_removemember(group: str, member: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Remove a group member. This is useful if a group member has requested to opt-out of notifications." + group: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + member: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/group/removemember" + querystring = {'group': group, 'member': member, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def message_read(messages: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Marks the given message as read in Zipwhip's database." + messages: The message ID being modified. In all cases the method will take multiple messages as parameters. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/message/read" + querystring = {'messages': messages, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def conversation_delete(fingerprint: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Deletes the conversation based on the provided conversation ID. It also deletes the associated messages." + fingerprint: The unique identifier for a conversation. This can be retrieved from a conversation/list. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/conversation/delete" + querystring = {'fingerprint': fingerprint, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contact_save(address: str, session: str, city: str=None, email: str=None, firstname: str=None, lastname: str=None, loc: str=None, notes: str=None, state: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Save details about the contact for the given phone number." + address: For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555 + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + city: The name city where the contact resides. + email: The email address of the contact being saved. + firstname: The first name of the contact being saved. + lastname: Notes about the contact, limit 255 characters. + loc: Notes about the contact, limit 255 characters. + notes: Notes about the contact, limit 255 characters. + state: The state where the contact resides. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/contact/save" + querystring = {'address': address, 'session': session, } + if city: + querystring['city'] = city + if email: + querystring['email'] = email + if firstname: + querystring['firstName'] = firstname + if lastname: + querystring['lastName'] = lastname + if loc: + querystring['loc'] = loc + if notes: + querystring['notes'] = notes + if state: + querystring['state'] = state + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def message_send(contacts: str, body: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Sends a message from the logged in user's phone number." + contacts: This is the contact ID that is return from contact/list. A contact ID is also part of the return from message/send. + body: The message body that you would like to send. This is a maximum of 160 ASCII characters or 140 Bytes. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/message/send" + querystring = {'contacts': contacts, 'body': body, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def conversation_list(fingerprint: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Deletes the conversation based on the provided conversation ID. It also deletes the associated messages." + fingerprint: The unique identifier for a conversation. This can be retrieved from a conversation/list. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/conversation/list" + querystring = {'fingerprint': fingerprint, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def contact_list(session: str, page: str=None, pagesize: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method returns all contacts associated with session provided." + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + page: For paginated results iterate over the requested page(s) for all available content. + pagesize: Specify the number of results returned for a paginated method. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/contact/list" + querystring = {'session': session, } + if page: + querystring['page'] = page + if pagesize: + querystring['pageSize'] = pagesize + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def group_delete(address: str, session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Delete the group. This is similar to deleting a contact, no message objects will be affected by deleting the group." + address: For US domestic use 10-digit number. For International numbers use full E.164 format. Examples: US: 5555555555 E.164: +1155555555555 + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/group/delete" + querystring = {'address': address, 'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def conversation_get(fingerprint: str, session: str, limit: str, start: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieves conversation details and messages that specific to the conversation ID provided." + fingerprint: The unique identifier for a conversation. This can be retrieved from a conversation/list. + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + limit: Limit the number of elements returned when paging. + start: When paging through content, this field is used to tell the controller what element to start at for the next page. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/conversation/get" + querystring = {'fingerprint': fingerprint, 'session': session, 'limit': limit, 'start': start, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def user_get(session: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides information about the logged in user or account associated with sessionKey passed in." + session: This is the sessionKey that is returned from user/login. sessionKeys do not expire. Because of this, it is recommended that you do a single user/login and then save the sessionKey locally for future web calls. + + """ + url = f"https://community-zipwhip.p.rapidapi.com/user/get" + querystring = {'session': session, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "community-zipwhip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/3des_decyption_api.json b/toolbench/toolenv/tools/Cryptography/3des_decyption_api.json new file mode 100644 index 0000000000000000000000000000000000000000..ffc8cdcb7a5eae65c9b1c8b561b2640320f6d1b6 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/3des_decyption_api.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_a2dcbd59-90a1-49e6-b7c3-eee13c17bb71", + "tool_description": "3Des Decryption API to easily decrypt any TripleDes (3Des) encrypted file once the keyfile is supplied.", + "home_url": "https://rapidapi.com/progwhiz1/api/3des-decyption-api/", + "name": "3Des Decyption API", + "title": "3Des Decyption API", + "pricing": "FREEMIUM", + "tool_name": "3Des Decyption API", + "score": null, + "host": "3des-decyption-api.p.rapidapi.com", + "api_list": [ + { + "name": "3Des Decryption", + "url": "https://3des-decyption-api.p.rapidapi.com/3desdecrptionAPI.php", + "description": "3Des Decryption", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://3des-decyption-api.p.rapidapi.com/3desdecrptionAPI.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"3des-decyption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://3des-decyption-api.p.rapidapi.com/3desdecrptionAPI.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"3des-decyption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/converter.json b/toolbench/toolenv/tools/Cryptography/converter.json new file mode 100644 index 0000000000000000000000000000000000000000..d07f75da4be8165a7b5d52998397995d170e4211 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/converter.json @@ -0,0 +1,43 @@ +{ + "product_id": "api_f0471c39-a939-4edb-a0d8-4290b5532b5c", + "tool_description": "Converter Project", + "home_url": "https://rapidapi.com/cteamapicloud123/api/converter18/", + "name": "Converter", + "title": "Converter", + "pricing": "FREE", + "tool_name": "Converter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 164, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "converter18.p.rapidapi.com", + "api_list": [ + { + "name": "/converter/length/length_converter", + "url": "https://converter18.p.rapidapi.com/converter/length/length_converter", + "description": "/converter/length/length_converter", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://converter18.p.rapidapi.com/converter/length/length_converter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"converter18.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://converter18.p.rapidapi.com/converter/length/length_converter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"converter18.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "/converter/area/area_converter", + "url": "https://converter18.p.rapidapi.com/converter/area/area_converter", + "description": "AREA", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://converter18.p.rapidapi.com/converter/area/area_converter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"converter18.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://converter18.p.rapidapi.com/converter/area/area_converter\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"converter18.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/crypto_key_value_store.json b/toolbench/toolenv/tools/Cryptography/crypto_key_value_store.json new file mode 100644 index 0000000000000000000000000000000000000000..b0ad5ea86376c6ab29611fcbf3e50e960df79a61 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/crypto_key_value_store.json @@ -0,0 +1,65 @@ +{ + "product_id": "api_0097cbcc-d546-44f3-8f42-adf401ac2935", + "tool_description": "API Able to store data/hash key value pair weakly associated.", + "home_url": "https://rapidapi.com/admorelli/api/crypto-key-value-store/", + "name": "Crypto Key Value Store", + "title": "Crypto Key Value Store", + "pricing": "FREEMIUM", + "tool_name": "Crypto Key Value Store", + "score": null, + "host": "crypto-key-value-store.p.rapidapi.com", + "api_list": [ + { + "name": "add", + "url": "https://crypto-key-value-store.p.rapidapi.com/api/data/{category}/{key}/{data}", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "data", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "key", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://crypto-key-value-store.p.rapidapi.com/api/data/{category}/{key}/{data}\"\nquerystring = {\"data\": \"\", \"key\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-key-value-store.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://crypto-key-value-store.p.rapidapi.com/api/data/{category}/{key}/{data}\"\nquerystring = {\"data\": \"\", \"key\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-key-value-store.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "add", + "url": "https://crypto-key-value-store.p.rapidapi.com/api/category/{key}", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "key", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://crypto-key-value-store.p.rapidapi.com/api/category/{key}\"\nquerystring = {\"key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-key-value-store.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://crypto-key-value-store.p.rapidapi.com/api/category/{key}\"\nquerystring = {\"key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-key-value-store.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/crypto_key_value_store/api.py b/toolbench/toolenv/tools/Cryptography/crypto_key_value_store/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dff72c6095f9d498287869e44d41b39e2042baae --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/crypto_key_value_store/api.py @@ -0,0 +1,71 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def index(category: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://crypto-key-value-store.p.rapidapi.com/api/data/{category}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-key-value-store.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def index(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://crypto-key-value-store.p.rapidapi.com/api/category/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-key-value-store.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get(data: str, category: str, key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://crypto-key-value-store.p.rapidapi.com/api/data/{category}/{key}/{data}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-key-value-store.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/crypto_whale_tracker.json b/toolbench/toolenv/tools/Cryptography/crypto_whale_tracker.json new file mode 100644 index 0000000000000000000000000000000000000000..e15bcf2499df45df5a43127a244a9493700ad9f8 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/crypto_whale_tracker.json @@ -0,0 +1,213 @@ +{ + "tool_name":"₿ Crypto Whale Tracker 🚀", + "tool_description":"Portfolio & whales multi-chain tracker. Get Net worth, Coins & NFTs on wallets, History, Trade signals (short/long) and Pools/Staking and more", + "title":"₿ Crypto Whale Tracker 🚀", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":562, + "avgSuccessRate":100, + "popularityScore":8.9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/emir12/api/crypto-whale-tracker/", + "host":"crypto-whale-tracker.p.rapidapi.com", + "api_list":[ + { + "name":"Address history", + "url":"https://crypto-whale-tracker.p.rapidapi.com/history/list", + "description":"Get activity history of specific address\n\nSupported chains:\neth, bsc, arb, op, matic, avax, ftm, xdai", + "method":"GET", + "required_parameters":[ + { + "name":"chain", + "type":"STRING", + "description":"", + "default":"eth" + }, + { + "name":"user_addr", + "type":"STRING", + "description":"", + "default":"0x741aa7cfb2c7bf2a1e7d4da2e3df6a56ca4131f3" + } + ], + "optional_parameters":[ + { + "name":"page_count", + "type":"STRING", + "description":"", + "default":"20" + } + ], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/history/list\"\nquerystring = {\"page_count\": page_count, \"chain\": chain, \"user_addr\": user_addr}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Address projects", + "url":"https://crypto-whale-tracker.p.rapidapi.com/portfolio/project_list", + "description":"Get projects for specific address\n\nSupported chains:\neth, bsc, arb, op, matic, avax, ftm, xdai", + "method":"GET", + "required_parameters":[ + { + "name":"chain", + "type":"STRING", + "description":"", + "default":"eth" + }, + { + "name":"user_addr", + "type":"STRING", + "description":"", + "default":"0x2a82ae142b2e62cb7d10b55e323acb1cab663a26" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/portfolio/project_list\"\nquerystring = {\"chain\": chain, \"user_addr\": user_addr}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Address balance", + "url":"https://crypto-whale-tracker.p.rapidapi.com/token/balance_list", + "description":"Get balance for specific address\n\nSupported chains:\neth, bsc, arb, op, matic, avax, ftm, xdai", + "method":"GET", + "required_parameters":[ + { + "name":"user_addr", + "type":"STRING", + "description":"", + "default":"0x4b16c5de96eb2117bbe5fd171e4d203624b014aa" + }, + { + "name":"chain", + "type":"STRING", + "description":"", + "default":"eth" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/token/balance_list\"\nquerystring = {\"user_addr\": user_addr, \"chain\": chain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Address net worth sparklines", + "url":"https://crypto-whale-tracker.p.rapidapi.com/asset/net_curve_24h", + "description":"Get sparklines 24h data for specific address to render chart", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"user_addr", + "type":"STRING", + "description":"", + "default":"0x2a82ae142b2e62cb7d10b55e323acb1cab663a26" + } + ], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/asset/net_curve_24h\"\nquerystring = {\"user_addr\": user_addr}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Address info", + "url":"https://crypto-whale-tracker.p.rapidapi.com/user/addr", + "description":"Get info about specific address", + "method":"GET", + "required_parameters":[ + { + "name":"addr", + "type":"STRING", + "description":"", + "default":"0x2a82ae142b2e62cb7d10b55e323acb1cab663a26" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/user/addr\"\nquerystring = {\"addr\": addr}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Whale portfolios", + "url":"https://crypto-whale-tracker.p.rapidapi.com/whale/list", + "description":"Get huge whale portfolios\npagination example: ?start=0&limit=20", + "method":"GET", + "required_parameters":[ + { + "name":"order_by", + "type":"STRING", + "description":"", + "default":"usd_value" + }, + { + "name":"start", + "type":"STRING", + "description":"", + "default":"0" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"20" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/whale/list\"\nquerystring = {\"order_by\": order_by, \"start\": start, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Trade signals", + "url":"https://crypto-whale-tracker.p.rapidapi.com/activity/list", + "description":"Parameters:\nsort_by: usd_value, time_at", + "method":"GET", + "required_parameters":[ + { + "name":"start", + "type":"STRING", + "description":"", + "default":"0" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"20" + }, + { + "name":"is_whale", + "type":"STRING", + "description":"", + "default":"true" + } + ], + "optional_parameters":[ + { + "name":"order_by", + "type":"STRING", + "description":"", + "default":"time_at" + } + ], + "code":"import requests\n\nurl = \"https://crypto-whale-tracker.p.rapidapi.com/activity/list\"\nquerystring = {\"start\": start, \"limit\": limit, \"is_whale\": is_whale, \"order_by\": order_by}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"crypto-whale-tracker.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/crypto_whale_tracker/api.py b/toolbench/toolenv/tools/Cryptography/crypto_whale_tracker/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1baf43ba7b493f0e6e18d754391886e3ed78cdca --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/crypto_whale_tracker/api.py @@ -0,0 +1,172 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def address_history(chain: str, user_addr: str, page_count: str='20', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get activity history of specific address + + Supported chains: + eth, bsc, arb, op, matic, avax, ftm, xdai" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/history/list" + querystring = {'chain': chain, 'user_addr': user_addr, } + if page_count: + querystring['page_count'] = page_count + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def address_projects(chain: str, user_addr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get projects for specific address + + Supported chains: + eth, bsc, arb, op, matic, avax, ftm, xdai" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/portfolio/project_list" + querystring = {'chain': chain, 'user_addr': user_addr, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def address_balance(user_addr: str, chain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get balance for specific address + + Supported chains: + eth, bsc, arb, op, matic, avax, ftm, xdai" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/token/balance_list" + querystring = {'user_addr': user_addr, 'chain': chain, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def address_net_worth_sparklines(user_addr: str='0x2a82ae142b2e62cb7d10b55e323acb1cab663a26', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get sparklines 24h data for specific address to render chart" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/asset/net_curve_24h" + querystring = {} + if user_addr: + querystring['user_addr'] = user_addr + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def address_info(addr: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get info about specific address" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/user/addr" + querystring = {'addr': addr, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def whale_portfolios(order_by: str, start: str, limit: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get huge whale portfolios + pagination example: ?start=0&limit=20" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/whale/list" + querystring = {'order_by': order_by, 'start': start, 'limit': limit, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def trade_signals(start: str, limit: str, is_whale: str, order_by: str='time_at', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Parameters: + sort_by: usd_value, time_at" + + """ + url = f"https://crypto-whale-tracker.p.rapidapi.com/activity/list" + querystring = {'start': start, 'limit': limit, 'is_whale': is_whale, } + if order_by: + querystring['order_by'] = order_by + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "crypto-whale-tracker.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/cryptocurrency_news.json b/toolbench/toolenv/tools/Cryptography/cryptocurrency_news.json new file mode 100644 index 0000000000000000000000000000000000000000..e3838588d56dc1016bea6f3d978f4e11dd8daa19 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/cryptocurrency_news.json @@ -0,0 +1,275 @@ +{ + "tool_name":"Cryptocurrency News", + "tool_description":"Get the latest crypto news direct from your preferred sources (fast & reliable). News sources will be continuously added.", + "title":"Cryptocurrency News", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":99, + "avgLatency":680, + "avgSuccessRate":99, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/topapi-topapi-default/api/cryptocurrency-news2/", + "host":"cryptocurrency-news2.p.rapidapi.com", + "api_list":[ + { + "name":"CoinDesk", + "url":"https://cryptocurrency-news2.p.rapidapi.com/v1/coindesk", + "description":"Get the top latest news from CoinDesk.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cryptocurrency-news2.p.rapidapi.com/v1/coindesk\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cryptocurrency-news2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "url":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "thumbnail":{ + "type":"string" + }, + "createdAt":{ + "type":"string" + } + } + } + } + } + } + }, + { + "name":"Bitcoinist", + "url":"https://cryptocurrency-news2.p.rapidapi.com/v1/bitcoinist", + "description":"Get the top latest news from Bitcoinist.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cryptocurrency-news2.p.rapidapi.com/v1/bitcoinist\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cryptocurrency-news2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "url":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "thumbnail":{ + "type":"string" + }, + "createdAt":{ + "type":"string" + } + } + } + } + } + } + }, + { + "name":"Cointelegraph", + "url":"https://cryptocurrency-news2.p.rapidapi.com/v1/cointelegraph", + "description":"Get the top latest news from Cointelegraph.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cryptocurrency-news2.p.rapidapi.com/v1/cointelegraph\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cryptocurrency-news2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "url":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "thumbnail":{ + "type":"string" + }, + "createdAt":{ + "type":"string" + } + } + } + } + } + } + }, + { + "name":"The Guardian", + "url":"https://cryptocurrency-news2.p.rapidapi.com/v1/theguardian", + "description":"Get the top latest news from The Guardian.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cryptocurrency-news2.p.rapidapi.com/v1/theguardian\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cryptocurrency-news2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "url":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "thumbnail":{ + "type":"string" + }, + "createdAt":{ + "type":"string" + } + } + } + } + } + } + }, + { + "name":"BSC News", + "url":"https://cryptocurrency-news2.p.rapidapi.com/v1/bsc", + "description":"Get the top latest news from BSC News.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cryptocurrency-news2.p.rapidapi.com/v1/bsc\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cryptocurrency-news2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "url":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "thumbnail":{ + "type":"string" + }, + "createdAt":{ + "type":"string" + } + } + } + } + } + } + }, + { + "name":"Decrypt", + "url":"https://cryptocurrency-news2.p.rapidapi.com/v1/decrypt", + "description":"Get the top latest news from Decrypt.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://cryptocurrency-news2.p.rapidapi.com/v1/decrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"cryptocurrency-news2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "url":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "thumbnail":{ + "type":"string" + }, + "createdAt":{ + "type":"string" + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/cryptocurrency_news/api.py b/toolbench/toolenv/tools/Cryptography/cryptocurrency_news/api.py new file mode 100644 index 0000000000000000000000000000000000000000..81494d86418648e358b12c1ca744500f3bf38168 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/cryptocurrency_news/api.py @@ -0,0 +1,134 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def coindesk(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the top latest news from CoinDesk." + + """ + url = f"https://cryptocurrency-news2.p.rapidapi.com/v1/coindesk" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cryptocurrency-news2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def bitcoinist(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the top latest news from Bitcoinist." + + """ + url = f"https://cryptocurrency-news2.p.rapidapi.com/v1/bitcoinist" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cryptocurrency-news2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def cointelegraph(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the top latest news from Cointelegraph." + + """ + url = f"https://cryptocurrency-news2.p.rapidapi.com/v1/cointelegraph" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cryptocurrency-news2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def the_guardian(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the top latest news from The Guardian." + + """ + url = f"https://cryptocurrency-news2.p.rapidapi.com/v1/theguardian" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cryptocurrency-news2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def bsc_news(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the top latest news from BSC News." + + """ + url = f"https://cryptocurrency-news2.p.rapidapi.com/v1/bsc" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cryptocurrency-news2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def decrypt(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the top latest news from Decrypt." + + """ + url = f"https://cryptocurrency-news2.p.rapidapi.com/v1/decrypt" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "cryptocurrency-news2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/digital_currency.json b/toolbench/toolenv/tools/Cryptography/digital_currency.json new file mode 100644 index 0000000000000000000000000000000000000000..5d08de84b2b264d15be475f78263fadd1b9d344f --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/digital_currency.json @@ -0,0 +1,24 @@ +{ + "tool_name":"Digital Currency", + "tool_description":"List of all digital currencies", + "title":"Digital Currency", + "pricing":"PAID", + "score":null, + "home_url":"https://rapidapi.com/starhunter17017/api/digital-currency/", + "host":"digital-currency.p.rapidapi.com", + "api_list":[ + { + "name":"Get all digital currencies", + "url":"https://digital-currency.p.rapidapi.com/cXYwed/digital_currencies", + "description":"List of all digital currencies", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://digital-currency.p.rapidapi.com/cXYwed/digital_currencies\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"digital-currency.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/digital_currency/api.py b/toolbench/toolenv/tools/Cryptography/digital_currency/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d8fd8e5fa2fbc67f960901e5165e767924aa47aa --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/digital_currency/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_all_digital_currencies(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List of all digital currencies" + + """ + url = f"https://digital-currency.p.rapidapi.com/cxywed/digital_currencies" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "digital-currency.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/eea_email_encryption_api.json b/toolbench/toolenv/tools/Cryptography/eea_email_encryption_api.json new file mode 100644 index 0000000000000000000000000000000000000000..1e333511c8749298776f20f9d97a03f04fa45161 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/eea_email_encryption_api.json @@ -0,0 +1,63 @@ +{ + "product_id": "api_7afe4cd2-39ae-4c20-b9e2-8b1b00da9bc7", + "tool_description": "Welcome to the Secure Email API \ud83d\ude80, an API that provides functionalities for encrypting, decrypting, signing, and verifying emails to ensure secure communication.", + "home_url": "https://rapidapi.com/kidddevs/api/eea-email-encryption-api/", + "name": "EEA - Email Encryption API", + "title": "EEA - Email Encryption API", + "pricing": "PAID", + "tool_name": "EEA - Email Encryption API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 2178, + "avgSuccessRate": 100, + "popularityScore": 8.3, + "__typename": "Score" + }, + "host": "eea-email-encryption-api.p.rapidapi.com", + "api_list": [ + { + "name": "Verify a Message Signature", + "url": "https://eea-email-encryption-api.p.rapidapi.com/verify", + "description": "This endpoint allows you to verify the integrity and authenticity of a signed message using the Secure Email API. You need to provide the message and its signature as parameters. The API uses a public key derived from the private key used for signing to verify the signature. It returns a response indicating whether the signature is valid or not.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Sign a Message", + "url": "https://eea-email-encryption-api.p.rapidapi.com/sign", + "description": "This endpoint allows you to digitally sign a message using the Secure Email API. The API generates a private key, signs the provided message with it using the PSS padding scheme and the SHA256 hashing algorithm, and returns the generated signature.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/sign\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/sign\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Decrypt an Encrypted Message", + "url": "https://eea-email-encryption-api.p.rapidapi.com/decrypt", + "description": "This endpoint allows you to decrypt an encrypted message using the Secure Email API. You need to provide the encrypted message and the encryption key as parameters. The API uses the provided encryption key to decrypt the message and returns the original plaintext message", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/decrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/decrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Encrypt a Message", + "url": "https://eea-email-encryption-api.p.rapidapi.com/encrypt", + "description": "This endpoint allows you to encrypt a message using the Secure Email API. The API generates a unique encryption key and uses it to encrypt the provided message. The encrypted message and the encryption key are returned as a response.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://eea-email-encryption-api.p.rapidapi.com/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"eea-email-encryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/electronic_certificate_verification.json b/toolbench/toolenv/tools/Cryptography/electronic_certificate_verification.json new file mode 100644 index 0000000000000000000000000000000000000000..ee3dce313177c410c92177a405eb3075fbbd7cf0 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/electronic_certificate_verification.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_f2eb0d84-5a9a-45fb-aa31-ade5b97eb501", + "tool_description": "This API allows users to send an X.509 certificate in base64-encoded DER format, and receive information about the certificate. The API returns the expiration date, issuer information, key algorithm, serial number, and subject information for the provided certificate.", + "home_url": "https://rapidapi.com/TomJenkins/api/electronic-certificate-verification/", + "name": "Electronic Certificate Verification", + "title": "Electronic Certificate Verification", + "pricing": "FREE", + "tool_name": "Electronic Certificate Verification", + "score": null, + "host": "electronic-certificate-verification.p.rapidapi.com", + "api_list": [ + { + "name": "CertInfo", + "url": "https://electronic-certificate-verification.p.rapidapi.com/", + "description": "Get information about your certificate. Certificate has to in the base64 encoded string format. For details, see Readme and Documentation.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://electronic-certificate-verification.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"electronic-certificate-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://electronic-certificate-verification.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"electronic-certificate-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/encryption_api.json b/toolbench/toolenv/tools/Cryptography/encryption_api.json new file mode 100644 index 0000000000000000000000000000000000000000..025e272ad1a4d711a6bcbc2d0eb1198a53cc2ca6 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/encryption_api.json @@ -0,0 +1,89 @@ +{ + "product_id": "api_ee1fcc57-ac25-4378-ba55-3c7cacd0e387", + "tool_description": "This api will encrypt given the text using aes 256 cbc algorithm", + "home_url": "https://rapidapi.com/vishwaraj/api/encryption-api2/", + "name": "Encryption API", + "title": "Encryption API", + "pricing": "FREEMIUM", + "tool_name": "Encryption API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 642, + "avgSuccessRate": 100, + "popularityScore": 8.7, + "__typename": "Score" + }, + "host": "encryption-api2.p.rapidapi.com", + "api_list": [ + { + "name": "Encryption", + "url": "https://encryption-api2.p.rapidapi.com/enc.php", + "description": "This api will encrypt the given text", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://encryption-api2.p.rapidapi.com/enc.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"encryption-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://encryption-api2.p.rapidapi.com/enc.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"encryption-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Decryption", + "url": "https://encryption-api2.p.rapidapi.com/dec.php", + "description": "This api endpoint will decrypt given the key , ciphertext , iv", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://encryption-api2.p.rapidapi.com/dec.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"encryption-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://encryption-api2.p.rapidapi.com/dec.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"encryption-api2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/endecrypt/api.py b/toolbench/toolenv/tools/Cryptography/endecrypt/api.py new file mode 100644 index 0000000000000000000000000000000000000000..129e624c3ddaf93c2a6a3669b2295a1eebfc1bab --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/endecrypt/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def decryption(decryptionkey: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Decrypt any previously encrypted text. You will need the ***encrypted text*** and ***it's matching*** decryption key." + + """ + url = f"https://endecrypt.p.rapidapi.com/decryption/amcaadmuor6ba" + querystring = {'decryptionkey': decryptionkey, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "endecrypt.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def encryption(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This will encrypt any plain text - no punctuation - only spaces are allowed." + + """ + url = f"https://endecrypt.p.rapidapi.com/encryption/texttoencrypt" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "endecrypt.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/fanfury.json b/toolbench/toolenv/tools/Cryptography/fanfury.json new file mode 100644 index 0000000000000000000000000000000000000000..805d82639d30090fc7d0df976d6cf0a330006286 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/fanfury.json @@ -0,0 +1,83 @@ +{ + "product_id": "api_d75ed32a-d7c7-41a6-bb30-881d15a8f3ff", + "tool_description": "Fanfury", + "home_url": "https://rapidapi.com/adrian2ross/api/fanfury/", + "name": "fanfury", + "title": "fanfury", + "pricing": "FREE", + "tool_name": "fanfury", + "score": null, + "host": "fanfury.p.rapidapi.com", + "api_list": [ + { + "name": "BroadcastTx", + "url": "https://fanfury.p.rapidapi.com/cosmos/tx/v1beta1/txs", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://fanfury.p.rapidapi.com/cosmos/tx/v1beta1/txs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fanfury.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://fanfury.p.rapidapi.com/cosmos/tx/v1beta1/txs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fanfury.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "Simulate", + "url": "https://fanfury.p.rapidapi.com/cosmos/tx/v1beta1/simulate", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://fanfury.p.rapidapi.com/cosmos/tx/v1beta1/simulate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fanfury.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://fanfury.p.rapidapi.com/cosmos/tx/v1beta1/simulate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"fanfury.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/hashing_api.json b/toolbench/toolenv/tools/Cryptography/hashing_api.json new file mode 100644 index 0000000000000000000000000000000000000000..ea1a723f200d9e19232378347ea996830f712c5d --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/hashing_api.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_fb9bd408-b975-42e7-a598-110e95c5fe3c", + "tool_description": "This api generates sha256 hash of the given text ", + "home_url": "https://rapidapi.com/vishwaraj/api/hashing-api3/", + "name": "Hashing api", + "title": "Hashing api", + "pricing": "FREEMIUM", + "tool_name": "Hashing api", + "score": { + "avgServiceLevel": 100, + "avgLatency": 692, + "avgSuccessRate": 47, + "popularityScore": 8.9, + "__typename": "Score" + }, + "host": "hashing-api3.p.rapidapi.com", + "api_list": [ + { + "name": "hash", + "url": "https://hashing-api3.p.rapidapi.com/hash.php", + "description": "This API can be used to generate SHA-256 hashes for various purposes, such as securing sensitive data or ensuring data integrity.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hashing-api3.p.rapidapi.com/hash.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hashing-api3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hashing-api3.p.rapidapi.com/hash.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hashing-api3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/hexsign.json b/toolbench/toolenv/tools/Cryptography/hexsign.json new file mode 100644 index 0000000000000000000000000000000000000000..a79d4bae6d46c498d93708bbff3276236ad86482 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/hexsign.json @@ -0,0 +1,168 @@ +{ + "product_id": "api_c6de7887-1f97-4008-b546-66ff7456e113", + "tool_description": "Digital Signature as a Service", + "home_url": "https://rapidapi.com/josestg/api/hexsign/", + "name": "hexsign", + "title": "hexsign", + "pricing": "FREE", + "tool_name": "hexsign", + "score": null, + "host": "hexsign.p.rapidapi.com", + "api_list": [ + { + "name": "SignIn", + "url": "https://hexsign.p.rapidapi.com/api/v1/users/sign-in", + "description": "Sign In generates an access token for user.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/users/sign-in\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/users/sign-in\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "", + "default": 200 + }, + "message": { + "type": "string", + "description": "", + "default": "Logged in successfully" + }, + "data": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "", + "default": "eyJhbGciOiJFUzI1NiIsImN0eSI6IkpXVCIsImtpZCI6IjFjMTU3OGE0NWE1ZTQ2Mzc5ZjAwNDQ2MTQ3ZGI5NDBhIn0.eyJpc3MiOiJ0ZXJhc2lnbi1zZXJ2ZXIiLCJzdWIiOiI2NzlmOTIwOC03ZjZlLTQ4ZDgtODJmZi00NDVmMGMxODlhNGIiLCJhdWQiOlsidGVyYXNpZ24uY29tIl0sImV4cCI6MTY3NDk4MzgxNSwibmJmIjoxNjc0OTgwMjE1LCJpYXQiOjE2NzQ5ODAyMTUsImp0aSI6ImFkYTJjMDM5LWVjZjEtNDhlYi1iZmI2LWZmZTZiNzE2Mzk3NyIsImVtYWlsIjoiYm9iQGVtYWlsLmNvbSJ9.MEUCIQDZcFAElvcJ7XTnxR4D_IxLCM4Lu-DGSPyte2YhJmcj6AIgb2KVI-ESoOZpDPI-aSh6ds-77BaN1fAmj6f8TkWxMU8" + } + } + } + } + } + }, + { + "name": "ApproveSignRequest", + "url": "https://hexsign.p.rapidapi.com/api/v1/signing/approve", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/signing/approve\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/signing/approve\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "", + "default": 200 + }, + "message": { + "type": "string", + "description": "", + "default": "Logged in successfully" + }, + "data": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "", + "default": "eyJhbGciOiJFUzI1NiIsImN0eSI6IkpXVCIsImtpZCI6IjFjMTU3OGE0NWE1ZTQ2Mzc5ZjAwNDQ2MTQ3ZGI5NDBhIn0.eyJpc3MiOiJ0ZXJhc2lnbi1zZXJ2ZXIiLCJzdWIiOiI2NzlmOTIwOC03ZjZlLTQ4ZDgtODJmZi00NDVmMGMxODlhNGIiLCJhdWQiOlsidGVyYXNpZ24uY29tIl0sImV4cCI6MTY3NDk4MzgxNSwibmJmIjoxNjc0OTgwMjE1LCJpYXQiOjE2NzQ5ODAyMTUsImp0aSI6ImFkYTJjMDM5LWVjZjEtNDhlYi1iZmI2LWZmZTZiNzE2Mzk3NyIsImVtYWlsIjoiYm9iQGVtYWlsLmNvbSJ9.MEUCIQDZcFAElvcJ7XTnxR4D_IxLCM4Lu-DGSPyte2YhJmcj6AIgb2KVI-ESoOZpDPI-aSh6ds-77BaN1fAmj6f8TkWxMU8" + } + } + } + } + } + }, + { + "name": "SignUp", + "url": "https://hexsign.p.rapidapi.com/api/v1/users/sign-up", + "description": "Sign Up handles a user registration", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/users/sign-up\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/users/sign-up\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "SigningRequest", + "url": "https://hexsign.p.rapidapi.com/api/v1/signing/request", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/signing/request\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/signing/request\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "CreateCertifiacate", + "url": "https://hexsign.p.rapidapi.com/api/v1/certificate", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/certificate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/certificate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "UploadDocument", + "url": "https://hexsign.p.rapidapi.com/api/v1/documents", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/documents\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://hexsign.p.rapidapi.com/api/v1/documents\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"hexsign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/iftiin_crypt.json b/toolbench/toolenv/tools/Cryptography/iftiin_crypt.json new file mode 100644 index 0000000000000000000000000000000000000000..8f264403c8b322eba9594094908df49c99dd234b --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/iftiin_crypt.json @@ -0,0 +1,35 @@ +{ + "product_id": "api_abfafff4-ad40-4fcf-9ba4-6817d325ddd8", + "tool_description": "Api to enryp/decrypt text messages", + "home_url": "https://rapidapi.com/iftiin-koox-iftiin-koox-default/api/iftiin-crypt/", + "name": "Iftiin-Crypt", + "title": "Iftiin-Crypt", + "pricing": "PAID", + "tool_name": "Iftiin-Crypt", + "score": null, + "host": "iftiin-crypt.p.rapidapi.com", + "api_list": [ + { + "name": "decrypt", + "url": "https://iftiin-crypt.p.rapidapi.com/api/decrypt", + "description": "This endpoint decrypts text messages.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://iftiin-crypt.p.rapidapi.com/api/decrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"iftiin-crypt.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://iftiin-crypt.p.rapidapi.com/api/decrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"iftiin-crypt.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "encrypt", + "url": "https://iftiin-crypt.p.rapidapi.com/api/encrypt", + "description": "This endpoint encrypts text messages", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://iftiin-crypt.p.rapidapi.com/api/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"iftiin-crypt.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://iftiin-crypt.p.rapidapi.com/api/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"iftiin-crypt.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/no_intrusive_steganografy.json b/toolbench/toolenv/tools/Cryptography/no_intrusive_steganografy.json new file mode 100644 index 0000000000000000000000000000000000000000..e158dd03fa4cce36cbef8b33844925679929f278 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/no_intrusive_steganografy.json @@ -0,0 +1,171 @@ +{ + "product_id": "api_845139f8-2ac1-415f-b4e1-e5edb8c847cc", + "tool_description": "No Intrusive steganografy", + "home_url": "https://rapidapi.com/sachadee/api/no-intrusive-steganografy/", + "name": "No Intrusive steganografy", + "title": "No Intrusive steganografy", + "pricing": "FREEMIUM", + "tool_name": "No Intrusive steganografy", + "score": null, + "host": "no-intrusive-steganografy.p.rapidapi.com", + "api_list": [ + { + "name": "Get user Ref IDs", + "url": "https://no-intrusive-steganografy.p.rapidapi.com/getuserallref/", + "description": "Get the reference IDs for each message in a specific image!", + "method": "POST", + "required_parameters": [ + { + "name": "messageName", + "type": "STRING", + "description": "The username toget all ref:image to retrive the message in an image ", + "default": "messageName" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://no-intrusive-steganografy.p.rapidapi.com/getuserallref/\"\nquerystring = {\"messageName\": \"messageName\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"no-intrusive-steganografy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://no-intrusive-steganografy.p.rapidapi.com/getuserallref/\"\nquerystring = {\"messageName\": \"messageName\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"no-intrusive-steganografy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string" + }, + "all_ref_id": { + "type": "array" + }, + "time": { + "type": "string" + } + } + } + }, + { + "name": "Bind and crypt a message to an image", + "url": "https://no-intrusive-steganografy.p.rapidapi.com/messinimage/", + "description": "Bind and crypt a message to an image without modifying the image!", + "method": "POST", + "required_parameters": [ + { + "name": "message", + "type": "STRING", + "description": "Your message to bind to the image! The message size cannot be bigger then the image width*image height *3", + "default": "Message to bind" + }, + { + "name": "messageName", + "type": "STRING", + "description": "A name or id for the message! You can use this name or Id for various message so you can classify your messages.", + "default": "a name or id for the message" + }, + { + "name": "image", + "type": "BINARY", + "description": "The image ", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "authorizedUsers", + "type": "STRING", + "description": "You can define any other authorized users to access this message for example: an email, an ID or a name! this value can then be used in the getmess request and will be allowed toget the message! This should be passed as string with comma separator if more as one user: **user1@gmail.co,user2','user3**", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://no-intrusive-steganografy.p.rapidapi.com/messinimage/\"\nquerystring = {\"message\": \"Message to bind\", \"messageName\": \"a name or id for the message\", \"image\": \"\", \"authorizedUsers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"no-intrusive-steganografy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://no-intrusive-steganografy.p.rapidapi.com/messinimage/\"\nquerystring = {\"message\": \"Message to bind\", \"messageName\": \"a name or id for the message\", \"image\": \"\", \"authorizedUsers\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"no-intrusive-steganografy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string" + }, + "messageName": { + "type": "string" + }, + "authorizedUsers": { + "type": "array" + }, + "user_ref_img": { + "type": "string" + }, + "image": { + "type": "string" + }, + "encrypted_message_size": { + "type": "integer" + }, + "user_auth_value": { + "type": "string" + }, + "time": { + "type": "string" + } + } + } + }, + { + "name": "Get the message binded to an image", + "url": "https://no-intrusive-steganografy.p.rapidapi.com/getmess/", + "description": "Get the hided /crypted message binded to a specific image", + "method": "POST", + "required_parameters": [ + { + "name": "messageName", + "type": "STRING", + "description": "the username", + "default": "id/name of this message" + }, + { + "name": "image", + "type": "BINARY", + "description": "The image containing the message", + "default": "" + }, + { + "name": "user_ref_img", + "type": "STRING", + "description": "When creating an crypted message binded toan image you will get a reference ID for the message! This reference is connected to a user ID defined in the body and the image that will be used to generate the message true a specific algorythm!", + "default": "Ref ID" + } + ], + "optional_parameters": [ + { + "name": "authorizedUser", + "type": "STRING", + "description": "The name of an authorized user to get the message, the credentials in the header must be the same base64 as the one created when creating the message", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://no-intrusive-steganografy.p.rapidapi.com/getmess/\"\nquerystring = {\"messageName\": \"id/name of this message\", \"image\": \"\", \"user_ref_img\": \"Ref ID\", \"authorizedUser\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"no-intrusive-steganografy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://no-intrusive-steganografy.p.rapidapi.com/getmess/\"\nquerystring = {\"messageName\": \"id/name of this message\", \"image\": \"\", \"user_ref_img\": \"Ref ID\", \"authorizedUser\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"no-intrusive-steganografy.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string" + }, + "user_ref_img": { + "type": "string" + }, + "image": { + "type": "string" + }, + "decryptedMessage": { + "type": "string" + }, + "time": { + "type": "string" + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/pgp_decryption_api.json b/toolbench/toolenv/tools/Cryptography/pgp_decryption_api.json new file mode 100644 index 0000000000000000000000000000000000000000..a39b50c65576efa72b657ad051d0a9532c8ee957 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/pgp_decryption_api.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_89196996-10b5-456a-bd28-57a508312519", + "tool_description": "PGP Decryption API to easily decrypt an PGP encrypted file once the Private Key is provided along with the Passphrase.", + "home_url": "https://rapidapi.com/progwhiz1/api/pgp-decryption-api/", + "name": "PGP Decryption API", + "title": "PGP Decryption API", + "pricing": "FREEMIUM", + "tool_name": "PGP Decryption API", + "score": null, + "host": "pgp-decryption-api.p.rapidapi.com", + "api_list": [ + { + "name": "PGP Decryption", + "url": "https://pgp-decryption-api.p.rapidapi.com/pgpdecryptAPI.php", + "description": "PGP Decryption", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pgp-decryption-api.p.rapidapi.com/pgpdecryptAPI.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pgp-decryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pgp-decryption-api.p.rapidapi.com/pgpdecryptAPI.php\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pgp-decryption-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/random_phrase_generator.json b/toolbench/toolenv/tools/Cryptography/random_phrase_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..fcf957d9d9c08a1c88c6e9183090175cdd521e55 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/random_phrase_generator.json @@ -0,0 +1,43 @@ +{ + "tool_name":"Random Phrase Generator", + "tool_description":"Random 12-word generator in BiP32 and BiP39 Standard", + "title":"Random Phrase Generator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":249, + "avgSuccessRate":0, + "popularityScore":0, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/EymenTakak/api/random-phrase-generator/", + "host":"random-phrase-generator.p.rapidapi.com", + "api_list":[ + { + "name":"Get 24 Word", + "url":"https://random-phrase-generator.p.rapidapi.com/get24word", + "description":"24 words in BiP39 standard", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://random-phrase-generator.p.rapidapi.com/get24word\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"random-phrase-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Get 12 Word", + "url":"https://random-phrase-generator.p.rapidapi.com/get12word", + "description":"returns 12 words in BiP32 standard", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://random-phrase-generator.p.rapidapi.com/get12word\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"random-phrase-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/random_phrase_generator/api.py b/toolbench/toolenv/tools/Cryptography/random_phrase_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d24df025777096a9db2d08ee4ac5699043407cba --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/random_phrase_generator/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_24_word(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "24 words in BiP39 standard" + + """ + url = f"https://random-phrase-generator.p.rapidapi.com/get24word" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "random-phrase-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_12_word(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "returns 12 words in BiP32 standard" + + """ + url = f"https://random-phrase-generator.p.rapidapi.com/get12word" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "random-phrase-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/reddio_nft_token_and_ipfs.json b/toolbench/toolenv/tools/Cryptography/reddio_nft_token_and_ipfs.json new file mode 100644 index 0000000000000000000000000000000000000000..b7e1a1452ce3a6311da301a93f62f8756db3951b --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/reddio_nft_token_and_ipfs.json @@ -0,0 +1,2880 @@ +{ + "product_id": "api_c58137a3-eb29-4718-a904-ab98bad3c847", + "tool_description": "Reddio APIs provide the layer 2 zkRollup APIs powered by StarkEx from StarkWare, enabling 0 gas fee on layer 2 and 10k TPS. This new zkRollup technology is being widely use by many NFT marketplaces, GameFi , Defi projects etc.", + "home_url": "https://rapidapi.com/reddio-reddio-default/api/reddio-nft-token-and-ipfs/", + "name": "Reddio NFT, Token and IPFS", + "title": "Reddio NFT, Token and IPFS", + "pricing": "FREE", + "tool_name": "Reddio NFT, Token and IPFS", + "score": { + "avgServiceLevel": 100, + "avgLatency": 204, + "avgSuccessRate": 100, + "popularityScore": 7.3, + "__typename": "Score" + }, + "host": "reddio-nft-token-and-ipfs.p.rapidapi.com", + "api_list": [ + { + "name": "GetAssetsbycontractinformation", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid", + "description": "This request will return asset_id wrapped with return code and error code", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "token_id", + "type": "STRING", + "description": "TokenID of NFT(ERC721/ERC721M need this field)", + "default": "" + }, + { + "name": "contract_address", + "type": "STRING", + "description": "Contract address of token (when type is ERC20/ERC721/ERC721M need this field, if type is ETH, then it can be ignore)", + "default": "" + }, + { + "name": "type", + "type": "STRING", + "description": "Type of token, Possible enum values is ETH, ERC20, ERC721, ERC721M", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid\"\nquerystring = {\"token_id\": \"\", \"contract_address\": \"\", \"type\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid\"\nquerystring = {\"token_id\": \"\", \"contract_address\": \"\", \"type\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "contract address is missing", + "error_code": 400, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "GetAssetsdetailbyassetid", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid/{asset_id}", + "description": "The API can query every asset_id that exists on reddio's system, if the FT/NFT is not on reddio's system, then the API will not work well\n\nThe API returns assets detail including contract_address, type, token_id(if type is ERC721 or ERC721M), quantum and token owners(owns by who)", + "method": "GET", + "required_parameters": [ + { + "name": "asset_id", + "type": "STRING", + "description": "The asset id you want to retrieve information", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid/{asset_id}\"\nquerystring = {\"asset_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid/{asset_id}\"\nquerystring = {\"asset_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "asset info get failed", + "error_code": 6, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Getvaultsdetailbyvaultid", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults/{vault_id}", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "vault_id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults/{vault_id}\"\nquerystring = {\"vault_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults/{vault_id}\"\nquerystring = {\"vault_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "contract address is missing", + "error_code": 400, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Getvaultsbystark_keyandasset_id", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "stark_keys", + "type": "STRING", + "description": "stark_keys can be multi stark_key, separated by \",\"", + "default": "" + }, + { + "name": "asset_id", + "type": "STRING", + "description": "the asset id", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults\"\nquerystring = {\"stark_keys\": \"\", \"asset_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults\"\nquerystring = {\"stark_keys\": \"\", \"asset_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "Key: 'VaultsRequest.AssetID' Error:Field validation for 'AssetID' failed on the 'required' tag\nKey: 'VaultsRequest.StarkKeys' Error:Field validation for 'StarkKeys' failed on the 'required' tag", + "error_code": 400, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "GetOrderbyOrderID", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order", + "description": "The API will return the order related to the order id\n\nThere are many informations it returns\n\n| **field** | **description** |\n| --- | --- |\n| order_id | the id of the order, it is the same value as sequence id |\n| stark_key | the stark_key of who place the order |\n| price | the price of the NFT, when need a human-readable value, display_price is the human-readable value |\n| display_price | the price that human-readable |\n| direction | 0 for sell, 1 for buy |\n| amount | the amount to buy or sell |\n| un_filled | how many tokens are unfilled |\n| symbol | a structure contains base and quota token, also have token id in it |\n| fee_rate | the fee_rate |\n| token_type | the token type |\n| token_id | the token ID |\n| order_state | the state of the order |\n| resp | if there has some error, the field will be set |\n\nThe enum value of order_state is\n\n| Status | Value |\n| --- | --- |\n| Placed | 0 |\n| Canceled | 1 |\n| Filled | 2 |\n| PartiallyFilled | 3 |\n| ConditionallyCanceled | 4 |", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "order_id", + "type": "STRING", + "description": "the order id you want to query", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order\"\nquerystring = {\"order_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order\"\nquerystring = {\"order_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "Key: 'GetOrderRequest.OrderID' Error:Field validation for 'OrderID' failed on the 'required' tag", + "error_code": 0, + "data": [] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "ListOrders", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/orders", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "contract_address", + "type": "STRING", + "description": "the contract address of order you want to list", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/orders\"\nquerystring = {\"contract_address\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/orders\"\nquerystring = {\"contract_address\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "OK", + "error": "", + "error_code": 0, + "data": { + "list": [], + "total": 0, + "current_page": 1, + "page_size": 100, + "total_page": 0 + } + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Getwallets", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/wallets", + "description": "The return field as following\n\n| **field** | **description** |\n| --- | --- |\n| stark_key | the stark public key |\n| stark_private_key | the stark private key |", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "count", + "type": "STRING", + "description": "how many wallets you want to generated", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/wallets\"\nquerystring = {\"count\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/wallets\"\nquerystring = {\"count\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "wallets": [ + { + "stark_key": "0x579cf4bab9f32cc1bd3963df5abe5668926388bca0664c482603f70d189fef9", + "stark_private_key": "0x61be637f9964baafe5d9c4fe7d39f867f04998fd22c5bd187b4d97f1fa0cba8" + } + ] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Getrecordbysignature", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record/by/signature", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "s", + "type": "STRING", + "description": "signature S", + "default": "" + }, + { + "name": "r", + "type": "STRING", + "description": "signature R", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record/by/signature\"\nquerystring = {\"s\": \"\", \"r\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record/by/signature\"\nquerystring = {\"s\": \"\", \"r\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "Key: 'GetRecordBySignatureRequest.R' Error:Field validation for 'R' failed on the 'required' tag\nKey: 'GetRecordBySignatureRequest.S' Error:Field validation for 'S' failed on the 'required' tag", + "error_code": 0, + "data": [] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Getrecordbysequenceid", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "sequence_id", + "type": "STRING", + "description": "The sequence id you want to query", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record\"\nquerystring = {\"sequence_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record\"\nquerystring = {\"sequence_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "no such record for sequence_id: 613597", + "error_code": 500, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "GetRecordsbystark_key", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/records", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "stark_key", + "type": "STRING", + "description": "Which stark_key's record you want to query", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/records\"\nquerystring = {\"stark_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/records\"\nquerystring = {\"stark_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "OK", + "error": "", + "error_code": 0, + "data": { + "list": [], + "total": 0, + "current_page": 1, + "page_size": 100, + "total_page": 0 + } + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Aggregationbalanceofastark_keybycontractaddress", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v2/balances", + "description": "The API aggregation balances by contract address, for previous API, each NFT have an asset_id, but in this API. NFT do not have asset_id when return, but has token id", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "stark_key", + "type": "STRING", + "description": "The stark_key you want to check balance", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v2/balances\"\nquerystring = {\"stark_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v2/balances\"\nquerystring = {\"stark_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "Key: 'BalancesRequest.Account' Error:Field validation for 'Account' failed on the 'required' tag", + "error_code": 0, + "data": [] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Listallcollections", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/collections", + "description": "The API lists all collections on Reddio's layer2 system.\n\nThe return field is like the following descrption\n\n| **field** | **description** |\n| --- | --- |\n| contract_address | The contract address |\n| symbol | The symbol of |\n| type | ERC721 or ERC721M |\n| total_supply | Total Supply of the token |\n| base_uri | The base uri of NFT |\n| asset_type | The asset type is calculated by reddio, the definition is [here](https://docs.starkware.co/starkex/spot/shared/starkex-specific-concepts.html#computing_asset_info_asset_type_asset_id) |", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/collections\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/collections\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "status": "OK", + "error": "", + "error_code": 0, + "data": [ + { + "contract_address": "0x7aa39c13dd6E7a30b1DbDBBE350A1Cb992Bf28da", + "symbol": "Seoul", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x10c64cd74016b5950f56e1f4cb756401f0125e26cb8b9ec52e09af8e8064e0d", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x54a1699bDf6Eae6aF3517e185614c930487b6375", + "symbol": "MC6", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0xc4df1a83595bd0ebc3bc703154606c80de25a7abf1350283dcc55e4a2a1a61", + "base_uri": "" + }, + { + "contract_address": "0x4a0426acfdd73adeb253338b2dbd49d761e1c640", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "20", + "asset_type": "0x27ceb32694ca430d4481674dfeb986d6da3985ba6a017a623a5f0f6371681ea", + "base_uri": "" + }, + { + "contract_address": "0xb9e519de06ad85607ae0b0651a8400c604f90b8c", + "symbol": "TF", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x17366f1ce5c71c7b5c3af7da26d2c8df6e78fe8f1b54282d2755a136a074fa9", + "base_uri": "https://arweave.net/Rq2eewkJv54wPqL1lH1RgrtyeGdRjrkPwrMW6BMVxJk" + }, + { + "contract_address": "0x41c8857d877867859b8342581059cfe06e287800", + "symbol": "TST", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x37523f3909cfc5f4b770144ded5685b97c67a983ac7ba0ab63d913b6954e10f", + "base_uri": "http://www.example.com" + }, + { + "contract_address": "0xc1f3c88b80ff0cccae403995146f94869c0d086c", + "symbol": "OPP", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x134698fc429d41c51b88997997df2a271affe96acfa8722dfd9fdfb22c5dca8", + "base_uri": "https://patreon-api-staging.opencord.so/tokens/" + }, + { + "contract_address": "0x126d8CfeA2a655aa094F28C1af23f6276DBE2b43", + "symbol": "22", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x111f9ae1a7fb9c1b330a8fa2fd10cd5eb6795527e8b9959d2f88b413069c615", + "base_uri": "" + }, + { + "contract_address": "0xb3827327b2e1a00f63f7f0752fcced4856a07759", + "symbol": "ogbc", + "type": "ERC721M", + "total_supply": "5", + "asset_type": "0x1397559dfe4bfc24ebbe39c675c0a788b043c835018dd1d652b0f5b9cc6cddb", + "base_uri": "https://8b66-132-147-119-239.ap.ngrok.io/api/" + }, + { + "contract_address": "0xdd018009e6553fd657c47910615b7803c1501be4", + "symbol": "TONGTONG", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x300091a4955e73c47cdcdc78917697525db3ac7fc16d5705397403ae0da488d", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image76202303081622039U9UNC/" + }, + { + "contract_address": "0x6c70855638c6568fcf182912f639a2b0e0fef907", + "symbol": "baggs", + "type": "ERC721", + "total_supply": "", + "asset_type": "0xb8dd2d818d4d121439920b59243d9574f1b27a609d76f1abc63a54ee3662f7", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x16D5d284f91d103a6C02Dc40E94D40CF02Ce6Fed", + "symbol": "21", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x173babbe7ea02d3d59f95c4edf17ece5f55e09dc7b6ad7a5442fd799eb4862f", + "base_uri": "http://" + }, + { + "contract_address": "0xe50c368000ec153e7451fecac2556bad67f6bb49", + "symbol": "assss", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0xf6b1a20423f03e11684efee934f97f2421d0ff484fc874a6eb293199575289", + "base_uri": "https://aaa" + }, + { + "contract_address": "0xa9c2df432f808a8787f8eae3d958a3e08cc989a9", + "symbol": "v", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0xf450cfb34e6bfe8d188afa8a8567463dbcefbacd445876e0e8317bdbe65757", + "base_uri": "http://ab/x/" + }, + { + "contract_address": "0x165eE68F84ED54072D6f4e7521A476e1bd4325a4", + "symbol": "MC", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0x47d1b562d7292b0aabe3f4ec93ff4a181a1875f6c2d585e7542b855531ba2d", + "base_uri": "" + }, + { + "contract_address": "0x84138df0ddaa19140d59ce11b95595d95f850f70", + "symbol": "KPDDIO721", + "type": "ERC721", + "total_supply": "20", + "asset_type": "0x2c1308348bca5f5c5a818377ebfdc4347ab02e701fc4854c621145ee00f845b", + "base_uri": "" + }, + { + "contract_address": "0x3fb44bfa72591ff4be8bf048384b17c2fdaf9622", + "symbol": "CNFT", + "type": "ERC721M", + "total_supply": "13", + "asset_type": "0x36dbc781c39a2a558ac8e801f225100a66918c5ea790479ba512a37fc2cd51a", + "base_uri": "https://nft-marketplace-l2.netlify.app/tokens/" + }, + { + "contract_address": "0x7aa10dc07a32bf7284171594839ac3b86d7a23aa", + "symbol": "TT", + "type": "ERC721M", + "total_supply": "360", + "asset_type": "0x3444b2e3a0c99e33dd07e4cf37bb6756edf109cced5ab3c9f62ea35d3882a72", + "base_uri": "" + }, + { + "contract_address": "0xcbcc16386667432f6aa654723c2ebbc7fe336ead", + "symbol": "SYN", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x1e3aaedc35ccd729e7301d3db720c4ec284e6cb9a89eaac7a31076721bcab81", + "base_uri": "" + }, + { + "contract_address": "0x322fe8c995d269d230734418d0fe8d48d2ab7ae3", + "symbol": "starknetcc_india", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x32b4688cf859c88c2573583a6876df22429add9f0e2e812f0028582ae283ff4", + "base_uri": "https://metadata.reddio.com/api/tokens" + }, + { + "contract_address": "0x2c85D41dF19269aEFefbdd5E1a2A78A4D99cC13C", + "symbol": "RDX", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x254e079657220a0a1cc02a6783e08e3e78d78b0fd7555950ac2aa763f84ccc", + "base_uri": "https://twitter.com/yql311" + }, + { + "contract_address": "0xdE644Cb7D199a1d8A4A04d5685F106Dd77c92e32", + "symbol": "MC9", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0x19b93f2f93d41975f34bdd946ef8ff0b47bab4ee90707bf527edefc245660c4", + "base_uri": "" + }, + { + "contract_address": "0xb6a6aeecd7c25e2fdfd008cc0365cf23dea965ac", + "symbol": "REDDIO721", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x6502b09ae478903378624e973c55704f3a629e55c0d7e65531e5f96291a82f", + "base_uri": "" + }, + { + "contract_address": "0x21562034154c968879e1b5190384024b6dc681cd", + "symbol": "REDDIO721", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x2f328232b745048f66168672f119426bcb61cec8858a34e3edd65011a2f7978", + "base_uri": "" + }, + { + "contract_address": "0x2abafc3259b715e8c47da79fa7c86c66b4386e19", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x22c9d66c0f0658cbc6e788d87fbd8cd544e1dba3bd8a4331c0aa81e5dd91649", + "base_uri": "" + }, + { + "contract_address": "0xec7b8fec6c89daf59660d52934bb4eb839418fae", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x268695733307ff4fff1a4e9842263b03312fea05781196e1d5c87825c487a72", + "base_uri": "" + }, + { + "contract_address": "0x5Cae4B8D0419F7383e3ff274927ac3aB3AeF72CA", + "symbol": "2", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0xe110935040fbcffcfa86bca2a0e808e70839781ea537ecc24b5c9e5acab28f", + "base_uri": "" + }, + { + "contract_address": "0xed74e5bf4131c5f3b30f68c5d743caa20b9677d7", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "30320", + "asset_type": "0x87bc27f247e1d8d398a3305eaa4ba86d7509124cfa5268e4db1ab177f3687a", + "base_uri": "" + }, + { + "contract_address": "0xc011db2cf9e206ad85f575b4d9a65ca7a5984a4f", + "symbol": "MMMM", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x18fc3d4910dfbd343f5b67a3fe602af533b9f6986d9bc2472c4390a19a3cec3", + "base_uri": "http://x/a/" + }, + { + "contract_address": "0xb2a03d469c302169335f018f1b859a67437af69c", + "symbol": "COLLTESTKO", + "type": "ERC721M", + "total_supply": "61", + "asset_type": "0x3cf19c4db04d510b164462cfa3e1644067eba8f64ba637bc48a6e91ada8c9b5", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image5220230327165708TCCJYT/" + }, + { + "contract_address": "0xb95623b1d26a6e892c5B4e7B15B83D134156f3AA", + "symbol": "MC7", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0x77520880ddb1e5eabc51cec2f1786d23020a366ede198333abbba747a66329", + "base_uri": "" + }, + { + "contract_address": "0x2effcbeae531a104de43e0caa246b15b2a2d90a5", + "symbol": "s", + "type": "ERC721M", + "total_supply": "8", + "asset_type": "0x3fe6385d93b1d2b9c4e0329047ecc183d6e0b812cd49dd20e2de1afb4ee44fe", + "base_uri": "http://ab/c/" + }, + { + "contract_address": "0xdC47fFEDCE510d61D6E03e00213284B6C4e94A18", + "symbol": "4", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x13598ec254c3eacfdc4babb6f7e4ea138163f3211567134fc6811e41781be3a", + "base_uri": "http://w.com/" + }, + { + "contract_address": "0x5418bacaf2fc1955876bf69bfbf3f99948fa20c8", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "11", + "asset_type": "0x2c95500c03133250134c0f620f6d3de33332d075b342d824557f1da4ee1846e", + "base_uri": "" + }, + { + "contract_address": "0xe8fbfa3b5a8da08913c3cf65dcb5ea5fcaf31d8d", + "symbol": "Buildathon", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0xaff688cc4d023a53436b5ebc4f6f9b08a57964c51fa707c67665a0b9ee8780", + "base_uri": "https://metadata.reddio.com/api/tokens" + }, + { + "contract_address": "0xa5864abaab46d01412d154cd8836e62d201be436", + "symbol": "REEEE", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x2b99d3df2b70eec7253c78c1c4a583bd49ceb4bd341c401ec72d31d2aab4b47", + "base_uri": "" + }, + { + "contract_address": "0x06e24a34b72597a3fe9a1f5dc8e1aa4e5098b193", + "symbol": "test_india", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x222eab18be59639eebfb43aa9ac68fd8482eeda7ae8198f4b8e28dfab22cef5", + "base_uri": "https://metadata.reddio.com/api/tokens" + }, + { + "contract_address": "0xd106daeec50707eed579f5c3b262fcdb0bfdfc63", + "symbol": "t2", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x328d4fc222ad883903cf238e31eec4763a97a8b68f17c2d1a755cf2869ccd6a", + "base_uri": "ipfs://QmPBsGvpkAVLo5SdsUSPPr2cTrXSrA7pdgnLWh2XRXbor2/" + }, + { + "contract_address": "0x5712a1bb94616a0e6b064584af02456d2804a48f", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x2be0f056e7fa326ba43ea0585d5e9b3ef7d3525c20ce42e7475c2cffad5a898", + "base_uri": "" + }, + { + "contract_address": "0x649ed8b1fa032ccae619ad37742b08123001f8a5", + "symbol": "instantbuy_art", + "type": "ERC721M", + "total_supply": "93", + "asset_type": "0x27a19c754676529533d876c8652121f8eaf5cb8b444b20a9a5595ea4533e517", + "base_uri": "https://nftinstant-art.mometa.io/" + }, + { + "contract_address": "0x166f2b8fdceb1dd2b2451e7d37a064a8944c9760", + "symbol": "sssd", + "type": "ERC721M", + "total_supply": "3", + "asset_type": "0x33c72300c9e8b22d36a9c86485337571b0badf41f59065a82edfec82327d9d7", + "base_uri": "http://s/y/z" + }, + { + "contract_address": "0x7327417533B98B9c376487C4DFa377982D27C3AC", + "symbol": "NKD", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x160efadd086f85b4c2f400c6b79e608ca1c9a2e4fe3ffaf8e8955bf50e32328", + "base_uri": "" + }, + { + "contract_address": "0x1e9c60d4893d784f8a65f316c586d49f499e12b4", + "symbol": "w", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x1de2e03518607e755734208fcb442068c26cf3cd1e0b06c4d550c59702730f5", + "base_uri": "w" + }, + { + "contract_address": "0xcda47EB820Ca30bB666FB0607874CeA95Bd0934C", + "symbol": "2", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x15f246107005536f0d77b88b5e7798fadcc357206924fa4d81b79808f6018a2", + "base_uri": "http://1.com/" + }, + { + "contract_address": "0xaC96791631FD171756856A0eb94857346e2184d2", + "symbol": "x", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x38c077e234b394ae3c6b9061a1affe4f8a85550754774e2dc3c2d4e42779d38", + "base_uri": "https://reddiousermetadata.reddio.com/2a0976c6-8633-4be0-afbd-0cbdf6c3be31/" + }, + { + "contract_address": "0xd66362e8ff8d5def8c8ead34faa74c038745ccea", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "101505", + "asset_type": "0x263df4de3a10c5fe51d70bd366c2f4a5fdf8a9d29d3a2c92728046648e53b5f", + "base_uri": "" + }, + { + "contract_address": "0x86baea571d80d21a38a56ccb4eaa31748e72cd4a", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10000", + "asset_type": "0x96ba10f701ce832ae2b8ff894d54bf20213e484a8ffaf7e5c87e2e021315bd", + "base_uri": "" + }, + { + "contract_address": "0x60d9521a889f8bdfe529a8bd162aeef08f3979f2", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "1000", + "asset_type": "0x10fba886d9ec1f0c794e6868d28e5b132d7cf471cc12c25cb2008808fed9bbf", + "base_uri": "" + }, + { + "contract_address": "0x28a5b4d9f77863cde9e98c8d81ad0b8275addf0d", + "symbol": "starknet_cc", + "type": "ERC721M", + "total_supply": "30", + "asset_type": "0x1d0f7bc0ae818316484a1f92a362c7a05c9a631fad90440884b00e12f0f8928", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x42358608854130d48680bb5752fb37effaa807bc", + "symbol": "b", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x9b08b11762de47324a77d0c011d5aded27c8de3ed0f3777fd6dbc40d637524", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x502b8629Da2f9B4a6895901F027b01B21238f9ae", + "symbol": "1", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x129c53dd6a09bb4502c1eeaf4ecb0897c55c95091bfbeed2e3b709f1ea812f5", + "base_uri": "https://reddiousermetadata.reddio.com/a3d14a2a-5495-4bfe-acb0-7c120113e94b/" + }, + { + "contract_address": "0x0265cad32e7f8fc0652a0a98ec6c114b29df56d1", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0xb2c9515c3d6446db37fc4cc495ccf5add5008a83ff4c434d7619f11de7ae36", + "base_uri": "" + }, + { + "contract_address": "0xbce2ea5ca5dc7ef8afd918d4c787e9b359565ce6", + "symbol": "KTDDIO721", + "type": "ERC721M", + "total_supply": "30", + "asset_type": "0x265e006b3db3ad5c694caee0d10f6b1b2ef6d93c082730cde94f9fbdeb57fc5", + "base_uri": "" + }, + { + "contract_address": "0xf00063c3787a1e025b9a89fcdd33a12858bb3160", + "symbol": "STN", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x27c47f1dd9b72fe8fbc41adcd0e3d885b978c7a8111f6e4233cbed3276a73e", + "base_uri": "http://123.206.199.14/tokens/test/" + }, + { + "contract_address": "0x5fa4ffb1c82017211408a5c829b9ee158302e362", + "symbol": "K888CHUP", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x304fd75bbd96129dd0b0920ae8f32d102ddd4340778925ae21f0529e379106a", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image1620230309172602TKSCV9/" + }, + { + "contract_address": "0xd183ED7b1E341A781595D0d21fab05901E299a7b", + "symbol": "22", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x34c3ae004927626b16b81f290c0f89859f30445563e1a7ad05047903d9782de", + "base_uri": "https://reddiousermetadata.reddio.com/945b74b7-c0f4-46ce-8044-9da05823d20a/" + }, + { + "contract_address": "0x35b346a2bc5f90855340b50325f727083691063e", + "symbol": "REDDIO721", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x2d6e7b6a8e809f94ed4bef245e06437c18e033044a5787e15eda57be47929f", + "base_uri": "" + }, + { + "contract_address": "0x3752ce5b7e7585bac94e652b452cdb1c6f678976", + "symbol": "Card", + "type": "ERC721M", + "total_supply": "500", + "asset_type": "0x3936414d4470e5bc849d7414dca4cc198680e18f9c4724416bf996ec7f38245", + "base_uri": "https://assets-reddio.deesse.art/" + }, + { + "contract_address": "0x60ea40ecd7c395f87b1632c3c58f3a05d476dd10", + "symbol": "x", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x1f20023f46b75694aae02f3627af99a841bd46a1b759bfc3ef1387f000d3cbc", + "base_uri": "" + }, + { + "contract_address": "0x3b5bd911549778be5b501859e1b92ad440db1e9b", + "symbol": "test", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x1a5352b910c6bdf759c5f0b6a7bf7e852f580a1d3df4f123127926b71817d66", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0xf2fb4E061DbE0f9D74b3599601D3fEAE47EFCD88", + "symbol": "33", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x30898c840c38dd93938e376d7d222e9c24324ade02526f30f0bf2f62a0f8162", + "base_uri": "http://" + }, + { + "contract_address": "0x8a54B9c349c1839ea7E4c4d4a7E761c7DfBA315e", + "symbol": "2", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x1fef4041521e5a7b1db29a0fd43d3f4b950f3c563cfd114611a60e5b31b58de", + "base_uri": "https://reddiousermetadata.reddio.com/7123b48c-90e9-4988-bd1c-f695dbfbed04/" + }, + { + "contract_address": "0xc123feb99ccdc3d7c711192173e3ee25729e4ba2", + "symbol": "MSQ", + "type": "ERC721M", + "total_supply": "9", + "asset_type": "0x1c52223a95cbe485679d594e5faa61d1f77671e15dd78ec6e25e2df006fb242", + "base_uri": "" + }, + { + "contract_address": "0x1fb612d5f13a2ed6af21b82ab30e1b30a903e78d", + "symbol": "TST", + "type": "ERC721M", + "total_supply": "25", + "asset_type": "0x3a43d52276f3df629cd24e0dba983494b01889ff67739f5778755a2a523693e", + "base_uri": "https://www.daohall.com/meta/" + }, + { + "contract_address": "0x67729ffadb2361c26b5b32ad695ff3987cc27495", + "symbol": "hackathon", + "type": "ERC721M", + "total_supply": "5", + "asset_type": "0x38089d697f58281001d033f24cff9aa7e6a6e98aa0bbf075b001894f0047c92", + "base_uri": "https://8b66-132-147-119-239.ap.ngrok.io/api/" + }, + { + "contract_address": "0x338b939fe530472742b6fe895be5a55deff272a4", + "symbol": "networkstate", + "type": "ERC721M", + "total_supply": "5", + "asset_type": "0x2b63341e317a5a5a6d8547f6b99a3d9ef38d4c682c148e88dae10df9b33e1fd", + "base_uri": "https://8b66-132-147-119-239.ap.ngrok.io/api/" + }, + { + "contract_address": "0x5AC9fAaCCCa3D5606BE9feFD7B1ad8DDF5C8bc94", + "symbol": "1", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x3f72d6b98fe80b1e849626984fe670cdfe06a97cec97614027561a3c25aae76", + "base_uri": "https://reddiousermetadata.reddio.com/c3b884f2-70a2-4c5d-95fc-227cb8a3100a/" + }, + { + "contract_address": "0x5866f97FA8e69a56d3109E262a3FE8CF94D1906a", + "symbol": "ERM", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0xa5cf65cbda89d58cfef41aa19e9009137466ded285d4d39c4a65adde59982d", + "base_uri": "https://reddiousermetadata.reddio.com/dd3c7461-c91a-42a2-ab5e-e3c23c389d85/" + }, + { + "contract_address": "0x6049b2291938da7097fe989c0e530299fc33af3f", + "symbol": "Card", + "type": "ERC721M", + "total_supply": "1", + "asset_type": "0xc98845370a155c8fbc1f180bb3f85244d36155bb99dfb2a11bc00043f78ba", + "base_uri": "" + }, + { + "contract_address": "0xba09627ff112c0f2b204cfb9056d06ff59e0489a", + "symbol": "vvv", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x3215961072e47d4cdb48c7aae8f7e9c611b7804a9c492f896e625eec29cacd9", + "base_uri": "ddd" + }, + { + "contract_address": "0x739103a755a9cebcc584a39a663fee93a889c703", + "symbol": "PASS", + "type": "ERC721M", + "total_supply": "1", + "asset_type": "0xecf9b83ebdd2ade859e355f81ce95c44c82dff2f858314b4993f52826ba61c", + "base_uri": "https://patreon-api-staging.opencord.so/tokens/" + }, + { + "contract_address": "0x764db6581da787d54f61adf8cd619093a5c5e824", + "symbol": "MAER", + "type": "ERC721M", + "total_supply": "7", + "asset_type": "0x333ad685ac62afa459ee4284aed0c2a62ca73116cd83004140bac3a120bcee5", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image4620230601204310V3BS9P/" + }, + { + "contract_address": "0xcc9FA3eEB891234d4658E47e2027b3157B1F04FD", + "symbol": "66", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0xceabdb64abe3a7d4da308a682a94b99344bc3c44d2372145a05a822a766378", + "base_uri": "https://reddiousermetadata.reddio.com/0ca742b4-1ad7-49dd-89e7-3757ee8c2500/" + }, + { + "contract_address": "0x90414946e7de1126a77e932e3285faae8beb3f2a", + "symbol": "test1", + "type": "ERC721M", + "total_supply": "2", + "asset_type": "0x2173f1409ad01696235d7f0f3c8d4e73a7fb17e019c4720b8f047dcc43fa6d5", + "base_uri": "ipfs://QmZcH4YvBVVRJtdn4RdbaqgspFU8gH6P9vomDpBVpAL3u4/" + }, + { + "contract_address": "0x51e70a076ecd906d3d095ee4bf51438d8aa5f7d7", + "symbol": "HelloNFT", + "type": "ERC721", + "total_supply": "", + "asset_type": "0xb7158af10b1d4d2f38686ae4a3fb5b6260dfe8479687f1ef443f763be0c930", + "base_uri": "https://metadata.reddio.com/api/tokens/1/" + }, + { + "contract_address": "0xc5B9Ab6916890Dd6Ee7FD55Bbb6302f6dD4e47Cc", + "symbol": "sss", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x73345aa0ef5df883ec11587c2598906a32a9e865f9846d1d12659c1f35d5c9", + "base_uri": "" + }, + { + "contract_address": "0x6f3749e124aaac9a88658d0f5e56d3c7c1820a88", + "symbol": "v", + "type": "ERC721M", + "total_supply": "119", + "asset_type": "0x188da44917c1ee5c21af5b3dd3a8820df65c07a57a92b84dfee93778cbab992", + "base_uri": "" + }, + { + "contract_address": "0xd6287d7f269cdff46651d9c9f56df819d081d495", + "symbol": "MYT", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x3722eb1c34285c4310ba7c07e115bc99628014b4cf23af04070a7051719ed72", + "base_uri": "myt" + }, + { + "contract_address": "0xa798bd3e72c36325f116130658b245fae4164219", + "symbol": "v", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x2676d464ff467ad55eff17634c71a9ebc35c8f6d90cf30659d84f37caf7ab95", + "base_uri": "xxx" + }, + { + "contract_address": "0x6e2f0276f9ad00747f2c34273999d9ceaeaa0d0b", + "symbol": "d", + "type": "ERC721M", + "total_supply": "13", + "asset_type": "0x2ef5391e4c0ffa8f19a7a7f768c770f6e8f4e8d47b94d80948c8b33c033734d", + "base_uri": "" + }, + { + "contract_address": "0x7b8db0644f94123eef8bda90f28438f8620f9f40", + "symbol": "starkwaresession", + "type": "ERC721M", + "total_supply": "15", + "asset_type": "0x24f9e2108941513248aa66ac5025a12f4880ce2bf565a58a85d9bf7d380253", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0xe3d2a2ca17a8dedb740b6c259b4eeeaaf81c9fb6", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x38d7fd844ac00a8b0049096e7e5c10e93d0d1eac2e269268016205e8386ed3c", + "base_uri": "" + }, + { + "contract_address": "0x23b6Db142012368e3FcE7dbAaC9702890544975f", + "symbol": "1", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x2bc8da9561b279bb3bd4ca9a4769355f1401c6e2798ee35f56a4dc84126f0b2", + "base_uri": "http://" + }, + { + "contract_address": "0xb053e8C672027664157470Cede93e16c09a15798", + "symbol": "DMT", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x2f2c5b7570218b9c0c14b740b9f00d415eb5eb62a44b47dc20e2a64d7e9c83b", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x6E756a1F23f60828E15eE91e0aA9516D152d903e", + "symbol": "NL", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x14505733f191049b7c966004aeace4e4b1fa03cb41ad2a1a1a29b2b47a21d9d", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x0e59f88c525499560e5eb2831593fb8d8a824f9e", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "100000", + "asset_type": "0x1870c7756cfb33d97c93f08456a3197ccf9e91f2d162f0c2adfc280e60a1417", + "base_uri": "" + }, + { + "contract_address": "0x0562193d72477a3dfd273f1125948234a49aa584", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "101500", + "asset_type": "0x391e708b5c272e430192d11385fa867079316ee73c6047390966df75f634268", + "base_uri": "" + }, + { + "contract_address": "0xfbfc823f1ce04442a09a3dc48bdf84c4e4cff9ee", + "symbol": "v", + "type": "ERC721", + "total_supply": "", + "asset_type": "0xfe2ff00a8ebef67841dc00e9111d49525b6f2657a2691e3c9f5e355abfe495", + "base_uri": "" + }, + { + "contract_address": "0xaf8ac248b5e769f339f09f3f0c95ad03a66c159b", + "symbol": "BRON", + "type": "ERC721M", + "total_supply": "12", + "asset_type": "0x38b26da836eeeedcbc0c7409223cf508ac94731a506499d93b316623f623260", + "base_uri": "https://api.brolab.io/tokens/" + }, + { + "contract_address": "0x3fc945Ad343b3B15a8E9A1C8681C506336a93a85", + "symbol": "mc", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x229770d3d1930560dfb936fe8aff90722109025e5abde4ba62504063b9f0814", + "base_uri": "https://reddiousermetadata.reddio.com/5265d78b-c8ba-48be-959c-3874925b8580/" + }, + { + "contract_address": "0xe8e4b0ed914b82080e684ce41f995b21693a15c9", + "symbol": "", + "type": "ERC721M", + "total_supply": "", + "asset_type": "", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0xACF20a6cA235EDb5a4AC5517F6EEad35D5845f3C", + "symbol": "33", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x19bce694692c41a1bfc5ba02d6c23f315c0c36572c8dfc207d9240224a5977c", + "base_uri": "http://baidu.com/" + }, + { + "contract_address": "0x79319C2a8A5e155e1C87154684c7fc60dfAf0759", + "symbol": "1", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x1b31104e7ce502b67c52b9b76559431653ebf8401b9bc465d6eaf613259df8b", + "base_uri": "https://reddiousermetadata.reddio.com/26347e68-5b30-480d-aecf-dfc57cb189c0/" + }, + { + "contract_address": "0xa8333db9f1188323f644251ee80e906abfd3e431", + "symbol": "asdasdasd", + "type": "ERC721M", + "total_supply": "1", + "asset_type": "0x1c3cbca68864b65dc61f476562e2f2add549fff0397a42af14315ff169ad749", + "base_uri": "aaa" + }, + { + "contract_address": "0x9c0abee24c31d635d937cd1c86ee18797e4c4d6f", + "symbol": "TST", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x232154857ee1730a8d124358ec25cedde8f6bd5dbb57028ebd2e1d6221bb86", + "base_uri": "https://starkware.co/starkex/" + }, + { + "contract_address": "0x66983Ac4AD477823f0f88902BE27718a35dCe80d", + "symbol": "NKD525", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x2284f8ed04a6f86df4ea7beab7f15716d3cb3e4e19558c8cccd9d031e96ea3b", + "base_uri": "https://www.nkd.tld" + }, + { + "contract_address": "0x33DBd59160CD1064729D68885fD74f4447bd1F92", + "symbol": "2", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x39c1917ef5fda67d47a4d78c5a322e174d4246595af9d843d240a903a7d5720", + "base_uri": "https://reddiousermetadata.reddio.com/3ca8b6e5-1e00-4173-afe0-c53c58a8d4b9/" + }, + { + "contract_address": "0x2Ad159bc6242699BE7fD2968B1bD950704bD6207", + "symbol": "33", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x3aa1d1dcd7753fa411975f5af8747f789b0ae4bf5da140e7719b4f7973e813", + "base_uri": "https://reddiousermetadata.reddio.com/4e041131-fc3a-4b98-88ea-0311f0b5c5de/" + }, + { + "contract_address": "0x6eb60e860395b8604673b23be808ba5fd7a8fd79", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "20", + "asset_type": "0x3a625e1383f2cf8fb9ccc5ac560e0695a4548263335e186417f45a7ed35358c", + "base_uri": "" + }, + { + "contract_address": "0x2f694f542ea2bbe3fa5e242e8f11de7c92060d31", + "symbol": "s", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x1f5a2798f04e95ddcf9d2a1221f209cb69a9d6bd7aa2e8fcac881f4ceededbe", + "base_uri": "" + }, + { + "contract_address": "0xe115e55a7024e1c3a5141d2b40ca58a0b5320d47", + "symbol": "G", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x3d17bf55de535d375ebea0ceb2326989aac56e41c3b8e949b8cf5cabbd1e399", + "base_uri": "https://api-dev.reddio.com" + }, + { + "contract_address": "0x2a3B0659dB19e4F1ED0Cd9E50769CC9ff2B1Ba37", + "symbol": "sss", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0xc4f86a055bce9ee419a4cc945e538a151220105774d4e96cba979fc451f90a", + "base_uri": "" + }, + { + "contract_address": "0xEf6c8542f6b46F94d0C43499fDCdc8b1cD516607", + "symbol": "HR", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x1814fd7480c410547ae341b61f99d7750981e447d04c0731ef1a939ec2ad29d", + "base_uri": "" + }, + { + "contract_address": "0x5db9142c88678724f54b460f6437097ac40d1a15", + "symbol": "PASS", + "type": "ERC721M", + "total_supply": "7", + "asset_type": "0x3e1675f10b028a61d03675e0a5364d6ba00b1e10f5326518b4054f1be85f288", + "base_uri": "https://patreon-api-dev.opencord.so/tokens/" + }, + { + "contract_address": "0x0b26f9dBbEeF0636e90a98651a693Ceb1769d16B", + "symbol": "11", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x5836f15aead555b938a0d56b156fed17836162412ccc77a2e675bcb66336e6", + "base_uri": "http://1" + }, + { + "contract_address": "0x3e4122bDC83e70AAe01F1aFe53eddc26c7AE02A6", + "symbol": "22", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x1c77e09434e64f437339d1d14ea17bb95bb2fa338148f2031a054b358109335", + "base_uri": "" + }, + { + "contract_address": "0xe7ab46dbe269c0fdaf13f5197c99a7b75a2f7a34", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "113", + "asset_type": "0x1687c1dc801207159d55d74d2409c9a4b0bee6cd0d67c11b91a34d47b67ebc6", + "base_uri": "https://testing-data.reddio.com/metadata/reddio" + }, + { + "contract_address": "0xa21b04b6dbd1174155e242434b3df2eed74bafb2", + "symbol": "RDD721", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x287168f2b3c67ff9182cc9496c7d591c2552a9f82b0d5d939a80123ac8a4d29", + "base_uri": "https://metadata.reddio.com/metadata" + }, + { + "contract_address": "0x86c9ba1d11fecd7548b1c2dc5ecff21bf8cc5616", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x2623c3deb44b07fd979bad04321bd7538d7e43a0a91888c290932acc96a97fb", + "base_uri": "" + }, + { + "contract_address": "0x68a39b95fb90a2b9ed4de6d55e113e88724d06cc", + "symbol": "DORAEMON", + "type": "ERC721M", + "total_supply": "2", + "asset_type": "0x11b644a9ea138f4653fdca4d738cedcc9d3b71dc75fc0c491c19613c85ce411", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image2020230223095557NS8LV2/" + }, + { + "contract_address": "0xfdf73f376738c251fa40375f127321c52ea1d8bd", + "symbol": "KOOLATS", + "type": "ERC721M", + "total_supply": "23", + "asset_type": "0x2bdf7f9fa2a62cbd59d6402489b3328fc840646fdf6da217be4880922893f9e", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image6320230307141701BVKTPG/" + }, + { + "contract_address": "0x8964A54A145C803074e5363a55EE6e6dce5E76fa", + "symbol": "X", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x38c8b93f3438c189663bc3bb515f0aef1efa0581756d8873e46094417c20bd0", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0xf6e2055dee328ecc4dd8d5943f59f470d94b7efa", + "symbol": "s", + "type": "ERC721M", + "total_supply": "1", + "asset_type": "0x297cd7c3a329cbe3646d8fc0ec61dc7cacc0e5498716d0d5e6d1828323406b2", + "base_uri": "http://a/cx/x/" + }, + { + "contract_address": "0xdc5e721c469763a41a26afbc3bf12fe3ec3557d9", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x9c557ccbe6f518b726684bd9a6d439ed118bf91693567e170a71dc7481983b", + "base_uri": "" + }, + { + "contract_address": "0xa1f06ce561fab546e20815e9956d457aff567504", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "12", + "asset_type": "0x3f934cf811226c8af441efef27491a1df54361fec081cb8a9c50b0ad25df721", + "base_uri": "" + }, + { + "contract_address": "0xe4db0ced9cbe4a346fd3097bddf7ce1a8d079169", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "264748", + "asset_type": "0x3760cd20914984663036108ec8cb5895762eb3f02a337d62e1184de17adaab1", + "base_uri": "" + }, + { + "contract_address": "0x941661bd1134dc7cc3d107bf006b8631f6e65ad5", + "symbol": "REDDIO721", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x2b405eba724b638f4cf82ccadcd2741a120d2dbc69cb89a5fc315a9c443d592", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x925a9294e786aaf015d04d9f9c89659d539f2ff3", + "symbol": "me", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x399282fea70f9d997502d5e24a6347a57591c5e247a217883d9a329c463ce19", + "base_uri": "https://www.google.com/" + }, + { + "contract_address": "0x3649258ae7d943b41a621f113de82E7FC1a0cfA7", + "symbol": "mini-test", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x3aa2e500fd89476766bf44452dab3228cbdbd1ff95a6d19c95622ed834a577a", + "base_uri": "" + }, + { + "contract_address": "0xd921E621526050A6404Ec4640a5F10E6950338bc", + "symbol": "GOGO", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x3b353b5cf0b5d6892260045c2d6341f01f991ff24816f5ec12268e9907b4703", + "base_uri": "https://reddiousermetadata.reddio.com/79e1ffc4-2a28-401b-a838-d5d62705cb67/" + }, + { + "contract_address": "0xb82b75b619775cae4ec818c9d61eb50e6b89ab73", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x24373827fbb5ac2efe46efc3a03f792b6055a7f6c9f5925643cdc5488c5f7ed", + "base_uri": "" + }, + { + "contract_address": "0xca2314c1ef4f7e84a6c7baa62802e86641953bde", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "60", + "asset_type": "0x1ae4f7db29278cb1dfa8b6fa7c67a1be1dceec2bba2fd0be8e2ca9623137d49", + "base_uri": "" + }, + { + "contract_address": "0x6b4f24fd500bedb945fc8b93882766bb5e7cf620", + "symbol": "TNFT", + "type": "ERC721M", + "total_supply": "4", + "asset_type": "0x192d4e45ee1f1aafb1bdc78ab03219e89378203cce99810ab5a288fbfef127a", + "base_uri": "https://nft-marketplace-l2.netlify.app/tokens/" + }, + { + "contract_address": "0x639f12e798a8f2e4d1afd4e7cc5f507f9d947d69", + "symbol": "vietnan_NFT", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x197901a878015ffea2b7c86f0f8b5708b422511ebcecd9c4365ccdefc9e5318", + "base_uri": "https://metadata.reddio.com/api/tokens" + }, + { + "contract_address": "0xd1b86dff89262d0028472257629ec5a1e5003f3a", + "symbol": "test", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x1f6d813c3e68567ce4a19e8bc0d9ef5b9aac29a547fe37eca674b42a6bfe74e", + "base_uri": "https://a.com/" + }, + { + "contract_address": "0x2021583e471B0D1dd3cBAd2262D791AF46cE6e9c", + "symbol": "44", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x149f29adb50e43cda2fefcdd22a3095bcee0b2b159bf8da0cfc0dae4a958944", + "base_uri": "https://reddiousermetadata.reddio.com/25ab1cda-42b6-4451-8200-c8c4c4756daa/" + }, + { + "contract_address": "0xff674a8a27827e0352daac88779f6ce69f8eaaa4", + "symbol": "s", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x330269a93602e46a780543d9efa3158fcf1ec0358155e8a3355b463b0d10a8e", + "base_uri": "absbs" + }, + { + "contract_address": "0x2bba0c27ba5b4f7fb3a31ec5b57810492a6be160", + "symbol": "testnet", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x3b877c1f51543ca328c6ac75d058777453379f1c541d76e589678953e14a00b", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0xe2bbeff4b11dca8bf3213d2a05172d7c95b27f60", + "symbol": "TST", + "type": "ERC721M", + "total_supply": "33", + "asset_type": "0xdd07f49d7d0eb1f32a6e61f6fe3fbf06ee231e44e49188ecedbaf17da564c6", + "base_uri": "https://starkware.co/starkex/" + }, + { + "contract_address": "0x24c59Ae17A792e537cB0422450fac11f45777a02", + "symbol": "T10", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x2fef904b545ca57b834a66541c86e8ce1b2dcab54638f02e0fa63439fd3b8ab", + "base_uri": "" + }, + { + "contract_address": "0x498DD7E90Ac3F7fA7161bCbb81C721C3ba42b2a0", + "symbol": "membership", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x1d9148af927f6c2182c7c2d0eb93cc342cca81eb7316ff77057642791468f01", + "base_uri": "https://reddiousermetadata.reddio.com/7f97ff3f-3808-4f61-9ca3-bc403b58bc17/" + }, + { + "contract_address": "0x03e1475884b72d519cfc4a2009ea8fb7889fda98", + "symbol": "TestCollection", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x29bc810817bbf12ffe9de6a2ba0bc65b676fab1b72698eeba8de38ef507d378", + "base_uri": "" + }, + { + "contract_address": "0x19bada99612f1915c028eba323f88533057ada53", + "symbol": "kkkk", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x14a3edf636215f3de77ac42b381342431bc35f2728dba208d94d3489bfc98a5", + "base_uri": "https://kkk123/" + }, + { + "contract_address": "0x9C7f7dD83eB136FbF7f4E1DdF841F77D8aE3cc07", + "symbol": "mc1", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0x2fe90be629e72e7d8d0c75c94ea9cc31ef6b19c468e605117912835351a9dc7", + "base_uri": "" + }, + { + "contract_address": "0xb641f380699d62d0a960fefcdb51823ee8fd2539", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "50", + "asset_type": "0xfc5891b5374551aea90bf7f347837c1fedd5239bf131acbc94b6d17d24d98a", + "base_uri": "" + }, + { + "contract_address": "0x5358c6bfbe67d0350cb77b7b0316d0eb4d133502", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x2956306601214734926638faa22b014f5e1dcef0c20cb71d002bcb893070c85", + "base_uri": "" + }, + { + "contract_address": "0x113fe4343633b7f777481e4eaa789dbbecfa6ab1", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "103141", + "asset_type": "0x4c68b895c786e7c716ab187b6754c0804875ff8bd227b023df1ccee1969d5b", + "base_uri": "" + }, + { + "contract_address": "0x03c555c770bb94bbffdeb94178b7a655d9963019", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "890268", + "asset_type": "0x23aeb3f174da7bb0fbb60bab99959ef152e0ba39532579ca202c352f5698188", + "base_uri": "" + }, + { + "contract_address": "0x9eed6d6f2760a9cb17aa8e3785ec376c5a9ae343", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "400", + "asset_type": "0x162df8ebeb5a800fff915ccd1a986819cf55e315fdf597ccfa75763a4c20ba0", + "base_uri": "" + }, + { + "contract_address": "0x4DBDf448CF8904FBc20F758109f644C06F643816", + "symbol": "ECM", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x369094c2b669c6c56c595850d8ce532dc6f30c8d661f3dcc4e269fa07a3eff0", + "base_uri": "https://reddiousermetadata.reddio.com/5c963db0-ce74-4bc9-a10b-01295f7a2095/" + }, + { + "contract_address": "0x269fb1fd39623adc7ab7a8ffbb0c0b09d964340b", + "symbol": "2", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x1f725634cbaf61e94605cfbae8dc2988ba526d25d148ff155e3347776295e7a", + "base_uri": "http://123123/" + }, + { + "contract_address": "0x0faa8e8ff2c9c0579fd7a796fd138cdd10749ae0", + "symbol": "COLLESTAR2", + "type": "ERC721M", + "total_supply": "16", + "asset_type": "0xae3de6fd384bec0a13e74cc1b277d3a73682912c7bf4d3001aacb697974e6b", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image7620230202165512U63YF8/" + }, + { + "contract_address": "0x42622d847c267a79d587318e3b035ab9d22207c1", + "symbol": "SR", + "type": "ERC721M", + "total_supply": "7", + "asset_type": "0x3f47ebcde1cd64039db74c39d58147b7e0783369fc2d9e7efebe3f399db845d", + "base_uri": "https://arweave.net/1EeTj9ECzJhScEcnQgjXrdhq17I5EWn3KBRRC5FMpHM/" + }, + { + "contract_address": "0xfFfAE2b0A89CA4a20D3aA61bD453e6B9FbfA3E61", + "symbol": "MT2", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x1c5628c17aea0520d26a802d565c5d0c4d09b3412c7a57eff4e1a0108e1b684", + "base_uri": "" + }, + { + "contract_address": "0xB1977946898F61551fcb044c8bDc3254275e3DaD", + "symbol": "nostr", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x311de6b54a3b0fcbcf548a4423dd6fddcd8bc271ad406caaa835fc2def8d31c", + "base_uri": "https://reddiousermetadata.reddio.com/2159e11a-e1f9-4e92-b270-969663726899/" + }, + { + "contract_address": "0x43ccd6Adcc8712a8b36E3604A20322F20ED7159A", + "symbol": "1", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x6c5ede82409e21352cbb6a2b52747d403146d924a2cf7314cfeeb307061e95", + "base_uri": "https://reddiousermetadata.reddio.com/2bf9f0ef-6b9c-4722-a54a-23398669c9d9/" + }, + { + "contract_address": "0x548c07d11bdebd9c1a2a7ac6f01c7e3a18ead4de", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "510", + "asset_type": "0x34f2e68f3a1f2bb407360d8e460dd039f558f45d27c7117ed166bc13093a09", + "base_uri": "" + }, + { + "contract_address": "0xb97228f1bfdc51130da808728421c51277c2be5e", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0xba6a2096acd9da297404725b12830fc041a8c409c01cad4e4de20a9ef16ded", + "base_uri": "" + }, + { + "contract_address": "0xd1aa14051df1453eb7d9fb0bb6f25a4b84feb93b", + "symbol": "REDDIO721", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x32e6de92505e7292ac8e3a47ca2c144f86433e1d35fe7e4c3877d6f13ee2a8c", + "base_uri": "" + }, + { + "contract_address": "0xdf77f5e8a228f22d66b1a0a525879785e454b0eb", + "symbol": "dev_eversince", + "type": "ERC721M", + "total_supply": "26", + "asset_type": "0x303fe2b5f9f901079fd6a152064fc9a2cb5e66d356a888f26b9b7a5bd51b02", + "base_uri": "" + }, + { + "contract_address": "0xbedfd569501d93a01a1430fd723f0696ecc3de68", + "symbol": "starknet_vietnam", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x24c591739016fa588b18479d587b085f77641d318448cdf974fa85efb9361df", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x59afe4ff4d53762f23cc917c61b6bef85d4dafcb", + "symbol": "v", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x371207a64e13b44ce561d2f66fa5caabe951d264f6fe633a74ea690985bf148", + "base_uri": "http://abc/x/" + }, + { + "contract_address": "0x863c0e656bf391856d4d6bcb9af9031f197c6d59", + "symbol": "REVENGE", + "type": "ERC721M", + "total_supply": "6", + "asset_type": "0x339abf616f5b9300825d6c5c0795b7d3af31218a09b9c8423273ba064a82a97", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image6620230308161414GADPR9/" + }, + { + "contract_address": "0xc01b241424342ea962c74f461594fe9e5696c904", + "symbol": "YMSL", + "type": "ERC721M", + "total_supply": "20", + "asset_type": "0x139b30742803a7e804f7ebd3855246079f2b0299efe99eb1e232de68fe1f67a", + "base_uri": "ipfs://QmWATcMozemZnwpGDjr8R5DASyKodSX68qQ1v4ocMy8C5Z/" + }, + { + "contract_address": "0xf5e0ccfffe73d21af68730d9ea7b984fdc328991", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x1ea494990e71c0a036c85791254c10dc9526a5e5e3c2fd08371b48accdf666a", + "base_uri": "" + }, + { + "contract_address": "0x3403a9c76bd2f75f35ba5baff45a285565e638b5", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x1638bb66f202280fcf25122222639d22a0909fb1671c08e85cbf0de3b7a4d59", + "base_uri": "" + }, + { + "contract_address": "0x592e66ec7073d2a71a01470daa9d5556ae284549", + "symbol": "SYN", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x2a2bb614463cbbabf568229949f35127b3c4f67eb9e605128224e8f3ef9ec52", + "base_uri": "" + }, + { + "contract_address": "0x57539844eb3b3b19cc46193119f9f6f2173432b1", + "symbol": "t3", + "type": "ERC721M", + "total_supply": "30", + "asset_type": "0xdb0f77b3974b175db37b97ec5850f168f56abe824a77e1c7da712d9a37721", + "base_uri": "ipfs://QmPBsGvpkAVLo5SdsUSPPr2cTrXSrA7pdgnLWh2XRXbor2/" + }, + { + "contract_address": "0x6f9c105c479409090538d17291f7042807e5550f", + "symbol": "STAR_C2", + "type": "ERC721M", + "total_supply": "131", + "asset_type": "0x8ecbcdbd5637db45f2ad3ad4335949a55d52ceea50d4b1ab1fd391973f565b", + "base_uri": "https://stark-test.oss-cn-shanghai.aliyuncs.com/image37202301291058058L5PUN/" + }, + { + "contract_address": "0xDd5B362d1F01e34382e67F724a927e1940eD8ab8", + "symbol": "2", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x190a06187b51b94307280a1c567b831ad6b7d79808889c6fe6692841c784db8", + "base_uri": "" + }, + { + "contract_address": "0x6683DEFAa9c69721C7E2Cf64c4D36Fd35acE78A7", + "symbol": "11", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x328e0e10ddee6802a3319d6bc515d62694bc837f09c37d7ba6aec7892c08dda", + "base_uri": "http://" + }, + { + "contract_address": "0x7Ab5a29Fd09f267001cD34216A23B130Aa6e5bF2", + "symbol": "22", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x1acdaccaca5bdb2658594112070d2f41ea225cb34c894b59fa8124964ed2ac1", + "base_uri": "https://reddiousermetadata.reddio.com/72acaa94-11fc-4341-acae-1c0994e0dad8" + }, + { + "contract_address": "0x51bF573723190D8bD24B9943a5357d1872dF7DE6", + "symbol": "2", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0xf3403708d6a16b840d9fe3fef8c747098ac91977c381551e7e5053cfe7167f", + "base_uri": "" + }, + { + "contract_address": "0x1C888Ce67E3BBc82Ebf7a231C6AB25Be97fEc023", + "symbol": "ECM", + "type": "ERC721M", + "total_supply": "34", + "asset_type": "0x2a957193aba6fc7ee914dbd215cdf955c6e6f7c5cdea14142577cbe8d54a730", + "base_uri": "https://reddiousermetadata.reddio.com/b8fd877f-c300-48fd-86f6-9ff84026ce38/" + }, + { + "contract_address": "0xa4ec8f4cb341bb73d840d295b024ac4c01ec46c6", + "symbol": "REDDIO", + "type": "ERC721M", + "total_supply": "800", + "asset_type": "0x3d7ccd3e06fe5d65e5c65803116cd1893eba1db94c98b6ae912974a9ca99929", + "base_uri": "" + }, + { + "contract_address": "0x796b30c0849533b455c2998da6bb0d1f3801288c", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "20", + "asset_type": "0x2e2c0716f21a88fb5165d632ccc255d28d7971300f6be93a08071e770de8e61", + "base_uri": "" + }, + { + "contract_address": "0xea5d9fe606cba2204256e8eb940350b7cb1fb9e1", + "symbol": "BNFT", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x27db46110489afde6a3cf45643dd363c260a6a096de9cbdb4843e500dd66ca9", + "base_uri": "" + }, + { + "contract_address": "0x175a48b997c85696d3fa8efa8d17f3aa4c79a9d5", + "symbol": "t1", + "type": "ERC721M", + "total_supply": "15", + "asset_type": "0x3ae9b7f07bfd4b2143f411c503a7437ec2178e7a94687d32070fa66c59efa93", + "base_uri": "ipfs://QmPBsGvpkAVLo5SdsUSPPr2cTrXSrA7pdgnLWh2XRXbor2" + }, + { + "contract_address": "0x8793976e20775536a6e06b2a25b4b0d16e4d90bb", + "symbol": "OPP", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x3fa57fef58829f0bb9171c207c782ed1cf7c24002d77e8d979b2fb2627a1db6", + "base_uri": "https://a.com/" + }, + { + "contract_address": "0x70af2da97116292657610ff29b89ab909130eaf7", + "symbol": "KOOTESTC", + "type": "ERC721M", + "total_supply": "7", + "asset_type": "0x72041bf60a608244b013a13c78182636dcf685bbe0d0868e7a0e11853aac3b", + "base_uri": "https://stark-test.oss-cn-shanghai.aliyuncs.com/image0120230201113218V39CBW/" + }, + { + "contract_address": "0xfa73020adbc0910bbe8858ba0663f8364dc6494d", + "symbol": "TESTCOSTAR", + "type": "ERC721M", + "total_supply": "1", + "asset_type": "0x2ec4ea2bfbd718a58e8f3b1f474258fdacdaf2ed121bc85528d70a4abd37e0a", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image0720230203101303MY3MGA/" + }, + { + "contract_address": "0x960a04186ec2803eb218806958940b2b93c48a78", + "symbol": "SR", + "type": "ERC721M", + "total_supply": "15", + "asset_type": "0x200222fd866341e440b63e11099c5832aba9de335eb7fe270f82abab5d389ca", + "base_uri": "https://arweave.net/1EeTj9ECzJhScEcnQgjXrdhq17I5EWn3KBRRC5FMpHM/" + }, + { + "contract_address": "0x113536494406bc039586c1ad9b8f51af664d6ef8", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "1063", + "asset_type": "0x29c4bfa2a7ae4bfe1821bd2178dbd2cd43c3ee5d97be29beeef3d7ac9e68710", + "base_uri": "" + }, + { + "contract_address": "0xdcfd93f037f46f8f0dfa5a1c905e2971cc244d1d", + "symbol": "TEST", + "type": "ERC721M", + "total_supply": "3", + "asset_type": "0x3717a2149c197c68bf74701208e48b3f24bc928125c0684912443c5ecdab6ba", + "base_uri": "" + }, + { + "contract_address": "0x67cc3ef73c5eed2f204f79d3569ecb0e782498f5", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x31cc75e73de87a79e062548c0b8791e0ff6c981627009f83d47b91611fb848f", + "base_uri": "" + }, + { + "contract_address": "0x426ccd6501fb49974b74f924b37c512abe26c24d", + "symbol": "SYN", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0xf58f6fc1797c407a16f2594982904d302b0ed2e03c9df1e4c359748e414218", + "base_uri": "" + }, + { + "contract_address": "0x36e08f3a09fef0e48261226dca3084a1fbe20afe", + "symbol": "TC1", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x2f51856a1f85056f1243cd5c2a115f1bbf05b86b3fece470b34939eb8d1a6de", + "base_uri": "ipfs://QmPBsGvpkAVLo5SdsUSPPr2cTrXSrA7pdgnLWh2XRXbor2/" + }, + { + "contract_address": "0xd7415a765e1cf54bf7620c05bb2c8080001bfb34", + "symbol": "TST", + "type": "ERC721M", + "total_supply": "100", + "asset_type": "0x281ba393781c2387686532b34a1847a72f78e6276ab7de542001b53cbb83838", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0xc7e543e4d857Ab800E52B9796a5c2dE8D66d624C", + "symbol": "11", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x286a53fbf8d1c946661b8e8a773de44918ae21728993123f90e548c0b403f85", + "base_uri": "http://" + }, + { + "contract_address": "0xf7bf47f732Bf58aA1611F67Ab97e0671C998B4d3", + "symbol": "721", + "type": "ERC721", + "total_supply": "0", + "asset_type": "0x2f23f4f4baf70056429b36ddc77360c1511f6edca1166aba917886eac860487", + "base_uri": "https://reddiousermetadata.reddio.com/84cb3ba4-829c-49ae-a24a-74d2bf241fd4/" + }, + { + "contract_address": "0xc7acdc2557bbcf2c2364ee8e68d7f64d4a5b37dc", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "20", + "asset_type": "0x2285a48161ea85eab19c3ea6e19077f6bb455ba0d2f05c7b617281e40a2cf92", + "base_uri": "" + }, + { + "contract_address": "0xd60523fd920eb9b7eff3e115203e32d91de5cf59", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "691", + "asset_type": "0x3ddd676bb79fa6f01cfd995f0244ba01d9a5b3e861ff64fa595778c924051e5", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x24eccac12beef9e8ddcb6431ec2316c5bd816cda", + "symbol": "ReddioNFT", + "type": "ERC721M", + "total_supply": "291", + "asset_type": "0x3ad0fab846262a6071ed12a3d61ff018294419cd7bf4f25fce363cafc02b4a8", + "base_uri": "https://api.reddio.com/" + }, + { + "contract_address": "0x2D44c1BE2C845ec5d332824d4E22120E3E68FCc4", + "symbol": "ne0", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x2d4ce81b692c9d6b4dd36f05da0491e186bccac2a6a325af7b2836adcd1e16a", + "base_uri": "http://dfans.myslash.co:8086/api/blog/v1/page/user/queryAlbumList/" + }, + { + "contract_address": "0xb6b71F0B4280Ebb58492C8B273f1A6165bad8E8b", + "symbol": "MW", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0xc72875f968af341f04e0f8c706fd7c3dcc3acdeacd83929cc94d2e692bae17", + "base_uri": "https://bafybeieps243trtimwlz6xuqbfr5jkbsmressxxsyiobwjphsqiwihvtga.ipfs.nftstorage.link/vip%20trading%20-%20nft%20pass.mp4" + }, + { + "contract_address": "0x132059beb42a0d50cf36906f52f0c199af89020a", + "symbol": "RT", + "type": "ERC721M", + "total_supply": "2", + "asset_type": "0x101c23a161e3a55c0d9ac7d9fca91e317803183ba7dad94ebc8951e0cf56e9a", + "base_uri": "https://metadata.reddio.com/api/tokens/1/" + }, + { + "contract_address": "0xF8F994E4C43235944CF724E11f50187971f7ea81", + "symbol": "reddionft", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x6d33125de985b953884458147a8211ca8a0315401d5a8438f910c2c6ac94ca", + "base_uri": "https://metadata.reddio.com/api/tokens/" + }, + { + "contract_address": "0x2D87c2704EF70D34960e3F8551e8f7112F87282C", + "symbol": "NKC", + "type": "ERC721M", + "total_supply": "0", + "asset_type": "0x3b62156f1031974302206b20c03f9d6b664fad2766d153b5b8bd49a33a161fb", + "base_uri": "https://ab.com" + }, + { + "contract_address": "0x53795c7952adc72a384522917eccafb4abc5c587", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x251db20f570982e2917e1468483c77456c2201657ac8cbb38605501f635cd17", + "base_uri": "" + }, + { + "contract_address": "0x1418ddfb747f3e2cd1e4c89a8c6ea45a459db7f6", + "symbol": "COLLECTIBLE-NFT", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x240f3ec14555f1fcf6adda9fa29cdae32c6b07fe3c51f74783c44d0dc8dd355", + "base_uri": "" + }, + { + "contract_address": "0x6ba23a21db531afc880ae2464af0af726c351ed7", + "symbol": "BRO", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x1a4c2b62da23190c2a545e5e00bf2da6abe9d66d07d3a205aebda3d59c26524", + "base_uri": "" + }, + { + "contract_address": "0x3484bcd211562bd194cb445a03caf3a3a7206b9e", + "symbol": "2", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x19b349b076fee00c88d87a6279c91b757599a48f3d46fa6814eb6456dc69525", + "base_uri": "http://111/" + }, + { + "contract_address": "0x31ee5c61b24a7cf127aba0eeca11b01f165947c4", + "symbol": "STARTEST1", + "type": "ERC721M", + "total_supply": "83", + "asset_type": "0x10fe50187f4c11876a9bef6f5b9208d981c089ada02655b0f3ae1904330cccf", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image8220230310112235EANNTU/" + }, + { + "contract_address": "0x434990472ce86eFF45308130BCC1D39D0D980F28", + "symbol": "3", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0xedfc9d19429cc23c746b8a3b8789c74c33538a73fa4d9064563c7050f12456", + "base_uri": "" + }, + { + "contract_address": "0xe24cdcdaf9df5ab5cbba8d54ddc4476545c2f739", + "symbol": "TESTCLOC2", + "type": "ERC721M", + "total_supply": "8", + "asset_type": "0x202bdf15bb7727625fa34f13c0828b8b8b4ffe7cb993677a73aac75abba5247", + "base_uri": "https://kooola-new-test.oss-cn-shanghai.aliyuncs.com/image60202305251153384V7EA7/" + }, + { + "contract_address": "0x823e0E1E0a3122177DcEaF7162669d93Edea7A42", + "symbol": "12", + "type": "ERC721MC", + "total_supply": "0", + "asset_type": "0x3aaebe69c52f6fd4ec95972e82358330725fd6af7bc2ebd84ba52c3aba80323", + "base_uri": "" + }, + { + "contract_address": "0x2fe02399b800e50cddf1871b8c5941bd036929bc", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "", + "asset_type": "0x1d51107f4407786fbc22c03398682c9afb7f1be78d566a2488b92b7013f347b", + "base_uri": "" + }, + { + "contract_address": "0xa59f2ae319b20e6de18d81ff5f58028bd17836f9", + "symbol": "REDDIO721", + "type": "ERC721M", + "total_supply": "20", + "asset_type": "0x35a040f6f6db739533e717a26bcd2a8749cc03587a34bd95d6bf46643de7f86", + "base_uri": "" + }, + { + "contract_address": "0x6a6ba137f592c04e5a78f9f5bc5e67f2c8868004", + "symbol": "BRON", + "type": "ERC721M", + "total_supply": "6", + "asset_type": "0x3a5558ef4b5f2f8130bba8c796218858d08137ce74917d8c91f465f71f51ae8", + "base_uri": "https://bafybeiajgqvh5bjvupudok3zgbnm433d3ahvycxy5wlqvjumhz733iwtu4.ipfs.w3s.link/naruto.jpeg" + }, + { + "contract_address": "0x6af1c32d1ddd03d34919cf83adafb703bd3ea9e9", + "symbol": "do", + "type": "ERC721", + "total_supply": "", + "asset_type": "0x3f20b2466b0e592c90947864f8a98162005f78288a00bb8e1c9f8f56006f1d8", + "base_uri": "https://reddio.com/tokens" + }, + { + "contract_address": "0x8c1f29e081fd63ecf3c6e951718c0c617ca6d383", + "symbol": "FP", + "type": "ERC721M", + "total_supply": "10", + "asset_type": "0x36489ffc41e2a0f70b6f75ab576738bd7545131f53e9288b6ce64e26fb322cb", + "base_uri": "https://api.reddio.com" + } + ] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Getnoncebystark_key", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nonce", + "description": " ", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "stark_key", + "type": "STRING", + "description": "which stark_key's nonce you want to get", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nonce\"\nquerystring = {\"stark_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nonce\"\nquerystring = {\"stark_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "stark key is missing", + "error_code": 400, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Balancesofstark_key", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balances", + "description": "The API retrieves the balance of a stark_key, each return value are as the previous field", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "limit", + "type": "STRING", + "description": "set limit per page", + "default": "" + }, + { + "name": "stark_key", + "type": "STRING", + "description": "The stark key", + "default": "" + }, + { + "name": "contract_address", + "type": "STRING", + "description": "filter balance by contract address", + "default": "" + }, + { + "name": "page", + "type": "STRING", + "description": "which page(starts by 1)", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balances\"\nquerystring = {\"limit\": \"\", \"stark_key\": \"\", \"contract_address\": \"\", \"page\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balances\"\nquerystring = {\"limit\": \"\", \"stark_key\": \"\", \"contract_address\": \"\", \"page\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "Key: 'BalancesRequest.Account' Error:Field validation for 'Account' failed on the 'required' tag", + "error_code": 0, + "data": [] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "GetMarketplaces", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/eeda297e-4d35-4f11-915a-58e1a8873f17/marketplace", + "description": " ", + "method": "GET", + "required_parameters": [ + { + "name": "project_uuid", + "type": "STRING", + "description": "", + "default": "eeda297e-4d35-4f11-915a-58e1a8873f17" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/eeda297e-4d35-4f11-915a-58e1a8873f17/marketplace\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/{project_uuid}/marketplace\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "data": null, + "error": "Invalid token or API key.", + "error_code": 32 + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Balanceofstark_keyandasset_id", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balance", + "description": "This API retrieves the balance of a stark_key and asset_id\n\nThe return values description\n\n| **key** | **description** |\n| --- | --- |\n| asset_id | The asset's id |\n| contract_address | The contract address of ERC20/ERC721/ERC721, if the asset_id's type is ETH, it will return \"eth\" as a placeholder |\n| token_id | The NFT token ID(this field is set when type is ERC721 or ERC721M) |\n| base_uri | The NFT base uri(this field is set when type is ERC721 or ERC721M) |\n| available | The available balance on layer 2. |\n| frozen | The frozen balance on layer 2. |\n| type | Type of token, Possible enum values is ETH, ERC20, ERC721, ERC721M |\n| symbol | The symbol of ERC721/ERC721M or ERC20(\"ETH\" for ETH) |\n| decimals | The decimals of asset, for ETH is 18, ERC721/ERC721M is 1, and for ERC20, it is based the contracts, [here](https://medium.com/@jgm.orinoco/understanding-erc-20-token-contracts-a809a7310aa5) is more explain about decimals on Ethernum |\n| quantum | quantum is a starkex concept, it is auto-set when the contract is registered to reddio. [here](https://docs.starkware.co/starkex/spot/shared/starkex-specific-concepts.html) is more explain about quantum |\n| display_value | deprecated,use `available` instead |\n| display_frozen | deprecated,use `frozen` instead |\n| balance_available | The available balance represents on layer 2. Keep attention that it need to be converted with quantum and decimals if you need to use this field. All SDK hands this value, so most of the time you do not need to care about it. |\n| balance_frozen | The frozen balance represents on layer 2. Keep attention that it need to be converted with quantum and decimals if you need to use this field. All SDK hands this value, so most of the time you do not need to care about it. |", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "stark_key", + "type": "STRING", + "description": "The stark_key which you want to check balance", + "default": "" + }, + { + "name": "asset_id", + "type": "STRING", + "description": "Which asset you want to check, you can get asset id in prevous assets APIs", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balance\"\nquerystring = {\"stark_key\": \"\", \"asset_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balance\"\nquerystring = {\"stark_key\": \"\", \"asset_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "Key: 'BalanceRequest.Account' Error:Field validation for 'Account' failed on the 'required' tag\nKey: 'BalanceRequest.AssetID' Error:Field validation for 'AssetID' failed on the 'required' tag", + "error_code": 0, + "data": [] + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "GetOrderInfo", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order/info", + "description": "This API is to get order related information, such as the asset id of base/quota tokens. nonce and vaults related to stark_key\n\n**If you use SDKs(including java/unity/js), you do not need to care about the order info interface, it is already handled by SDK internally**\n\nthe contract1 and contract2 values are like\n\n{type}:{contract_address}:{token_id}\n\nThere are many informations it returns\n\n| **field** | **description** |\n| --- | --- |\n| fee_rate | the upper fee_rate allowed by reddio and marketplace. that is, if reddio & marketplace charge's more then the rate, the order will fail |\n| base_token | base token asset id, in general, if you trade using ETH for NFT, then the base token is ETH's asset id |\n| fee_token | which token as a fee, in general, it is the same as base_token |\n| lower_limit | the lower price of the NFT |\n| nonce | the nonce of the stark_key |\n| contracts | the contracts info of contract1 and contract2 |\n| asset_ids | the asset ids of contract1 and contract2 |\n| vault_ids | first vault id is generated by the stark_key and first asset id, the second vault id is generated by the stark_key and second asset id(you can see the asset_ids above) |", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "stark_key", + "type": "STRING", + "description": "the stark_key that want to buy or sell NFT", + "default": "" + }, + { + "name": "contract2", + "type": "STRING", + "description": "the quota contract and token id, the vaule can like ERC721:0xA21B04B6dbd1174155E242434B3Df2EeD74BaFb2:28", + "default": "" + }, + { + "name": "contract1", + "type": "STRING", + "description": "the base contract info, if sell using ETH, then the vaule should be ETH:eth:1", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order/info\"\nquerystring = {\"stark_key\": \"\", \"contract2\": \"\", \"contract1\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order/info\"\nquerystring = {\"stark_key\": \"\", \"contract2\": \"\", \"contract1\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "error": "fail to generate order info", + "error_code": 11, + "data": null + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Listcolloction'snftowners", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nfts/0x6b4f24fd500bedb945fc8b93882766bb5e7cf620", + "description": "The api returns a collection's nft owners.\n\nThe response field description\n\n| **field** | **description** |\n| --- | --- |\n| contract_address | the contract_address of the collection |\n| token_id | the NFT token id |\n| owner | the owner of the NFT |\n| symbol | the NFT's symbol |\n| asset_id | the token's asset id |", + "method": "GET", + "required_parameters": [ + { + "name": "contract_address", + "type": "STRING", + "description": "", + "default": "0x6b4f24fd500bedb945fc8b93882766bb5e7cf620" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nfts/0x6b4f24fd500bedb945fc8b93882766bb5e7cf620\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nfts/{contract_address}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "status": "OK", + "error": "", + "error_code": 0, + "data": { + "list": [ + { + "token_id": "1", + "contract_address": "0x6b4f24fd500bedb945fc8b93882766bb5e7cf620", + "owner": "0x5468e035879734e63e2db83ccb953bce38096590d58aa0edde4034de0806790", + "symbol": "TNFT", + "asset_id": "0x400223951a7c7d7e467f711632b4cba0876f5ed04edae012286ba2829e0be6b" + }, + { + "token_id": "2", + "contract_address": "0x6b4f24fd500bedb945fc8b93882766bb5e7cf620", + "owner": "0x5468e035879734e63e2db83ccb953bce38096590d58aa0edde4034de0806790", + "symbol": "TNFT", + "asset_id": "0x4002dc2307841c5f0290b5abeb16e5e387d36d10d2970876538f1bc4b196cc9" + }, + { + "token_id": "3", + "contract_address": "0x6b4f24fd500bedb945fc8b93882766bb5e7cf620", + "owner": "0x5468e035879734e63e2db83ccb953bce38096590d58aa0edde4034de0806790", + "symbol": "TNFT", + "asset_id": "0x400094500295ae350d96625567a628a8879e9fa6b401bcd720d402b0a96b226" + }, + { + "token_id": "4", + "contract_address": "0x6b4f24fd500bedb945fc8b93882766bb5e7cf620", + "owner": "0x5468e035879734e63e2db83ccb953bce38096590d58aa0edde4034de0806790", + "symbol": "TNFT", + "asset_id": "0x400e0bff9bfd38048c1151f4de085128e4adde993d93d50f683af755452b30f" + } + ], + "total": 4, + "current_page": 1, + "page_size": 4, + "total_page": 1 + } + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Listfilesunderproject", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/eeda297e-4d35-4f11-915a-58e1a8873f17/storage", + "description": "It will list files under the project, the response item like\n\n| **field** | **description** |\n| --- | --- |\n| cid | [Content Identifiers](https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid) |\n| filename | The stored file name |\n| created_at | first create time |\n| filesize | file size(in byte) |\n| endpoints | the endpoints you can view the file |", + "method": "GET", + "required_parameters": [ + { + "name": "project_uuid", + "type": "STRING", + "description": "", + "default": "eeda297e-4d35-4f11-915a-58e1a8873f17" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/eeda297e-4d35-4f11-915a-58e1a8873f17/storage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/{project_uuid}/storage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "status": "FAILED", + "data": null, + "error": "Invalid token or API key.", + "error_code": 32 + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "SellanNFT", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order", + "description": "Sell an NFT sells an NFT\n\nBody parameters\n\n| **field** | **description** |\n| --- | --- |\n| amount | the amount to sell |\n| price | the price of the NFT |\n| stark_key | the stark_key of the seller |\n| amount_buy | the amount token to buy, the same value as price |\n| amount_sell | 1 for NFT |\n| token_buy | the base token's asset_id |\n| token_sell | the NFT's asset_id |\n| vault_id_buy | the vault id of base token |\n| vault_id_sell | the vault id of quota token |\n| expiration_timestamp | the expiration time, count in hour |\n| base_token | base token's asset id |\n| quote_token | quota token's asset id |\n| nonce | the nonce of the seller |\n| signature | the transaction's signature, can refer [here](https://github.com/reddio-com/red-py-sdk/blob/main/redpysdk/starkex_utils.py#L38-L41) to generate signature. In SDK it handled by sdk |\n| fee_info | fee information(which fee will be taken and how much) |\n| direction | 0 for sell, 1 for buy |\n| marketplace_uuid | the uuid of marketplace(is used to charge fee) |", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "CreateMarketplace", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/marketplace", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "marketplace_name", + "type": "STRING", + "description": "Marketplace name", + "default": "" + }, + { + "name": "marketplace_payee_address", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "marketplace_fee", + "type": "STRING", + "description": "The fee rate paid for marketplace, it can be 0.015(that means 1.5% on the seller\u2019s side.", + "default": "" + }, + { + "name": "project_uuid", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/marketplace\"\nquerystring = {\"marketplace_name\": \"\", \"marketplace_payee_address\": \"\", \"marketplace_fee\": \"\", \"project_uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/marketplace\"\nquerystring = {\"marketplace_name\": \"\", \"marketplace_payee_address\": \"\", \"marketplace_fee\": \"\", \"project_uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "RemoveMarketplace", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/marketplace/remove_marketplace", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "marketplace_uuid", + "type": "STRING", + "description": "", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/marketplace/remove_marketplace\"\nquerystring = {\"marketplace_uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/marketplace/remove_marketplace\"\nquerystring = {\"marketplace_uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "Mintsometokens", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/mints", + "description": "Body parameters\n\n| **item** | **description** |\n| --- | --- |\n| contract_address | the contract address you registered and want to mint |\n| stark_key | the stark_key you want to mint to |\n| amount | how many token you want to mint(max 100) |", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/mints\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/mints\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "UploadFiles", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/eeda297e-4d35-4f11-915a-58e1a8873f17/storage", + "description": "Upload files will return [cid](https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid) and endpoints", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "project_uuid", + "type": "STRING", + "description": "", + "default": "eeda297e-4d35-4f11-915a-58e1a8873f17" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/eeda297e-4d35-4f11-915a-58e1a8873f17/storage\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/{project_uuid}/storage\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "TransferNFT", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/transfers", + "description": "Body parameters\n\nTransfer transfers tokens(asset_id) from stark_key to receiver\n\n| **field** | **description** |\n| --- | --- |\n| amount | the amount to be transferred. |\n| nonce | the nonce of sender's stark_key |\n| vault_id | the vault id of the sender with asset_id |\n| receiver_vault_id | the vault id of the receiver with asset_id |\n| stark_key | the sender's stark_key |\n| receiver | the receiver's stark_key |\n| signature | the transaction's signature, can refer [here](https://github.com/reddio-com/red-py-sdk/blob/main/redpysdk/starkex_utils.py#L46-L51) to generate signature. In SDK it handled by sdk |\n| expiration_timestamp | the expiration time, count in hour |", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/transfers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/transfers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + }, + { + "name": "WithdrawalaNFT", + "url": "https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/withdrawalto", + "description": "Withdrawal withdraw tokens(asset_id) from stark_key to receiver\n\n| **field** | **description** |\n| --- | --- |\n| amount | the amount to be transferred. |\n| nonce | the nonce of sender's stark_key |\n| vault_id | the vault id of the sender with asset_id |\n| receiver_vault_id | the vault id of the receiver with asset_id |\n| stark_key | the sender's stark_key |\n| receiver | which eth address to withdraw |\n| signature | the transaction's signature, can refer [here](https://github.com/reddio-com/red-py-sdk/blob/main/redpysdk/starkex_utils.py#L46-L51) to generate signature. In SDK it handled by sdk |\n| expiration_timestamp | the expiration time, count in hour |", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/withdrawalto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/withdrawalto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"reddio-nft-token-and-ipfs.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "", + "default": "OK" + }, + "error": {}, + "error_code": {}, + "data": { + "type": "object", + "properties": { + "asset_id": { + "type": "string", + "description": "", + "default": "0x400984d6abc96e6fe827e2eca7fb7165f11c909a3afc0d0d1bf595396d1fe21" + } + } + } + } + } + } + ], + "standardized_name": "reddio_nft_token_and_ipfs" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/reddio_nft_token_and_ipfs/api.py b/toolbench/toolenv/tools/Cryptography/reddio_nft_token_and_ipfs/api.py new file mode 100644 index 0000000000000000000000000000000000000000..730ee5dfeb6975de45a42b8bc4226d38ebfa8fb9 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/reddio_nft_token_and_ipfs/api.py @@ -0,0 +1,579 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getassetsbycontractinformation(token_id: str=None, contract_address: str=None, type: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This request will return asset_id wrapped with return code and error code" + token_id: TokenID of NFT(ERC721/ERC721M need this field) + contract_address: Contract address of token (when type is ERC20/ERC721/ERC721M need this field, if type is ETH, then it can be ignore) + type: Type of token, Possible enum values is ETH, ERC20, ERC721, ERC721M + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid" + querystring = {} + if token_id: + querystring['token_id'] = token_id + if contract_address: + querystring['contract_address'] = contract_address + if type: + querystring['type'] = type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getassetsdetailbyassetid(asset_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The API can query every asset_id that exists on reddio's system, if the FT/NFT is not on reddio's system, then the API will not work well + + The API returns assets detail including contract_address, type, token_id(if type is ERC721 or ERC721M), quantum and token owners(owns by who)" + asset_id: The asset id you want to retrieve information + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/assetid/{asset_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getvaultsdetailbyvaultid(vault_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults/{vault_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getvaultsbystark_keyandasset_id(stark_keys: str=None, asset_id: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + stark_keys: stark_keys can be multi stark_key, separated by "," + asset_id: the asset id + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/vaults" + querystring = {} + if stark_keys: + querystring['stark_keys'] = stark_keys + if asset_id: + querystring['asset_id'] = asset_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getorderbyorderid(order_id: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The API will return the order related to the order id + + There are many informations it returns + + | **field** | **description** | + | --- | --- | + | order_id | the id of the order, it is the same value as sequence id | + | stark_key | the stark_key of who place the order | + | price | the price of the NFT, when need a human-readable value, display_price is the human-readable value | + | display_price | the price that human-readable | + | direction | 0 for sell, 1 for buy | + | amount | the amount to buy or sell | + | un_filled | how many tokens are unfilled | + | symbol | a structure contains base and quota token, also have token id in it | + | fee_rate | the fee_rate | + | token_type | the token type | + | token_id | the token ID | + | order_state | the state of the order | + | resp | if there has some error, the field will be set | + + The enum value of order_state is + + | Status | Value | + | --- | --- | + | Placed | 0 | + | Canceled | 1 | + | Filled | 2 | + | PartiallyFilled | 3 | + | ConditionallyCanceled | 4 |" + order_id: the order id you want to query + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order" + querystring = {} + if order_id: + querystring['order_id'] = order_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def listorders(contract_address: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + contract_address: the contract address of order you want to list + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/orders" + querystring = {} + if contract_address: + querystring['contract_address'] = contract_address + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getwallets(count: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The return field as following + + | **field** | **description** | + | --- | --- | + | stark_key | the stark public key | + | stark_private_key | the stark private key |" + count: how many wallets you want to generated + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/wallets" + querystring = {} + if count: + querystring['count'] = count + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getrecordbysignature(s: str=None, r: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + s: signature S + r: signature R + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record/by/signature" + querystring = {} + if s: + querystring['s'] = s + if r: + querystring['r'] = r + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getrecordbysequenceid(sequence_id: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + sequence_id: The sequence id you want to query + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/record" + querystring = {} + if sequence_id: + querystring['sequence_id'] = sequence_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getrecordsbystark_key(stark_key: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + stark_key: Which stark_key's record you want to query + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/records" + querystring = {} + if stark_key: + querystring['stark_key'] = stark_key + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def aggregationbalanceofastark_keybycontractaddress(stark_key: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The API aggregation balances by contract address, for previous API, each NFT have an asset_id, but in this API. NFT do not have asset_id when return, but has token id" + stark_key: The stark_key you want to check balance + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v2/balances" + querystring = {} + if stark_key: + querystring['stark_key'] = stark_key + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def listallcollections(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The API lists all collections on Reddio's layer2 system. + + The return field is like the following descrption + + | **field** | **description** | + | --- | --- | + | contract_address | The contract address | + | symbol | The symbol of | + | type | ERC721 or ERC721M | + | total_supply | Total Supply of the token | + | base_uri | The base uri of NFT | + | asset_type | The asset type is calculated by reddio, the definition is [here](https://docs.starkware.co/starkex/spot/shared/starkex-specific-concepts.html#computing_asset_info_asset_type_asset_id) |" + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/collections" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getnoncebystark_key(stark_key: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + stark_key: which stark_key's nonce you want to get + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nonce" + querystring = {} + if stark_key: + querystring['stark_key'] = stark_key + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def balancesofstark_key(limit: str=None, stark_key: str=None, contract_address: str=None, page: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The API retrieves the balance of a stark_key, each return value are as the previous field" + limit: set limit per page + stark_key: The stark key + contract_address: filter balance by contract address + page: which page(starts by 1) + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balances" + querystring = {} + if limit: + querystring['limit'] = limit + if stark_key: + querystring['stark_key'] = stark_key + if contract_address: + querystring['contract_address'] = contract_address + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getmarketplaces(project_uuid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + " " + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/{project_uuid}/marketplace" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def balanceofstark_keyandasset_id(stark_key: str=None, asset_id: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This API retrieves the balance of a stark_key and asset_id + + The return values description + + | **key** | **description** | + | --- | --- | + | asset_id | The asset's id | + | contract_address | The contract address of ERC20/ERC721/ERC721, if the asset_id's type is ETH, it will return "eth" as a placeholder | + | token_id | The NFT token ID(this field is set when type is ERC721 or ERC721M) | + | base_uri | The NFT base uri(this field is set when type is ERC721 or ERC721M) | + | available | The available balance on layer 2. | + | frozen | The frozen balance on layer 2. | + | type | Type of token, Possible enum values is ETH, ERC20, ERC721, ERC721M | + | symbol | The symbol of ERC721/ERC721M or ERC20("ETH" for ETH) | + | decimals | The decimals of asset, for ETH is 18, ERC721/ERC721M is 1, and for ERC20, it is based the contracts, [here](https://medium.com/@jgm.orinoco/understanding-erc-20-token-contracts-a809a7310aa5) is more explain about decimals on Ethernum | + | quantum | quantum is a starkex concept, it is auto-set when the contract is registered to reddio. [here](https://docs.starkware.co/starkex/spot/shared/starkex-specific-concepts.html) is more explain about quantum | + | display_value | deprecated,use `available` instead | + | display_frozen | deprecated,use `frozen` instead | + | balance_available | The available balance represents on layer 2. Keep attention that it need to be converted with quantum and decimals if you need to use this field. All SDK hands this value, so most of the time you do not need to care about it. | + | balance_frozen | The frozen balance represents on layer 2. Keep attention that it need to be converted with quantum and decimals if you need to use this field. All SDK hands this value, so most of the time you do not need to care about it. |" + stark_key: The stark_key which you want to check balance + asset_id: Which asset you want to check, you can get asset id in prevous assets APIs + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/balance" + querystring = {} + if stark_key: + querystring['stark_key'] = stark_key + if asset_id: + querystring['asset_id'] = asset_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getorderinfo(stark_key: str=None, contract2: str=None, contract1: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This API is to get order related information, such as the asset id of base/quota tokens. nonce and vaults related to stark_key + + **If you use SDKs(including java/unity/js), you do not need to care about the order info interface, it is already handled by SDK internally** + + the contract1 and contract2 values are like + + {type}:{contract_address}:{token_id} + + There are many informations it returns + + | **field** | **description** | + | --- | --- | + | fee_rate | the upper fee_rate allowed by reddio and marketplace. that is, if reddio & marketplace charge's more then the rate, the order will fail | + | base_token | base token asset id, in general, if you trade using ETH for NFT, then the base token is ETH's asset id | + | fee_token | which token as a fee, in general, it is the same as base_token | + | lower_limit | the lower price of the NFT | + | nonce | the nonce of the stark_key | + | contracts | the contracts info of contract1 and contract2 | + | asset_ids | the asset ids of contract1 and contract2 | + | vault_ids | first vault id is generated by the stark_key and first asset id, the second vault id is generated by the stark_key and second asset id(you can see the asset_ids above) |" + stark_key: the stark_key that want to buy or sell NFT + contract2: the quota contract and token id, the vaule can like ERC721:0xA21B04B6dbd1174155E242434B3Df2EeD74BaFb2:28 + contract1: the base contract info, if sell using ETH, then the vaule should be ETH:eth:1 + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/order/info" + querystring = {} + if stark_key: + querystring['stark_key'] = stark_key + if contract2: + querystring['contract2'] = contract2 + if contract1: + querystring['contract1'] = contract1 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def listcolloction_snftowners(contract_address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The api returns a collection's nft owners. + + The response field description + + | **field** | **description** | + | --- | --- | + | contract_address | the contract_address of the collection | + | token_id | the NFT token id | + | owner | the owner of the NFT | + | symbol | the NFT's symbol | + | asset_id | the token's asset id |" + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/nfts/{contract_address}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def listfilesunderproject(project_uuid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "It will list files under the project, the response item like + + | **field** | **description** | + | --- | --- | + | cid | [Content Identifiers](https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid) | + | filename | The stored file name | + | created_at | first create time | + | filesize | file size(in byte) | + | endpoints | the endpoints you can view the file |" + + """ + url = f"https://reddio-nft-token-and-ipfs.p.rapidapi.com/v1/project/{project_uuid}/storage" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "reddio-nft-token-and-ipfs.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/secure_text_api.json b/toolbench/toolenv/tools/Cryptography/secure_text_api.json new file mode 100644 index 0000000000000000000000000000000000000000..1a3a43936e0b1ff261f9c8fa2e067148e419bd13 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/secure_text_api.json @@ -0,0 +1,78 @@ +{ + "tool_name": "secure-text-api", + "tool_description": "This project created for serve api endpoints to encrypt and decrypt text via http request", + "title": "secure-text-api", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 595, + "avgSuccessRate": 40, + "popularityScore": 9.2, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/pmphobia/api/secure-text-api/", + "host": "secure-text-api.p.rapidapi.com", + "api_list": [ + { + "name": "decrypt", + "url": "https://secure-text-api.p.rapidapi.com/", + "description": "This endpoint will decrypt request body ciphertext by privatekey.\n It response **plaintext** as string.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "encrypt", + "url": "https://secure-text-api.p.rapidapi.com/encrypt", + "description": "This endpoint will encrypt request body plaintext by publickey.\n It response **ciphertext** as string.\n Client can decrypt it by calling decrypt endpoint.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "getKey", + "url": "https://secure-text-api.p.rapidapi.com/getKey", + "description": "This endpoint will generated publickey and privatekey.\nIt response **msgCode** as six character string.\n\nClient can use this code to verify owner of key, \nwhen calling encrypt and decrypt endpoint.\n\n*** After decrypt ciphertext this code will inactive, \nclient need to call getKey again to get new code", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/getKey\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "decrypt", + "url": "https://secure-text-api.p.rapidapi.com/", + "description": "This endpoint will decrypt request body ciphertext by privatekey.\n It response **plaintext** as string.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "encrypt", + "url": "https://secure-text-api.p.rapidapi.com/encrypt", + "description": "This endpoint will encrypt request body plaintext by publickey.\n It response **ciphertext** as string.\n Client can decrypt it by calling decrypt endpoint.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://secure-text-api.p.rapidapi.com/encrypt\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-text-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/secure_text_api/api.py b/toolbench/toolenv/tools/Cryptography/secure_text_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..726114c1662be9bb552c7f11a86f2cd706862337 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/secure_text_api/api.py @@ -0,0 +1,36 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getkey(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint will generated publickey and privatekey. + It response **msgCode** as six character string. + + Client can use this code to verify owner of key, + when calling encrypt and decrypt endpoint. + + *** After decrypt ciphertext this code will inactive, + client need to call getKey again to get new code" + + """ + url = f"https://secure-text-api.p.rapidapi.com/getkey" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "secure-text-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/securityapi.json b/toolbench/toolenv/tools/Cryptography/securityapi.json new file mode 100644 index 0000000000000000000000000000000000000000..e7d9f09681d18642898ad3946d3bba49b969df47 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/securityapi.json @@ -0,0 +1,193 @@ +{ + "tool_name":"securityAPI", + "tool_description":"Our API offers a secure and reliable encryption and decryption service utilizing the latest industry-standard cryptographic algorithms.\n\nOur SHA256 endpoint provides an easy means to verify user passwords. It compares the user-entered password with the stored hash to ensure that only authorized users gain access to your services.\n\nOur RSA endpoint generates a secure public-private key pair, allowing you to encrypt sensitive data before transmitting it over the network. This guarantees that ev...", + "title":"securityAPI", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/ajenteretecode/api/securityapi1/", + "host":"securityapi1.p.rapidapi.com", + "api_list":[ + { + "name":"base64 encrypt", + "url":"https://securityapi1.p.rapidapi.com/base64/encrypt/{data}", + "description":"base64 encrypt\nJSON: {\"msg\": message}", + "method":"GET", + "required_parameters":[ + { + "name":"data", + "type":"string", + "description":"", + "default":"{\"msg\":\"hola\"}" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/base64/encrypt/{data}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"base64 decrypt", + "url":"https://securityapi1.p.rapidapi.com/base64/decrypt/{data}", + "description":"base64 decrypt\nJSON:{\"msg\": base64_encoded_message}", + "method":"GET", + "required_parameters":[ + { + "name":"data", + "type":"string", + "description":"", + "default":"{\"msg\":\"aG9sYQ==\"}" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/base64/decrypt/{data}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"password checker", + "url":"https://securityapi1.p.rapidapi.com/pass/{json}", + "description":"check if password encripted \nAlgo Suported:\nMD4\nMD5\nSHA-1\nSHA-224\nSHA-256\nSHA-384\nSHA-512\nSHA3-224\nSHA3-256\nSHA3-384\nSHA3-512\nRIPEMD-160\nRIPEMD-320\nHAS-160\nWhirlpool\nJSON: {\"algo\":\"sha256\",\"pass\":hashed_password,\"enter_pass\":user password}", + "method":"GET", + "required_parameters":[ + { + "name":"json", + "type":"STRING", + "description":"", + "default":"{\"algo\":\"sha256\",\"pass\":\"23d4f4ec4e04604d4d8950c6b4235356a362af6a91cf6d1e6a1ebf2b16f509d9\",\"enter_pass\":\"mypassword\"}" + }, + { + "name":"json", + "type":"string", + "description":"", + "default":"{\"algo\":\"sha256\",\"pass\":\"89e01536ac207279409d4de1e5253e01f4a1769e696db0d6062ca9b8f56767c8\",\"enter_pass\":\"mypassword\"}" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/pass/{json}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"hmac", + "url":"https://securityapi1.p.rapidapi.com/pass/{json}", + "description":"verify a hmac\nJSON: {\"algo\": \"hmac\", \"pass\":hashed_password,\"enter_pass\":user password, \"key\": the_secret_key}", + "method":"GET", + "required_parameters":[ + { + "name":"json", + "type":"STRING", + "description":"", + "default":"{\"algo\":\"hmac\",\"pass\":\"4a2f14768bd846d8ad35782fce5f2e82f86a60cbf1cf430eab64d7888c76e2ba\",\"enter_pass\":\"\",\"key\":\"06ab245b7abff38202efd8db61hi419d6b3d2454cdeed0079a93291bdc67103512\"}" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/pass/{json}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"/api", + "url":"https://securityapi1.p.rapidapi.com/api", + "description":"test endpoint", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/api\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"get rsa keys", + "url":"https://securityapi1.p.rapidapi.com/rsa/key/{format}", + "description":"get rsa keys", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"format", + "type":"string", + "description":"the output with be with out the \\\\\\\\n special chars", + "default":"format=true" + } + ], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/rsa/key/{format}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"decrypt with aes", + "url":"https://securityapi1.p.rapidapi.com/aes/decrypt/{json}", + "description":"decrypt with aes \njson: {\"key\": aes_key, \"iv\": aes_iv, \"enc\": encrypted_message}\naes suported aes-256-cbc", + "method":"GET", + "required_parameters":[ + { + "name":"json", + "type":"string", + "description":"", + "default":"{\"key\":\"23001bce53e4bfc1f1f7c6cb9205fb8e112153b47f76d9c12b5ef4dc07992350\",\"iv\":\"c7ff3e6d6b9727b606552da3020cd3bb\",\"enc\":\"2df066ef9830cf0343e1c5887c80a886\"}" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/aes/decrypt/{json}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"encrypt with aes", + "url":"https://securityapi1.p.rapidapi.com/aes/encrypt/{json}", + "description":"encrypt with aes\njson: {\"key\": aes_key, \"iv\": aes_iv, \"msg\": message}\naes suported aes-256-cbc", + "method":"GET", + "required_parameters":[ + { + "name":"json", + "type":"string", + "description":"", + "default":"{\"key\":\"23001bce53e4bfc1f1f7c6cb9205fb8e112153b47f76d9c12b5ef4dc07992350\",\"iv\":\"c7ff3e6d6b9727b606552da3020cd3bb\",\"msg\":\"hola\"} " + } + ], + "optional_parameters":[ + { + "name":"data", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/aes/encrypt/{json}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"get a random aes key", + "url":"https://securityapi1.p.rapidapi.com/aes/key", + "description":"get JSON with random aes and iv key", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://securityapi1.p.rapidapi.com/aes/key\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"securityapi1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/securityapi/api.py b/toolbench/toolenv/tools/Cryptography/securityapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3405a6ecb9773dc67de3d38ffd125dc2d8422cd5 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/securityapi/api.py @@ -0,0 +1,226 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def base64_encrypt(data: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "base64 encrypt + JSON: {"msg": message}" + + """ + url = f"https://securityapi1.p.rapidapi.com/base64/encrypt/{data}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def base64_decrypt(data: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "base64 decrypt + JSON:{"msg": base64_encoded_message}" + + """ + url = f"https://securityapi1.p.rapidapi.com/base64/decrypt/{data}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def password_checker(json: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "check if password encripted + Algo Suported: + MD4 + MD5 + SHA-1 + SHA-224 + SHA-256 + SHA-384 + SHA-512 + SHA3-224 + SHA3-256 + SHA3-384 + SHA3-512 + RIPEMD-160 + RIPEMD-320 + HAS-160 + Whirlpool + JSON: {"algo":"sha256","pass":hashed_password,"enter_pass":user password}" + + """ + url = f"https://securityapi1.p.rapidapi.com/pass/{json}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hmac(json: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "verify a hmac + JSON: {"algo": "hmac", "pass":hashed_password,"enter_pass":user password, "key": the_secret_key}" + + """ + url = f"https://securityapi1.p.rapidapi.com/pass/{json}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "test endpoint" + + """ + url = f"https://securityapi1.p.rapidapi.com/api" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_rsa_keys(format: str='format=true', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get rsa keys" + format: the output with be with out the \\\\n special chars + + """ + url = f"https://securityapi1.p.rapidapi.com/rsa/key/{format}" + querystring = {} + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def decrypt_with_aes(json: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "decrypt with aes + json: {"key": aes_key, "iv": aes_iv, "enc": encrypted_message} + aes suported aes-256-cbc" + + """ + url = f"https://securityapi1.p.rapidapi.com/aes/decrypt/{json}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def encrypt_with_aes(json: str, data: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "encrypt with aes + json: {"key": aes_key, "iv": aes_iv, "msg": message} + aes suported aes-256-cbc" + + """ + url = f"https://securityapi1.p.rapidapi.com/aes/encrypt/{json}" + querystring = {} + if data: + querystring['data'] = data + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_a_random_aes_key(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get JSON with random aes and iv key" + + """ + url = f"https://securityapi1.p.rapidapi.com/aes/key" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "securityapi1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/text_qr_generator.json b/toolbench/toolenv/tools/Cryptography/text_qr_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..c83c8ea252b25fba5249b2b6e0cd465553d0a924 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/text_qr_generator.json @@ -0,0 +1,31 @@ +{ + "tool_name":"Text QR generator", + "tool_description":"It takes the text as query parameters and converts the text to QR code and provides the same as downloadable png format image.", + "title":"Text QR generator", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/kumrawath/api/text-qr-generator/", + "host":"text-qr-generator.p.rapidapi.com", + "api_list":[ + { + "name":"QR code for text to QR image", + "url":"https://text-qr-generator.p.rapidapi.com/textToQR", + "description":"API generate the image in png of the QR code will be download automatically when the request succeeds.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"", + "default":"Qr code text string" + } + ], + "code":"import requests\n\nurl = \"https://text-qr-generator.p.rapidapi.com/textToQR\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-qr-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cryptography/text_qr_generator/api.py b/toolbench/toolenv/tools/Cryptography/text_qr_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0bec64e0b834d32c8aeeed76dd9a8c0a135ee95c --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/text_qr_generator/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def qr_code_for_text_to_qr_image(text: str='Qr code text string', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API generate the image in png of the QR code will be download automatically when the request succeeds." + + """ + url = f"https://text-qr-generator.p.rapidapi.com/texttoqr" + querystring = {} + if text: + querystring['text'] = text + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "text-qr-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/uuid_v4/api.py b/toolbench/toolenv/tools/Cryptography/uuid_v4/api.py new file mode 100644 index 0000000000000000000000000000000000000000..91fbd3582522ed1bf7e64478d9ca9676aacd5e44 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/uuid_v4/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v4(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint returns a **plain text string** with a new Universal Unique Identifier, using version 4 (random)." + + """ + url = f"https://uuid-v4.p.rapidapi.com/v4" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "uuid-v4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cryptography/web3_api/api.py b/toolbench/toolenv/tools/Cryptography/web3_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..67b0dcb795bf9b5ff6ca4c06e908565dbd7cadb0 --- /dev/null +++ b/toolbench/toolenv/tools/Cryptography/web3_api/api.py @@ -0,0 +1,71 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def gettransaction(hash: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get the transaction detail by transaction hash" + + """ + url = f"https://web3-api2.p.rapidapi.com/gettransaction/{hash}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "web3-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def nativebalance(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get native balance from ethereum" + + """ + url = f"https://web3-api2.p.rapidapi.com/nativebalance/{address}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "web3-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def blocknumber(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get the current blocknumber of ethereum block chain" + + """ + url = f"https://web3-api2.p.rapidapi.com/blocknumber" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "web3-api2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Customized/.DS_Store b/toolbench/toolenv/tools/Customized/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..bc4a79cf7fe7c12accb2c4433e34ca72401155fc Binary files /dev/null and b/toolbench/toolenv/tools/Customized/.DS_Store differ diff --git a/toolbench/toolenv/tools/Customized/hello_world.json b/toolbench/toolenv/tools/Customized/hello_world.json new file mode 100644 index 0000000000000000000000000000000000000000..032be68b55db057b169a79c00627d4a558657fc9 --- /dev/null +++ b/toolbench/toolenv/tools/Customized/hello_world.json @@ -0,0 +1,17 @@ +{ + "tool_description": "Return hello world.", + "name": "hello world", + "title": "hello world", + "tool_name": "hello world", + "api_list": [ + { + "name": "get_hello_world", + "url": "", + "description": "To get 'hello world'.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [] + } + ], + "standardized_name": "hello_world" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Customized/hello_world/api.py b/toolbench/toolenv/tools/Customized/hello_world/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f930b23cec729795c7f8ccc37b1dfd76b1d7daf2 --- /dev/null +++ b/toolbench/toolenv/tools/Customized/hello_world/api.py @@ -0,0 +1,6 @@ +def get_hello_world(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + To get hello world + """ + observation = "hello world" + return observation diff --git a/toolbench/toolenv/tools/Cybersecurity/aka_bmp.json b/toolbench/toolenv/tools/Cybersecurity/aka_bmp.json new file mode 100644 index 0000000000000000000000000000000000000000..d7210f95a8ba825301a106d42553a49e627fbbeb --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/aka_bmp.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_8e6c8917-2d38-45de-a34f-855b473c3a08", + "tool_description": "Akamai BMP API", + "home_url": "https://rapidapi.com/fdis-fdis-default/api/aka-bmp/", + "name": "Aka BMP", + "title": "Aka BMP", + "pricing": "FREEMIUM", + "tool_name": "Aka BMP", + "score": { + "avgServiceLevel": 100, + "avgLatency": 726, + "avgSuccessRate": 100, + "popularityScore": 9.3, + "__typename": "Score" + }, + "host": "aka-bmp.p.rapidapi.com", + "api_list": [ + { + "name": "BMP", + "url": "https://aka-bmp.p.rapidapi.com/bmp", + "description": "Aka BMP sensor gen endpoint, android only.\nSupports Nike/Adidas App/Confirmed (3.4.4/3.2.3)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aka-bmp.p.rapidapi.com/bmp\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aka-bmp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aka-bmp.p.rapidapi.com/bmp\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aka-bmp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/amazon_web_services_aws_guardduty_detector.json b/toolbench/toolenv/tools/Cybersecurity/amazon_web_services_aws_guardduty_detector.json new file mode 100644 index 0000000000000000000000000000000000000000..f22168bc2e10dc694edf408e266b8db55e9c69fe --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/amazon_web_services_aws_guardduty_detector.json @@ -0,0 +1,46 @@ +{ + "product_id": "api_d3b6686a-2ffb-4bf8-b3e8-044d0149dfd6", + "tool_description": "The AWS GuardDuty API enables real-time threat detection, automated response, and custom integrations to enhance the security of your AWS accounts.\n\n
", + "home_url": "https://rapidapi.com/wyattb/api/amazon-web-services-aws-guardduty-detector/", + "name": "Amazon Web Services (AWS) GuardDuty Detector", + "title": "Amazon Web Services (AWS) GuardDuty Detector", + "pricing": "FREE", + "tool_name": "Amazon Web Services (AWS) GuardDuty Detector", + "score": null, + "host": "amazon-web-services-aws-guardduty-detector.p.rapidapi.com", + "api_list": [ + { + "name": "/detector/{detectorId}", + "url": "https://amazon-web-services-aws-guardduty-detector.p.rapidapi.com/detector/{detectorId}", + "description": "This operation enables users to update and modify the configuration of a specific detector identified by its detectorId. By providing the detectorId as a parameter in the request to this endpoint, users can make changes to various properties of the detector, such as alert thresholds, monitoring rules, or other relevant settings.", + "method": "POST", + "required_parameters": [ + { + "name": "detectorId", + "type": "STRING", + "description": "ID of the detector", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-web-services-aws-guardduty-detector.p.rapidapi.com/detector/{detectorId}\"\nquerystring = {\"detectorId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-services-aws-guardduty-detector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-services-aws-guardduty-detector.p.rapidapi.com/detector/{detectorId}\"\nquerystring = {\"detectorId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-services-aws-guardduty-detector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "/detector", + "url": "https://amazon-web-services-aws-guardduty-detector.p.rapidapi.com/detector", + "description": "This operation enables the creation of a new detector resource. By using this endpoint, users can set up a detector instance to monitor and detect potential threats within their system.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-web-services-aws-guardduty-detector.p.rapidapi.com/detector\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-services-aws-guardduty-detector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-services-aws-guardduty-detector.p.rapidapi.com/detector\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-services-aws-guardduty-detector.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/brandsek_breach_check.json b/toolbench/toolenv/tools/Cybersecurity/brandsek_breach_check.json new file mode 100644 index 0000000000000000000000000000000000000000..d10f0bbf2ead2d02f833bf3e4ce56cd697c6fcf2 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/brandsek_breach_check.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_6df8d0c7-d815-4336-a2e7-e46b956605ef", + "tool_description": "Brandsek Shield is a powerful API service that helps you protect your personal information from data breaches. With Brandsek Shield, you can easily check if your email address, password, or other personal information has been compromised in a data breach. This information can then be used to take steps to protect your accounts and prevent identity theft. Brandsek Shield is easy to use and affordable. You can simply sign up for a plan, enter your personal information, and Brandsek Shield will...", + "home_url": "https://rapidapi.com/brandsek-brandsek-default/api/brandsek-breach-check1/", + "name": "Brandsek Breach Check", + "title": "Brandsek Breach Check", + "pricing": "FREEMIUM", + "tool_name": "Brandsek Breach Check", + "score": { + "avgServiceLevel": 67, + "avgLatency": 16978, + "avgSuccessRate": 67, + "popularityScore": 8.4, + "__typename": "Score" + }, + "host": "brandsek-breach-check1.p.rapidapi.com", + "api_list": [ + { + "name": "Breach Check", + "url": "https://brandsek-breach-check1.p.rapidapi.com/brandsek-breach-check", + "description": "Pass domain or email to find the list of breaches associated with it.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://brandsek-breach-check1.p.rapidapi.com/brandsek-breach-check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"brandsek-breach-check1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://brandsek-breach-check1.p.rapidapi.com/brandsek-breach-check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"brandsek-breach-check1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/corbado.json b/toolbench/toolenv/tools/Cybersecurity/corbado.json new file mode 100644 index 0000000000000000000000000000000000000000..5ca4687ef40f99a39a310133f3b04c14dcbafa6c --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/corbado.json @@ -0,0 +1,391 @@ +{ + "product_id": "api_7f7915df-2310-4d5c-a28f-ec96a078cd0d", + "tool_description": "Let your users log in with passkeys via Face ID or Touch ID to boost conversion, improve UX and increase security.", + "home_url": "https://rapidapi.com/vdelitz/api/corbado1/", + "name": "Corbado", + "title": "Corbado", + "pricing": "FREE", + "tool_name": "Corbado", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1078, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "corbado1.p.rapidapi.com", + "api_list": [ + { + "name": "projectSecretCreate", + "url": "https://corbado1.p.rapidapi.com/v1/projectSecrets", + "description": "Creates an API secret", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/projectSecrets\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/projectSecrets\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "userEmailCreate", + "url": "https://corbado1.p.rapidapi.com/v1/users//emails", + "description": "Add an email to an existing user", + "method": "POST", + "required_parameters": [ + { + "name": "userID", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users//emails\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users/{userid}/emails\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "userCreate", + "url": "https://corbado1.p.rapidapi.com/v1/users", + "description": "Creates a new user", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "smsTemplateCreate", + "url": "https://corbado1.p.rapidapi.com/v1/smsTemplates", + "description": "Creates a new SMS template", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/smsTemplates\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/smsTemplates\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "androidAppConfigCreate", + "url": "https://corbado1.p.rapidapi.com/v1/androidappconfig", + "description": "Creates a new Android App Configuration", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/androidappconfig\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/androidappconfig\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "smsCodeSend", + "url": "https://corbado1.p.rapidapi.com/v1/smsCodes", + "description": "Creates SMS OTP and sends it to given phone number", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/smsCodes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/smsCodes\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "authMethodsList", + "url": "https://corbado1.p.rapidapi.com/v1/authMethods", + "description": "Retrieves possible authentication methods for provided username", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/authMethods\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/authMethods\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "emailTemplateCreate", + "url": "https://corbado1.p.rapidapi.com/v1/emailTemplates", + "description": "Creates a new email template", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/emailTemplates\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/emailTemplates\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "webAuthnRegisterFinish", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/register/finish", + "description": "Completes registration of a user for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/register/finish\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/register/finish\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "webAuthnMediationStart", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/mediation/start", + "description": "Starts mediation for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/mediation/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/mediation/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "emailLinkSend", + "url": "https://corbado1.p.rapidapi.com/v1/emailLinks", + "description": "Creates email magic link and sends it to given email address", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/emailLinks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/emailLinks\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "sessionTokenCreate", + "url": "https://corbado1.p.rapidapi.com/v1/sessions", + "description": "Creates a new session token for provided user data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/sessions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/sessions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "webAuthnCredentialExists", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/credential/exists", + "description": "Checks if active webauthn credential exists for provided user and device", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/credential/exists\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/credential/exists\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "iOsAppConfigCreate", + "url": "https://corbado1.p.rapidapi.com/v1/iosappconfig", + "description": "Creates a new iOS App Config", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/iosappconfig\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/iosappconfig\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "userCustomLoginIdentifierCreate", + "url": "https://corbado1.p.rapidapi.com/v1/users//customLoginIdentifiers", + "description": "Add a custom login identifier to an existing user", + "method": "POST", + "required_parameters": [ + { + "name": "userID", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users//customLoginIdentifiers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users/{userid}/customLoginIdentifiers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "webAuthnAssociateStart", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/associate/start", + "description": "Starts association token flow for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/associate/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/associate/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "projectConfigSave", + "url": "https://corbado1.p.rapidapi.com/v1/projectConfig", + "description": "Saves project config", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/projectConfig\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/projectConfig\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "webAuthnRegisterStart", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/register/start", + "description": "Starts registration of a user for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/register/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/register/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "userPhoneNumberCreate", + "url": "https://corbado1.p.rapidapi.com/v1/users//phoneNumbers", + "description": "Add a phone number to an existing user", + "method": "POST", + "required_parameters": [ + { + "name": "userID", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users//phoneNumbers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/users/{userid}/phoneNumbers\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "webAuthnSettingCreate", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/settings", + "description": "Creates a new setting for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/settings\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/settings\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "webAuthnAuthenticateStart", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/authenticate/start", + "description": "Starts authentication of a user for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/authenticate/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/authenticate/start\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "associationTokenCreate", + "url": "https://corbado1.p.rapidapi.com/v1/associationTokens", + "description": "Creates a new association token", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/associationTokens\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/associationTokens\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "webAuthnAuthenticateFinish", + "url": "https://corbado1.p.rapidapi.com/v1/webauthn/authenticate/finish", + "description": "Completes authentication of a user for Passkeys (Biometrics)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/authenticate/finish\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/webauthn/authenticate/finish\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "sessionTokenVerify", + "url": "https://corbado1.p.rapidapi.com/v1/sessions/verify", + "description": "Verifies session token and returns attached user data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/sessions/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/sessions/verify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object" + } + }, + { + "name": "authTokenValidate", + "url": "https://corbado1.p.rapidapi.com/v1/authTokens/validate", + "description": "Validates auth token and returns attached user data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/authTokens/validate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://corbado1.p.rapidapi.com/v1/authTokens/validate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"corbado1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/demo_project.json b/toolbench/toolenv/tools/Cybersecurity/demo_project.json new file mode 100644 index 0000000000000000000000000000000000000000..6f71abfbc544aa747cd35bd6102baad47c52da96 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/demo_project.json @@ -0,0 +1,105 @@ +{ + "product_id": "api_e2beba12-86e5-4528-8965-1951d3e9111e", + "tool_description": "Khuy\u1ebfn m\u00e3i\u00a0l\u1eafp m\u1ea1ng FPT cho 63 t\u1ec9nh th\u00e0nh mi\u1ec5n ph\u00ed l\u1eafp \u0111\u1eb7t + modem WiFi 2 b\u0103ng t\u1ea7ng + t\u1eb7ng 02 th\u00e1ng s\u1eed d\u1ee5ng. Phone: 0969800968. Website: https://fpt-lapwifi.vn", + "home_url": "https://rapidapi.com/fptlapwifivn/api/demo-project51070/", + "name": "\ud83d\udc4b Demo Project", + "title": "\ud83d\udc4b Demo Project", + "pricing": "FREE", + "tool_name": "\ud83d\udc4b Demo Project", + "score": null, + "host": "demo-project51070.p.rapidapi.com", + "api_list": [ + { + "name": "Login", + "url": "https://demo-project51070.p.rapidapi.com/auth/login", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create User (Sign Up)", + "url": "https://demo-project51070.p.rapidapi.com/auth/user", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/auth/user\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/auth/user\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Add to Order", + "url": "https://demo-project51070.p.rapidapi.com/order/{id}/product", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/order/{id}/product\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/order/{id}/product\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Order", + "url": "https://demo-project51070.p.rapidapi.com/order/new", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/order/new\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/order/new\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Place Order", + "url": "https://demo-project51070.p.rapidapi.com/order/{id}/place", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/order/{id}/place\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/order/{id}/place\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Create Product", + "url": "https://demo-project51070.p.rapidapi.com/catalog/product", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/catalog/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://demo-project51070.p.rapidapi.com/catalog/product\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"demo-project51070.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/domains_records/api.py b/toolbench/toolenv/tools/Cybersecurity/domains_records/api.py new file mode 100644 index 0000000000000000000000000000000000000000..46d34aa0495f9bea870522d63e5e5086336662af --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/domains_records/api.py @@ -0,0 +1,225 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def initiate_download_of_domain_records_a_on_the_requested_domain_with_different_output_file_formats(format: str, domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "initiate download of domain records (A) on the requested domain with different output file formats. + formats: csv, json, maltego and subdomains. + Usually, + 1. csv format can be import to xls or other table view; + 2. maltego format can be import to app. Maltego (www.maltego.com)." + + """ + url = f"https://domains-records.p.rapidapi.com/download/domain/pairs/{format}/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def count_records_a_by_ipv4_json_response(ipv4: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "count records (pairs hostname - IPv4) by ipv4 address" + + """ + url = f"https://domains-records.p.rapidapi.com/info/ip/{ipv4}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_domain_records_a_by_ipv4_json_response(ipv4: str, limit: str=None, weeks: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get domain records(A) by IPv4, by default, search depth 8 weeks, response limit 2000 records." + + """ + url = f"https://domains-records.p.rapidapi.com/find/ip/{ipv4}" + querystring = {} + if limit: + querystring['limit'] = limit + if weeks: + querystring['weeks'] = weeks + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def count_records_a_by_domain_json_response(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "count records (pairs hostname - IPv4) by domain" + + """ + url = f"https://domains-records.p.rapidapi.com/info/domain/pairs/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def initiate_download_of_domain_records_a_on_the_requested_ipv4_with_different_output_file_formats(ipv4: str, format: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "initiate download of domain records (A) on the requested domain with different output file formats. + formats: csv, json, maltego. + Usually, + 1. csv format can be import to xls or other table view; + 2. maltego format can be import to app. Maltego (www.maltego.com)." + + """ + url = f"https://domains-records.p.rapidapi.com/download/network/{format}/32/{ipv4}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def subdomains_from_domain_stream_text_response(domain: str, limit: int=2000, weeks: int=8, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Stream subdomains, by default, search depth 8 weeks, response limit 2000 records." + + """ + url = f"https://domains-records.p.rapidapi.com/stream/subdomains/{domain}" + querystring = {} + if limit: + querystring['limit'] = limit + if weeks: + querystring['weeks'] = weeks + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_domain_records_pairs_hostname_and_ipv4_by_given_domain_stream_text_response(domain: str, limit: int=2000, weeks: int=8, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Stream records about subdomains as text(csv). + By default, search depth 8 weeks, response limit 2000 records." + + """ + url = f"https://domains-records.p.rapidapi.com/stream/domain/{domain}" + querystring = {} + if limit: + querystring['limit'] = limit + if weeks: + querystring['weeks'] = weeks + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_hostnames_from_ipv4_stream_text(address: str, limit: int=2000, weeks: int=8, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "stream text(csv) of unique pairs from address and hostname about given ipv4 address. + By default, search depth 8 weeks, response limit 2000 records." + limit: result limit + weeks: search for last weeks from current date + + """ + url = f"https://domains-records.p.rapidapi.com/stream/find/ip/{address}" + querystring = {} + if limit: + querystring['limit'] = limit + if weeks: + querystring['weeks'] = weeks + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_domain_records_pairs_hostname_and_ipv4_by_given_domain_json_response(domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns records FQDN (type A) with IPv4 with history as json" + + """ + url = f"https://domains-records.p.rapidapi.com/find/domain/pairs/{domain}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "domains-records.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/email_validator.json b/toolbench/toolenv/tools/Cybersecurity/email_validator.json new file mode 100644 index 0000000000000000000000000000000000000000..c1f5f2a68e095d5d233b06708e7952e5fcf0b2c1 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/email_validator.json @@ -0,0 +1,46 @@ +{ + "tool_name":"Email Validator", + "tool_description":"An api to validate if email is valid", + "title":"Email Validator", + "pricing":"FREE", + "score":null, + "home_url":"https://rapidapi.com/marianojaozamis/api/email-validator42/", + "host":"email-validator42.p.rapidapi.com", + "api_list":[ + { + "name":"/validate-email", + "url":"https://email-validator42.p.rapidapi.com/validate-email", + "description":"Returns a boolean value indicating whether the email address is valid or not.", + "method":"GET", + "required_parameters":[ + { + "name":"email", + "type":"STRING", + "description":"The email address to validate.", + "default":"" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://email-validator42.p.rapidapi.com/validate-email\"\nquerystring = {\"email\": email}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"email-validator42.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "ok":true, + "message":"" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "ok":{ + "type":"boolean", + "description":"Indicates whether the email address is valid or not." + }, + "message":{ + "type":"string", + "description":"A message indicating that the email address is valid." + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/email_validator/api.py b/toolbench/toolenv/tools/Cybersecurity/email_validator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..bffe925a6abbc718d81342729adf9087795299e0 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/email_validator/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def validate_email(email: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a boolean value indicating whether the email address is valid or not." + email: The email address to validate. + + """ + url = f"https://email-validator42.p.rapidapi.com/validate-email" + querystring = {'email': email, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "email-validator42.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/gre_geoip/api.py b/toolbench/toolenv/tools/Cybersecurity/gre_geoip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..486e872f83ad6f9203016a85ded6e10978e6d987 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/gre_geoip/api.py @@ -0,0 +1,119 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def bulklookup(ips: str, key: str, params: str='currency', format: str='XML', lang: str='AR', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "BulkLookup endpoint: Returns the geolocation data of multiple IP Addresses." + ips: The IP Addresses you want to lookup. It's a CSV (Comma Separated Values) + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + params: The modules you want to use of the request. It's a CSV (Comma Separated Values) + format: Sets the format of the API response. JSON is the default format. + lang: Used to inform the API to retrieve the response in your native language. + + """ + url = f"https://gre-geoip.p.rapidapi.com/bulklookup" + querystring = {'ips': ips, 'key': key, } + if params: + querystring['params'] = params + if format: + querystring['format'] = format + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gre-geoip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validateemail(email: str, key: str, format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method can be used as an extra-layer of your system for validating email addresses." + email: The Email Address you want to validate. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://gre-geoip.p.rapidapi.com/validateemail" + querystring = {'email': email, 'key': key, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gre-geoip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validatephone(countrycode: str, phone: str, key: str, format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method can be used as an extra-layer of your system for validating phone numbers." + countrycode: The ISO 3166-1 alpha-2 format of the country code of the phone number. + phone: The Phone Number you want to validate. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://gre-geoip.p.rapidapi.com/validatephone" + querystring = {'countryCode': countrycode, 'phone': phone, 'key': key, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gre-geoip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def binlookup(bin: str, key: str, format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method helps you validate any BIN/IIN number and retrieve the full details related to the bank, brand, type, scheme, country, etc." + bin: The BIN/IIN you want to lookup/validate. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://gre-geoip.p.rapidapi.com/binlookup" + querystring = {'bin': bin, 'key': key, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "gre-geoip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/greip.json b/toolbench/toolenv/tools/Cybersecurity/greip.json new file mode 100644 index 0000000000000000000000000000000000000000..6c522b41deb536f5c543787a912e4df123423c81 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/greip.json @@ -0,0 +1,578 @@ +{ + "tool_name":"Greip", + "tool_description":"Deploy AI-Powered modules to prevent payment fraud", + "title":"Greip", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":2012, + "avgSuccessRate":100, + "popularityScore":9.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/gre-development-ltd-gre-development-ltd-default/api/greip/", + "host":"greip.p.rapidapi.com", + "api_list":[ + { + "name":"/BINLookup", + "url":"https://greip.p.rapidapi.com/BINLookup", + "description":"This method helps you validate any BIN/IIN number and retrieve the full details related to the bank, brand, type, scheme, country, etc.", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + }, + { + "name":"bin", + "type":"STRING", + "description":"The BIN/IIN you want to lookup/validate.", + "default":"489022" + } + ], + "optional_parameters":[ + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"JSON" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/BINLookup\"\nquerystring = {\"key\": key, \"bin\": bin, \"format\": format}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/badWords", + "url":"https://greip.p.rapidapi.com/badWords", + "description":"badWords endpoint: Detects whether user inputs contain profanity or not.", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + }, + { + "name":"text", + "type":"STRING", + "description":"The text you want to check.", + "default":"This is a sample text without profanity!" + } + ], + "optional_parameters":[ + { + "name":"scoreOnly", + "type":"STRING", + "description":"Set to `yes` to return only the score of the text and whether it's safe or not.", + "default":"no" + }, + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"JSON" + }, + { + "name":"listBadWords", + "type":"STRING", + "description":"Set to `yes` to list the bad-words as an Array.", + "default":"no" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/badWords\"\nquerystring = {\"key\": key, \"scoreOnly\": scoreonly, \"text\": text, \"format\": format, \"listBadWords\": listbadwords}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/validatePhone", + "url":"https://greip.p.rapidapi.com/validatePhone", + "description":"This method can be used as an extra-layer of your system for validating phone numbers.", + "method":"GET", + "required_parameters":[ + { + "name":"countryCode", + "type":"STRING", + "description":"The ISO 3166-1 alpha-2 format of the country code of the phone number.", + "default":"US" + }, + { + "name":"phone", + "type":"STRING", + "description":"The Phone Number you want to validate.", + "default":"1234567890" + }, + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + } + ], + "optional_parameters":[ + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"JSON" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/validatePhone\"\nquerystring = {\"format\": format, \"countryCode\": countrycode, \"phone\": phone, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/BulkLookup", + "url":"https://greip.p.rapidapi.com/BulkLookup", + "description":"BulkLookup endpoint: Returns the geolocation data of multiple IP Addresses.", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + }, + { + "name":"ips", + "type":"STRING", + "description":"The IP Addresses you want to lookup. It's a CSV (Comma Separated Values)", + "default":"1.1.1.1,2.2.2.2" + } + ], + "optional_parameters":[ + { + "name":"params", + "type":"STRING", + "description":"The modules you want to use of the request. It's a CSV (Comma Separated Values)", + "default":"currency" + }, + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"XML" + }, + { + "name":"lang", + "type":"STRING", + "description":"Used to inform the API to retrieve the response in your native language.", + "default":"AR" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/BulkLookup\"\nquerystring = {\"key\": key, \"params\": params, \"ips\": ips, \"format\": format, \"lang\": lang}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/IPLookup", + "url":"https://greip.p.rapidapi.com/IPLookup", + "description":"Returns the geolocation data of a specific IP Address.", + "method":"GET", + "required_parameters":[ + { + "name":"ip", + "type":"STRING", + "description":"The IP Address you want to lookup.", + "default":"1.1.1.1" + }, + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + } + ], + "optional_parameters":[ + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"XML" + }, + { + "name":"params", + "type":"STRING", + "description":"The modules you want to use of the request. It's a CSV (Comma Separated Values)", + "default":"currency" + }, + { + "name":"lang", + "type":"STRING", + "description":"Used to inform the API to retrieve the response in your native language.", + "default":"AR" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/IPLookup\"\nquerystring = {\"format\": format, \"ip\": ip, \"params\": params, \"lang\": lang, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/Country", + "url":"https://greip.p.rapidapi.com/Country", + "description":"Country endpoint: Returns the information of a specific country by passing the `countrCode`.", + "method":"GET", + "required_parameters":[ + { + "name":"CountryCode", + "type":"STRING", + "description":"The Country Code of the country you want to fetch it's data.", + "default":"PS" + }, + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + } + ], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"Used to inform the API to retrieve the response in your native language.", + "default":"AR" + }, + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"XML" + }, + { + "name":"params", + "type":"STRING", + "description":"The modules you want to use of the request. It's a CSV (Comma Separated Values)", + "default":"language" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/Country\"\nquerystring = {\"CountryCode\": countrycode, \"lang\": lang, \"format\": format, \"key\": key, \"params\": params}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/GeoIP", + "url":"https://greip.p.rapidapi.com/GeoIP", + "description":"Returns the geolocation data of the visitor.", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + } + ], + "optional_parameters":[ + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"XML" + }, + { + "name":"lang", + "type":"STRING", + "description":"Used to inform the API to retrieve the response in your native language.", + "default":"AR" + }, + { + "name":"params", + "type":"STRING", + "description":"The modules you want to use of the request. It's a CSV (Comma Separated Values)", + "default":"currency" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/GeoIP\"\nquerystring = {\"format\": format, \"lang\": lang, \"params\": params, \"key\": key}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/validateEmail", + "url":"https://greip.p.rapidapi.com/validateEmail", + "description":"This method can be used as an extra-layer of your system for validating email addresses.", + "method":"GET", + "required_parameters":[ + { + "name":"email", + "type":"STRING", + "description":"The Email Address you want to validate.", + "default":"name@domain.com" + }, + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + } + ], + "optional_parameters":[ + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"JSON" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/validateEmail\"\nquerystring = {\"email\": email, \"key\": key, \"format\": format}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"/ASNLookup", + "url":"https://greip.p.rapidapi.com/ASNLookup", + "description":"ASNLookup endpoint: This method helps you lookup any AS Number. It returns the type, organisation details, routes, etc.", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first.", + "default":"2517bc4fc3f790e8f09bc808bb63b899" + }, + { + "name":"asn", + "type":"STRING", + "description":"The AS Number you want to lookup", + "default":"15169" + } + ], + "optional_parameters":[ + { + "name":"isList", + "type":"STRING", + "description":"Set this to true if you want to list all routes of both IPv4 and IPv6.", + "default":"no" + }, + { + "name":"format", + "type":"STRING", + "description":"Sets the format of the API response. JSON is the default format.", + "default":"JSON" + } + ], + "code":"import requests\n\nurl = \"https://greip.p.rapidapi.com/ASNLookup\"\nquerystring = {\"isList\": islist, \"format\": format, \"key\": key, \"asn\": asn}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"greip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/greip/api.py b/toolbench/toolenv/tools/Cybersecurity/greip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..84b82ca153581656cbc035578428d0b37afe0736 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/greip/api.py @@ -0,0 +1,275 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def binlookup(key: str, bin: str, format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method helps you validate any BIN/IIN number and retrieve the full details related to the bank, brand, type, scheme, country, etc." + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + bin: The BIN/IIN you want to lookup/validate. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://greip.p.rapidapi.com/binlookup" + querystring = {'key': key, 'bin': bin, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def badwords(key: str, text: str, scoreonly: str='no', format: str='JSON', listbadwords: str='no', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "badWords endpoint: Detects whether user inputs contain profanity or not." + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + text: The text you want to check. + scoreonly: Set to `yes` to return only the score of the text and whether it's safe or not. + format: Sets the format of the API response. JSON is the default format. + listbadwords: Set to `yes` to list the bad-words as an Array. + + """ + url = f"https://greip.p.rapidapi.com/badwords" + querystring = {'key': key, 'text': text, } + if scoreonly: + querystring['scoreOnly'] = scoreonly + if format: + querystring['format'] = format + if listbadwords: + querystring['listBadWords'] = listbadwords + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validatephone(countrycode: str, phone: str, key: str, format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method can be used as an extra-layer of your system for validating phone numbers." + countrycode: The ISO 3166-1 alpha-2 format of the country code of the phone number. + phone: The Phone Number you want to validate. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://greip.p.rapidapi.com/validatephone" + querystring = {'countryCode': countrycode, 'phone': phone, 'key': key, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def bulklookup(key: str, ips: str, params: str='currency', format: str='XML', lang: str='AR', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "BulkLookup endpoint: Returns the geolocation data of multiple IP Addresses." + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + ips: The IP Addresses you want to lookup. It's a CSV (Comma Separated Values) + params: The modules you want to use of the request. It's a CSV (Comma Separated Values) + format: Sets the format of the API response. JSON is the default format. + lang: Used to inform the API to retrieve the response in your native language. + + """ + url = f"https://greip.p.rapidapi.com/bulklookup" + querystring = {'key': key, 'ips': ips, } + if params: + querystring['params'] = params + if format: + querystring['format'] = format + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def iplookup(ip: str, key: str, format: str='XML', params: str='currency', lang: str='AR', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the geolocation data of a specific IP Address." + ip: The IP Address you want to lookup. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + params: The modules you want to use of the request. It's a CSV (Comma Separated Values) + lang: Used to inform the API to retrieve the response in your native language. + + """ + url = f"https://greip.p.rapidapi.com/iplookup" + querystring = {'ip': ip, 'key': key, } + if format: + querystring['format'] = format + if params: + querystring['params'] = params + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def country(countrycode: str, key: str, lang: str='AR', format: str='XML', params: str='language', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Country endpoint: Returns the information of a specific country by passing the `countrCode`." + countrycode: The Country Code of the country you want to fetch it's data. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + lang: Used to inform the API to retrieve the response in your native language. + format: Sets the format of the API response. JSON is the default format. + params: The modules you want to use of the request. It's a CSV (Comma Separated Values) + + """ + url = f"https://greip.p.rapidapi.com/country" + querystring = {'CountryCode': countrycode, 'key': key, } + if lang: + querystring['lang'] = lang + if format: + querystring['format'] = format + if params: + querystring['params'] = params + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def geoip(key: str, format: str='XML', lang: str='AR', params: str='currency', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the geolocation data of the visitor." + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + lang: Used to inform the API to retrieve the response in your native language. + params: The modules you want to use of the request. It's a CSV (Comma Separated Values) + + """ + url = f"https://greip.p.rapidapi.com/geoip" + querystring = {'key': key, } + if format: + querystring['format'] = format + if lang: + querystring['lang'] = lang + if params: + querystring['params'] = params + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def validateemail(email: str, key: str, format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This method can be used as an extra-layer of your system for validating email addresses." + email: The Email Address you want to validate. + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://greip.p.rapidapi.com/validateemail" + querystring = {'email': email, 'key': key, } + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def asnlookup(key: str, asn: str, islist: str='no', format: str='JSON', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "ASNLookup endpoint: This method helps you lookup any AS Number. It returns the type, organisation details, routes, etc." + key: Your API Key. Each user has a unique API Key that can be used to access the API functions. If you don't have an account yet, please create new account first. + asn: The AS Number you want to lookup + islist: Set this to true if you want to list all routes of both IPv4 and IPv6. + format: Sets the format of the API response. JSON is the default format. + + """ + url = f"https://greip.p.rapidapi.com/asnlookup" + querystring = {'key': key, 'asn': asn, } + if islist: + querystring['isList'] = islist + if format: + querystring['format'] = format + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "greip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/ip_threat_lookup.json b/toolbench/toolenv/tools/Cybersecurity/ip_threat_lookup.json new file mode 100644 index 0000000000000000000000000000000000000000..6de9863e6d62d937ef8d3ff3d2493cd0a42ffd81 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/ip_threat_lookup.json @@ -0,0 +1,88 @@ +{ + "tool_name":"IP Threat Lookup", + "tool_description":"Lookup specific IP addresses to see if they are a threat to your network.", + "title":"IP Threat Lookup", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/ryanwil1/api/ip-threat-lookup/", + "host":"ip-threat-lookup.p.rapidapi.com", + "api_list":[ + { + "name":"ipLookup", + "url":"https://ip-threat-lookup.p.rapidapi.com/api/v2/check", + "description":"Get the details of a specific IP address, and whether it poses a threat to your network with a \"Confidence of Abuse\" score and the number of times it has been reported.", + "method":"GET", + "required_parameters":[ + { + "name":"ipAddress", + "type":"STRING", + "description":"", + "default":"x.x.x.x" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ip-threat-lookup.p.rapidapi.com/api/v2/check\"\nquerystring = {\"ipAddress\": ipaddress}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ip-threat-lookup.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"object", + "properties":{ + "ipAddress":{ + "type":"string" + }, + "isPublic":{ + "type":"boolean" + }, + "ipVersion":{ + "type":"integer" + }, + "isWhitelisted":{ + "type":"boolean" + }, + "abuseConfidenceScore":{ + "type":"integer" + }, + "countryCode":{ + "type":"string" + }, + "usageType":{ + "type":"string" + }, + "isp":{ + "type":"string" + }, + "domain":{ + "type":"string" + }, + "hostnames":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "isTor":{ + "type":"boolean" + }, + "totalReports":{ + "type":"integer" + }, + "numDistinctUsers":{ + "type":"integer" + }, + "lastReportedAt":{ + "type":"string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/ip_threat_lookup/api.py b/toolbench/toolenv/tools/Cybersecurity/ip_threat_lookup/api.py new file mode 100644 index 0000000000000000000000000000000000000000..da10fec6fe97d0c4fdc9f0bec4527759d6109744 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/ip_threat_lookup/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def iplookup(ipaddress: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the details of a specific IP address, and whether it poses a threat to your network with a "Confidence of Abuse" score and the number of times it has been reported." + + """ + url = f"https://ip-threat-lookup.p.rapidapi.com/api/v2/check" + querystring = {'ipAddress': ipaddress, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ip-threat-lookup.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/javascript_vulnerability_scan.json b/toolbench/toolenv/tools/Cybersecurity/javascript_vulnerability_scan.json new file mode 100644 index 0000000000000000000000000000000000000000..a47bd941b8a032c764bf23a561c929f8f995ec60 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/javascript_vulnerability_scan.json @@ -0,0 +1,31 @@ +{ + "product_id": "api_d3348e40-0082-41cb-ac7d-74075effc55d", + "tool_description": "Scan your website to detect Javascript files with vulnerabilities.", + "home_url": "https://rapidapi.com/juliansalas-yFfN6rOlI-e/api/javascript-vulnerability-scan/", + "name": "Javascript Vulnerability Scan", + "title": "Javascript Vulnerability Scan", + "pricing": "FREEMIUM", + "tool_name": "Javascript Vulnerability Scan", + "score": null, + "host": "javascript-vulnerability-scan.p.rapidapi.com", + "api_list": [ + { + "name": "analyzeUrl", + "url": "https://javascript-vulnerability-scan.p.rapidapi.com/analyzeUrl", + "description": "Send POST data with url parameter.\n\nExample: curl -X POST -d \"url=URL_TO_SCAN\"", + "method": "POST", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "", + "default": "example.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://javascript-vulnerability-scan.p.rapidapi.com/analyzeUrl\"\nquerystring = {\"url\": \"example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"javascript-vulnerability-scan.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://javascript-vulnerability-scan.p.rapidapi.com/analyzeUrl\"\nquerystring = {\"url\": \"example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"javascript-vulnerability-scan.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/loginllama.json b/toolbench/toolenv/tools/Cybersecurity/loginllama.json new file mode 100644 index 0000000000000000000000000000000000000000..87f41bd81a439fe15f474c9021f7644477711dd2 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/loginllama.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_c8b5d16b-bf3b-4e88-a7c6-ed3b02a4c708", + "tool_description": "Protect against suspicious logins on your app, powered by AI", + "home_url": "https://rapidapi.com/joshghent/api/loginllama/", + "name": "LoginLlama", + "title": "LoginLlama", + "pricing": "FREE", + "tool_name": "LoginLlama", + "score": null, + "host": "loginllama.p.rapidapi.com", + "api_list": [ + { + "name": "check.login", + "url": "https://loginllama.p.rapidapi.com/login/check", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://loginllama.p.rapidapi.com/login/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"loginllama.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://loginllama.p.rapidapi.com/login/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"loginllama.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/mact_ai.json b/toolbench/toolenv/tools/Cybersecurity/mact_ai.json new file mode 100644 index 0000000000000000000000000000000000000000..4e6663894b77d3741ab988e7bec9589b23c12f0e --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/mact_ai.json @@ -0,0 +1,32 @@ +{ + "product_id": "api_b8ec029e-8ae4-4364-abd2-c29428238c14", + "tool_description": "AI generated mouse activity for Aka", + "home_url": "https://rapidapi.com/k3ru/api/mact-ai/", + "name": "Mact AI ", + "title": "Mact AI ", + "pricing": "PAID", + "tool_name": "Mact AI ", + "score": { + "avgServiceLevel": 0, + "avgLatency": 376, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "mact-ai.p.rapidapi.com", + "api_list": [ + { + "name": "Generate Mact", + "url": "https://mact-ai.p.rapidapi.com/mact", + "description": "Returns the resolution used for the coordinates as well as the coordinates and their corresponding timestamps.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://mact-ai.p.rapidapi.com/mact\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mact-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://mact-ai.p.rapidapi.com/mact\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"mact-ai.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/netdetective.json b/toolbench/toolenv/tools/Cybersecurity/netdetective.json new file mode 100644 index 0000000000000000000000000000000000000000..9ff000c0c0e3ba8b166458509eb1921215fd3e8d --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/netdetective.json @@ -0,0 +1,313 @@ +{ + "tool_name":"NetDetective", + "tool_description":"NetDetective is an easy-to-use API that provides information about an IP address, including, but not limited to, whether it's known for spam, brute-force attacks, bot-nets, VPN endpoints, data center endpoints, and more. With DetectiveIP, you can quickly and easily gather information about any IP address to help filter requests and avoid potential attacks.", + "title":"NetDetective", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1420, + "avgSuccessRate":99, + "popularityScore":9.5, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/tomwimmenhove/api/netdetective/", + "host":"netdetective.p.rapidapi.com", + "api_list":[ + { + "name":"/query", + "url":"https://netdetective.p.rapidapi.com/query", + "description":"Query information about an IP address.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"ipaddress", + "type":"STRING", + "description":"The IP address to use for the query.\r\nDefaults to the ip address of the connecting client", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://netdetective.p.rapidapi.com/query\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"netdetective.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "success":true, + "result":{ + "ipAddress":"", + "isVpn":true, + "isDataCenter":true, + "isBruteForce":true, + "isSpam":true, + "isBogon":true, + "isProxyHttp":true, + "isProxySocks":true, + "isProxyWeb":true, + "isProxyOther":true, + "isSmtpRelay":true, + "isWebVuln":true, + "isNoMail":true, + "isZombie":true, + "isPotentialZombie":true, + "isDynamic":true, + "isNoServer":true, + "isBadConf":true, + "isDDos":true, + "isOpenDns":true, + "isCompromised":true, + "isWorm":true, + "isIrcDrone":true, + "isNotSpam":true + } + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "success":{ + "type":"boolean", + "description":"Whether or not the call was successful." + }, + "result":{ + "type":"object", + "properties":{ + "ipAddress":{ + "type":[ + "string", + "null" + ], + "description":"The IP address being queried." + }, + "isVpn":{ + "type":"boolean", + "description":"The IP address is a VPN." + }, + "isDataCenter":{ + "type":"boolean", + "description":"Indicates whether the IP address belongs to a data center." + }, + "isBruteForce":{ + "type":"boolean", + "description":"The IP address is known for brute-force attacks." + }, + "isSpam":{ + "type":"boolean", + "description":"The IP address is known for sending spam." + }, + "isBogon":{ + "type":"boolean", + "description":"The IP address is a bogon (i.e., it should not appear in the public Internet routing table)." + }, + "isProxyHttp":{ + "type":"boolean", + "description":"The IP address is an open HTTP proxy." + }, + "isProxySocks":{ + "type":"boolean", + "description":"The IP address is an open SOCKS proxy." + }, + "isProxyWeb":{ + "type":"boolean", + "description":"The IP address is a web proxy." + }, + "isProxyOther":{ + "type":"boolean", + "description":"The IP address is a type of proxy." + }, + "isSmtpRelay":{ + "type":"boolean", + "description":"The IP address is used to relay SMTP traffic." + }, + "isWebVuln":{ + "type":"boolean", + "description":"The IP address is vulnerable webserver that can be used for abuse." + }, + "isNoMail":{ + "type":"boolean", + "description":"The IP address should not be used for email." + }, + "isZombie":{ + "type":"boolean", + "description":"The IP address is a zombie (i.e., part of a botnet)." + }, + "isPotentialZombie":{ + "type":"boolean", + "description":"The IP address is a potential zombie." + }, + "isDynamic":{ + "type":"boolean", + "description":"The IP address is dynamically assigned." + }, + "isNoServer":{ + "type":"boolean", + "description":"The IP address is not associated with a server." + }, + "isBadConf":{ + "type":"boolean", + "description":"The IP address is a misconfigured server." + }, + "isDDos":{ + "type":"boolean", + "description":"The IP address is known for DDoS attacks." + }, + "isOpenDns":{ + "type":"boolean", + "description":"The IP address belongs to an OpenDNS resolver." + }, + "isCompromised":{ + "type":"boolean", + "description":"The IP address has been compromised." + }, + "isWorm":{ + "type":"boolean", + "description":"The IP address is part of a worm infection." + }, + "isIrcDrone":{ + "type":"boolean", + "description":"The IP address is an IRC drone" + }, + "isNotSpam":{ + "type":"boolean", + "description":"The IP address is not associated with spamming." + } + }, + "additionalProperties":false + } + }, + "additionalProperties":false + } + }, + { + "name":"/query", + "url":"https://netdetective.p.rapidapi.com/query", + "description":"Query information about an IP address.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"ipaddress", + "type":"STRING", + "description":"The IP address to use for the query.\r\nDefaults to the ip address of the connecting client", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://netdetective.p.rapidapi.com/query\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"netdetective.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":"{\n\t\"success\": true,\n\t\"result\": {\n\t\t\"ipAddress\": \"\",\n\t\t\"isVpn\": true,\n\t\t\"isDataCenter\": true,\n\t\t\"isBruteForce\": true,\n\t\t\"isSpam\": true,\n\t\t\"isBogon\": true,\n\t\t\"isProxyHttp\": true,\n\t\t\"isProxySocks\": true,\n\t\t\"isProxyWeb\": true,\n\t\t\"isProxyOther\": true,\n\t\t\"isSmtpRelay\": true,\n\t\t\"isWebVuln\": true,\n\t\t\"isNoMail\": true,\n\t\t\"isZombie\": true,\n\t\t\"isPotentialZombie\": true,\n\t\t\"isDynamic\": true,\n\t\t\"isNoServer\": true,\n\t\t\"isBadConf\": true,\n\t\t\"isDDos\": true,\n\t\t\"isOpenDns\": true,\n\t\t\"isCompromised\": true,\n\t\t\"isWorm\": true,\n\t\t\"isIrcDrone\": true,\n\t\t\"isNotSpam\": true\n\t}\n}", + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "success":{ + "type":"boolean", + "description":"Whether or not the call was successful." + }, + "result":{ + "type":"object", + "properties":{ + "ipAddress":{ + "type":[ + "string", + "null" + ], + "description":"The IP address being queried." + }, + "isVpn":{ + "type":"boolean", + "description":"The IP address is a VPN." + }, + "isDataCenter":{ + "type":"boolean", + "description":"Indicates whether the IP address belongs to a data center." + }, + "isBruteForce":{ + "type":"boolean", + "description":"The IP address is known for brute-force attacks." + }, + "isSpam":{ + "type":"boolean", + "description":"The IP address is known for sending spam." + }, + "isBogon":{ + "type":"boolean", + "description":"The IP address is a bogon (i.e., it should not appear in the public Internet routing table)." + }, + "isProxyHttp":{ + "type":"boolean", + "description":"The IP address is an open HTTP proxy." + }, + "isProxySocks":{ + "type":"boolean", + "description":"The IP address is an open SOCKS proxy." + }, + "isProxyWeb":{ + "type":"boolean", + "description":"The IP address is a web proxy." + }, + "isProxyOther":{ + "type":"boolean", + "description":"The IP address is a type of proxy." + }, + "isSmtpRelay":{ + "type":"boolean", + "description":"The IP address is used to relay SMTP traffic." + }, + "isWebVuln":{ + "type":"boolean", + "description":"The IP address is vulnerable webserver that can be used for abuse." + }, + "isNoMail":{ + "type":"boolean", + "description":"The IP address should not be used for email." + }, + "isZombie":{ + "type":"boolean", + "description":"The IP address is a zombie (i.e., part of a botnet)." + }, + "isPotentialZombie":{ + "type":"boolean", + "description":"The IP address is a potential zombie." + }, + "isDynamic":{ + "type":"boolean", + "description":"The IP address is dynamically assigned." + }, + "isNoServer":{ + "type":"boolean", + "description":"The IP address is not associated with a server." + }, + "isBadConf":{ + "type":"boolean", + "description":"The IP address is a misconfigured server." + }, + "isDDos":{ + "type":"boolean", + "description":"The IP address is known for DDoS attacks." + }, + "isOpenDns":{ + "type":"boolean", + "description":"The IP address belongs to an OpenDNS resolver." + }, + "isCompromised":{ + "type":"boolean", + "description":"The IP address has been compromised." + }, + "isWorm":{ + "type":"boolean", + "description":"The IP address is part of a worm infection." + }, + "isIrcDrone":{ + "type":"boolean", + "description":"The IP address is an IRC drone" + }, + "isNotSpam":{ + "type":"boolean", + "description":"The IP address is not associated with spamming." + } + }, + "additionalProperties":false + } + }, + "additionalProperties":false + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/netdetective/api.py b/toolbench/toolenv/tools/Cybersecurity/netdetective/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7d571763c4a2690da06d5c8c5f5b6f5247646744 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/netdetective/api.py @@ -0,0 +1,58 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def query(ipaddress: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Query information about an IP address." + ipaddress: The IP address to use for the query. +Defaults to the ip address of the connecting client + + """ + url = f"https://netdetective.p.rapidapi.com/query" + querystring = {} + if ipaddress: + querystring['ipaddress'] = ipaddress + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "netdetective.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def query(ipaddress: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Query information about an IP address." + ipaddress: The IP address to use for the query. +Defaults to the ip address of the connecting client + + """ + url = f"https://netdetective.p.rapidapi.com/query" + querystring = {} + if ipaddress: + querystring['ipaddress'] = ipaddress + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "netdetective.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/pawscan.json b/toolbench/toolenv/tools/Cybersecurity/pawscan.json new file mode 100644 index 0000000000000000000000000000000000000000..787fd627c66c883b1f9641c9af08422f2ecefbdc --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/pawscan.json @@ -0,0 +1,65 @@ +{ + "product_id": "api_ad9a56d7-d846-412a-af16-4be02d7e0852", + "tool_description": "PawScan, in BETA, identifies vulnerabilities in domains and emails, offering security recommendations.", + "home_url": "https://rapidapi.com/matteoalvazzi/api/pawscan/", + "name": "PawScan", + "title": "PawScan", + "pricing": "FREE", + "tool_name": "PawScan", + "score": null, + "host": "pawscan.p.rapidapi.com", + "api_list": [ + { + "name": "Scan", + "url": "https://pawscan.p.rapidapi.com/queue", + "description": "Initiates a scan targeting either a domain or an email address. When an email address is provided, the system will send a notification to the specified email upon completion of the scan. If a valid URL is supplied as the hook parameter, the completed scan results will be sent as a POST request to the specified URL upon job completion.\n\nIn the resulting model the _id attribute is used to verify the state of the scan or to get the result by using the Retrieve endpoint", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://pawscan.p.rapidapi.com/queue\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pawscan.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://pawscan.p.rapidapi.com/queue\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"pawscan.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "created": { + "type": "boolean" + }, + "scan": { + "type": "object", + "properties": { + "target": { + "type": "string" + }, + "email": { + "type": "string" + }, + "hook": { + "type": "string" + }, + "start": { + "type": "string" + }, + "finish": { + "type": "null" + }, + "status": { + "type": "string" + }, + "progress": { + "type": "integer" + }, + "crc": { + "type": "string" + }, + "_id": { + "type": "string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/penteston_api.json b/toolbench/toolenv/tools/Cybersecurity/penteston_api.json new file mode 100644 index 0000000000000000000000000000000000000000..9c8c2bdf1aab68bff784ebe943ee2cc4bb23487b --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/penteston_api.json @@ -0,0 +1,211 @@ +{ + "product_id": "api_29297c69-c2ee-4761-a244-6efaeb521611", + "tool_description": "PENTESTON - API Requests, are software interfaces and protocols designed to enhance the security posture tools for check computer systems, networks, and applications. These APIs play a crucial role in the field of cybersecurity by providing tools and functionalities that enable developers and security professionals to integrate security features into their applications and infrastructure.", + "home_url": "https://rapidapi.com/munsirado-0ktPCF0Rp0w/api/penteston-api/", + "name": "PENTESTON - API", + "title": "PENTESTON - API", + "pricing": "FREE", + "tool_name": "PENTESTON - API", + "score": null, + "host": "penteston-api.p.rapidapi.com", + "api_list": [ + { + "name": "/v1/add_target", + "url": "https://penteston-api.p.rapidapi.com/v1/add_target", + "description": "API for Add New Target (Host)", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "target_name", + "type": "STRING", + "description": "Target display name", + "default": "Test target" + }, + { + "name": "target_host", + "type": "STRING", + "description": "Target host Full URL", + "default": "http://example.com" + } + ], + "code": "import requests\n\nurl = \"https://penteston-api.p.rapidapi.com/v1/add_target\"\nquerystring = {\"target_name\": \"Test target\", \"target_host\": \"http://example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"penteston-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://penteston-api.p.rapidapi.com/v1/add_target\"\nquerystring = {\"target_name\": \"Test target\", \"target_host\": \"http://example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"penteston-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/v1/start_scan", + "url": "https://penteston-api.p.rapidapi.com/v1/start_scan", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "host_http_user", + "type": "STRING", + "description": "HTTP User (If restriction on host)", + "default": "" + }, + { + "name": "scan_type", + "type": "STRING", + "description": "Scan type\n\tinfo => Information Gathering\n\trcnc => Reconnaissance\n\tbrte => Brute-force\n\tenum => Enumeration\n\tscan => Scanner\n\tosnt => OSINT\n\tssls => SSL", + "default": "{{scan_type}}" + }, + { + "name": "host_http_pass", + "type": "STRING", + "description": "HTTP Password (If restriction on host)", + "default": "" + }, + { + "name": "target_name", + "type": "STRING", + "description": "Target display name", + "default": "Test target (for scan)" + }, + { + "name": "tools", + "type": "STRING", + "description": "Tools by scan_type, seperated by comma (,)\n\tinfo => Information Gathering\n\t\twhois => Whois \n\t\tnmaps => Nmap (Normal Nmap Scan)\n\t\twhat3 => WhatWeb\n\t\tgodns => Gobuster (DNS subdomain enumeration mode)\n\t\tdnsrc => DNSRecon (DNS Enumeration and Scanning Tool)\n\t\tanubs => Anubis (Subdomain enumeration and information gathering tool)\n\t\trusts => RustScan (The Modern Port Scanner)\n\t\tmstcp => TCP Scan by Metasploit\n\t\tmstwb => Pulling urls from Archive.org by Metasploit\n\t\tdataf => Default File Check by DataSploit\n\t\tdatag => Check Google PDF by DataSploit\n\t\tdatad => Find DNS Records by DataSploit\n\t\tcmsmp => CMS scanner that automates the process of detecting security flaws of the most popular CMSs\n\t\tdmitr => DMitry (Deepmagic Information Gathering Tool)\n\t\tdnsen => dnsenum (enumerates DNS information)\n\t\tjooms => OWASP JoomScan (Joomla Vulnerability Scanner)\n\t\tdiggg => DiG\n\t\t\t\n\trcnc => Reconnaissance\n\t\twhat3 => WhatWeb - Additional requests will be made.\n\t\tdnsdp => DNSDumpster (A tool to perform DNS reconnaissance on target networks.)\n\t\tferce => Fierce (A DNS reconnaissance tool for locating non-contiguous IP space)\n\t\t\n\tbrte => Brute-force\n\t\tgodns => Gobuster (DNS subdomain enumeration mode)\n\t\tdnscn => dnscan (DNS subdomain scanner)\n\t\tdirb0 => Dirb (A web content scanner)\n\t\tdnsmp => Dnsmap (Scan for subdomains using bruteforcing techniques)\n\t\t\n\tenum => Enumeration\n\t\tgodns => Gobuster (DNS subdomain enumeration mode)\n\t\tdnsrc => DNSRecon (DNS Enumeration and Scanning Tool)\n\t\tanubs => Anubis (Subdomain enumeration and information gathering tool)\n\t\tlepus => Lepus (Subdomain finder)\n\t\tdnsen => dnsenum (enumerates DNS information)\n\t\t\n\tscan => Scanner\n\t\tnmaps => Nmap (Normal Nmap Scan)\n\t\tnikto => Nikto web server scanner\n\t\tdnsrc => DNSRecon (DNS Enumeration and Scanning Tool)\n\t\tdnscn => dnscan (DNS subdomain scanner)\n\t\tdirb0 => Dirb (A web content scanner)\n\t\trusts => RustScan (The Modern Port Scanner)\n\t\tmstcp => TCP Scan by Metasploit\n\t\tcmsmp => CMS scanner that automates the process of detecting security flaws of the most popular CMSs\n\t\tjooms => OWASP JoomScan (Joomla Vulnerability Scanner)\n\t\t\n\tosnt => OSINT\n\t\twhois => Whois (Obtain Whois information and name server of a website)\n\t\tmstwb => Pulling urls from Archive.org by Metasploit\n\t\tdataf => Default File Check by DataSploit\n\t\tdatag => Check Google PDF by DataSploit\n\t\tdatad => Find DNS Records by DataSploit\n\t\tghsdm => Goohost (Extracts hosts/subdomains for a specific domain with Google search)\n\t\tghsip => Goohost (Extracts IP or emails for a specific domain with Google search)\n\t\t\n\tssls => SSL\n\t\tciphr => Cipherscan (Tests the ordering of the SSL/TLS ciphers on a given target)\n\t\t\t", + "default": "{{tools}}" + }, + { + "name": "test_name", + "type": "STRING", + "description": "Assessment (Test) display name", + "default": "Test Name" + }, + { + "name": "target_host", + "type": "STRING", + "description": "Target host Full URL", + "default": "http://example.com" + } + ], + "code": "import requests\n\nurl = \"https://penteston-api.p.rapidapi.com/v1/start_scan\"\nquerystring = {\"host_http_user\": \"\", \"scan_type\": \"{{scan_type}}\", \"host_http_pass\": \"\", \"target_name\": \"Test target (for scan)\", \"tools\": \"{{tools}}\", \"test_name\": \"Test Name\", \"target_host\": \"http://example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"penteston-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://penteston-api.p.rapidapi.com/v1/start_scan\"\nquerystring = {\"host_http_user\": \"\", \"scan_type\": \"{{scan_type}}\", \"host_http_pass\": \"\", \"target_name\": \"Test target (for scan)\", \"tools\": \"{{tools}}\", \"test_name\": \"Test Name\", \"target_host\": \"http://example.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"penteston-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "/v1/add_test", + "url": "https://penteston-api.p.rapidapi.com/v1/add_test", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "target_id", + "type": "STRING", + "description": "Target ID", + "default": "{{target_id}}" + }, + { + "name": "test_name", + "type": "STRING", + "description": "Assessment (Test) display name", + "default": "Test Name" + }, + { + "name": "host_http_pass", + "type": "STRING", + "description": "HTTP Password (If restriction on host)", + "default": "" + }, + { + "name": "host_http_user", + "type": "STRING", + "description": "HTTP User (If restriction on host)", + "default": "" + }, + { + "name": "tools", + "type": "STRING", + "description": "Tools by scan_type, seperated by comma (,)\n\tinfo => Information Gathering\n\t\twhois => Whois \n\t\tnmaps => Nmap (Normal Nmap Scan)\n\t\twhat3 => WhatWeb\n\t\tgodns => Gobuster (DNS subdomain enumeration mode)\n\t\tdnsrc => DNSRecon (DNS Enumeration and Scanning Tool)\n\t\tanubs => Anubis (Subdomain enumeration and information gathering tool)\n\t\trusts => RustScan (The Modern Port Scanner)\n\t\tmstcp => TCP Scan by Metasploit\n\t\tmstwb => Pulling urls from Archive.org by Metasploit\n\t\tdataf => Default File Check by DataSploit\n\t\tdatag => Check Google PDF by DataSploit\n\t\tdatad => Find DNS Records by DataSploit\n\t\tcmsmp => CMS scanner that automates the process of detecting security flaws of the most popular CMSs\n\t\tdmitr => DMitry (Deepmagic Information Gathering Tool)\n\t\tdnsen => dnsenum (enumerates DNS information)\n\t\tjooms => OWASP JoomScan (Joomla Vulnerability Scanner)\n\t\tdiggg => DiG\n\t\t\t\n\trcnc => Reconnaissance\n\t\twhat3 => WhatWeb - Additional requests will be made.\n\t\tdnsdp => DNSDumpster (A tool to perform DNS reconnaissance on target networks.)\n\t\tferce => Fierce (A DNS reconnaissance tool for locating non-contiguous IP space)\n\t\t\n\tbrte => Brute-force\n\t\tgodns => Gobuster (DNS subdomain enumeration mode)\n\t\tdnscn => dnscan (DNS subdomain scanner)\n\t\tdirb0 => Dirb (A web content scanner)\n\t\tdnsmp => Dnsmap (Scan for subdomains using bruteforcing techniques)\n\t\t\n\tenum => Enumeration\n\t\tgodns => Gobuster (DNS subdomain enumeration mode)\n\t\tdnsrc => DNSRecon (DNS Enumeration and Scanning Tool)\n\t\tanubs => Anubis (Subdomain enumeration and information gathering tool)\n\t\tlepus => Lepus (Subdomain finder)\n\t\tdnsen => dnsenum (enumerates DNS information)\n\t\t\n\tscan => Scanner\n\t\tnmaps => Nmap (Normal Nmap Scan)\n\t\tnikto => Nikto web server scanner\n\t\tdnsrc => DNSRecon (DNS Enumeration and Scanning Tool)\n\t\tdnscn => dnscan (DNS subdomain scanner)\n\t\tdirb0 => Dirb (A web content scanner)\n\t\trusts => RustScan (The Modern Port Scanner)\n\t\tmstcp => TCP Scan by Metasploit\n\t\tcmsmp => CMS scanner that automates the process of detecting security flaws of the most popular CMSs\n\t\tjooms => OWASP JoomScan (Joomla Vulnerability Scanner)\n\t\t\n\tosnt => OSINT\n\t\twhois => Whois (Obtain Whois information and name server of a website)\n\t\tmstwb => Pulling urls from Archive.org by Metasploit\n\t\tdataf => Default File Check by DataSploit\n\t\tdatag => Check Google PDF by DataSploit\n\t\tdatad => Find DNS Records by DataSploit\n\t\tghsdm => Goohost (Extracts hosts/subdomains for a specific domain with Google search)\n\t\tghsip => Goohost (Extracts IP or emails for a specific domain with Google search)\n\t\t\n\tssls => SSL\n\t\tciphr => Cipherscan (Tests the ordering of the SSL/TLS ciphers on a given target)\n\t\t\t", + "default": "{{tools}}" + }, + { + "name": "scan_type", + "type": "STRING", + "description": "Scan type\n\tinfo => Information Gathering\n\trcnc => Reconnaissance\n\tbrte => Brute-force\n\tenum => Enumeration\n\tscan => Scanner\n\tosnt => OSINT\n\tssls => SSL", + "default": "{{scan_type}}" + } + ], + "code": "import requests\n\nurl = \"https://penteston-api.p.rapidapi.com/v1/add_test\"\nquerystring = {\"target_id\": \"{{target_id}}\", \"test_name\": \"Test Name\", \"host_http_pass\": \"\", \"host_http_user\": \"\", \"tools\": \"{{tools}}\", \"scan_type\": \"{{scan_type}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"penteston-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://penteston-api.p.rapidapi.com/v1/add_test\"\nquerystring = {\"target_id\": \"{{target_id}}\", \"test_name\": \"Test Name\", \"host_http_pass\": \"\", \"host_http_user\": \"\", \"tools\": \"{{tools}}\", \"scan_type\": \"{{scan_type}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"penteston-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/phishyscan_api.json b/toolbench/toolenv/tools/Cybersecurity/phishyscan_api.json new file mode 100644 index 0000000000000000000000000000000000000000..7d3d72549c0464ac351538264e40bae53ce53c05 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/phishyscan_api.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_dc73c295-184b-4e3d-92d6-e23a7116cfbd", + "tool_description": "(Beta) Public preview of Anti-phishing scam API, PhishyScan, powered by OpenAI.", + "home_url": "https://rapidapi.com/yottanext-yottanext-default/api/phishyscan-api/", + "name": "PhishyScan API", + "title": "PhishyScan API", + "pricing": "FREEMIUM", + "tool_name": "PhishyScan API", + "score": { + "avgServiceLevel": 75, + "avgLatency": 1118, + "avgSuccessRate": 73, + "popularityScore": 9.2, + "__typename": "Score" + }, + "host": "phishyscan-api.p.rapidapi.com", + "api_list": [ + { + "name": "Scan", + "url": "https://phishyscan-api.p.rapidapi.com/scan", + "description": "Scan an email message for signs of phishing.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://phishyscan-api.p.rapidapi.com/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phishyscan-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://phishyscan-api.p.rapidapi.com/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"phishyscan-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/port_scanner_api.json b/toolbench/toolenv/tools/Cybersecurity/port_scanner_api.json new file mode 100644 index 0000000000000000000000000000000000000000..afa785f2d1b1a9f78003442dc91773c9cd7bbbef --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/port_scanner_api.json @@ -0,0 +1,193 @@ +{ + "product_id": "api_230a3550-8279-443f-8e0c-f87bbba71271", + "tool_description": "The Portscanner Online API Version 1.0.0 represents a cutting-edge solution that delivers a contemporary, accessible, and unified collection of Application Programming Interfaces (APIs) tailored for Online Port Scans, ensuring the secure and efficient exchange of data. With a focus on modern technology standards, seamless integration, and enhanced interoperability, our API empowers developers and businesses to conduct online port scans with confidence.", + "home_url": "https://rapidapi.com/munsirado-0ktPCF0Rp0w/api/port-scanner-api/", + "name": "Port Scanner API", + "title": "Port Scanner API", + "pricing": "FREE", + "tool_name": "Port Scanner API", + "score": { + "avgServiceLevel": 100, + "avgLatency": 912, + "avgSuccessRate": 0, + "popularityScore": 0, + "__typename": "Score" + }, + "host": "port-scanner-api.p.rapidapi.com", + "api_list": [ + { + "name": "getScanReport", + "url": "https://port-scanner-api.p.rapidapi.com/v01/scan_result", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "scan_id", + "type": "STRING", + "description": "", + "default": "{{scan_id}}" + } + ], + "code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/scan_result\"\nquerystring = {\"scan_id\": \"{{scan_id}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/scan_result\"\nquerystring = {\"scan_id\": \"{{scan_id}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "checkScanStatus", + "url": "https://port-scanner-api.p.rapidapi.com/v01/check_scan_status", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "scan_id", + "type": "STRING", + "description": "", + "default": "{{scan_id}}" + } + ], + "code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/check_scan_status\"\nquerystring = {\"scan_id\": \"{{scan_id}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/check_scan_status\"\nquerystring = {\"scan_id\": \"{{scan_id}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "createPortScan", + "url": "https://port-scanner-api.p.rapidapi.com/v01/start_scan", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "target", + "type": "STRING", + "description": "", + "default": "certifiedhacker.com" + }, + { + "name": "command", + "type": "STRING", + "description": "", + "default": "simple" + } + ], + "code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/start_scan\"\nquerystring = {\"target\": \"certifiedhacker.com\", \"command\": \"simple\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/start_scan\"\nquerystring = {\"target\": \"certifiedhacker.com\", \"command\": \"simple\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "getScanInfo", + "url": "https://port-scanner-api.p.rapidapi.com/v01/scan_info", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "scan_id", + "type": "STRING", + "description": "", + "default": "{{scan_id}}" + } + ], + "code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/scan_info\"\nquerystring = {\"scan_id\": \"{{scan_id}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://port-scanner-api.p.rapidapi.com/v01/scan_info\"\nquerystring = {\"scan_id\": \"{{scan_id}}\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"port-scanner-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/quantum_ready_check.json b/toolbench/toolenv/tools/Cybersecurity/quantum_ready_check.json new file mode 100644 index 0000000000000000000000000000000000000000..da6c80d41fad50ef0322700cbca3eeb5a1e799ac --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/quantum_ready_check.json @@ -0,0 +1,64 @@ +{ + "product_id": "api_345239fb-8cb1-4472-802e-f89248e72172", + "tool_description": "Check if a website is using quantum-safe key exchange.", + "home_url": "https://rapidapi.com/mungert/api/quantum-ready-check/", + "name": "Quantum Ready Check", + "title": "Quantum Ready Check", + "pricing": "FREEMIUM", + "tool_name": "Quantum Ready Check", + "score": null, + "host": "quantum-ready-check.p.rapidapi.com", + "api_list": [ + { + "name": "checkQuantum", + "url": "https://quantum-ready-check.p.rapidapi.com/Chat/CheckQuantum", + "description": "This endpoint checks if the supplied URL is using quantum-safe key encapsulation mechanisms. For more information, visit our website at https://freenetworkmonitor.click.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://quantum-ready-check.p.rapidapi.com/Chat/CheckQuantum\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"quantum-ready-check.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://quantum-ready-check.p.rapidapi.com/Chat/CheckQuantum\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"quantum-ready-check.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "A message describing the result of the quantum check." + }, + "success": { + "type": "boolean", + "description": "Indicates whether the quantum check was successful." + }, + "data": { + "type": "object", + "description": "Contains additional details about the quantum check.", + "properties": { + "setupQuantumMonitor": { + "type": "string", + "description": "Instructions for setting up a quantum-ready monitor." + }, + "quantumKeyExchange": { + "type": "string", + "description": "The quantum key exchange protocol used by the tested URL." + }, + "testedUrl": { + "type": "string", + "description": "The URL that was tested for quantum safety." + }, + "resultSuccess": { + "type": "boolean", + "description": "Indicates whether the tested URL uses a quantum-safe protocol." + }, + "resultStatus": { + "type": "string", + "description": "Describes the status of the quantum safety of the tested URL." + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/rungutan_fastest_load_tester_in_the_jungle.json b/toolbench/toolenv/tools/Cybersecurity/rungutan_fastest_load_tester_in_the_jungle.json new file mode 100644 index 0000000000000000000000000000000000000000..da514d3ec75e276440586d1a0ff6347c07480208 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/rungutan_fastest_load_tester_in_the_jungle.json @@ -0,0 +1,35 @@ +{ + "product_id": "api_96069cd2-bed7-4b32-aec1-dafc79759ca9", + "tool_description": "Full 360\u00b0 API Performance Testing SaaS platform, 100% Serverless, offering rich technical features useful for simulating application traffic spikes, up to the point of simulating denial of service scenarios.", + "home_url": "https://rapidapi.com/rungutan-rungutan-default/api/rungutan-fastest-load-tester-in-the-jungle/", + "name": "Rungutan - Fastest Load Tester in the Jungle", + "title": "Rungutan - Fastest Load Tester in the Jungle", + "pricing": "FREEMIUM", + "tool_name": "Rungutan - Fastest Load Tester in the Jungle", + "score": null, + "host": "rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com", + "api_list": [ + { + "name": "Get Test Details", + "url": "https://rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com/tests/get", + "description": "Get the details of an existing test.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com/tests/get\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com/tests/get\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "Add Test", + "url": "https://rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com/tests/add", + "description": "Creates a new load test", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com/tests/add\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com/tests/add\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"rungutan-fastest-load-tester-in-the-jungle.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/scam_fraud_data_v2/api.py b/toolbench/toolenv/tools/Cybersecurity/scam_fraud_data_v2/api.py new file mode 100644 index 0000000000000000000000000000000000000000..928962beab61663e664fc18da38095e60afcc1c4 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/scam_fraud_data_v2/api.py @@ -0,0 +1,79 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getmentions(blockchain_address: str=None, name: str=None, source: str=None, complainant_location: str=None, description: str=None, acquired: str=None, type: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve a list of `mentions` for agents and blockchain addresses which are claimed to be involved in scam and fraud activity, such as victim reports or media events. Use the query parameters to filter responses to potential parties of interest." + source: Source of the event + complainant_location: The Country of mention or victim location + description: The event context details + acquired: The date the event was captured + type: The category of the event + + """ + url = f"https://scam-fraud-data.p.rapidapi.com/events/mentions/" + querystring = {} + if blockchain_address: + querystring['blockchain_address'] = blockchain_address + if name: + querystring['name'] = name + if source: + querystring['source'] = source + if complainant_location: + querystring['complainant_location'] = complainant_location + if description: + querystring['description'] = description + if acquired: + querystring['acquired'] = acquired + if type: + querystring['type'] = type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "scam-fraud-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def getbrokers(company_address: str=None, agent_name: str=None, company_name: str=None, agent_hash: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve a list of `brokers` which have been identified in relation to mentioned scam and fraud events. Use the following query parameters to filter events to parties of interest:" + company_name: Company name associated with the agent + agent_hash: Unique id created for the agent + + """ + url = f"https://scam-fraud-data.p.rapidapi.com/agents/brokers/" + querystring = {} + if company_address: + querystring['company_address'] = company_address + if agent_name: + querystring['agent_name'] = agent_name + if company_name: + querystring['company_name'] = company_name + if agent_hash: + querystring['agent_hash'] = agent_hash + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "scam-fraud-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/secure_password_generator.json b/toolbench/toolenv/tools/Cybersecurity/secure_password_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..f400972be3c6b8d53ccb95e36a7b9630746f2ff8 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/secure_password_generator.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_d1df6d49-5aac-4456-8a02-4ccc4648e293", + "tool_description": "This api will generate secure password given the length and it's values", + "home_url": "https://rapidapi.com/vishwaraj/api/secure-password-generator3/", + "name": "Secure password generator", + "title": "Secure password generator", + "pricing": "FREEMIUM", + "tool_name": "Secure password generator", + "score": { + "avgServiceLevel": 86, + "avgLatency": 402, + "avgSuccessRate": 86, + "popularityScore": 8.3, + "__typename": "Score" + }, + "host": "secure-password-generator3.p.rapidapi.com", + "api_list": [ + { + "name": "generate-password", + "url": "https://secure-password-generator3.p.rapidapi.com/generate-password", + "description": "This api allows you to generate random passwords based on your preferences. It provides a flexible and customisable way to create strong and secure passwords for various applications.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://secure-password-generator3.p.rapidapi.com/generate-password\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-password-generator3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://secure-password-generator3.p.rapidapi.com/generate-password\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"secure-password-generator3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/simple_otp.json b/toolbench/toolenv/tools/Cybersecurity/simple_otp.json new file mode 100644 index 0000000000000000000000000000000000000000..c533c0a9bd2776f5466f44804c821b81002c5e2d --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/simple_otp.json @@ -0,0 +1,26 @@ +{ + "product_id": "api_98dc8d5f-7fa4-4c1e-8218-5921b43b5c26", + "tool_description": "Send one time passcode for verification.", + "home_url": "https://rapidapi.com/safu92/api/simple-otp/", + "name": "Simple Otp", + "title": "Simple Otp", + "pricing": "FREEMIUM", + "tool_name": "Simple Otp", + "score": null, + "host": "simple-otp.p.rapidapi.com", + "api_list": [ + { + "name": "OTP", + "url": "https://simple-otp.p.rapidapi.com/", + "description": "Sends a request with phone number and the API will send random one time auto generated code to the phone number.\n\nThe response will let you know if the otp sending was successful or failed.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://simple-otp.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"simple-otp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://simple-otp.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"simple-otp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/sus_guru_malicious_website_ai_detector_api.json b/toolbench/toolenv/tools/Cybersecurity/sus_guru_malicious_website_ai_detector_api.json new file mode 100644 index 0000000000000000000000000000000000000000..f9c84d20ea42f38e72cbc9766588d45fe2c8a194 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/sus_guru_malicious_website_ai_detector_api.json @@ -0,0 +1,213 @@ +{ + "tool_name": "Sus Guru Malicious Website AI Detector API", + "tool_description": "Check if a website is malicious or safe", + "title": "Sus Guru Malicious Website AI Detector API", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/alexandrosmagos/api/sus-guru-malicious-website-ai-detector-api/", + "host": "sus-guru-malicious-website-ai-detector-api.p.rapidapi.com", + "api_list": [ + { + "name": "/api/report/{report_id}", + "url": "https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/report/{report_id}", + "description": "Returns the report details for a given report ID.", + "method": "GET", + "required_parameters": [ + { + "name": "report_id", + "type": "NUMBER", + "description": "", + "default": 10858 + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/report/{report_id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sus-guru-malicious-website-ai-detector-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "id": 10858, + "model_prediction": 0, + "model_probability": 98, + "url": "https://soundcloud.com/user-362083422", + "report_timestamp": "2023-04-24T23:32:07.700Z", + "upvotes": 0, + "downvotes": 0, + "user_vote": "", + "error": true + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "model_prediction": { + "type": "integer" + }, + "model_probability": { + "type": "integer" + }, + "url": { + "type": "string", + "format": "uri" + }, + "report_timestamp": { + "type": "string", + "format": "date-time" + }, + "upvotes": { + "type": "integer" + }, + "downvotes": { + "type": "integer" + }, + "user_vote": { + "type": [ + "string", + "null" + ] + }, + "error": { + "type": "boolean" + } + } + } + }, + { + "name": "/api/scan", + "url": "https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/scan", + "description": "Takes a URL parameter and returns if the scan started or if the URL has already been scanned.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sus-guru-malicious-website-ai-detector-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "new_report_id": 10858, + "scanning": true, + "queue_position": 0 + }, + "headers": {}, + "schema": { + "oneOf": [ + { + "type": "object", + "properties": { + "new_report_id": { + "type": "integer" + }, + "scanning": { + "type": "boolean" + }, + "queue_position": { + "type": "integer" + } + } + }, + { + "type": "object", + "properties": { + "existing_reports": { + "type": "array", + "items": { + "type": "object", + "properties": { + "reportID": { + "type": "integer" + }, + "timestamp": { + "type": "string", + "format": "date-time" + } + } + } + }, + "scanning": { + "type": "boolean" + } + } + } + ] + } + }, + { + "name": "/api/queue", + "url": "https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/queue", + "description": "Returns whether a site is currently being scanned and the queue size.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/queue\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sus-guru-malicious-website-ai-detector-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "scanning": true, + "queue_size": 0 + }, + "headers": {}, + "schema": { + "type": "object", + "properties": { + "scanning": { + "type": "boolean" + }, + "queue_size": { + "type": "integer" + } + } + } + }, + { + "name": "/api/scan", + "url": "https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/scan", + "description": "Takes a URL parameter and returns if the scan started or if the URL has already been scanned.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sus-guru-malicious-website-ai-detector-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/scan\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"sus-guru-malicious-website-ai-detector-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "oneOf": [ + { + "type": "object", + "properties": { + "new_report_id": { + "type": "integer" + }, + "scanning": { + "type": "boolean" + }, + "queue_position": { + "type": "integer" + } + } + }, + { + "type": "object", + "properties": { + "existing_reports": { + "type": "array", + "items": { + "type": "object", + "properties": { + "reportID": { + "type": "integer" + }, + "timestamp": { + "type": "string", + "format": "date-time" + } + } + } + }, + "scanning": { + "type": "boolean" + } + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/sus_guru_malicious_website_ai_detector_api/api.py b/toolbench/toolenv/tools/Cybersecurity/sus_guru_malicious_website_ai_detector_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..66ce331a1ddc35c31cf6a007bd473cd9ab921fcc --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/sus_guru_malicious_website_ai_detector_api/api.py @@ -0,0 +1,50 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def api_report_report_id(report_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the report details for a given report ID." + + """ + url = f"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/report/{report_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sus-guru-malicious-website-ai-detector-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_queue(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns whether a site is currently being scanned and the queue size." + + """ + url = f"https://sus-guru-malicious-website-ai-detector-api.p.rapidapi.com/api/queue" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "sus-guru-malicious-website-ai-detector-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/token_scanner_multichain_honeypot_checker_multichain.json b/toolbench/toolenv/tools/Cybersecurity/token_scanner_multichain_honeypot_checker_multichain.json new file mode 100644 index 0000000000000000000000000000000000000000..790483abda031ffab0e716400afecda797374f65 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/token_scanner_multichain_honeypot_checker_multichain.json @@ -0,0 +1,63 @@ +{ + "tool_name":"Token Scanner Multichain | Honeypot Checker Multichain", + "tool_description":"Token scanner and honeypot checker multichain. Buy/sell tax, suspicious functions, liquidity, ownership etc.", + "title":"Token Scanner Multichain | Honeypot Checker Multichain", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":97, + "avgLatency":1853, + "avgSuccessRate":97, + "popularityScore":9.5, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/cavsn/api/token-scanner-multichain-honeypot-checker-multichain/", + "host":"token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com", + "api_list":[ + { + "name":"Get Chain Id", + "url":"https://token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com/get_chain_id", + "description":"Returns chainId from chain name.", + "method":"GET", + "required_parameters":[ + { + "name":"chain", + "type":"STRING", + "description":"Available chains:\n**ethereum, bsc, okc, heco, polygon, arbitrum, optimism, avalanche, fantom, kcc, gnosis, tron, linea, harmony, zkysnc, ethw, fon, cronos**", + "default":"bsc" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com/get_chain_id\"\nquerystring = {\"chain\": chain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Scan Token", + "url":"https://token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com/scan", + "description":"Returns token scan result.", + "method":"GET", + "required_parameters":[ + { + "name":"token_address", + "type":"STRING", + "description":"", + "default":"0xe9e7cea3dedca5984780bafc599bd69add087d56" + }, + { + "name":"chain", + "type":"STRING", + "description":"Available chains:\n**ethereum, bsc, okc, heco, polygon, arbitrum, optimism, avalanche, fantom, kcc, gnosis, tron, linea, harmony, zkysnc, ethw, fon, cronos**", + "default":"bsc" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com/scan\"\nquerystring = {\"token_address\": token_address, \"chain\": chain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/token_scanner_multichain_honeypot_checker_multichain/api.py b/toolbench/toolenv/tools/Cybersecurity/token_scanner_multichain_honeypot_checker_multichain/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d33a041e171bbd1f50368a1b45be53bf718bb512 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/token_scanner_multichain_honeypot_checker_multichain/api.py @@ -0,0 +1,54 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_chain_id(chain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns chainId from chain name." + chain: Available chains: +**ethereum, bsc, okc, heco, polygon, arbitrum, optimism, avalanche, fantom, kcc, gnosis, tron, linea, harmony, zkysnc, ethw, fon, cronos** + + """ + url = f"https://token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com/get_chain_id" + querystring = {'chain': chain, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def scan_token(token_address: str, chain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns token scan result." + chain: Available chains: +**ethereum, bsc, okc, heco, polygon, arbitrum, optimism, avalanche, fantom, kcc, gnosis, tron, linea, harmony, zkysnc, ethw, fon, cronos** + + """ + url = f"https://token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com/scan" + querystring = {'token_address': token_address, 'chain': chain, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "token-scanner-multichain-honeypot-checker-multichain.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/tweetfeed.json b/toolbench/toolenv/tools/Cybersecurity/tweetfeed.json new file mode 100644 index 0000000000000000000000000000000000000000..8321cae2ca58142570f74e5bda571d67c2b00696 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/tweetfeed.json @@ -0,0 +1,50 @@ +{ + "tool_name":"TweetFeed", + "tool_description":"Free feed with IOCs - malicious URLs, domains, IPs, and hashes. [Website: https://tweetfeed.live]", + "title":"TweetFeed", + "pricing":"FREE", + "score":{ + "avgServiceLevel":36, + "avgLatency":1154, + "avgSuccessRate":36, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/danlopgom/api/tweetfeed/", + "host":"tweetfeed.p.rapidapi.com", + "api_list":[ + { + "name":"v1", + "url":"https://tweetfeed.p.rapidapi.com/v1/{time}/{filter1}/{filter2}", + "description":"Version 1 Endpoint.", + "method":"GET", + "required_parameters":[ + { + "name":"time", + "type":"string", + "description":"Select 1 of these timeframes:\n\n**today** - Today starting 00:00 UTC)\n**week** - Last 7 days\n**month** - Last 30 days\n**year** - Last 365 days", + "default":"today" + } + ], + "optional_parameters":[ + { + "name":"filter1", + "type":"string", + "description":"Can be an specific user, type or tag:\n\nType → **url** / **domain** / **ip** / **sha256** / **md5**\nTag → **phishing** / **ransomware** / **CobaltStrike** ...\nUser → **@malwrhunterteam** / **@1ZRR4H** / **@MBThreatIntel** / ... (don't forget the @)", + "default":"phishing" + }, + { + "name":"filter2", + "type":"string", + "description":"Can be an specific user, type or tag:\n\nType → **url** / **domain** / **ip** / **sha256** / **md5**\nTag → **phishing** / **ransomware** / **CobaltStrike** ...\nUser → **@malwrhunterteam** / **@1ZRR4H** / **@MBThreatIntel** / ... (don't forget the @)", + "default":"url" + } + ], + "code":"import requests\n\nurl = \"https://tweetfeed.p.rapidapi.com/v1/{time}/{filter1}/{filter2}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tweetfeed.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/tweetfeed/api.py b/toolbench/toolenv/tools/Cybersecurity/tweetfeed/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f5e5a77204d4cc58746b68e3733967803fa41d74 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/tweetfeed/api.py @@ -0,0 +1,49 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v1(time: str, filter1: str='phishing', filter2: str='url', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Version 1 Endpoint." + time: Select 1 of these timeframes: + +**today** - Today starting 00:00 UTC) +**week** - Last 7 days +**month** - Last 30 days +**year** - Last 365 days + filter1: Can be an specific user, type or tag: + +Type → **url** / **domain** / **ip** / **sha256** / **md5** +Tag → **phishing** / **ransomware** / **CobaltStrike** ... +User → **@malwrhunterteam** / **@1ZRR4H** / **@MBThreatIntel** / ... (don't forget the @) + filter2: Can be an specific user, type or tag: + +Type → **url** / **domain** / **ip** / **sha256** / **md5** +Tag → **phishing** / **ransomware** / **CobaltStrike** ... +User → **@malwrhunterteam** / **@1ZRR4H** / **@MBThreatIntel** / ... (don't forget the @) + + """ + url = f"https://tweetfeed.p.rapidapi.com/v1/{time}/{filter1}/{filter2}" + querystring = {} + if filter1: + querystring['filter1'] = filter1 + if filter2: + querystring['filter2'] = filter2 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "tweetfeed.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/vortex.json b/toolbench/toolenv/tools/Cybersecurity/vortex.json new file mode 100644 index 0000000000000000000000000000000000000000..4269ca60d7e3d4900175d30cdfdd47dc823d0679 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/vortex.json @@ -0,0 +1,101 @@ +{ + "product_id": "api_7f973e8a-2378-4d7c-8232-6a8f9397d611", + "tool_description": "Vortex threat detection platform API ", + "home_url": "https://rapidapi.com/cyberstanc/api/vortex2/", + "name": "Vortex", + "title": "Vortex", + "pricing": "FREEMIUM", + "tool_name": "Vortex", + "score": null, + "host": "vortex2.p.rapidapi.com", + "api_list": [ + { + "name": "postSubmissionHandler", + "url": "https://vortex2.p.rapidapi.com/api/submissions", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "(Required) ", + "default": "" + }, + { + "name": "password", + "type": "STRING", + "description": "Password", + "default": "esse minim" + } + ], + "code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/submissions\"\nquerystring = {\"file\": \"\", \"password\": \"esse minim\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/submissions\"\nquerystring = {\"file\": \"\", \"password\": \"esse minim\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "postLogoutUser", + "url": "https://vortex2.p.rapidapi.com/api/users/logout", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/logout\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/logout\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "postRegister", + "url": "https://vortex2.p.rapidapi.com/api/users/register", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/register\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/register\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "postEditUser", + "url": "https://vortex2.p.rapidapi.com/api/users/edit", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/edit\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/edit\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + }, + { + "name": "postLogin", + "url": "https://vortex2.p.rapidapi.com/api/users/login", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://vortex2.p.rapidapi.com/api/users/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"vortex2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "string" + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/weblasso.json b/toolbench/toolenv/tools/Cybersecurity/weblasso.json new file mode 100644 index 0000000000000000000000000000000000000000..7627fc387575513132bb15aa15c3c2004eed650f --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/weblasso.json @@ -0,0 +1,107 @@ +{ + "product_id": "api_679f7278-0968-4f9d-96eb-6476da7c3ce7", + "tool_description": "Scan the web for a diverse range of data including subdomains, IP Addresses, web technologies and emails!", + "home_url": "https://rapidapi.com/SudoHeapLabs/api/weblasso/", + "name": "WebLasso", + "title": "WebLasso", + "pricing": "FREEMIUM", + "tool_name": "WebLasso", + "score": { + "avgServiceLevel": 100, + "avgLatency": 336, + "avgSuccessRate": 70, + "popularityScore": 6.8, + "__typename": "Score" + }, + "host": "weblasso.p.rapidapi.com", + "api_list": [ + { + "name": "Get Scan Status", + "url": "https://weblasso.p.rapidapi.com/scan-status", + "description": "Check the status of a scan (ongoing/completed) using a scan ID.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "scan_id", + "type": "STRING", + "description": "", + "default": "e04d3e18-bda7-420b-b240-894fd3d4992d" + } + ], + "code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/scan-status\"\nquerystring = {\"scan_id\": \"e04d3e18-bda7-420b-b240-894fd3d4992d\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/scan-status\"\nquerystring = {\"scan_id\": \"e04d3e18-bda7-420b-b240-894fd3d4992d\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Callback URL Status", + "url": "https://weblasso.p.rapidapi.com/callback-status", + "description": "Check if a callback URL is able to receive scan results (ensure that the callback URL accepts POST requests).", + "method": "GET", + "required_parameters": [ + { + "name": "callback_url", + "type": "STRING", + "description": "", + "default": "https://my-callback-url.com" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/callback-status\"\nquerystring = {\"callback_url\": \"https://my-callback-url.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/callback-status\"\nquerystring = {\"callback_url\": \"https://my-callback-url.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Scan ID", + "url": "https://weblasso.p.rapidapi.com/scan-id", + "description": "Run a scan against a target URL and receive a scan ID to obtain scan results or check scan status at a later time.\n\nProvide an optional callback URL to receive scan results automatically once the scan is completed (ensure that the callback URL accepts POST requests)", + "method": "GET", + "required_parameters": [ + { + "name": "target", + "type": "STRING", + "description": "", + "default": "tesla.com" + } + ], + "optional_parameters": [ + { + "name": "callback_url", + "type": "STRING", + "description": "", + "default": "https://my-callback-url.com" + } + ], + "code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/scan-id\"\nquerystring = {\"callback_url\": \"https://my-callback-url.com\", \"target\": \"tesla.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/scan-id\"\nquerystring = {\"callback_url\": \"https://my-callback-url.com\", \"target\": \"tesla.com\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Get Scan Results", + "url": "https://weblasso.p.rapidapi.com/scan", + "description": "Obtain the scan results from a given scan ID.", + "method": "GET", + "required_parameters": [ + { + "name": "scan_id", + "type": "STRING", + "description": "", + "default": "b12394ad-c804-4b5a-bc20-14f7c8cafdb6" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/scan\"\nquerystring = {\"scan_id\": \"b12394ad-c804-4b5a-bc20-14f7c8cafdb6\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://weblasso.p.rapidapi.com/scan\"\nquerystring = {\"scan_id\": \"b12394ad-c804-4b5a-bc20-14f7c8cafdb6\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"weblasso.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ], + "standardized_name": "weblasso" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/weblasso/api.py b/toolbench/toolenv/tools/Cybersecurity/weblasso/api.py new file mode 100644 index 0000000000000000000000000000000000000000..62a5934622cabf6938711a9c61be3a96401ba7bb --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/weblasso/api.py @@ -0,0 +1,98 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_scan_status(scan_id: str='e04d3e18-bda7-420b-b240-894fd3d4992d', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check the status of a scan (ongoing/completed) using a scan ID." + + """ + url = f"https://weblasso.p.rapidapi.com/scan-status" + querystring = {} + if scan_id: + querystring['scan_id'] = scan_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "weblasso.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_callback_url_status(callback_url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check if a callback URL is able to receive scan results (ensure that the callback URL accepts POST requests)." + + """ + url = f"https://weblasso.p.rapidapi.com/callback-status" + querystring = {'callback_url': callback_url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "weblasso.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_scan_id(target: str, callback_url: str='https://my-callback-url.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Run a scan against a target URL and receive a scan ID to obtain scan results or check scan status at a later time. + + Provide an optional callback URL to receive scan results automatically once the scan is completed (ensure that the callback URL accepts POST requests)" + + """ + url = f"https://weblasso.p.rapidapi.com/scan-id" + querystring = {'target': target, } + if callback_url: + querystring['callback_url'] = callback_url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "weblasso.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_scan_results(scan_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Obtain the scan results from a given scan ID." + + """ + url = f"https://weblasso.p.rapidapi.com/scan" + querystring = {'scan_id': scan_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "weblasso.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/whipcode.json b/toolbench/toolenv/tools/Cybersecurity/whipcode.json new file mode 100644 index 0000000000000000000000000000000000000000..55fc256298b3b3cf50332bfc72659b65ae0da715 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/whipcode.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_13a1f396-0438-4656-b349-c81d61603144", + "tool_description": "A low cost API for running untrusted code securely on remote servers.", + "home_url": "https://rapidapi.com/Whipcode/api/whipcode/", + "name": "Whipcode", + "title": "Whipcode", + "pricing": "FREEMIUM", + "tool_name": "Whipcode", + "score": { + "avgServiceLevel": 100, + "avgLatency": 2135, + "avgSuccessRate": 100, + "popularityScore": 8.5, + "__typename": "Score" + }, + "host": "whipcode.p.rapidapi.com", + "api_list": [ + { + "name": "V1 Endpoint", + "url": "https://whipcode.p.rapidapi.com/", + "description": "Perform POST requests to this endpoint to access the Whipcode API", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://whipcode.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whipcode.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://whipcode.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"whipcode.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/xss_shield.json b/toolbench/toolenv/tools/Cybersecurity/xss_shield.json new file mode 100644 index 0000000000000000000000000000000000000000..ccc6dad532134e5e6d400486d69ceb87d6088804 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/xss_shield.json @@ -0,0 +1,61 @@ +{ + "tool_name": "XSS Shield", + "tool_description": "The XSS Shield API provides a realtime cross-site scripting (XSS) detection service that scans input data for suspicious characters and prevents XSS attacks. It offers two endpoints for handling GET and POST requests.", + "title": "XSS Shield", + "pricing": "PAID", + "score": { + "avgServiceLevel": 100, + "avgLatency": 566, + "avgSuccessRate": 100, + "popularityScore": 9.1, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/kidddevs/api/xss-shield/", + "host": "xss-shield.p.rapidapi.com", + "api_list": [ + { + "name": "POST Detect", + "url": "https://xss-shield.p.rapidapi.com/detect/batch", + "description": "This endpoint detects and prevents XSS attacks in input data sent via JSON payload.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://xss-shield.p.rapidapi.com/detect/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"xss-shield.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "GET Detect", + "url": "https://xss-shield.p.rapidapi.com/detect", + "description": "This endpoint detects and prevents XSS attacks in input data sent via query parameters.", + "method": "GET", + "required_parameters": [ + { + "name": "data", + "type": "STRING", + "description": "The input data to be checked for XSS.", + "default": "John Doe" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://xss-shield.p.rapidapi.com/detect\"\nquerystring = {\"data\": data}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"xss-shield.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "POST Detect", + "url": "https://xss-shield.p.rapidapi.com/detect/batch", + "description": "This endpoint detects and prevents XSS attacks in input data sent via JSON payload.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://xss-shield.p.rapidapi.com/detect/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"xss-shield.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://xss-shield.p.rapidapi.com/detect/batch\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"xss-shield.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Cybersecurity/xss_shield/api.py b/toolbench/toolenv/tools/Cybersecurity/xss_shield/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1144a665b52a0a8b18dee19ac0fe0cc0a12075e3 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/xss_shield/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_detect(data: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint detects and prevents XSS attacks in input data sent via query parameters." + data: The input data to be checked for XSS. + + """ + url = f"https://xss-shield.p.rapidapi.com/detect" + querystring = {'data': data, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "xss-shield.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Cybersecurity/zorrosign_esign.json b/toolbench/toolenv/tools/Cybersecurity/zorrosign_esign.json new file mode 100644 index 0000000000000000000000000000000000000000..18c69b2499294758ff43321f3d367971f7bce1a5 --- /dev/null +++ b/toolbench/toolenv/tools/Cybersecurity/zorrosign_esign.json @@ -0,0 +1,195 @@ +{ + "product_id": "api_ba0cc20b-ca03-4954-a02b-ecce9ed8cbc6", + "tool_description": "Esign API", + "home_url": "https://rapidapi.com/entrusttitle-entrusttitle-default/api/zorrosign-esign/", + "name": "ZorroSign - Esign", + "title": "ZorroSign - Esign", + "pricing": "FREE", + "tool_name": "ZorroSign - Esign", + "score": null, + "host": "zorrosign-esign.p.rapidapi.com", + "api_list": [ + { + "name": "login", + "url": "https://zorrosign-esign.p.rapidapi.com/api/v1/auth/login", + "description": "Login", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/auth/login\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "sign", + "url": "https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/sign", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/sign\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/sign\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "initiateWorkflow", + "url": "https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/initiate-process", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/initiate-process\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/initiate-process\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "initiateDocumentsUploadWorkflow", + "url": "https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/process/{process-id}/initiate-documents", + "description": " ", + "method": "POST", + "required_parameters": [ + { + "name": "process-id", + "type": "STRING", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/process/{process-id}/initiate-documents\"\nquerystring = {\"process-id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/process/{process-id}/initiate-documents\"\nquerystring = {\"process-id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "startProcess", + "url": "https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/start-process", + "description": " ", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/start-process\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://zorrosign-esign.p.rapidapi.com/api/v1/process-management/start-process\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"zorrosign-esign.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/10000_anime_quotes_with_pagination_support/api.py b/toolbench/toolenv/tools/Data/10000_anime_quotes_with_pagination_support/api.py new file mode 100644 index 0000000000000000000000000000000000000000..0814b6a353a26e6a890f109259af8de0555aed46 --- /dev/null +++ b/toolbench/toolenv/tools/Data/10000_anime_quotes_with_pagination_support/api.py @@ -0,0 +1,347 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def recent_quotes_by_pagination(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get recent anime quotes without any categorization: + Required GET parameter + **page**: 1 + On the above **page**, 1 means it will fetch the latest 10 quotes if the page value is 2 then It will bring the next 10 latest quotes + page 1: 0-10 + page 2: 10-20 ...... + + **RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/recent" + querystring = {'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_quote_based_on_quote_id(quote_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get full quote info based on quote_id. + + Required GET parameter + **quote_id**: 3702 + + **RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/search_by_id" + querystring = {'quote_id': quote_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_quote_by_anime_name(search: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get anime quotes based on anime search + + Required GET parameter + **page**: 1 + **search**: Naruto + On the above **page**, 1 means it will fetch the latest 10 quotes if the page value is 2 then It will bring the next 10 latest quotes + page 1: 0-10 + page 2: 10-20 ...... + + On the above **search** means it will try to fetch all quotes related to that anime + **Note:** Search param should contain atleast 3 characters + + **RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/search_by_anime" + querystring = {'search': search, 'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_random_anime_quote(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "**RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/random" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def quote_of_the_day(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get quote of the day. + + **RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/quote_of_the_day" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_quote_by_character_name(search: str, page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get anime quotes based on character search: + Required GET parameter + **page**: 1 + **search**: Lelouch + + On the above **page**, 1 means it will fetch the latest 10 quotes if the page value is 2 then It will bring the next 10 latest quotes + page 1: 0-10 + page 2: 10-20 ...... + + On the above **search** means it will try to fetch all quotes spoken by that character + **Note:** Search param should contain atleast 3 characters. + + **RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/search_by_character" + querystring = {'search': search, 'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def popular_quotes_by_pagination(page: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get anime quotes popular among fans: + Required GET parameter + **page**: 1 + On the above **page**, 1 means it will fetch the latest 10 quotes if the page value is 2 then It will bring the next 10 latest quotes + page 1: 0-10 + page 2: 10-20 ...... + + **RESPONSE** + **quote** + Contain quote text + + **animename** + Japanese anime name, quotes related to. + + **character** ( Depend on subscription ) + Character name who spoke that quote. + + **is_popular** ( Depend on subscription ) + tells whether a quote is popular among fans. + Response will be either 1 or 0 ( 1 represent yes, 0 represent no ) + + **quote_id** ( Depend on subscription ) + Unique quote id which can be later used to get more information. + + **image** (Depend on subscription) + Character Image URL will be provided which is related to the quote. + + **Note: if no quote found response will be** + `{"status": "empty"}`" + + """ + url = f"https://10000-anime-quotes-with-pagination-support.p.rapidapi.com/rapidhandler/popular" + querystring = {'page': page, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "10000-anime-quotes-with-pagination-support.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/100_success_instagram_api_scalable_robust/api.py b/toolbench/toolenv/tools/Data/100_success_instagram_api_scalable_robust/api.py new file mode 100644 index 0000000000000000000000000000000000000000..deb5d1cb86f5130fdf3b52a7df4b712a4f453e92 --- /dev/null +++ b/toolbench/toolenv/tools/Data/100_success_instagram_api_scalable_robust/api.py @@ -0,0 +1,283 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def post_likes(mediaid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get post likes list" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/media/{mediaid}/likers" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def media_info(media_id: str, mediaid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get media info" + media_id: needs to be the same as mediaId in url + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/media/{mediaid}/info" + querystring = {'media_id': media_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hashtag_feed(tagname: str, rank_token: str, max_id: str='{}', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get hashtag feed" + rank_token: This parameter is a UUID version 5, and for each request that use it you should pass a newly generated UUID. If the request is of pagination type, use the same `rank_token` for all pagination requests. + +For example, when you request the `paris` hashtag feed and the generated UUID is `f0d8368d-85e2-54fb-73c4-2d60374295e3`, all the pagination requests of `paris` hashtag will use the same UUID: + +``` +GET /instagram/v1/feed/tag/paris?rank_token=f0d8368d-85e2-54fb-73c4-2d60374295e3 +GET /instagram/v1/feed/tag/paris?rank_token=f0d8368d-85e2-54fb-73c4-2d60374295e3&max_id=QVFCQ0ZDMUlNOEw0X3dyNGJQSXR0UVVNaU9yM2tNdzlFN2ZyMnJDY1V2VXhTemEzbTQzTmxfRTNhY3pHUlFMT0kwQ2RVMTNqSy1DRXJadm1SWW41THhQTw== +GET /instagram/v1/feed/tag/paris?rank_token=f0d8368d-85e2-54fb-73c4-2d60374295e3&max_id=... +``` + +Then, when you request for a different hashtag, let's say `israel`, you'll have to generate a new UUID: + +``` +GET /instagram/v1/feed/tag/israel?rank_token=35adbb92-df2c-4ec3-909e-ddaa081d2b39 +GET /instagram/v1/feed/tag/israel?rank_token=35adbb92-df2c-4ec3-909e-ddaa081d2b39&max_id=... +``` + + + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/feed/tag/{tagname}" + querystring = {'rank_token': rank_token, } + if max_id: + querystring['max_id'] = max_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def child_comments(commentid: int, mediaid: int, max_id: str=None, min_id: str='{}', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get child comments list" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/media/{mediaid}/comments/{commentid}/child_comments/" + querystring = {} + if max_id: + querystring['max_id'] = max_id + if min_id: + querystring['min_id'] = min_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def hashtag_info(q: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get results of hashtag search by keyword" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/tags/search" + querystring = {'q': q, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def user_search(q: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get user search results of keyword" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/users/search" + querystring = {'q': q, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def user_followers(userid: int, order: str='default', query: str=None, enable_groups: str='true', max_id: str=None, search_surface: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get user followers list" + query: Filter followers by username + max_id: Use \\\\\\\"next_max_id\\\\\\\" as the value for pagination + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/friendships/{userid}/followers" + querystring = {} + if order: + querystring['order'] = order + if query: + querystring['query'] = query + if enable_groups: + querystring['enable_groups'] = enable_groups + if max_id: + querystring['max_id'] = max_id + if search_surface: + querystring['search_surface'] = search_surface + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def user_feed(userid: int, max_id: str='{}', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get user feed" + max_id: Use \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"next_max_id\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" as the value for pagination + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/feed/user/{userid}" + querystring = {} + if max_id: + querystring['max_id'] = max_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def user_info(userid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get data of user profile" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/users/{userid}/info" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def post_comments(mediaid: int, min_id: str='{}', max_id: str='{}', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get post comments list" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/media/{mediaid}/comments" + querystring = {} + if min_id: + querystring['min_id'] = min_id + if max_id: + querystring['max_id'] = max_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def fbsearch_places(query: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get results of fbsearch-places endpoint" + + """ + url = f"https://100-success-instagram-api-scalable-robust.p.rapidapi.com/instagram/v1/fbsearch/places" + querystring = {'query': query, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "100-success-instagram-api-scalable-robust.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/4d_dream_dictionary/api.py b/toolbench/toolenv/tools/Data/4d_dream_dictionary/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c05a9238812f0873b1a75c5fea29238e52f62dbe --- /dev/null +++ b/toolbench/toolenv/tools/Data/4d_dream_dictionary/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_dream_number(keyword: str, digit: str, language: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return relevant 4/3 digits lucky draw number based on your dream keyword in english or chinese." + keyword: Keyword of dream to search for. + digit: Number digit of lucky draw to search. + language: Language of keyword. +**en** for English, **zh** for Chinese (simplified) + + """ + url = f"https://4d-dream-dictionary.p.rapidapi.com/get_dream_number/{digit}/{language}/{keyword}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "4d-dream-dictionary.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/a_dataset_of_english_jokes/api.py b/toolbench/toolenv/tools/Data/a_dataset_of_english_jokes/api.py new file mode 100644 index 0000000000000000000000000000000000000000..460038e91186a7a60a96f71a5c683c552ed12058 --- /dev/null +++ b/toolbench/toolenv/tools/Data/a_dataset_of_english_jokes/api.py @@ -0,0 +1,57 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def a_dataset_of_random_english_jokes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This API provides a random dataset of English jokes s which you can use for testing your application + Additional fields: + id -- page ID on id. + category -- see available categories here. + title -- title of the joke. + + category: + Animal + At Work + Bar + Blond + Children + College + Gross + Insults + Knock-Knock + Lawyer + Lightbulb + Medical + Men / Women + News / Politics + One Liners + Puns + Redneck + Religious + Sports + Tech + Yo Momma + Other / Misc" + + """ + url = f"https://a-dataset-of-english-jokes.p.rapidapi.com/users" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "a-dataset-of-english-jokes.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/aadhaar_number_verification.json b/toolbench/toolenv/tools/Data/aadhaar_number_verification.json new file mode 100644 index 0000000000000000000000000000000000000000..94a1aa2f30640be269ebba5de4ba29c305da3a73 --- /dev/null +++ b/toolbench/toolenv/tools/Data/aadhaar_number_verification.json @@ -0,0 +1,182 @@ +{ + "product_id": "api_1069d252-8043-444a-ae89-b13a2d65807b", + "tool_description": "Helps you to fetch the UID(Aadhaar number) is vaild or not also age band, gender,state and last 3 digits number in json format and also check mobile and email verification", + "home_url": "https://rapidapi.com/way2risetech/api/aadhaar-number-verification/", + "name": "Aadhaar Number Verification", + "title": "Aadhaar Number Verification", + "pricing": "FREEMIUM", + "tool_name": "Aadhaar Number Verification", + "score": { + "avgServiceLevel": 93, + "avgLatency": 3875, + "avgSuccessRate": 93, + "popularityScore": 9.5, + "__typename": "Score" + }, + "host": "aadhaar-number-verification.p.rapidapi.com", + "api_list": [ + { + "name": "3-UidVerifyEmailMobile", + "url": "https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/UidVerifyEmailMobile", + "description": "To check mobile and email id link with aadhaar number.", + "method": "POST", + "required_parameters": [ + { + "name": "uidnumber", + "type": "STRING", + "description": "Enter 12 digits Aadhaar(UID) number", + "default": "" + }, + { + "name": "method", + "type": "STRING", + "description": "", + "default": "emailnmobile" + }, + { + "name": "clientid", + "type": "STRING", + "description": "", + "default": "111" + }, + { + "name": "captchaTxnId", + "type": "STRING", + "description": "Get value from First api call name[1-get captcha] and get \"captchaTxnId\" value", + "default": "yXtIGGqKoOai" + }, + { + "name": "txn_id", + "type": "STRING", + "description": "", + "default": "4545533" + }, + { + "name": "captchaValue", + "type": "STRING", + "description": "Get captchaValue from First api call name[1-get captcha] and get \"captchaBase64String\" value\nNote:- convert base64 string to image then enter\nonline tool for view base64 image\nhttps://codebeautify.org/base64-to-image-converter\n", + "default": "0u2KyH" + }, + { + "name": "consent", + "type": "STRING", + "description": "I hereby agree to share my UID number with mobile number or email id as available in my Aadhaar Card to perform Offline KYC and display my available data.", + "default": "Y" + } + ], + "optional_parameters": [ + { + "name": "verificationCode", + "type": "STRING", + "description": "if got verification code then Enter otherwise should be blank", + "default": "" + }, + { + "name": "email", + "type": "STRING", + "description": "Enter Email id\nNote:- if check email id then mobile number column value should be blank", + "default": "" + }, + { + "name": "mobileNumber", + "type": "STRING", + "description": "Enter 10 digits mobile number\nNote:- if check Mobile number then email ID column value should be blank", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/UidVerifyEmailMobile\"\nquerystring = {\"verificationCode\": \"\", \"email\": \"\", \"uidnumber\": \"\", \"method\": \"emailnmobile\", \"clientid\": \"111\", \"captchaTxnId\": \"yXtIGGqKoOai\", \"txn_id\": \"4545533\", \"mobileNumber\": \"\", \"captchaValue\": \"0u2KyH\", \"consent\": \"Y\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-number-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/UidVerifyEmailMobile\"\nquerystring = {\"verificationCode\": \"\", \"email\": \"\", \"uidnumber\": \"\", \"method\": \"emailnmobile\", \"clientid\": \"111\", \"captchaTxnId\": \"yXtIGGqKoOai\", \"txn_id\": \"4545533\", \"mobileNumber\": \"\", \"captchaValue\": \"0u2KyH\", \"consent\": \"Y\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-number-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "2-Uidverify", + "url": "https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/Uidverify", + "description": "Uid (aadhaar)number verify", + "method": "POST", + "required_parameters": [ + { + "name": "captchaValue", + "type": "STRING", + "description": "Get captchaValue from First api call name[1-get captcha] and get \"captchaBase64String\" value\nNote:- convert base64 string to image then enter\nonline tool for view base64 image\nhttps://codebeautify.org/base64-to-image-converter\n", + "default": "TK6HXq" + }, + { + "name": "captchaTxnId", + "type": "STRING", + "description": "Get value from First api call name[1-get captcha] and get \"captchaTxnId\" value", + "default": "58p5MxkQrNFp" + }, + { + "name": "method", + "type": "STRING", + "description": "", + "default": "uidvalidate" + }, + { + "name": "clientid", + "type": "STRING", + "description": "", + "default": "111" + }, + { + "name": "txn_id", + "type": "STRING", + "description": "", + "default": "4545533" + }, + { + "name": "uidnumber", + "type": "STRING", + "description": "Enter 12 digits Aadhaar(UID) Number", + "default": "" + }, + { + "name": "consent", + "type": "STRING", + "description": "I hereby agree to share my UID number as available in my Aadhaar Card to perform Offline KYC and display my available data.", + "default": "Y" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/Uidverify\"\nquerystring = {\"captchaValue\": \"TK6HXq\", \"captchaTxnId\": \"58p5MxkQrNFp\", \"method\": \"uidvalidate\", \"clientid\": \"111\", \"txn_id\": \"4545533\", \"uidnumber\": \"\", \"consent\": \"Y\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-number-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/Uidverify\"\nquerystring = {\"captchaValue\": \"TK6HXq\", \"captchaTxnId\": \"58p5MxkQrNFp\", \"method\": \"uidvalidate\", \"clientid\": \"111\", \"txn_id\": \"4545533\", \"uidnumber\": \"\", \"consent\": \"Y\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-number-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "1-Get-Captcha", + "url": "https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/Getcaptcha", + "description": "Get Captcha", + "method": "POST", + "required_parameters": [ + { + "name": "txn_id", + "type": "STRING", + "description": "", + "default": "985656" + }, + { + "name": "method", + "type": "STRING", + "description": "", + "default": "getcaptcha" + }, + { + "name": "clientid", + "type": "STRING", + "description": "", + "default": "111" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/Getcaptcha\"\nquerystring = {\"txn_id\": \"985656\", \"method\": \"getcaptcha\", \"clientid\": \"111\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-number-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-number-verification.p.rapidapi.com/Uidverifywebsvcv1/Getcaptcha\"\nquerystring = {\"txn_id\": \"985656\", \"method\": \"getcaptcha\", \"clientid\": \"111\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-number-verification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/aadhaar_pdf_verification.json b/toolbench/toolenv/tools/Data/aadhaar_pdf_verification.json new file mode 100644 index 0000000000000000000000000000000000000000..a889f8c4aab27d669930dafde8382802af9a4fe8 --- /dev/null +++ b/toolbench/toolenv/tools/Data/aadhaar_pdf_verification.json @@ -0,0 +1,135 @@ +{ + "product_id": "api_dbf290eb-9d05-46ec-aa85-5b574565a822", + "tool_description": "Aadhaar PDF Download", + "home_url": "https://rapidapi.com/way2risetech/api/aadhaar-pdf-verification3/", + "name": "Aadhaar PDF Verification", + "title": "Aadhaar PDF Verification", + "pricing": "FREEMIUM", + "tool_name": "Aadhaar PDF Verification", + "score": { + "avgServiceLevel": 79, + "avgLatency": 1064, + "avgSuccessRate": 79, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "aadhaar-pdf-verification3.p.rapidapi.com", + "api_list": [ + { + "name": "Extract pdf data", + "url": "https://aadhaar-pdf-verification3.p.rapidapi.com/pdfverifywebsvcv2/pdfverify", + "description": "Extract pdf data with verification", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/pdfverifywebsvcv2/pdfverify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/pdfverifywebsvcv2/pdfverify\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "3-Aadhaar-download", + "url": "https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/Pdf_aadhaar_download", + "description": "Download pdf", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/Pdf_aadhaar_download\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/Pdf_aadhaar_download\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "2-Generate-aadhaar-otp", + "url": "https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/Pdf_generate_aadhaar_otp", + "description": "generate otp", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/Pdf_generate_aadhaar_otp\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/Pdf_generate_aadhaar_otp\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + }, + { + "name": "1-Get-captcha", + "url": "https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/PdfGetcaptcha", + "description": "get captcha", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/PdfGetcaptcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://aadhaar-pdf-verification3.p.rapidapi.com/Okyc/PdfGetcaptcha\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aadhaar-pdf-verification3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "get": { + "type": "string" + }, + "parameters": { + "type": "array" + }, + "errors": { + "type": "array" + }, + "results": { + "type": "integer" + }, + "response": { + "type": "array", + "items": { + "type": "object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/address_completion.json b/toolbench/toolenv/tools/Data/address_completion.json new file mode 100644 index 0000000000000000000000000000000000000000..06cccf10a88ef33afc742c102ea65c9fc085e8af --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_completion.json @@ -0,0 +1,233 @@ +{ + "tool_name":"Address completion", + "tool_description":"Address autocompletion for partial and mis-spelled data. Ideal for forms, search fields, etc.", + "title":"Address completion", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":441, + "avgSuccessRate":100, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/geoapify-gmbh-geoapify/api/address-completion/", + "host":"address-completion.p.rapidapi.com", + "api_list":[ + { + "name":"Address completion", + "url":"https://address-completion.p.rapidapi.com/v1/geocode/autocomplete", + "description":"The Address Autocomplete API allows developers to build location-based services like autocomplete fields. When a user enters a part of an address in the search box, the API provides suggestions for matching locations.", + "method":"GET", + "required_parameters":[ + { + "name":"text", + "type":"STRING", + "description":"Free-form address, place, region or area name", + "default":"Wiebkestieg 1 Hamburg" + } + ], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"Maximum number of results", + "default":"1" + }, + { + "name":"lon", + "type":"STRING", + "description":"Location bias longitude (requires \\\"lat\\\")", + "default":"" + }, + { + "name":"lat", + "type":"STRING", + "description":"Location bias latitude (requires \\\"lon\\\")", + "default":"" + }, + { + "name":"lang", + "type":"STRING", + "description":"Preferable results language code (en, de, it, fr)", + "default":"en" + }, + { + "name":"countrycodes", + "type":"STRING", + "description":"Limit search to a comma-separated list of countries (ISO country codes)", + "default":"de" + } + ], + "code":"import requests\n\nurl = \"https://address-completion.p.rapidapi.com/v1/geocode/autocomplete\"\nquerystring = {\"limit\": limit, \"text\": text, \"lang\": lang, \"countrycodes\": countrycodes}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-completion.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "type":"FeatureCollection", + "features":[ + { + "type":"Feature", + "properties":{ + "datasource":{ + "sourcename":"openstreetmap", + "neighbourhood":"Oldenfelde", + "suburb":"Rahlstedt", + "city_district":"Wandsbek", + "country_code":"de", + "osm_type":"W", + "osm_id":360386402, + "display_name":"1, Wiebkestieg, Oldenfelde, Rahlstedt, Wandsbek, Hamburg, 22149, Germany", + "category":"building", + "type":"yes" + }, + "name":"1, Wiebkestieg, Oldenfelde, Rahlstedt, Wandsbek, Hamburg, 22149, Germany", + "housenumber":"1", + "street":"Wiebkestieg", + "state":"Hamburg", + "postcode":"22149", + "country":"Germany", + "lon":10.14527775, + "lat":53.5932435 + }, + "bbox":[ + 10.1451615, + 53.5931642, + 10.145394, + 53.5933228 + ], + "geometry":{ + "type":"Point", + "coordinates":[ + 10.14527775, + 53.5932435 + ] + } + } + ] + }, + "headers":{ + "access-control-allow-headers":"access-control-max-age, access-control-allow-headers, access-control-allow-methods, access-control-allow-origin, allow, api-version, cf-ray, content-encoding, content-type, date, expect-ct, server, status, vary, cache-control, etag, last-modified, expires", + "access-control-allow-methods":"GET, POST, DELETE, OPTIONS, PUT", + "access-control-allow-origin":"*", + "alt-svc":"h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400", + "api-version":"1.0", + "cache-control":"private, max-age=0, no-cache", + "cf-cache-status":"DYNAMIC", + "cf-ray":"5726b9518f55ee50-CDG", + "content-type":"application/json; charset=utf-8", + "date":"Wed, 11 Mar 2020 16:41:36 GMT", + "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", + "server":"RapidAPI-1.0.42", + "set-cookie":[ + "__cfduid=da7352abd91cac2cfb60bb8d7f19351a11583944896; expires=Fri, 10-Apr-20 16:41:36 GMT; path=/; domain=.geoapify.com; HttpOnly; SameSite=Lax; Secure" + ], + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.0.42", + "content-length":"709", + "connection":"Close" + }, + "schema":{ + "type":"object", + "properties":{ + "type":{ + "type":"string" + }, + "features":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "type":{ + "type":"string" + }, + "properties":{ + "type":"object", + "properties":{ + "datasource":{ + "type":"object", + "properties":{ + "sourcename":{ + "type":"string" + }, + "neighbourhood":{ + "type":"string" + }, + "suburb":{ + "type":"string" + }, + "city_district":{ + "type":"string" + }, + "country_code":{ + "type":"string" + }, + "osm_type":{ + "type":"string" + }, + "osm_id":{ + "type":"integer" + }, + "display_name":{ + "type":"string" + }, + "category":{ + "type":"string" + }, + "type":{ + "type":"string" + } + } + }, + "name":{ + "type":"string" + }, + "housenumber":{ + "type":"string" + }, + "street":{ + "type":"string" + }, + "state":{ + "type":"string" + }, + "postcode":{ + "type":"string" + }, + "country":{ + "type":"string" + }, + "lon":{ + "type":"number" + }, + "lat":{ + "type":"number" + } + } + }, + "bbox":{ + "type":"array", + "items":{ + "type":"number" + } + }, + "geometry":{ + "type":"object", + "properties":{ + "type":{ + "type":"string" + }, + "coordinates":{ + "type":"array", + "items":{ + "type":"number" + } + } + } + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/address_completion/api.py b/toolbench/toolenv/tools/Data/address_completion/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d8010ca6f6b83b75a7142ffe2509886391068934 --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_completion/api.py @@ -0,0 +1,45 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def address_completion(text: str, limit: str='1', lon: str=None, lat: str=None, lang: str='en', countrycodes: str='de', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Address Autocomplete API allows developers to build location-based services like autocomplete fields. When a user enters a part of an address in the search box, the API provides suggestions for matching locations." + text: Free-form address, place, region or area name + limit: Maximum number of results + lon: Location bias longitude (requires \"lat\") + lat: Location bias latitude (requires \"lon\") + lang: Preferable results language code (en, de, it, fr) + countrycodes: Limit search to a comma-separated list of countries (ISO country codes) + + """ + url = f"https://address-completion.p.rapidapi.com/v1/geocode/autocomplete" + querystring = {'text': text, } + if limit: + querystring['limit'] = limit + if lon: + querystring['lon'] = lon + if lat: + querystring['lat'] = lat + if lang: + querystring['lang'] = lang + if countrycodes: + querystring['countrycodes'] = countrycodes + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-completion.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/address_from_to_latitude_longitude.json b/toolbench/toolenv/tools/Data/address_from_to_latitude_longitude.json new file mode 100644 index 0000000000000000000000000000000000000000..1457f8c7d58c23ae57a98ebefe49a53f1f847ba6 --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_from_to_latitude_longitude.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Address From To Latitude Longitude", + "tool_description":"Free API to convert coordinates (latitude, longitude) to and from address An Easy, Open, Worldwide, Free Geocoding API", + "title":"Address From To Latitude Longitude", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/ashutosh05/api/address-from-to-latitude-longitude1/", + "host":"address-from-to-latitude-longitude1.p.rapidapi.com", + "api_list":[ + { + "name":"Coordinates (latitude longitude) to Address", + "url":"https://address-from-to-latitude-longitude1.p.rapidapi.com/GetLatLng", + "description":"By using this geographic tool you can get an address from lat long coordinates.", + "method":"GET", + "required_parameters":[ + { + "name":"Lng", + "type":"STRING", + "description":"", + "default":"88.4048656" + }, + { + "name":"Lat", + "type":"STRING", + "description":"", + "default":"22.5757344" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://address-from-to-latitude-longitude1.p.rapidapi.com/GetLatLng\"\nquerystring = {\"Lng\": lng, \"Lat\": lat}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-from-to-latitude-longitude1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/address_from_to_latitude_longitude/api.py b/toolbench/toolenv/tools/Data/address_from_to_latitude_longitude/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b2b807d192bd3126e95068aabdee62199d79b50b --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_from_to_latitude_longitude/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def coordinates_latitude_longitude_to_address(lng: str, lat: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "By using this geographic tool you can get an address from lat long coordinates." + + """ + url = f"https://address-from-to-latitude-longitude1.p.rapidapi.com/getlatlng" + querystring = {'Lng': lng, 'Lat': lat, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-from-to-latitude-longitude1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/address_match/api.py b/toolbench/toolenv/tools/Data/address_match/api.py new file mode 100644 index 0000000000000000000000000000000000000000..801c1c71e7c0628bf78b44fcc1e7f15bfcbe65ab --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_match/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_address_match(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generates a similarity key for fuzzy matching with other address records and data" + address: Address to generate similarity key from + + """ + url = f"https://address-match.p.rapidapi.com/getaddressmatch" + querystring = {'address': address, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-match.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/address_monitor.json b/toolbench/toolenv/tools/Data/address_monitor.json new file mode 100644 index 0000000000000000000000000000000000000000..ebaad6e36a151469dbecc54a96d55c9c9871b549 --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_monitor.json @@ -0,0 +1,177 @@ +{ + "tool_name": "Address Monitor", + "tool_description": "Monitor EVM network address transactions and get prompt and reliable webhook call with transaction details", + "title": "Address Monitor", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 84, + "avgSuccessRate": 98, + "popularityScore": 9.5, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/cryptoapis-cryptoapis-default/api/address-monitor/", + "host": "address-monitor.p.rapidapi.com", + "api_list": [ + { + "name": "Delete an address", + "url": "https://address-monitor.p.rapidapi.com/address/{id}", + "description": "Delete an address", + "method": "DELETE", + "required_parameters": [ + { + "name": "id", + "type": "string", + "description": "", + "default": "95967ce9-bae6-45d0-a509-fe0246aaee71" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get address transactions", + "url": "https://address-monitor.p.rapidapi.com/address-transaction", + "description": "Get address transactions", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "network", + "type": "STRING", + "description": "", + "default": "BSC_TESTNET" + }, + { + "name": "limit", + "type": "STRING", + "description": "", + "default": "10" + }, + { + "name": "offset", + "type": "STRING", + "description": "", + "default": "0" + }, + { + "name": "monitorAddressId", + "type": "STRING", + "description": "", + "default": "8485d9c3-7f52-4ba7-8ec2-41543effa6ae" + } + ], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address-transaction\"\nquerystring = {\"network\": network, \"limit\": limit, \"offset\": offset, \"monitorAddressId\": monitoraddressid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Create address to monitor", + "url": "https://address-monitor.p.rapidapi.com/address", + "description": "Create an address to monitor. Network supports `BSC_MAINNET`, `BSC_TESTNET`, `POLYGON_MAINNET`, `POLYGON_TESTNET`, `ETHEREUM_MAINNET`, or `ETHEREUM_GOERLI`. A webhook in the following format will be sent when a transaction of this address is safely confirmed:\n`\n{\n \"addressId\": \"289dc37a-e2e4-415b-8399-df090c5bcb03\",\n \"publicAddress\": \"0x07ed4be66c251526ede6c712a76f62f1d995f965\",\n \"network\": \"BSC_TESTNET\",\n \"transactionMetadata\": {\n \"r\": \"0xc89cfcd523984d4b7bd41ec0abb8c3eae8fad08f5bc054468ad64f57fff17444\",\n \"s\": \"0x2c281f188643f19f4beb445f2e9d32d3c34ddaa9558fad55ac3fe4d7b6f9b03\",\n \"v\": \"0xe5\",\n \"to\": \"0x07ed4Be66C251526ede6c712a76f62F1D995f965\",\n \"gas\": \"21000\",\n \"from\": \"0x07ed4Be66C251526ede6c712a76f62F1D995f965\",\n \"hash\": \"0xb28477021d266951d93ac2dff4e958ac83e33239f04bc510ebd12d0ab5ee4860\",\n \"type\": \"0x0\",\n \"input\": \"0x\",\n \"nonce\": 19,\n \"value\": \"2000000000000000\",\n \"gasPrice\": \"10000000000\",\n \"blockHash\": \"0xf36124b22839eca321d369c1f841c1a579b1dd46134bec5facfa459f99542aa2\",\n \"blockNumber\": 25894676,\n \"transactionIndex\": 0\n }\n}\n`", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get service status", + "url": "https://address-monitor.p.rapidapi.com/service-status", + "description": "Get service status", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/service-status\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get address transaction webhook", + "url": "https://address-monitor.p.rapidapi.com/address-transaction/{transactionid}/webhook", + "description": "Get address transaction webhook", + "method": "GET", + "required_parameters": [ + { + "name": "transactionId", + "type": "string", + "description": "", + "default": "4753498e-5ee1-45b2-a18c-a7ef3c9f71cd" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address-transaction/{transactionid}/webhook\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get quota usage", + "url": "https://address-monitor.p.rapidapi.com/rapidapi-quota-usage", + "description": "Get quota usage", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/rapidapi-quota-usage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Get addresses", + "url": "https://address-monitor.p.rapidapi.com/address", + "description": "Get addresses", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "limit", + "type": "STRING", + "description": "", + "default": "100" + }, + { + "name": "offset", + "type": "STRING", + "description": "", + "default": "0" + }, + { + "name": "network", + "type": "STRING", + "description": "", + "default": "BSC_TESTNET" + } + ], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address\"\nquerystring = {\"limit\": limit, \"offset\": offset, \"network\": network}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Create address to monitor", + "url": "https://address-monitor.p.rapidapi.com/address", + "description": "Create an address to monitor. Network supports `BSC_MAINNET`, `BSC_TESTNET`, `POLYGON_MAINNET`, `POLYGON_TESTNET`, `ETHEREUM_MAINNET`, or `ETHEREUM_GOERLI`. A webhook in the following format will be sent when a transaction of this address is safely confirmed:\n`\n{\n \"addressId\": \"289dc37a-e2e4-415b-8399-df090c5bcb03\",\n \"publicAddress\": \"0x07ed4be66c251526ede6c712a76f62f1d995f965\",\n \"network\": \"BSC_TESTNET\",\n \"transactionMetadata\": {\n \"r\": \"0xc89cfcd523984d4b7bd41ec0abb8c3eae8fad08f5bc054468ad64f57fff17444\",\n \"s\": \"0x2c281f188643f19f4beb445f2e9d32d3c34ddaa9558fad55ac3fe4d7b6f9b03\",\n \"v\": \"0xe5\",\n \"to\": \"0x07ed4Be66C251526ede6c712a76f62F1D995f965\",\n \"gas\": \"21000\",\n \"from\": \"0x07ed4Be66C251526ede6c712a76f62F1D995f965\",\n \"hash\": \"0xb28477021d266951d93ac2dff4e958ac83e33239f04bc510ebd12d0ab5ee4860\",\n \"type\": \"0x0\",\n \"input\": \"0x\",\n \"nonce\": 19,\n \"value\": \"2000000000000000\",\n \"gasPrice\": \"10000000000\",\n \"blockHash\": \"0xf36124b22839eca321d369c1f841c1a579b1dd46134bec5facfa459f99542aa2\",\n \"blockNumber\": 25894676,\n \"transactionIndex\": 0\n }\n}\n`", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://address-monitor.p.rapidapi.com/address\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"address-monitor.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/address_monitor/api.py b/toolbench/toolenv/tools/Data/address_monitor/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fd93673867623267035f24e8082b31c8aa0d6264 --- /dev/null +++ b/toolbench/toolenv/tools/Data/address_monitor/api.py @@ -0,0 +1,127 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_address_transactions(network: str='BSC_TESTNET', limit: str='10', offset: str='0', monitoraddressid: str='8485d9c3-7f52-4ba7-8ec2-41543effa6ae', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get address transactions" + + """ + url = f"https://address-monitor.p.rapidapi.com/address-transaction" + querystring = {} + if network: + querystring['network'] = network + if limit: + querystring['limit'] = limit + if offset: + querystring['offset'] = offset + if monitoraddressid: + querystring['monitorAddressId'] = monitoraddressid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-monitor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_service_status(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get service status" + + """ + url = f"https://address-monitor.p.rapidapi.com/service-status" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-monitor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_address_transaction_webhook(transactionid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get address transaction webhook" + + """ + url = f"https://address-monitor.p.rapidapi.com/address-transaction/{transactionid}/webhook" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-monitor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_quota_usage(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get quota usage" + + """ + url = f"https://address-monitor.p.rapidapi.com/rapidapi-quota-usage" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-monitor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_addresses(limit: str='100', offset: str='0', network: str='BSC_TESTNET', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get addresses" + + """ + url = f"https://address-monitor.p.rapidapi.com/address" + querystring = {} + if limit: + querystring['limit'] = limit + if offset: + querystring['offset'] = offset + if network: + querystring['network'] = network + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "address-monitor.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/addressr.json b/toolbench/toolenv/tools/Data/addressr.json new file mode 100644 index 0000000000000000000000000000000000000000..febefeae2603b522778c216c494dc88b9ec35607 --- /dev/null +++ b/toolbench/toolenv/tools/Data/addressr.json @@ -0,0 +1,62 @@ +{ + "product_id": "api_5f12dd58-ab01-419e-8c9b-91d19208d16a", + "tool_description": "Australian Address Validation, Search and Autocomplete", + "home_url": "https://rapidapi.com/addressr-addressr-default/api/addressr/", + "name": "Addressr", + "title": "Addressr", + "pricing": "FREEMIUM", + "tool_name": "Addressr", + "score": { + "avgServiceLevel": 100, + "avgLatency": 488, + "avgSuccessRate": 100, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "addressr.p.rapidapi.com", + "api_list": [ + { + "name": "/addresses/{addressId}", + "url": "https://addressr.p.rapidapi.com/addresses/{addressId}", + "description": "returns detailed information about a specific address\n", + "method": "GET", + "required_parameters": [ + { + "name": "addressId", + "type": "STRING", + "description": "ID of the address.", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://addressr.p.rapidapi.com/addresses/{addressId}\"\nquerystring = {\"addressId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"addressr.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://addressr.p.rapidapi.com/addresses/{addressId}\"\nquerystring = {\"addressId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"addressr.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "error": "not found" + }, + "statuscode": 1, + "schema": "" + }, + { + "name": "/addresses", + "url": "https://addressr.p.rapidapi.com/addresses", + "description": "returns a list of addresses matching the search string\n", + "method": "GET", + "required_parameters": [ + { + "name": "q", + "type": "STRING", + "description": "search string", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://addressr.p.rapidapi.com/addresses\"\nquerystring = {\"q\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"addressr.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://addressr.p.rapidapi.com/addresses\"\nquerystring = {\"q\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"addressr.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": [], + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "addressr" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/addressr/api.py b/toolbench/toolenv/tools/Data/addressr/api.py new file mode 100644 index 0000000000000000000000000000000000000000..93b59411a83b45917172da61be1179ad3a374901 --- /dev/null +++ b/toolbench/toolenv/tools/Data/addressr/api.py @@ -0,0 +1,54 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def addresses_addressid(addressid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "returns detailed information about a specific address + " + addressid: ID of the address. + + """ + url = f"https://addressr.p.rapidapi.com/addresses/{addressid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "addressr.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def addresses(q: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "returns a list of addresses matching the search string + " + q: search string + + """ + url = f"https://addressr.p.rapidapi.com/addresses" + querystring = {'q': q, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "addressr.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/advanced_hashing_tool/api.py b/toolbench/toolenv/tools/Data/advanced_hashing_tool/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b6a520293db128c9e8337471fa1c4e3c0225be81 --- /dev/null +++ b/toolbench/toolenv/tools/Data/advanced_hashing_tool/api.py @@ -0,0 +1,239 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def ripemd_160(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a RIPEMD-160 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/ripemd-160/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def md5(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a MD5 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/md5/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha3_512(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA3-512 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha3-512/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha3_384(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA3-384 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha3-384/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha3_256(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA3-256 hash." + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha3-256/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha3_224(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA3-224 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha3-224/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha224(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA224 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha224/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha384(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA384 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha384/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha512(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA512 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha512/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha256(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA256 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha256/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sha1(input: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a SHA1 hash!" + + """ + url = f"https://advanced-hashing-tool2.p.rapidapi.com/sha1/{input}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-hashing-tool2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/advanced_serp_operators.json b/toolbench/toolenv/tools/Data/advanced_serp_operators.json new file mode 100644 index 0000000000000000000000000000000000000000..acfb6ea1d3f464e523d0bb795f1a0ddf81276e61 --- /dev/null +++ b/toolbench/toolenv/tools/Data/advanced_serp_operators.json @@ -0,0 +1,770 @@ +{ + "tool_name":"Advanced SERP Operators", + "tool_description":"Real-Time & Accurate Advanced Search Engine Results. REST API for SERP and SEO data. - More at: bishopi.io", + "title":"Advanced SERP Operators", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":97, + "avgLatency":2512, + "avgSuccessRate":91, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/getbishopi/api/advanced-serp-operators/", + "host":"advanced-serp-operators.p.rapidapi.com", + "api_list":[ + { + "name":"get-related-search-terms", + "url":"https://advanced-serp-operators.p.rapidapi.com/get-related-search-terms/", + "description":"Related searches in Google search", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"vitamins" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/get-related-search-terms/\"\nquerystring = {\"location\": location, \"query\": query, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-within-website", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-within-website/", + "description":"Search within a website", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"seo tools" + }, + { + "name":"website", + "type":"STRING", + "description":"", + "default":"google.com" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-within-website/\"\nquerystring = {\"query\": query, \"website\": website, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"search-for-words-in-title-text-or-url", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-for-words-in-title-text-or-url/", + "description":"Search for words in the title and text or URL", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"seo agency" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-for-words-in-title-text-or-url/\"\nquerystring = {\"location\": location, \"query\": query, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-pages-with-keywords", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-pages-with-keywords/", + "description":"Return results where the text appears in the body of the page.", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"apple watches" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-pages-with-keywords/\"\nquerystring = {\"query\": query, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"get-related-keywords", + "url":"https://advanced-serp-operators.p.rapidapi.com/get-related-keywords/", + "description":"Scrape Google for all the related keywords that it shows at the bottom of the search results page, and show them to you along with the Volume and other SEO metrics in the Related Keyword Tool.", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"prenatal vitamins" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/get-related-keywords/\"\nquerystring = {\"location\": location, \"max_results\": max_results, \"query\": query}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"get-related-questions", + "url":"https://advanced-serp-operators.p.rapidapi.com/get-related-questions/", + "description":"The People Also Ask For Keywords Tool. We scrape Google for all the keywords shown in the \"people also ask for\" boxes, that it shows when you click a link and then go back to the Google SERP.", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"prenatal vitamins" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/get-related-questions/\"\nquerystring = {\"query\": query, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-blogs", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-blogs/", + "description":"You can easily find blogs with specific search terms or phrases.", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"Android phone" + } + ], + "optional_parameters":[ + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + }, + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-blogs/\"\nquerystring = {\"query\": query, \"max_results\": max_results, \"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-for-words-in-url", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-for-words-in-url/", + "description":"Search for words in URL", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"car insurance" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-for-words-in-url/\"\nquerystring = {\"query\": query, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-words-in-title", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-words-in-title/", + "description":"Find a web page with certain words in the title", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"network cable" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-words-in-title/\"\nquerystring = {\"location\": location, \"query\": query, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-sites-linking-to-competitions", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-sites-linking-to-competitions/", + "description":"Find sites linking to competitors", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"https://moz.com/blog" + }, + { + "name":"website", + "type":"STRING", + "description":"", + "default":"moz.com" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-sites-linking-to-competitions/\"\nquerystring = {\"location\": location, \"query\": query, \"max_results\": max_results, \"website\": website}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-competition-mentions", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-competition-mentions/", + "description":"Find PR opportunities by finding competitor mentions", + "method":"GET", + "required_parameters":[ + { + "name":"keywords", + "type":"STRING", + "description":"", + "default":"thenextweb" + }, + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"theverge.com" + } + ], + "optional_parameters":[ + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + }, + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-competition-mentions/\"\nquerystring = {\"max_results\": max_results, \"location\": location, \"keywords\": keywords, \"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-pages-linked-to-specific-anchor-text", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-pages-linked-to-specific-anchor-text/", + "description":"finds pages that are linked to any specific anchor text.", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"network cable" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-pages-linked-to-specific-anchor-text/\"\nquerystring = {\"query\": query, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-related-sites", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-related-sites/", + "description":"Helps you find sites related to a specified URL.", + "method":"GET", + "required_parameters":[ + { + "name":"website", + "type":"STRING", + "description":"", + "default":"facebook.com" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-related-sites/\"\nquerystring = {\"location\": location, \"website\": website, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-by-filetype", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-by-filetype/", + "description":"Search operator helps you to find results for a specific file type.", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"climate change" + }, + { + "name":"filetype", + "type":"STRING", + "description":"", + "default":"pdf" + } + ], + "optional_parameters":[ + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + }, + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-by-filetype/\"\nquerystring = {\"query\": query, \"filetype\": filetype, \"max_results\": max_results, \"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-links-in-website", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-links-in-website/", + "description":"Search for all links in a website", + "method":"GET", + "required_parameters":[ + { + "name":"website", + "type":"STRING", + "description":"", + "default":"thenextweb.com" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-links-in-website/\"\nquerystring = {\"website\": website, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-keywords-in-url", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-keywords-in-url/", + "description":"Return only results where the search words are included in the URL", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"expired domains" + } + ], + "optional_parameters":[ + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + }, + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-keywords-in-url/\"\nquerystring = {\"max_results\": max_results, \"query\": query, \"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"check-index-block-pages", + "url":"https://advanced-serp-operators.p.rapidapi.com/check-index-block-pages/", + "description":"Check if Indexed Pages You Thought Were Blocked, are indeed not blocked.", + "method":"GET", + "required_parameters":[ + { + "name":"website", + "type":"STRING", + "description":"", + "default":"rapidapi.com" + }, + { + "name":"blocked_page", + "type":"STRING", + "description":"", + "default":"/hub" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + }, + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/check-index-block-pages/\"\nquerystring = {\"website\": website, \"blocked_page\": blocked_page, \"location\": location, \"max_results\": max_results}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"search-a-range", + "url":"https://advanced-serp-operators.p.rapidapi.com/search-range/", + "description":"Search \"Android phone\" but only show results where the price ranges from $300-$500; also works for dates and other numbers", + "method":"GET", + "required_parameters":[ + { + "name":"range_1", + "type":"STRING", + "description":"", + "default":"$300" + }, + { + "name":"query", + "type":"STRING", + "description":"", + "default":"Android phone" + }, + { + "name":"range_2", + "type":"STRING", + "description":"", + "default":"$500" + } + ], + "optional_parameters":[ + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + }, + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/search-range/\"\nquerystring = {\"range_1\": range_1, \"query\": query, \"max_results\": max_results, \"location\": location, \"range_2\": range_2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"number-indexed-pages", + "url":"https://advanced-serp-operators.p.rapidapi.com/number-indexed-pages/", + "description":"how many pages (more specifically URLs) a search engine has in its index.", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"rapidapi.com" + } + ], + "optional_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/number-indexed-pages/\"\nquerystring = {\"location\": location, \"domain\": domain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"find-non-secure-pages", + "url":"https://advanced-serp-operators.p.rapidapi.com/find-non-secure-pages/", + "description":"Find non-secure pages (non-https) of a given domain name", + "method":"GET", + "required_parameters":[ + { + "name":"domain", + "type":"STRING", + "description":"", + "default":"apple.com" + } + ], + "optional_parameters":[ + { + "name":"max_results", + "type":"NUMBER", + "description":"", + "default":"10" + }, + { + "name":"location", + "type":"STRING", + "description":"Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'", + "default":"us" + } + ], + "code":"import requests\n\nurl = \"https://advanced-serp-operators.p.rapidapi.com/find-non-secure-pages/\"\nquerystring = {\"domain\": domain, \"max_results\": max_results, \"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"advanced-serp-operators.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/advanced_serp_operators/api.py b/toolbench/toolenv/tools/Data/advanced_serp_operators/api.py new file mode 100644 index 0000000000000000000000000000000000000000..429b3f278aca4155cc949f8336880aee7fcc02e9 --- /dev/null +++ b/toolbench/toolenv/tools/Data/advanced_serp_operators/api.py @@ -0,0 +1,526 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_related_search_terms(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Related searches in Google search" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/get-related-search-terms/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_within_website(query: str, website: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search within a website" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-within-website/" + querystring = {'query': query, 'website': website, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_for_words_in_title_text_or_url(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for words in the title and text or URL" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-for-words-in-title-text-or-url/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_pages_with_keywords(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return results where the text appears in the body of the page." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-pages-with-keywords/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_related_keywords(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Scrape Google for all the related keywords that it shows at the bottom of the search results page, and show them to you along with the Volume and other SEO metrics in the Related Keyword Tool." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/get-related-keywords/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_related_questions(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The People Also Ask For Keywords Tool. We scrape Google for all the keywords shown in the "people also ask for" boxes, that it shows when you click a link and then go back to the Google SERP." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/get-related-questions/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_blogs(query: str, max_results: int=10, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "You can easily find blogs with specific search terms or phrases." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-blogs/" + querystring = {'query': query, } + if max_results: + querystring['max_results'] = max_results + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_for_words_in_url(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for words in URL" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-for-words-in-url/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_words_in_title(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find a web page with certain words in the title" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-words-in-title/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_sites_linking_to_competitions(query: str, website: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find sites linking to competitors" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-sites-linking-to-competitions/" + querystring = {'query': query, 'website': website, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_competition_mentions(keywords: str, domain: str, max_results: int=10, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find PR opportunities by finding competitor mentions" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-competition-mentions/" + querystring = {'keywords': keywords, 'domain': domain, } + if max_results: + querystring['max_results'] = max_results + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_pages_linked_to_specific_anchor_text(query: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "finds pages that are linked to any specific anchor text." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-pages-linked-to-specific-anchor-text/" + querystring = {'query': query, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_related_sites(website: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Helps you find sites related to a specified URL." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-related-sites/" + querystring = {'website': website, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_by_filetype(query: str, filetype: str, max_results: int=10, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search operator helps you to find results for a specific file type." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-by-filetype/" + querystring = {'query': query, 'filetype': filetype, } + if max_results: + querystring['max_results'] = max_results + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_links_in_website(website: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for all links in a website" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-links-in-website/" + querystring = {'website': website, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_keywords_in_url(query: str, max_results: int=10, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return only results where the search words are included in the URL" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-keywords-in-url/" + querystring = {'query': query, } + if max_results: + querystring['max_results'] = max_results + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def check_index_block_pages(website: str, blocked_page: str, location: str='us', max_results: int=10, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Check if Indexed Pages You Thought Were Blocked, are indeed not blocked." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/check-index-block-pages/" + querystring = {'website': website, 'blocked_page': blocked_page, } + if location: + querystring['location'] = location + if max_results: + querystring['max_results'] = max_results + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_a_range(range_1: str, query: str, range_2: str, max_results: int=10, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search "Android phone" but only show results where the price ranges from $300-$500; also works for dates and other numbers" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/search-range/" + querystring = {'range_1': range_1, 'query': query, 'range_2': range_2, } + if max_results: + querystring['max_results'] = max_results + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def number_indexed_pages(domain: str, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "how many pages (more specifically URLs) a search engine has in its index." + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/number-indexed-pages/" + querystring = {'domain': domain, } + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def find_non_secure_pages(domain: str, max_results: int=10, location: str='us', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Find non-secure pages (non-https) of a given domain name" + location: Specify the proxy location for the search. Supported countries. 'US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR' + + """ + url = f"https://advanced-serp-operators.p.rapidapi.com/find-non-secure-pages/" + querystring = {'domain': domain, } + if max_results: + querystring['max_results'] = max_results + if location: + querystring['location'] = location + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "advanced-serp-operators.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/adzuna.json b/toolbench/toolenv/tools/Data/adzuna.json new file mode 100644 index 0000000000000000000000000000000000000000..07b74a0e5b4d727f2653763a5b4cb0f75a5f8720 --- /dev/null +++ b/toolbench/toolenv/tools/Data/adzuna.json @@ -0,0 +1,1188 @@ +{ + "product_id": "53fd5fe1e4b0bf456e67c097", + "tool_description": "Get the very latest ads and data with Adzuna's API. Get job, property and car ads for your own website. Use Adzuna's up-to-the-minute employment data to power your own website, reporting and data visualisations.", + "home_url": "https://rapidapi.com/baskarm28/api/adzuna/", + "name": "Adzuna", + "title": "Adzuna", + "pricing": "FREE", + "tool_name": "Adzuna", + "score": { + "avgServiceLevel": 100, + "avgLatency": 228, + "avgSuccessRate": 100, + "popularityScore": 8.4, + "__typename": "Score" + }, + "host": "baskarm28-adzuna-v1.p.rapidapi.com", + "api_list": [ + { + "name": "Average salary", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/history", + "description": "Provides historical average salaries", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + } + ], + "optional_parameters": [ + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object.", + "default": "location0=UK&location1=South East England&location2=Surrey" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + }, + { + "name": "months", + "type": "STRING", + "description": "The number of months back for which to retrieve data.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/history\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"what\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\", \"months\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/history\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"what\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\", \"months\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "List employers", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/top_companies", + "description": "List the employers with most jobs advertised.", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + } + ], + "optional_parameters": [ + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object", + "default": "location0=UK&location1=South East England&location2=Surrey" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/top_companies\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"what\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/top_companies\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"what\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Salary data", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/geodata", + "description": "Provides salary data for locations", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + } + ], + "optional_parameters": [ + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object.", + "default": "location0=UK&location1=South East England&location2=Surrey" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/geodata\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"what\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/geodata\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"what\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Salary estimate", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/gb/jobsworth", + "description": "Returns an estimate of the salary of a job.", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + } + ], + "optional_parameters": [ + { + "name": "title", + "type": "STRING", + "description": "The title of the job advertisement.", + "default": "" + }, + { + "name": "description", + "type": "STRING", + "description": "The job description.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/gb/jobsworth\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"title\": \"\", \"description\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/gb/jobsworth\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"title\": \"\", \"description\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "API version", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/version", + "description": "Returns the current version of this API", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/version\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/version\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "List category", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/{vertical}/{country}/categories", + "description": "List available categories.", + "method": "GET", + "required_parameters": [ + { + "name": "vertical", + "type": "STRING", + "description": "", + "default": "" + }, + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/{vertical}/{country}/categories\"\nquerystring = {\"vertical\": \"\", \"app_id\": \"\", \"app_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/{vertical}/{country}/categories\"\nquerystring = {\"vertical\": \"\", \"app_id\": \"\", \"app_key\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Search cars", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/cars/{country}/search/{page}", + "description": "Search Adzuna cars.", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number", + "default": "{page}" + } + ], + "optional_parameters": [ + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "results_per_page", + "type": "NUMBER", + "description": "The number of results to include on each page of search results.", + "default": "" + }, + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "what_and", + "type": "STRING", + "description": "The keywords to search for, all keywords must be found.", + "default": "" + }, + { + "name": "what_phrase", + "type": "STRING", + "description": "An entire phrase which must be found in the description or title.", + "default": "" + }, + { + "name": "what_or", + "type": "STRING", + "description": "Keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "what_exclude", + "type": "STRING", + "description": "Keywords to exclude from the search. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "title_only", + "type": "STRING", + "description": "Keywords to find, but only in the title. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object.", + "default": "location0=UK&location1=South East England&location2=Surrey" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "distance", + "type": "NUMBER", + "description": "The distance in kilometres from the centre of the place described by the 'where' parameter.", + "default": "10km" + }, + { + "name": "max_days_old", + "type": "NUMBER", + "description": "The age of the oldest advertisment in days that will be returned.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + }, + { + "name": "sort_direction", + "type": "STRING", + "description": "The order of search results (ascending or descending).", + "default": "" + }, + { + "name": "sort_by", + "type": "STRING", + "description": "The ordering of the search results.", + "default": "" + }, + { + "name": "fuel_type", + "type": "STRING", + "description": "The type of fuel the vehicle requires.", + "default": "" + }, + { + "name": "transmission", + "type": "STRING", + "description": "The type of transmission the vehicle has.", + "default": "" + }, + { + "name": "body_type", + "type": "STRING", + "description": "The type of body a vehicle has.", + "default": "" + }, + { + "name": "engine_min", + "type": "NUMBER", + "description": "The minimum engine capacity in cubic centimetres.", + "default": "" + }, + { + "name": "engine_max", + "type": "NUMBER", + "description": "The maximum engine capacity in cubic centimetres.", + "default": "" + }, + { + "name": "colour", + "type": "STRING", + "description": "The colour of the car", + "default": "" + }, + { + "name": "mileage_min", + "type": "NUMBER", + "description": "The minimum mileage of vehicles to be considered.", + "default": "" + }, + { + "name": "mileage_max", + "type": "NUMBER", + "description": "The maximum mileage of vehicles to be considered.", + "default": "" + }, + { + "name": "year_min", + "type": "NUMBER", + "description": "The earliest year to be considered.", + "default": "" + }, + { + "name": "year_max", + "type": "NUMBER", + "description": "The most recent year to be considered.", + "default": "" + }, + { + "name": "seller_type", + "type": "STRING", + "description": "The type of seller.", + "default": "" + }, + { + "name": "price_min", + "type": "NUMBER", + "description": "The minimum price we wish to get results for.", + "default": "" + }, + { + "name": "price_include_unknown", + "type": "STRING", + "description": "When using price_min and/or price_max set to \"1\", to include cars with unknown price in results.", + "default": "" + }, + { + "name": "price_max", + "type": "NUMBER", + "description": "The maximum price we wish to get results for.", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/cars/{country}/search/{page}\"\nquerystring = {\"location5\": \"\", \"app_id\": \"\", \"app_key\": \"\", \"results_per_page\": \"\", \"what\": \"\", \"what_and\": \"\", \"what_phrase\": \"\", \"what_or\": \"\", \"what_exclude\": \"\", \"title_only\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"distance\": \"10km\", \"max_days_old\": \"\", \"category\": \"\", \"sort_direction\": \"\", \"sort_by\": \"\", \"fuel_type\": \"\", \"transmission\": \"\", \"body_type\": \"\", \"engine_min\": \"\", \"engine_max\": \"\", \"colour\": \"\", \"mileage_min\": \"\", \"mileage_max\": \"\", \"year_min\": \"\", \"year_max\": \"\", \"seller_type\": \"\", \"price_min\": \"\", \"price_include_unknown\": \"\", \"price_max\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/cars/{country}/search/{page}\"\nquerystring = {\"location5\": \"\", \"app_id\": \"\", \"app_key\": \"\", \"results_per_page\": \"\", \"what\": \"\", \"what_and\": \"\", \"what_phrase\": \"\", \"what_or\": \"\", \"what_exclude\": \"\", \"title_only\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"distance\": \"10km\", \"max_days_old\": \"\", \"category\": \"\", \"sort_direction\": \"\", \"sort_by\": \"\", \"fuel_type\": \"\", \"transmission\": \"\", \"body_type\": \"\", \"engine_min\": \"\", \"engine_max\": \"\", \"colour\": \"\", \"mileage_min\": \"\", \"mileage_max\": \"\", \"year_min\": \"\", \"year_max\": \"\", \"seller_type\": \"\", \"price_min\": \"\", \"price_include_unknown\": \"\", \"price_max\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Search properties", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/property/{country}/search/{page}", + "description": "Search Adzuna properties", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number", + "default": "{page}" + } + ], + "optional_parameters": [ + { + "name": "results_per_page", + "type": "NUMBER", + "description": "The number of results to include on each page of search results.", + "default": "" + }, + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "what_and", + "type": "STRING", + "description": "The keywords to search for, all keywords must be found.", + "default": "" + }, + { + "name": "what_phrase", + "type": "STRING", + "description": "An entire phrase which must be found in the description or title.", + "default": "" + }, + { + "name": "what_or", + "type": "STRING", + "description": "Keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "what_exclude", + "type": "STRING", + "description": "Keywords to exclude from the search. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "title_only", + "type": "STRING", + "description": "Keywords to find, but only in the title. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object.", + "default": "location0=UK&location1=South East England&location2=Surrey" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "distance", + "type": "NUMBER", + "description": "The distance in kilometres from the centre of the place described by the 'where' parameter.", + "default": "10km" + }, + { + "name": "max_days_old", + "type": "NUMBER", + "description": "The age of the oldest advertisment in days that will be returned.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + }, + { + "name": "sort_direction", + "type": "STRING", + "description": "The order of search results (ascending or descending).", + "default": "" + }, + { + "name": "sort_by", + "type": "STRING", + "description": "The ordering of the search results.", + "default": "" + }, + { + "name": "beds", + "type": "NUMBER", + "description": "The number of beds to search for. For values greater than five, this is considered to be minimum value, rather than the exact value to find.", + "default": "" + }, + { + "name": "is_furnished", + "type": "STRING", + "description": "One of \"0\" or \"1\", to indicate no or yes. If omitted, both types of property are found.", + "default": "" + }, + { + "name": "price_min", + "type": "NUMBER", + "description": "The minimum price we wish to get results for (for rental properties price is monthly).", + "default": "" + }, + { + "name": "price_max", + "type": "NUMBER", + "description": "The maximum price we wish to get results for (for rental properties price is monthly).", + "default": "" + }, + { + "name": "price_include_unknown", + "type": "STRING", + "description": "When using price_min or price_max set to \"1\", to include properties with an unknown price in results.", + "default": "" + }, + { + "name": "property_type", + "type": "STRING", + "description": "The type of property of interest.", + "default": "" + }, + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/property/{country}/search/{page}\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"results_per_page\": \"\", \"what\": \"\", \"what_and\": \"\", \"what_phrase\": \"\", \"what_or\": \"\", \"what_exclude\": \"\", \"title_only\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"distance\": \"10km\", \"max_days_old\": \"\", \"category\": \"\", \"sort_direction\": \"\", \"sort_by\": \"\", \"beds\": \"\", \"is_furnished\": \"\", \"price_min\": \"\", \"price_max\": \"\", \"price_include_unknown\": \"\", \"property_type\": \"\", \"location5\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/property/{country}/search/{page}\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"results_per_page\": \"\", \"what\": \"\", \"what_and\": \"\", \"what_phrase\": \"\", \"what_or\": \"\", \"what_exclude\": \"\", \"title_only\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"distance\": \"10km\", \"max_days_old\": \"\", \"category\": \"\", \"sort_direction\": \"\", \"sort_by\": \"\", \"beds\": \"\", \"is_furnished\": \"\", \"price_min\": \"\", \"price_max\": \"\", \"price_include_unknown\": \"\", \"property_type\": \"\", \"location5\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Histogram data", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/histogram", + "description": "Provide histogram data of salary data", + "method": "GET", + "required_parameters": [ + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + } + ], + "optional_parameters": [ + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + }, + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna.", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object.", + "default": "location0=UK&location1=South East England&location2=Surrey" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/histogram\"\nquerystring = {\"what\": \"\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\", \"app_id\": \"\", \"app_key\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/histogram\"\nquerystring = {\"what\": \"\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"category\": \"\", \"app_id\": \"\", \"app_key\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Search jobs", + "url": "https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/search/{page}", + "description": "Search the Adzuna jobs", + "method": "GET", + "required_parameters": [ + { + "name": "app_id", + "type": "STRING", + "description": "Application ID, supplied by Adzuna", + "default": "" + }, + { + "name": "app_key", + "type": "STRING", + "description": "Application key, supplied by Adzuna", + "default": "" + }, + { + "name": "country", + "type": "STRING", + "description": "ISO 8601 country code of the relevant country.", + "default": "{country}" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number", + "default": "{page}" + } + ], + "optional_parameters": [ + { + "name": "results_per_page", + "type": "NUMBER", + "description": "The number of results to include on each page of search results.", + "default": "" + }, + { + "name": "what", + "type": "STRING", + "description": "The keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "what_and", + "type": "STRING", + "description": "The keywords to search for, all keywords must be found.", + "default": "" + }, + { + "name": "what_phrase", + "type": "STRING", + "description": "An entire phrase which must be found in the description or title.", + "default": "" + }, + { + "name": "what_or", + "type": "STRING", + "description": "Keywords to search for. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "what_exclude", + "type": "STRING", + "description": "Keywords to exclude from the search. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "title_only", + "type": "STRING", + "description": "Keywords to find, but only in the title. Use space or comma characters to separate multiple keywords.", + "default": "" + }, + { + "name": "location1", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location2", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location3", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location4", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location5", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location6", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "location7", + "type": "STRING", + "description": "See location0", + "default": "" + }, + { + "name": "where", + "type": "STRING", + "description": "The geographic centre of the search. Place names or postal codes may be used.", + "default": "" + }, + { + "name": "distance", + "type": "STRING", + "description": "The distance in kilometres from the centre of the place described by the 'where' parameter. Defaults to 10km.", + "default": "" + }, + { + "name": "max_days_old", + "type": "STRING", + "description": "The age of the oldest advertisment in days that will be returned.", + "default": "" + }, + { + "name": "category", + "type": "STRING", + "description": "The category tag, as returned by the \"category\" endpoint.", + "default": "" + }, + { + "name": "sort_direction", + "type": "STRING", + "description": "The order of search results (ascending or descending).", + "default": "" + }, + { + "name": "sort_by", + "type": "STRING", + "description": "The ordering of the search results.", + "default": "" + }, + { + "name": "salary_min", + "type": "STRING", + "description": "The minimum salary we wish to get results for.", + "default": "" + }, + { + "name": "salary_max", + "type": "STRING", + "description": "The maximum salary we wish to get results for.", + "default": "" + }, + { + "name": "salary_include_unknown", + "type": "STRING", + "description": "When using salary_min and/or salary_max set this to \"1\", to include jobs with unknown salaries in results.", + "default": "" + }, + { + "name": "full_time", + "type": "STRING", + "description": "If set to \"1\", only full time jobs will be returned.", + "default": "" + }, + { + "name": "part_time", + "type": "STRING", + "description": "If set to \"1\", only part time jobs will be returned.", + "default": "" + }, + { + "name": "contract", + "type": "STRING", + "description": "If set to \"1\", only contract jobs will be returned.", + "default": "" + }, + { + "name": "permanent", + "type": "STRING", + "description": "If set to \"1\", only permanent jobs will be returned.", + "default": "" + }, + { + "name": "company", + "type": "STRING", + "description": "The canonical company name. This may be returned in a Adzuna::API::Response::Company object when a job is returned. A full list of allowed terms in not available through the API.", + "default": "" + }, + { + "name": "location0", + "type": "STRING", + "description": "The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object.", + "default": "location0=UK&location1=South East England&location2=Surrey" + } + ], + "code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/search/{page}\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"results_per_page\": \"\", \"what\": \"\", \"what_and\": \"\", \"what_phrase\": \"\", \"what_or\": \"\", \"what_exclude\": \"\", \"title_only\": \"\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"distance\": \"\", \"max_days_old\": \"\", \"category\": \"\", \"sort_direction\": \"\", \"sort_by\": \"\", \"salary_min\": \"\", \"salary_max\": \"\", \"salary_include_unknown\": \"\", \"full_time\": \"\", \"part_time\": \"\", \"contract\": \"\", \"permanent\": \"\", \"company\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/search/{page}\"\nquerystring = {\"app_id\": \"\", \"app_key\": \"\", \"results_per_page\": \"\", \"what\": \"\", \"what_and\": \"\", \"what_phrase\": \"\", \"what_or\": \"\", \"what_exclude\": \"\", \"title_only\": \"\", \"location1\": \"\", \"location2\": \"\", \"location3\": \"\", \"location4\": \"\", \"location5\": \"\", \"location6\": \"\", \"location7\": \"\", \"where\": \"\", \"distance\": \"\", \"max_days_old\": \"\", \"category\": \"\", \"sort_direction\": \"\", \"sort_by\": \"\", \"salary_min\": \"\", \"salary_max\": \"\", \"salary_include_unknown\": \"\", \"full_time\": \"\", \"part_time\": \"\", \"contract\": \"\", \"permanent\": \"\", \"company\": \"\", \"location0\": \"location0=UK&location1=South East England&location2=Surrey\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"baskarm28-adzuna-v1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "adzuna" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/adzuna/api.py b/toolbench/toolenv/tools/Data/adzuna/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b7dcb704de6fa8e447f45090bc01c39abc3f623d --- /dev/null +++ b/toolbench/toolenv/tools/Data/adzuna/api.py @@ -0,0 +1,669 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def average_salary(app_id: str, app_key: str, country: str, what: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', location1: str=None, location2: str=None, location3: str=None, location4: str=None, location5: str=None, location6: str=None, location7: str=None, where: str=None, category: str=None, months: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides historical average salaries" + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object. + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location5: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + category: The category tag, as returned by the "category" endpoint. + months: The number of months back for which to retrieve data. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/history" + querystring = {'app_id': app_id, 'app_key': app_key, } + if what: + querystring['what'] = what + if location0: + querystring['location0'] = location0 + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location5: + querystring['location5'] = location5 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if category: + querystring['category'] = category + if months: + querystring['months'] = months + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_employers(app_id: str, app_key: str, country: str, what: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', location1: str=None, location2: str=None, location3: str=None, location4: str=None, location5: str=None, location6: str=None, location7: str=None, where: str=None, category: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List the employers with most jobs advertised." + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location5: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + category: The category tag, as returned by the "category" endpoint. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/top_companies" + querystring = {'app_id': app_id, 'app_key': app_key, } + if what: + querystring['what'] = what + if location0: + querystring['location0'] = location0 + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location5: + querystring['location5'] = location5 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if category: + querystring['category'] = category + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def salary_data(app_id: str, country: str, app_key: str=None, what: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', location1: str=None, location2: str=None, location3: str=None, location4: str=None, location5: str=None, location6: str=None, location7: str=None, where: str=None, category: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides salary data for locations" + app_id: Application ID, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + app_key: Application key, supplied by Adzuna + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object. + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location5: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + category: The category tag, as returned by the "category" endpoint. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/geodata" + querystring = {'app_id': app_id, } + if app_key: + querystring['app_key'] = app_key + if what: + querystring['what'] = what + if location0: + querystring['location0'] = location0 + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location5: + querystring['location5'] = location5 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if category: + querystring['category'] = category + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def salary_estimate(app_id: str, app_key: str, title: str=None, description: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns an estimate of the salary of a job." + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + title: The title of the job advertisement. + description: The job description. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/gb/jobsworth" + querystring = {'app_id': app_id, 'app_key': app_key, } + if title: + querystring['title'] = title + if description: + querystring['description'] = description + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def api_version(app_id: str, app_key: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the current version of this API" + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/version" + querystring = {'app_id': app_id, 'app_key': app_key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def list_category(vertical: str, app_id: str, app_key: str, country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List available categories." + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/{vertical}/{country}/categories" + querystring = {'app_id': app_id, 'app_key': app_key, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_cars(app_id: str, app_key: str, country: str, page: int, location5: str=None, results_per_page: int=None, what: str=None, what_and: str=None, what_phrase: str=None, what_or: str=None, what_exclude: str=None, title_only: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', location1: str=None, location2: str=None, location3: str=None, location4: str=None, location6: str=None, location7: str=None, where: str=None, distance: int=None, max_days_old: int=None, category: str=None, sort_direction: str=None, sort_by: str=None, fuel_type: str=None, transmission: str=None, body_type: str=None, engine_min: int=None, engine_max: int=None, colour: str=None, mileage_min: int=None, mileage_max: int=None, year_min: int=None, year_max: int=None, seller_type: str=None, price_min: int=None, price_include_unknown: str=None, price_max: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search Adzuna cars." + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + page: Page number + location5: See location0 + results_per_page: The number of results to include on each page of search results. + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + what_and: The keywords to search for, all keywords must be found. + what_phrase: An entire phrase which must be found in the description or title. + what_or: Keywords to search for. Use space or comma characters to separate multiple keywords. + what_exclude: Keywords to exclude from the search. Use space or comma characters to separate multiple keywords. + title_only: Keywords to find, but only in the title. Use space or comma characters to separate multiple keywords. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object. + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + distance: The distance in kilometres from the centre of the place described by the 'where' parameter. + max_days_old: The age of the oldest advertisment in days that will be returned. + category: The category tag, as returned by the "category" endpoint. + sort_direction: The order of search results (ascending or descending). + sort_by: The ordering of the search results. + fuel_type: The type of fuel the vehicle requires. + transmission: The type of transmission the vehicle has. + body_type: The type of body a vehicle has. + engine_min: The minimum engine capacity in cubic centimetres. + engine_max: The maximum engine capacity in cubic centimetres. + colour: The colour of the car + mileage_min: The minimum mileage of vehicles to be considered. + mileage_max: The maximum mileage of vehicles to be considered. + year_min: The earliest year to be considered. + year_max: The most recent year to be considered. + seller_type: The type of seller. + price_min: The minimum price we wish to get results for. + price_include_unknown: When using price_min and/or price_max set to "1", to include cars with unknown price in results. + price_max: The maximum price we wish to get results for. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/cars/{country}/search/{page}" + querystring = {'app_id': app_id, 'app_key': app_key, } + if location5: + querystring['location5'] = location5 + if results_per_page: + querystring['results_per_page'] = results_per_page + if what: + querystring['what'] = what + if what_and: + querystring['what_and'] = what_and + if what_phrase: + querystring['what_phrase'] = what_phrase + if what_or: + querystring['what_or'] = what_or + if what_exclude: + querystring['what_exclude'] = what_exclude + if title_only: + querystring['title_only'] = title_only + if location0: + querystring['location0'] = location0 + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if distance: + querystring['distance'] = distance + if max_days_old: + querystring['max_days_old'] = max_days_old + if category: + querystring['category'] = category + if sort_direction: + querystring['sort_direction'] = sort_direction + if sort_by: + querystring['sort_by'] = sort_by + if fuel_type: + querystring['fuel_type'] = fuel_type + if transmission: + querystring['transmission'] = transmission + if body_type: + querystring['body_type'] = body_type + if engine_min: + querystring['engine_min'] = engine_min + if engine_max: + querystring['engine_max'] = engine_max + if colour: + querystring['colour'] = colour + if mileage_min: + querystring['mileage_min'] = mileage_min + if mileage_max: + querystring['mileage_max'] = mileage_max + if year_min: + querystring['year_min'] = year_min + if year_max: + querystring['year_max'] = year_max + if seller_type: + querystring['seller_type'] = seller_type + if price_min: + querystring['price_min'] = price_min + if price_include_unknown: + querystring['price_include_unknown'] = price_include_unknown + if price_max: + querystring['price_max'] = price_max + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_properties(app_id: str, app_key: str, country: str, page: int, results_per_page: int=None, what: str=None, what_and: str=None, what_phrase: str=None, what_or: str=None, what_exclude: str=None, title_only: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', location1: str=None, location2: str=None, location3: str=None, location4: str=None, location6: str=None, location7: str=None, where: str=None, distance: int=None, max_days_old: int=None, category: str=None, sort_direction: str=None, sort_by: str=None, beds: int=None, is_furnished: str=None, price_min: int=None, price_max: int=None, price_include_unknown: str=None, property_type: str=None, location5: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search Adzuna properties" + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + page: Page number + results_per_page: The number of results to include on each page of search results. + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + what_and: The keywords to search for, all keywords must be found. + what_phrase: An entire phrase which must be found in the description or title. + what_or: Keywords to search for. Use space or comma characters to separate multiple keywords. + what_exclude: Keywords to exclude from the search. Use space or comma characters to separate multiple keywords. + title_only: Keywords to find, but only in the title. Use space or comma characters to separate multiple keywords. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object. + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + distance: The distance in kilometres from the centre of the place described by the 'where' parameter. + max_days_old: The age of the oldest advertisment in days that will be returned. + category: The category tag, as returned by the "category" endpoint. + sort_direction: The order of search results (ascending or descending). + sort_by: The ordering of the search results. + beds: The number of beds to search for. For values greater than five, this is considered to be minimum value, rather than the exact value to find. + is_furnished: One of "0" or "1", to indicate no or yes. If omitted, both types of property are found. + price_min: The minimum price we wish to get results for (for rental properties price is monthly). + price_max: The maximum price we wish to get results for (for rental properties price is monthly). + price_include_unknown: When using price_min or price_max set to "1", to include properties with an unknown price in results. + property_type: The type of property of interest. + location5: See location0 + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/property/{country}/search/{page}" + querystring = {'app_id': app_id, 'app_key': app_key, } + if results_per_page: + querystring['results_per_page'] = results_per_page + if what: + querystring['what'] = what + if what_and: + querystring['what_and'] = what_and + if what_phrase: + querystring['what_phrase'] = what_phrase + if what_or: + querystring['what_or'] = what_or + if what_exclude: + querystring['what_exclude'] = what_exclude + if title_only: + querystring['title_only'] = title_only + if location0: + querystring['location0'] = location0 + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if distance: + querystring['distance'] = distance + if max_days_old: + querystring['max_days_old'] = max_days_old + if category: + querystring['category'] = category + if sort_direction: + querystring['sort_direction'] = sort_direction + if sort_by: + querystring['sort_by'] = sort_by + if beds: + querystring['beds'] = beds + if is_furnished: + querystring['is_furnished'] = is_furnished + if price_min: + querystring['price_min'] = price_min + if price_max: + querystring['price_max'] = price_max + if price_include_unknown: + querystring['price_include_unknown'] = price_include_unknown + if property_type: + querystring['property_type'] = property_type + if location5: + querystring['location5'] = location5 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def histogram_data(country: str, what: str=None, location1: str=None, location2: str=None, location3: str=None, location4: str=None, location5: str=None, location6: str=None, location7: str=None, where: str=None, category: str=None, app_id: str=None, app_key: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide histogram data of salary data" + country: ISO 8601 country code of the relevant country. + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location5: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + category: The category tag, as returned by the "category" endpoint. + app_id: Application ID, supplied by Adzuna. + app_key: Application key, supplied by Adzuna. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/histogram" + querystring = {} + if what: + querystring['what'] = what + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location5: + querystring['location5'] = location5 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if category: + querystring['category'] = category + if app_id: + querystring['app_id'] = app_id + if app_key: + querystring['app_key'] = app_key + if location0: + querystring['location0'] = location0 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_jobs(app_id: str, app_key: str, country: str, page: int, results_per_page: int=None, what: str=None, what_and: str=None, what_phrase: str=None, what_or: str=None, what_exclude: str=None, title_only: str=None, location1: str=None, location2: str=None, location3: str=None, location4: str=None, location5: str=None, location6: str=None, location7: str=None, where: str=None, distance: str=None, max_days_old: str=None, category: str=None, sort_direction: str=None, sort_by: str=None, salary_min: str=None, salary_max: str=None, salary_include_unknown: str=None, full_time: str=None, part_time: str=None, contract: str=None, permanent: str=None, company: str=None, location0: str='location0=UK&location1=South East England&location2=Surrey', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search the Adzuna jobs" + app_id: Application ID, supplied by Adzuna + app_key: Application key, supplied by Adzuna + country: ISO 8601 country code of the relevant country. + page: Page number + results_per_page: The number of results to include on each page of search results. + what: The keywords to search for. Use space or comma characters to separate multiple keywords. + what_and: The keywords to search for, all keywords must be found. + what_phrase: An entire phrase which must be found in the description or title. + what_or: Keywords to search for. Use space or comma characters to separate multiple keywords. + what_exclude: Keywords to exclude from the search. Use space or comma characters to separate multiple keywords. + title_only: Keywords to find, but only in the title. Use space or comma characters to separate multiple keywords. + location1: See location0 + location2: See location0 + location3: See location0 + location4: See location0 + location5: See location0 + location6: See location0 + location7: See location0 + where: The geographic centre of the search. Place names or postal codes may be used. + distance: The distance in kilometres from the centre of the place described by the 'where' parameter. Defaults to 10km. + max_days_old: The age of the oldest advertisment in days that will be returned. + category: The category tag, as returned by the "category" endpoint. + sort_direction: The order of search results (ascending or descending). + sort_by: The ordering of the search results. + salary_min: The minimum salary we wish to get results for. + salary_max: The maximum salary we wish to get results for. + salary_include_unknown: When using salary_min and/or salary_max set this to "1", to include jobs with unknown salaries in results. + full_time: If set to "1", only full time jobs will be returned. + part_time: If set to "1", only part time jobs will be returned. + contract: If set to "1", only contract jobs will be returned. + permanent: If set to "1", only permanent jobs will be returned. + company: The canonical company name. This may be returned in a Adzuna::API::Response::Company object when a job is returned. A full list of allowed terms in not available through the API. + location0: The locationN fields may be used to describe a location, in a similar form to that returned in a Adzuna::API::Response::Location object. + + """ + url = f"https://baskarm28-adzuna-v1.p.rapidapi.com/jobs/{country}/search/{page}" + querystring = {'app_id': app_id, 'app_key': app_key, } + if results_per_page: + querystring['results_per_page'] = results_per_page + if what: + querystring['what'] = what + if what_and: + querystring['what_and'] = what_and + if what_phrase: + querystring['what_phrase'] = what_phrase + if what_or: + querystring['what_or'] = what_or + if what_exclude: + querystring['what_exclude'] = what_exclude + if title_only: + querystring['title_only'] = title_only + if location1: + querystring['location1'] = location1 + if location2: + querystring['location2'] = location2 + if location3: + querystring['location3'] = location3 + if location4: + querystring['location4'] = location4 + if location5: + querystring['location5'] = location5 + if location6: + querystring['location6'] = location6 + if location7: + querystring['location7'] = location7 + if where: + querystring['where'] = where + if distance: + querystring['distance'] = distance + if max_days_old: + querystring['max_days_old'] = max_days_old + if category: + querystring['category'] = category + if sort_direction: + querystring['sort_direction'] = sort_direction + if sort_by: + querystring['sort_by'] = sort_by + if salary_min: + querystring['salary_min'] = salary_min + if salary_max: + querystring['salary_max'] = salary_max + if salary_include_unknown: + querystring['salary_include_unknown'] = salary_include_unknown + if full_time: + querystring['full_time'] = full_time + if part_time: + querystring['part_time'] = part_time + if contract: + querystring['contract'] = contract + if permanent: + querystring['permanent'] = permanent + if company: + querystring['company'] = company + if location0: + querystring['location0'] = location0 + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "baskarm28-adzuna-v1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/affordable_translate.json b/toolbench/toolenv/tools/Data/affordable_translate.json new file mode 100644 index 0000000000000000000000000000000000000000..fb1dfbc96a84534f9008c64003c932710f12c9f0 --- /dev/null +++ b/toolbench/toolenv/tools/Data/affordable_translate.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_f7dcd72e-0855-4dd5-8098-638c502b07d5", + "tool_description": "The cheapest and efficient translate API, supports detecting languages, pricing by requests, maximum 500 characters per request", + "home_url": "https://rapidapi.com/info.musicspace.club/api/affordable-translate/", + "name": "Affordable Translate", + "title": "Affordable Translate", + "pricing": "FREEMIUM", + "tool_name": "Affordable Translate", + "score": { + "avgServiceLevel": 98, + "avgLatency": 357, + "avgSuccessRate": 81, + "popularityScore": 9.1, + "__typename": "Score" + }, + "host": "affordable-translate.p.rapidapi.com", + "api_list": [ + { + "name": "Translate", + "url": "https://affordable-translate.p.rapidapi.com/", + "description": "Translate text and detect languages", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://affordable-translate.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"affordable-translate.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://affordable-translate.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"affordable-translate.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/africa_api.json b/toolbench/toolenv/tools/Data/africa_api.json new file mode 100644 index 0000000000000000000000000000000000000000..acb275ff89649be79bd3261f8869055fc785b034 --- /dev/null +++ b/toolbench/toolenv/tools/Data/africa_api.json @@ -0,0 +1,563 @@ +{ + "tool_name":"Africa-Api ", + "tool_description":"Africa-Api is a comprehensive project that provides a vast range of data about Africa, including countries, languages, tourism destinations, colonial history, and much more. This project offers a user-friendly interface that enables users to easily access and retrieve data about different African countries and their respective histories, languages, and cultures. The Africa-Api project is an invaluable resource for individuals or organizations looking to learn more about the African continent...", + "title":"Africa-Api ", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":969, + "avgSuccessRate":70, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/arllence/api/africa-api/", + "host":"africa-api.p.rapidapi.com", + "api_list":[ + { + "name":"tourism[Per Country]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/tourism", + "description":"Returns best tourism locations and categories you can explore in a country in Africa\nTakes parameter ", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/tourism\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"independence[All Countries]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/independence", + "description":"If you provide the name of a country as a parameter, the api will return information about its independence date and the country or countries that colonized it.\nTakes Parameter: with value: \nResponse example: \n{\n\"country\":\"Kenya\"\n\"colonizer\":\"United Kingdom\"\n\"independence_date\":\"December 12, 1963\"\n}", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/independence\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"languages [Per Country]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/languages", + "description":"Returns a json of all languages spoken in a specific country in Africa\nTakes parameter \nResponse example:\n{2 items\n\"other_languages\":[12 items\n0:\n\"English\"\n1:\n\"Kikuyu\"\n2:\n\"Luhya\"\n3:\n\"Luo\"\n4:\n\"Kalenjin\"\n5:\n\"Kamba\"\n6:\n\"Meru\"\n7:\n\"Embu\"\n8:\n\"Maasai\"\n9:\n\"Turkana\"\n10:\n\"Samburu\"\n11:\n\"Somali\"\n]\n\"national_language\":\"Swahili\"\n}", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/languages\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"sizes[All Countries]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/sizes", + "description":"Gets the sizes of all countries in Africa\nTakes parameter: with value \nResponse example:\n[54 items\n0:{3 items\n\"size\":2381741\n\"unit\":\"km2\"\n\"country\":\"Algeria\"\n}\n]", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"all" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/sizes\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"resources[Per Country]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/resources", + "description":"Gives you a list of the most important resources that an African country relies on to keep their economy running.\nTakes parameter ", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/resources\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"countries[AllContries]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/countries", + "description":"Returns a json of all countries in Africa. Details include: \"name\":\"Algeria\"\n\"latitude\", \"longitude\", \"phone_code\", \"abbreviation\", \"capital_city\"", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"all" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/countries\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"tourism[AllCountries]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/tourism", + "description":"Returns best tourism locations and categories you can explore in each country in Africa", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"all" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/tourism\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"languages[AllCountries]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/languages", + "description":"Returns a json of all languages spoken in each country in Africa\nTakes parameter with value \nResponse example:\n{54 items\n\"Chad\":{2 items\n\"other_languages\":[11 items\n0:\n\"Sara\"\n1:\n\"Maba\"\n2:\n\"Kanembu\"\n3:\n\"Kotoko\"\n4:\n\"Bagirmi\"\n5:\n\"Boulala\"\n6:\n\"Gorane\"\n7:\n\"Marba\"\n8:\n\"Masalit\"\n9:\n\"Tama\"\n10:\n\"Teda\"\n]\n\"national_language\":[2 items\n0:\n\"French\"\n1:\n\"Arabic\"\n]\n}\n]", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"all" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/languages\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"sizes[PerCountry]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/sizes", + "description":"Gets the size of a specific country.\nTakes parameter: \nResponse example:\n{\n\"size\":580367\n\"unit\":\"km2\"\n\"country\":\"Kenya\"\n}", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/sizes\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"province/state/county[PerCountry]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/counties", + "description":"Returns json for province/state/county in a specific country in Africa", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/counties\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"independence[Per Country]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/independence", + "description":"If you provide the name of a country as a parameter, the api will return information about its independence date and the country or countries that colonized it.\nTakes Parameter: ", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/independence\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"resources[AllContries]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/resources", + "description":"Gives you a list of the most important resources that each African country relies on to keep their economy running.", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"all" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/resources\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + }, + { + "name":"country [Specific Country]", + "url":"https://africa-api.p.rapidapi.com/africa/api/v1/africa/countries", + "description":"Returns a json of specific country in Africa eg Kenya. Details include: \"name\":\"Algeria\"\n\"latitude\", \"longitude\", \"phone_code\", \"abbreviation\", \"capital_city\"", + "method":"GET", + "required_parameters":[ + { + "name":"country_name", + "type":"STRING", + "description":"", + "default":"kenya" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://africa-api.p.rapidapi.com/africa/api/v1/africa/countries\"\nquerystring = {\"country_name\": country_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"africa-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{}, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "get":{ + "type":"string" + }, + "parameters":{ + "type":"array" + }, + "errors":{ + "type":"array" + }, + "results":{ + "type":"integer" + }, + "response":{ + "type":"array", + "items":{ + "type":"object" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/africa_api/api.py b/toolbench/toolenv/tools/Data/africa_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..29b43cfde6ee70207585fb8a0c8129ae1ed29966 --- /dev/null +++ b/toolbench/toolenv/tools/Data/africa_api/api.py @@ -0,0 +1,376 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def tourism_per_country(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns best tourism locations and categories you can explore in a country in Africa + Takes parameter " + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/tourism" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def independence_all_countries(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "If you provide the name of a country as a parameter, the api will return information about its independence date and the country or countries that colonized it. + Takes Parameter: with value: + Response example: + { + "country":"Kenya" + "colonizer":"United Kingdom" + "independence_date":"December 12, 1963" + }" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/independence" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def languages_per_country(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a json of all languages spoken in a specific country in Africa + Takes parameter + Response example: + {2 items + "other_languages":[12 items + 0: + "English" + 1: + "Kikuyu" + 2: + "Luhya" + 3: + "Luo" + 4: + "Kalenjin" + 5: + "Kamba" + 6: + "Meru" + 7: + "Embu" + 8: + "Maasai" + 9: + "Turkana" + 10: + "Samburu" + 11: + "Somali" + ] + "national_language":"Swahili" + }" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/languages" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sizes_all_countries(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the sizes of all countries in Africa + Takes parameter: with value + Response example: + [54 items + 0:{3 items + "size":2381741 + "unit":"km2" + "country":"Algeria" + } + ]" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/sizes" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def resources_per_country(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gives you a list of the most important resources that an African country relies on to keep their economy running. + Takes parameter " + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/resources" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def countries_allcontries(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a json of all countries in Africa. Details include: "name":"Algeria" + "latitude", "longitude", "phone_code", "abbreviation", "capital_city"" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/countries" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def tourism_allcountries(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns best tourism locations and categories you can explore in each country in Africa" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/tourism" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def languages_allcountries(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a json of all languages spoken in each country in Africa + Takes parameter with value + Response example: + {54 items + "Chad":{2 items + "other_languages":[11 items + 0: + "Sara" + 1: + "Maba" + 2: + "Kanembu" + 3: + "Kotoko" + 4: + "Bagirmi" + 5: + "Boulala" + 6: + "Gorane" + 7: + "Marba" + 8: + "Masalit" + 9: + "Tama" + 10: + "Teda" + ] + "national_language":[2 items + 0: + "French" + 1: + "Arabic" + ] + } + ]" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/languages" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def sizes_percountry(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gets the size of a specific country. + Takes parameter: + Response example: + { + "size":580367 + "unit":"km2" + "country":"Kenya" + }" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/sizes" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def province_state_county_percountry(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns json for province/state/county in a specific country in Africa" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/counties" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def independence_per_country(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "If you provide the name of a country as a parameter, the api will return information about its independence date and the country or countries that colonized it. + Takes Parameter: " + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/independence" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def resources_allcontries(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Gives you a list of the most important resources that each African country relies on to keep their economy running." + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/resources" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def country_specific_country(country_name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns a json of specific country in Africa eg Kenya. Details include: "name":"Algeria" + "latitude", "longitude", "phone_code", "abbreviation", "capital_city"" + + """ + url = f"https://africa-api.p.rapidapi.com/africa/api/v1/africa/countries" + querystring = {'country_name': country_name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "africa-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/age_calculator.json b/toolbench/toolenv/tools/Data/age_calculator.json new file mode 100644 index 0000000000000000000000000000000000000000..ad63759a48e515599e2a862aa3334cca4c18407d --- /dev/null +++ b/toolbench/toolenv/tools/Data/age_calculator.json @@ -0,0 +1,71 @@ +{ + "product_id": "api_a1255938-429b-4011-98c7-ab153c4aa8ac", + "tool_description": "Returns Age calculation based on requested date. ", + "home_url": "https://rapidapi.com/jwc-tech-jwc-tech-default/api/age-calculator/", + "name": "Age Calculator", + "title": "Age Calculator", + "pricing": "FREEMIUM", + "tool_name": "Age Calculator", + "score": { + "avgServiceLevel": 100, + "avgLatency": 432, + "avgSuccessRate": 94, + "popularityScore": 7.3, + "__typename": "Score" + }, + "host": "age-calculator.p.rapidapi.com", + "api_list": [ + { + "name": "Age Calculator", + "url": "https://age-calculator.p.rapidapi.com/age", + "description": "Calculates age based on the requested date. Accepts different formats and Time Zones.", + "method": "GET", + "required_parameters": [ + { + "name": "date", + "type": "STRING", + "description": "This endpoint will accept to following parameters formats:\nYYYYMMDD\nYYY-MM-DD\nMMDDYYYY\nMM-DD-YYYY", + "default": "19870630" + } + ], + "optional_parameters": [ + { + "name": "timezone", + "type": "STRING", + "description": "Optional: Default time zone is US/Eastern. To get the correct age based on your local time you can select your timezone. Use the /timezone service to see all available time zones. \nExample: US/Eastern, US/Pacific, Europe/London", + "default": "US/Eastern" + } + ], + "code": "import requests\n\nurl = \"https://age-calculator.p.rapidapi.com/age\"\nquerystring = {\"timezone\": \"US/Eastern\", \"date\": \"19870630\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"age-calculator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://age-calculator.p.rapidapi.com/age\"\nquerystring = {\"timezone\": \"US/Eastern\", \"date\": \"19870630\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"age-calculator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "age": 35, + "year": 1987, + "month": 6, + "day": 30, + "calendarMonth": "JUNE", + "shortMonth": "Jun", + "timeZone": "US/Eastern", + "requestDate": "19870630" + }, + "statuscode": 200, + "schema": {} + }, + { + "name": "Usable Time Zones", + "url": "https://age-calculator.p.rapidapi.com/timezone", + "description": "Call this endpoint to view the current endpoint. Find the appreciate time zone for your location. \nExample: US/Eastern, US/Pacific, Europe/London ...", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://age-calculator.p.rapidapi.com/timezone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"age-calculator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://age-calculator.p.rapidapi.com/timezone\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"age-calculator.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "timezones": "[Asia/Aden, America/Cuiaba, Etc/GMT+9, Etc/GMT+8, Africa/Nairobi, America/Marigot, Asia/Aqtau, Pacific/Kwajalein, America/El_Salvador, Asia/Pontianak, Africa/Cairo, Pacific/Pago_Pago, Africa/Mbabane, Asia/Kuching, Pacific/Honolulu, Pacific/Rarotonga, America/Guatemala, Australia/Hobart, Europe/London, America/Belize, America/Panama, Asia/Chungking, America/Managua, America/Indiana/Petersburg, Asia/Yerevan, Europe/Brussels, GMT, Europe/Warsaw, America/Chicago, Asia/Kashgar, Chile/Continental, Pacific/Yap, CET, Etc/GMT-1, Etc/GMT-0, Europe/Jersey, America/Tegucigalpa, Etc/GMT-5, Europe/Istanbul, America/Eirunepe, Etc/GMT-4, America/Miquelon, Etc/GMT-3, Europe/Luxembourg, Etc/GMT-2, Etc/GMT-9, America/Argentina/Catamarca, Etc/GMT-8, Etc/GMT-7, Etc/GMT-6, Europe/Zaporozhye, Canada/Yukon, Canada/Atlantic, Atlantic/St_Helena, Australia/Tasmania, Libya, Europe/Guernsey, America/Grand_Turk, Asia/Samarkand, America/Argentina/Cordoba, Asia/Phnom_Penh, Africa/Kigali, Asia/Almaty, US/Alaska, Asia/Dubai, Europe/Isle_of_Man, America/Araguaina, Cuba, Asia/Novosibirsk, America/Argentina/Salta, Etc/GMT+3, Africa/Tunis, Etc/GMT+2, Etc/GMT+1, Pacific/Fakaofo, Africa/Tripoli, Etc/GMT+0, Israel, Africa/Banjul, Etc/GMT+7, Indian/Comoro, Etc/GMT+6, Etc/GMT+5, Etc/GMT+4, Pacific/Port_Moresby, US/Arizona, Antarctica/Syowa, Indian/Reunion, Pacific/Palau, Europe/Kaliningrad, America/Montevideo, Africa/Windhoek, Asia/Karachi, Africa/Mogadishu, Australia/Perth, Brazil/East, Etc/GMT, Asia/Chita, Pacific/Easter, Antarctica/Davis, Antarctica/McMurdo, Asia/Macao, America/Manaus, Africa/Freetown, Europe/Bucharest, Asia/Tomsk, America/Argentina/Mendoza, Asia/Macau, Europe/Malta, Mexico/BajaSur, Pacific/Tahiti, Africa/Asmera, Europe/Busingen, America/Argentina/Rio_Gallegos, Africa/Malabo, Europe/Skopje, America/Catamarca, America/Godthab, Europe/Sarajevo, Australia/ACT, GB-Eire, Africa/Lagos, America/Cordoba, Europe/Rome, Asia/Dacca, Indian/Mauritius, Pacific/Samoa, America/Regina, America/Fort_Wayne, America/Dawson_Creek, Africa/Algiers, Europe/Mariehamn, America/St_Johns, America/St_Thomas, Europe/Zurich, America/Anguilla, Asia/Dili, America/Denver, Africa/Bamako, Europe/Saratov, GB, Mexico/General, Pacific/Wallis, Europe/Gibraltar, Africa/Conakry, Africa/Lubumbashi, Asia/Istanbul, America/Havana, NZ-CHAT, Asia/Choibalsan, America/Porto_Acre, Asia/Omsk, Europe/Vaduz, US/Michigan, Asia/Dhaka, America/Barbados, Europe/Tiraspol, Atlantic/Cape_Verde, Asia/Yekaterinburg, America/Louisville, Pacific/Johnston, Pacific/Chatham, Europe/Ljubljana, America/Sao_Paulo, Asia/Jayapura, America/Curacao, Asia/Dushanbe, America/Guyana, America/Guayaquil, America/Martinique, Portugal, Europe/Berlin, Europe/Moscow, Europe/Chisinau, America/Puerto_Rico, America/Rankin_Inlet, Pacific/Ponape, Europe/Stockholm, Europe/Budapest, America/Argentina/Jujuy, Australia/Eucla, Asia/Shanghai, Universal, Europe/Zagreb, America/Port_of_Spain, Europe/Helsinki, Asia/Beirut, Asia/Tel_Aviv, Pacific/Bougainville, US/Central, Africa/Sao_Tome, Indian/Chagos, America/Cayenne, Asia/Yakutsk, Pacific/Galapagos, Australia/North, Europe/Paris, Africa/Ndjamena, Pacific/Fiji, America/Rainy_River, Indian/Maldives, Australia/Yancowinna, SystemV/AST4, Asia/Oral, America/Yellowknife, Pacific/Enderbury, America/Juneau, Australia/Victoria, America/Indiana/Vevay, Asia/Tashkent, Asia/Jakarta, Africa/Ceuta, Asia/Barnaul, America/Recife, America/Buenos_Aires, America/Noronha, America/Swift_Current, Australia/Adelaide, America/Metlakatla, Africa/Djibouti, America/Paramaribo, Asia/Qostanay, Europe/Simferopol, Europe/Sofia, Africa/Nouakchott, Europe/Prague, America/Indiana/Vincennes, Antarctica/Mawson, America/Kralendijk, Antarctica/Troll, Europe/Samara, Indian/Christmas, America/Antigua, Pacific/Gambier, America/Indianapolis, America/Inuvik, America/Iqaluit, Pacific/Funafuti, UTC, Antarctica/Macquarie, Canada/Pacific, America/Moncton, Africa/Gaborone, Pacific/Chuuk, Asia/Pyongyang, America/St_Vincent, Asia/Gaza, Etc/Universal, PST8PDT, Atlantic/Faeroe, Asia/Qyzylorda, Canada/Newfoundland, America/Kentucky/Louisville, America/Yakutat, Asia/Ho_Chi_Minh, Antarctica/Casey, Europe/Copenhagen, Africa/Asmara, Atlantic/Azores, Europe/Vienna, ROK, Pacific/Pitcairn, America/Mazatlan, Australia/Queensland, Pacific/Nauru, Europe/Tirane, Asia/Kolkata, SystemV/MST7, Australia/Canberra, MET, Australia/Broken_Hill, Europe/Riga, America/Dominica, Africa/Abidjan, America/Mendoza, America/Santarem, Kwajalein, America/Asuncion, Asia/Ulan_Bator, NZ, America/Boise, Australia/Currie, EST5EDT, Pacific/Guam, Pacific/Wake, Atlantic/Bermuda, America/Costa_Rica, America/Dawson, Asia/Chongqing, Eire, Europe/Amsterdam, America/Indiana/Knox, America/North_Dakota/Beulah, Africa/Accra, Atlantic/Faroe, Mexico/BajaNorte, America/Maceio, Etc/UCT, Pacific/Apia, GMT0, America/Atka, Pacific/Niue, Australia/Lord_Howe, Europe/Dublin, Pacific/Truk, MST7MDT, America/Monterrey, America/Nassau, America/Jamaica, Asia/Bishkek, America/Atikokan, Atlantic/Stanley, Australia/NSW, US/Hawaii, SystemV/CST6, Indian/Mahe, Asia/Aqtobe, America/Sitka, Asia/Vladivostok, Africa/Libreville, Africa/Maputo, Zulu, America/Kentucky/Monticello, Africa/El_Aaiun, Africa/Ouagadougou, America/Coral_Harbour, Pacific/Marquesas, Brazil/West, America/Aruba, America/North_Dakota/Center, America/Cayman, Asia/Ulaanbaatar, Asia/Baghdad, Europe/San_Marino, America/Indiana/Tell_City, America/Tijuana, Pacific/Saipan, SystemV/YST9, Africa/Douala, America/Chihuahua, America/Ojinaga, Asia/Hovd, America/Anchorage, Chile/EasterIsland, America/Halifax, Antarctica/Rothera, America/Indiana/Indianapolis, US/Mountain, Asia/Damascus, America/Argentina/San_Luis, America/Santiago, Asia/Baku, America/Argentina/Ushuaia, Atlantic/Reykjavik, Africa/Brazzaville, Africa/Porto-Novo, America/La_Paz, Antarctica/DumontDUrville, Asia/Taipei, Antarctica/South_Pole, Asia/Manila, Asia/Bangkok, Africa/Dar_es_Salaam, Poland, Atlantic/Madeira, Antarctica/Palmer, America/Thunder_Bay, Africa/Addis_Ababa, Asia/Yangon, Europe/Uzhgorod, Brazil/DeNoronha, Asia/Ashkhabad, Etc/Zulu, America/Indiana/Marengo, America/Creston, America/Punta_Arenas, America/Mexico_City, Antarctica/Vostok, Asia/Jerusalem, Europe/Andorra, US/Samoa, PRC, Asia/Vientiane, Pacific/Kiritimati, America/Matamoros, America/Blanc-Sablon, Asia/Riyadh, Iceland, Pacific/Pohnpei, Asia/Ujung_Pandang, Atlantic/South_Georgia, Europe/Lisbon, Asia/Harbin, Europe/Oslo, Asia/Novokuznetsk, CST6CDT, Atlantic/Canary, America/Knox_IN, Asia/Kuwait, SystemV/HST10, Pacific/Efate, Africa/Lome, America/Bogota, America/Menominee, America/Adak, Pacific/Norfolk, Europe/Kirov, America/Resolute, Pacific/Kanton, Pacific/Tarawa, Africa/Kampala, Asia/Krasnoyarsk, Greenwich, SystemV/EST5, America/Edmonton, Europe/Podgorica, Australia/South, Canada/Central, Africa/Bujumbura, America/Santo_Domingo, US/Eastern, Europe/Minsk, Pacific/Auckland, Africa/Casablanca, America/Glace_Bay, Canada/Eastern, Asia/Qatar, Europe/Kiev, Singapore, Asia/Magadan, SystemV/PST8, America/Port-au-Prince, Europe/Belfast, America/St_Barthelemy, Asia/Ashgabat, Africa/Luanda, America/Nipigon, Atlantic/Jan_Mayen, Brazil/Acre, Asia/Muscat, Asia/Bahrain, Europe/Vilnius, America/Fortaleza, Etc/GMT0, US/East-Indiana, America/Hermosillo, America/Cancun, Africa/Maseru, Pacific/Kosrae, Africa/Kinshasa, Asia/Kathmandu, Asia/Seoul, Australia/Sydney, America/Lima, Australia/LHI, America/St_Lucia, Europe/Madrid, America/Bahia_Banderas, America/Montserrat, Asia/Brunei, America/Santa_Isabel, Canada/Mountain, America/Cambridge_Bay, Asia/Colombo, Australia/West, Indian/Antananarivo, Australia/Brisbane, Indian/Mayotte, US/Indiana-Starke, Asia/Urumqi, US/Aleutian, Europe/Volgograd, America/Lower_Princes, America/Vancouver, Africa/Blantyre, America/Rio_Branco, America/Danmarkshavn, America/Detroit, America/Thule, Africa/Lusaka, Asia/Hong_Kong, Iran, America/Argentina/La_Rioja, Africa/Dakar, SystemV/CST6CDT, America/Tortola, America/Porto_Velho, Asia/Sakhalin, Etc/GMT+10, America/Scoresbysund, Asia/Kamchatka, Asia/Thimbu, Africa/Harare, Etc/GMT+12, Etc/GMT+11, Navajo, America/Nome, Europe/Tallinn, Turkey, Africa/Khartoum, Africa/Johannesburg, Africa/Bangui, Europe/Belgrade, Jamaica, Africa/Bissau, Asia/Tehran, WET, Europe/Astrakhan, Africa/Juba, America/Campo_Grande, America/Belem, Etc/Greenwich, Asia/Saigon, America/Ensenada, Pacific/Midway, America/Jujuy, Africa/Timbuktu, America/Bahia, America/Goose_Bay, America/Virgin, America/Pangnirtung, Asia/Katmandu, America/Phoenix, Africa/Niamey, America/Whitehorse, Pacific/Noumea, Asia/Tbilisi, America/Montreal, Asia/Makassar, America/Argentina/San_Juan, Hongkong, UCT, Asia/Nicosia, America/Indiana/Winamac, SystemV/MST7MDT, America/Argentina/ComodRivadavia, America/Boa_Vista, America/Grenada, Asia/Atyrau, Australia/Darwin, Asia/Khandyga, Asia/Kuala_Lumpur, Asia/Famagusta, Asia/Thimphu, Asia/Rangoon, Europe/Bratislava, Asia/Calcutta, America/Argentina/Tucuman, Asia/Kabul, Indian/Cocos, Japan, Pacific/Tongatapu, America/New_York, Etc/GMT-12, Etc/GMT-11, America/Nuuk, Etc/GMT-10, SystemV/YST9YDT, Europe/Ulyanovsk, Etc/GMT-14, Etc/GMT-13, W-SU, America/Merida, EET, America/Rosario, Canada/Saskatchewan, America/St_Kitts, Arctic/Longyearbyen, America/Fort_Nelson, America/Caracas, America/Guadeloupe, Asia/Hebron, Indian/Kerguelen, SystemV/PST8PDT, Africa/Monrovia, Asia/Ust-Nera, Egypt, Asia/Srednekolymsk, America/North_Dakota/New_Salem, Asia/Anadyr, Australia/Melbourne, Asia/Irkutsk, America/Shiprock, America/Winnipeg, Europe/Vatican, Asia/Amman, Etc/UTC, SystemV/AST4ADT, Asia/Tokyo, America/Toronto, Asia/Singapore, Australia/Lindeman, America/Los_Angeles, SystemV/EST5EDT, Pacific/Majuro, America/Argentina/Buenos_Aires, Europe/Nicosia, Pacific/Guadalcanal, Europe/Athens, US/Pacific, Europe/Monaco]" + }, + "statuscode": 200, + "schema": {} + } + ], + "standardized_name": "age_calculator" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/age_calculator/api.py b/toolbench/toolenv/tools/Data/age_calculator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..17f130a5f02db8f5332580448aa68847d02cbd56 --- /dev/null +++ b/toolbench/toolenv/tools/Data/age_calculator/api.py @@ -0,0 +1,60 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def age_calculator(date: str, timezone: str='US/Eastern', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Calculates age based on the requested date. Accepts different formats and Time Zones." + date: This endpoint will accept to following parameters formats: +YYYYMMDD +YYY-MM-DD +MMDDYYYY +MM-DD-YYYY + timezone: Optional: Default time zone is US/Eastern. To get the correct age based on your local time you can select your timezone. Use the /timezone service to see all available time zones. +Example: US/Eastern, US/Pacific, Europe/London + + """ + url = f"https://age-calculator.p.rapidapi.com/age" + querystring = {'date': date, } + if timezone: + querystring['timezone'] = timezone + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "age-calculator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def usable_time_zones(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Call this endpoint to view the current endpoint. Find the appreciate time zone for your location. + Example: US/Eastern, US/Pacific, Europe/London ..." + + """ + url = f"https://age-calculator.p.rapidapi.com/timezone" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "age-calculator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/ahrefs_dr_rank_checker.json b/toolbench/toolenv/tools/Data/ahrefs_dr_rank_checker.json new file mode 100644 index 0000000000000000000000000000000000000000..27774efd8319dd23c51810e0f7c8e3570c92eda1 --- /dev/null +++ b/toolbench/toolenv/tools/Data/ahrefs_dr_rank_checker.json @@ -0,0 +1,50 @@ +{ + "product_id": "api_9728d597-49ba-4c87-a25d-cab57bbbdcf4", + "tool_description": "(*Fastest*) Check domain rating and Ahrefs rank information for any domain/URL.", + "home_url": "https://rapidapi.com/ayushsomanime/api/ahrefs-dr-rank-checker/", + "name": "Ahrefs DR & Rank Checker", + "title": "Ahrefs DR & Rank Checker", + "pricing": "FREEMIUM", + "tool_name": "Ahrefs DR & Rank Checker", + "score": { + "avgServiceLevel": 99, + "avgLatency": 1654, + "avgSuccessRate": 99, + "popularityScore": 9.8, + "__typename": "Score" + }, + "host": "ahrefs-dr-rank-checker.p.rapidapi.com", + "api_list": [ + { + "name": "Check DR and Rank", + "url": "https://ahrefs-dr-rank-checker.p.rapidapi.com/check", + "description": "Check ahrefs DR and rank of a domain", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://ahrefs-dr-rank-checker.p.rapidapi.com/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ahrefs-dr-rank-checker.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://ahrefs-dr-rank-checker.p.rapidapi.com/check\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ahrefs-dr-rank-checker.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "data": { + "type": "object", + "properties": { + "domainRating": { + "type": "integer" + }, + "ahrefsRank": { + "type": "integer" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/ai_detection.json b/toolbench/toolenv/tools/Data/ai_detection.json new file mode 100644 index 0000000000000000000000000000000000000000..222b705852ba3f7690f850197ca202e78c4bfdcb --- /dev/null +++ b/toolbench/toolenv/tools/Data/ai_detection.json @@ -0,0 +1,37 @@ +{ + "tool_name":"AI detection", + "tool_description":"Quickly determine the authenticity of your data with just a single API call. With just a simple API call, you can quickly and easily determine if the text you're analyzing was generated by a machine or a human. This powerful tool is perfect for businesses, researchers, and developers who need to ensure the authenticity of their text data. Whether you're working with customer reviews, social media posts, or any other type of text, the AI Content Detection API has you covered. Try it today and ...", + "title":"AI detection", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":99, + "avgLatency":4003, + "avgSuccessRate":99, + "popularityScore":8.9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/psimavel/api/ai-detection/", + "host":"ai-detection.p.rapidapi.com", + "api_list":[ + { + "name":"Check text", + "url":"https://ai-detection.p.rapidapi.com/check/{term}", + "description":"This endpoint allows you to easily submit text for analysis and determine if it was generated by a machine or a human. Just please **do not use any special characters** - it wont work :) . \nNote: **The results start to get reliable after around 50 tokens.**", + "method":"GET", + "required_parameters":[ + { + "name":"term", + "type":"string", + "description":"", + "default":"Text you think is generated by AI" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://ai-detection.p.rapidapi.com/check/{term}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-detection.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/ai_detection/api.py b/toolbench/toolenv/tools/Data/ai_detection/api.py new file mode 100644 index 0000000000000000000000000000000000000000..edd0f9cdca58d4c1aac041d18c07b17cf570a787 --- /dev/null +++ b/toolbench/toolenv/tools/Data/ai_detection/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check_text(term: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint allows you to easily submit text for analysis and determine if it was generated by a machine or a human. Just please **do not use any special characters** - it wont work :) . + Note: **The results start to get reliable after around 50 tokens.**" + + """ + url = f"https://ai-detection.p.rapidapi.com/check/{term}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ai-detection.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/ai_random_user_generator.json b/toolbench/toolenv/tools/Data/ai_random_user_generator.json new file mode 100644 index 0000000000000000000000000000000000000000..a76c7a52aee31b65ffaa97e4ffe87b6b1a2132ad --- /dev/null +++ b/toolbench/toolenv/tools/Data/ai_random_user_generator.json @@ -0,0 +1,49 @@ +{ + "tool_name":"AI Random User Generator", + "tool_description":"AI-based freemium API for generating random user data with AI. Like Lorem Ipsum, but for people.", + "title":"AI Random User Generator", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":58, + "avgLatency":75903, + "avgSuccessRate":58, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/berkbirkan/api/ai-random-user-generator/", + "host":"ai-random-user-generator.p.rapidapi.com", + "api_list":[ + { + "name":"Get Random User", + "url":"https://ai-random-user-generator.p.rapidapi.com/random-user", + "description":"Get random user", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"results", + "type":"STRING", + "description":"", + "default":"7" + }, + { + "name":"nation", + "type":"STRING", + "description":"", + "default":"en_US" + }, + { + "name":"gender", + "type":"STRING", + "description":"", + "default":"female" + } + ], + "code":"import requests\n\nurl = \"https://ai-random-user-generator.p.rapidapi.com/random-user\"\nquerystring = {\"results\": results, \"nation\": nation, \"gender\": gender}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ai-random-user-generator.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/ai_random_user_generator/api.py b/toolbench/toolenv/tools/Data/ai_random_user_generator/api.py new file mode 100644 index 0000000000000000000000000000000000000000..88c436549e2a1823d8705fafb8edc46451f74740 --- /dev/null +++ b/toolbench/toolenv/tools/Data/ai_random_user_generator/api.py @@ -0,0 +1,35 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_random_user(results: str='7', nation: str='en_US', gender: str='female', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get random user" + + """ + url = f"https://ai-random-user-generator.p.rapidapi.com/random-user" + querystring = {} + if results: + querystring['results'] = results + if nation: + querystring['nation'] = nation + if gender: + querystring['gender'] = gender + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "ai-random-user-generator.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/air_alarm_ukraine/api.py b/toolbench/toolenv/tools/Data/air_alarm_ukraine/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ce92d05be7a56f207b4fc6706776bc91d701c499 --- /dev/null +++ b/toolbench/toolenv/tools/Data/air_alarm_ukraine/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_regions(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get regions" + + """ + url = f"https://air-alarm-ukraine.p.rapidapi.com/statuses.json" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "air-alarm-ukraine.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/aircraftscatter.json b/toolbench/toolenv/tools/Data/aircraftscatter.json new file mode 100644 index 0000000000000000000000000000000000000000..04685ac9827646a2fd0d39a9a3b09d749018a245 --- /dev/null +++ b/toolbench/toolenv/tools/Data/aircraftscatter.json @@ -0,0 +1,43 @@ +{ + "tool_name":"aircraftscatter", + "tool_description":"Aircraft Scatter API by ADSBexchange.com", + "title":"aircraftscatter", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":288, + "avgSuccessRate":100, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/adsbx/api/aircraftscatter/", + "host":"aircraftscatter.p.rapidapi.com", + "api_list":[ + { + "name":"Aircraft Scatter Data", + "url":"https://aircraftscatter.p.rapidapi.com/lat/{lat}/lon/{lon}/", + "description":"Returns all aircraft above 10,000 feet within 1000 kilometres from specified latitude and longitude.", + "method":"GET", + "required_parameters":[ + { + "name":"lat", + "type":"NUMBER", + "description":"", + "default":"51.533" + }, + { + "name":"lon", + "type":"NUMBER", + "description":"", + "default":"-0.0926" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://aircraftscatter.p.rapidapi.com/lat/{lat}/lon/{lon}/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"aircraftscatter.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/aircraftscatter/api.py b/toolbench/toolenv/tools/Data/aircraftscatter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f26dfc9204fd1f2a11c5d93f32a9d85f9aaedbe3 --- /dev/null +++ b/toolbench/toolenv/tools/Data/aircraftscatter/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def aircraft_scatter_data(lat: int, lon: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns all aircraft above 10,000 feet within 1000 kilometres from specified latitude and longitude." + + """ + url = f"https://aircraftscatter.p.rapidapi.com/lat/{lat}/lon/{lon}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "aircraftscatter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/airdna.json b/toolbench/toolenv/tools/Data/airdna.json new file mode 100644 index 0000000000000000000000000000000000000000..f294ad932ff91e9a8bae8f4cae4d33e9c2093dc1 --- /dev/null +++ b/toolbench/toolenv/tools/Data/airdna.json @@ -0,0 +1,748 @@ +{ + "tool_name":"Airdna", + "tool_description":"API for Short-Term Rental Data Analytics | Vrbo & Airbnb Data | Rentalizer", + "title":"Airdna", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1492, + "avgSuccessRate":100, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/s.mahmoud97/api/airdna1/", + "host":"airdna1.p.rapidapi.com", + "api_list":[ + { + "name":"Rentalizer", + "url":"https://airdna1.p.rapidapi.com/rentalizer", + "description":"Rental Property Calculator by address", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"458 19th St, Santa Monica, CA 90402" + } + ], + "optional_parameters":[ + { + "name":"bathrooms", + "type":"NUMBER", + "description":"", + "default":"2" + }, + { + "name":"accommodates", + "type":"STRING", + "description":"", + "default":"2" + }, + { + "name":"bedrooms", + "type":"NUMBER", + "description":"", + "default":"2" + }, + { + "name":"currency", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/rentalizer\"\nquerystring = {\"bathrooms\": bathrooms, \"accommodates\": accommodates, \"bedrooms\": bedrooms, \"address\": address}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "comps":[ + { + "accommodates":3, + "airbnb_property_id":"41779556", + "bathrooms":2.5, + "bedrooms":2, + "cover_img":"https://a0.muscache.com/im/pictures/509517f6-f609-441f-be48-f9bb7285ef95.jpg?aki_policy=x_large", + "distance_meters":908, + "listing_url":"https://www.airbnb.com/rooms/41779556", + "location":{ + "lat":34.03395, + "lng":-118.48675 + }, + "platforms":{ + "airbnb_property_id":"41779556", + "vrbo_property_id":null + }, + "property_type":"Condo", + "rating":null, + "reviews":0, + "room_type":"Entire home/apt", + "stats":{ + "adr":{ + "ltm":530 + }, + "days_available":{ + "ltm":238 + }, + "occupancy":{ + "ltm":0.25 + }, + "revenue":{ + "ltm":31346 + }, + "revenue_potential":{ + "ltm":46266 + } + }, + "title":"Sparkling Gem 1 block off Montana Ave" + }, + { + "accommodates":3, + "airbnb_property_id":"33666829", + "bathrooms":1, + "bedrooms":2, + "cover_img":"https://a0.muscache.com/im/pictures/512723f0-302f-4a3e-aa02-9a29991a1632.jpg?aki_policy=x_large", + "distance_meters":737, + "listing_url":"https://www.airbnb.com/rooms/33666829", + "location":{ + "lat":34.03444, + "lng":-118.48866 + }, + "platforms":{ + "airbnb_property_id":"33666829", + "vrbo_property_id":null + }, + "property_type":"Rental unit", + "rating":10, + "reviews":11, + "room_type":"Entire home/apt", + "stats":{ + "adr":{ + "ltm":196 + }, + "days_available":{ + "ltm":156 + }, + "occupancy":{ + "ltm":0.57 + }, + "revenue":{ + "ltm":17503 + }, + "revenue_potential":{ + "ltm":39569 + } + }, + "title":"Charming 2Bed/1Bath Townhouse in Santa Monica" + }, + { + "accommodates":4, + "airbnb_property_id":"44049085", + "bathrooms":2, + "bedrooms":2, + "cover_img":"https://a0.muscache.com/im/pictures/b6196b12-0f5c-4b9a-b4c1-12313823c5d3.jpg?aki_policy=x_large", + "distance_meters":1205, + "listing_url":"https://www.airbnb.com/rooms/44049085", + "location":{ + "lat":34.02807, + "lng":-118.49371 + }, + "platforms":{ + "airbnb_property_id":"44049085", + "vrbo_property_id":null + }, + "property_type":"Rental unit", + "rating":9.5, + "reviews":8, + "room_type":"Entire home/apt", + "stats":{ + "adr":{ + "ltm":194 + }, + "days_available":{ + "ltm":111 + }, + "occupancy":{ + "ltm":0.56 + }, + "revenue":{ + "ltm":12083 + }, + "revenue_potential":{ + "ltm":30786 + } + }, + "title":"Spacious 2Bed/2Bath Upper in Santa Monica" + }, + { + "accommodates":4, + "airbnb_property_id":"51072001", + "bathrooms":1, + "bedrooms":2, + "cover_img":"https://a0.muscache.com/im/pictures/miso/Hosting-37369674/original/bdcf7fe8-a6e6-4afd-8803-f7b128fa86e6.jpeg?aki_policy=x_large", + "distance_meters":948, + "listing_url":"https://www.airbnb.com/rooms/51072001", + "location":{ + "lat":34.03454, + "lng":-118.48575 + }, + "platforms":{ + "airbnb_property_id":"51072001", + "vrbo_property_id":null + }, + "property_type":"Rental unit", + "rating":10, + "reviews":5, + "room_type":"Entire home/apt", + "stats":{ + "adr":{ + "ltm":170 + }, + "days_available":{ + "ltm":112 + }, + "occupancy":{ + "ltm":0.75 + }, + "revenue":{ + "ltm":14312 + }, + "revenue_potential":{ + "ltm":46464 + } + }, + "title":"Bright Upper 2Bed/1Bath, Newly Renovated" + }, + { + "accommodates":4, + "airbnb_property_id":"41198503", + "bathrooms":1, + "bedrooms":2, + "cover_img":"https://a0.muscache.com/im/pictures/1f47c133-0f47-4fc6-a66d-3bfe51065925.jpg?aki_policy=x_large", + "distance_meters":1100, + "listing_url":"https://www.airbnb.com/rooms/41198503", + "location":{ + "lat":34.03381, + "lng":-118.48435 + }, + "platforms":{ + "airbnb_property_id":"41198503", + "vrbo_property_id":null + }, + "property_type":"Rental unit", + "rating":10, + "reviews":1, + "room_type":"Entire home/apt", + "stats":{ + "adr":{ + "ltm":200 + }, + "days_available":{ + "ltm":124 + }, + "occupancy":{ + "ltm":0.76 + }, + "revenue":{ + "ltm":18890 + }, + "revenue_potential":{ + "ltm":50405 + } + }, + "title":"Gorgeous 2Bed/1Bath at 20th & California Ave." + }, + { + "accommodates":4, + "airbnb_property_id":"1038814600", + "bathrooms":1, + "bedrooms":2, + "cover_img":"https://media.vrbo.com/lodging/68000000/67350000/67341200/67341153/cf36e878.c10.jpg", + "distance_meters":1129, + "listing_url":"https://www.vrbo.com/7180078ha", + "location":{ + "lat":34.03364348, + "lng":-118.50503943 + }, + "platforms":{ + "airbnb_property_id":null, + "vrbo_property_id":"7180078ha" + }, + "property_type":"House", + "rating":4, + "reviews":3, + "room_type":"Entire home/apt", + "stats":{ + "adr":{ + "ltm":288 + }, + "days_available":{ + "ltm":314 + }, + "occupancy":{ + "ltm":0.6 + }, + "revenue":{ + "ltm":54095 + }, + "revenue_potential":{ + "ltm":61221 + } + }, + "title":"Luxury Beach House in Prime Santa Monica" + } + ], + "load_city":null, + "permission":"full", + "property_details":{ + "accommodates":2, + "address":"458 19th St, Santa Monica, CA 90402", + "address_city_id":59053, + "address_lookup":"458 19th St, Santa Monica, CA 90402, USA", + "address_region_id":[ + 26610 + ], + "bathrooms":2, + "bedrooms":2, + "currency_symbol":"$", + "location":{ + "lat":34.0389097, + "lng":-118.494575 + }, + "property_value":null, + "zipcode":"90402" + }, + "property_stats":{ + "adr":{ + "2022":{ + "7":193.81, + "8":188.26, + "9":208.52, + "10":196.03, + "11":290.69, + "12":401.76 + }, + "2023":{ + "1":270.43, + "2":206.9, + "3":359.46, + "4":208.88, + "5":218.6, + "6":280.02 + }, + "ltm":251 + }, + "historical_valuation":{ + "2020":{ + "7":15242, + "8":16162, + "9":15087, + "10":15087, + "11":18388, + "12":14468 + }, + "2021":{ + "1":15515, + "2":14106, + "3":16333, + "4":21144, + "5":27234, + "6":33959, + "7":37863, + "8":39022, + "9":42718, + "10":47947, + "11":48558, + "12":52327 + }, + "2022":{ + "1":56205, + "2":57740, + "3":63616, + "4":63372, + "5":60712, + "6":58676 + }, + "mom_perc_chg":-3.35, + "yoy_perc_chg":72.78 + }, + "occupancy":{ + "2022":{ + "7":0.65, + "8":0.84, + "9":0.84, + "10":0.86, + "11":0.45, + "12":0.3 + }, + "2023":{ + "1":0.81, + "2":0.54, + "3":0.77, + "4":0.81, + "5":0.51, + "6":0.56 + }, + "ltm":0.64 + }, + "revenue":{ + "2022":{ + "7":3904, + "8":4899, + "9":5282, + "10":5229, + "11":3912, + "12":3769 + }, + "2023":{ + "1":6769, + "2":3148, + "3":8553, + "4":5092, + "5":3430, + "6":4689 + }, + "ltm":58676 + }, + "revenue_range":{ + "2022":{ + "7":{ + "lower":3828, + "upper":3979 + }, + "8":{ + "lower":4598, + "upper":5199 + }, + "9":{ + "lower":4989, + "upper":5574 + }, + "10":{ + "lower":4934, + "upper":5523 + }, + "11":{ + "lower":3789, + "upper":4034 + }, + "12":{ + "lower":3523, + "upper":4014 + } + }, + "2023":{ + "1":{ + "lower":6440, + "upper":7097 + }, + "2":{ + "lower":3059, + "upper":3236 + }, + "3":{ + "lower":8287, + "upper":8818 + }, + "4":{ + "lower":4796, + "upper":5387 + }, + "5":{ + "lower":3209, + "upper":3650 + }, + "6":{ + "lower":4428, + "upper":4949 + } + }, + "ltm":{ + "lower":55885, + "upper":61466 + } + }, + "total_comps":6 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-length":"5710", + "content-type":"application/json", + "date":"Fri, 12 Aug 2022 16:43:17 GMT", + "server":"RapidAPI-1.2.8", + "via":"1.1 vegur", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"Property listings", + "url":"https://airdna1.p.rapidapi.com/properties", + "description":"Get rental properties of Airbnb and Vrbo by location and date.", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[ + { + "name":"room_types", + "type":"STRING", + "description":"You can choose multiple by separating by comma.\nPossible values : **(entire_home, private_room, shared_room)**.\n", + "default":"" + }, + { + "name":"number_of_months", + "type":"NUMBER", + "description":"", + "default":"" + }, + { + "name":"bedrooms_max", + "type":"NUMBER", + "description":"", + "default":"" + }, + { + "name":"accommodates_max", + "type":"NUMBER", + "description":"", + "default":"" + }, + { + "name":"start_month", + "type":"NUMBER", + "description":"", + "default":"" + }, + { + "name":"bedrooms_min", + "type":"NUMBER", + "description":"", + "default":"" + }, + { + "name":"show_regions", + "type":"BOOLEAN", + "description":"", + "default":"" + }, + { + "name":"accommodates_min", + "type":"NUMBER", + "description":"", + "default":"" + }, + { + "name":"currency", + "type":"STRING", + "description":"", + "default":"native" + }, + { + "name":"start_year", + "type":"NUMBER", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/properties\"\nquerystring = {\"location\": location, \"currency\": currency}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Rental ratings", + "url":"https://airdna1.p.rapidapi.com/rentalratings", + "description":"Returns rental ratings", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[ + { + "name":"currency", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/rentalratings\"\nquerystring = {\"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Suggest region", + "url":"https://airdna1.p.rapidapi.com/suggestion", + "description":"Returns suggested regions by keyword", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/suggestion\"\nquerystring = {\"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Active listings", + "url":"https://airdna1.p.rapidapi.com/activelistings", + "description":"Returns active rentals", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + }, + { + "name":"start_year", + "type":"NUMBER", + "description":"", + "default":"2019" + }, + { + "name":"start_month", + "type":"NUMBER", + "description":"", + "default":"5" + }, + { + "name":"number_of_months", + "type":"NUMBER", + "description":"", + "default":"36" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/activelistings\"\nquerystring = {\"location\": location, \"start_year\": start_year, \"start_month\": start_month, \"number_of_months\": number_of_months}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top property managers", + "url":"https://airdna1.p.rapidapi.com/top_managers", + "description":"Returns the largest property managers", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/top_managers\"\nquerystring = {\"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Rental amenities", + "url":"https://airdna1.p.rapidapi.com/rentalamenities", + "description":"Returns rental amenities", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[ + { + "name":"currency", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/rentalamenities\"\nquerystring = {\"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Rental settings", + "url":"https://airdna1.p.rapidapi.com/rentalsettings", + "description":"Returns rental settings.", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[ + { + "name":"currency", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/rentalsettings\"\nquerystring = {\"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Overview", + "url":"https://airdna1.p.rapidapi.com/overview", + "description":"Returns overview stats (ADR, OCC ,Revenue ..) of a location rental data", + "method":"GET", + "required_parameters":[ + { + "name":"location", + "type":"STRING", + "description":"", + "default":"santa monica" + } + ], + "optional_parameters":[ + { + "name":"currency", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://airdna1.p.rapidapi.com/overview\"\nquerystring = {\"location\": location}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airdna1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/airdna/api.py b/toolbench/toolenv/tools/Data/airdna/api.py new file mode 100644 index 0000000000000000000000000000000000000000..39d0be9f42bd21b23bf73ae13c4b0edc15ad92e9 --- /dev/null +++ b/toolbench/toolenv/tools/Data/airdna/api.py @@ -0,0 +1,236 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def rentalizer(address: str, bathrooms: int=2, accommodates: str='2', bedrooms: int=2, currency: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Rental Property Calculator by address" + + """ + url = f"https://airdna1.p.rapidapi.com/rentalizer" + querystring = {'address': address, } + if bathrooms: + querystring['bathrooms'] = bathrooms + if accommodates: + querystring['accommodates'] = accommodates + if bedrooms: + querystring['bedrooms'] = bedrooms + if currency: + querystring['currency'] = currency + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def property_listings(location: str, room_types: str=None, number_of_months: int=None, bedrooms_max: int=None, accommodates_max: int=None, start_month: int=None, bedrooms_min: int=None, show_regions: bool=None, accommodates_min: int=None, currency: str='native', start_year: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get rental properties of Airbnb and Vrbo by location and date." + room_types: You can choose multiple by separating by comma. +Possible values : **(entire_home, private_room, shared_room)**. + + + """ + url = f"https://airdna1.p.rapidapi.com/properties" + querystring = {'location': location, } + if room_types: + querystring['room_types'] = room_types + if number_of_months: + querystring['number_of_months'] = number_of_months + if bedrooms_max: + querystring['bedrooms_max'] = bedrooms_max + if accommodates_max: + querystring['accommodates_max'] = accommodates_max + if start_month: + querystring['start_month'] = start_month + if bedrooms_min: + querystring['bedrooms_min'] = bedrooms_min + if show_regions: + querystring['show_regions'] = show_regions + if accommodates_min: + querystring['accommodates_min'] = accommodates_min + if currency: + querystring['currency'] = currency + if start_year: + querystring['start_year'] = start_year + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rental_ratings(location: str, currency: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns rental ratings" + + """ + url = f"https://airdna1.p.rapidapi.com/rentalratings" + querystring = {'location': location, } + if currency: + querystring['currency'] = currency + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def suggest_region(location: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns suggested regions by keyword" + + """ + url = f"https://airdna1.p.rapidapi.com/suggestion" + querystring = {'location': location, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def active_listings(location: str, start_year: int, start_month: int, number_of_months: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns active rentals" + + """ + url = f"https://airdna1.p.rapidapi.com/activelistings" + querystring = {'location': location, 'start_year': start_year, 'start_month': start_month, 'number_of_months': number_of_months, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_property_managers(location: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the largest property managers" + + """ + url = f"https://airdna1.p.rapidapi.com/top_managers" + querystring = {'location': location, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rental_amenities(location: str, currency: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns rental amenities" + + """ + url = f"https://airdna1.p.rapidapi.com/rentalamenities" + querystring = {'location': location, } + if currency: + querystring['currency'] = currency + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def rental_settings(location: str, currency: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns rental settings." + + """ + url = f"https://airdna1.p.rapidapi.com/rentalsettings" + querystring = {'location': location, } + if currency: + querystring['currency'] = currency + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def overview(location: str, currency: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns overview stats (ADR, OCC ,Revenue ..) of a location rental data" + + """ + url = f"https://airdna1.p.rapidapi.com/overview" + querystring = {'location': location, } + if currency: + querystring['currency'] = currency + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airdna1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/airport_data.json b/toolbench/toolenv/tools/Data/airport_data.json new file mode 100644 index 0000000000000000000000000000000000000000..37e4db88efbfdca66a3614dba81d718338ae54eb --- /dev/null +++ b/toolbench/toolenv/tools/Data/airport_data.json @@ -0,0 +1,383 @@ +{ + "tool_name":"Airport Data", + "tool_description":"REST api to retrieve information about all Airports in the world!", + "title":"Airport Data", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/TekBunny/api/airport-data2/", + "host":"airport-data2.p.rapidapi.com", + "api_list":[ + { + "name":"Airport By IATA Code", + "url":"https://airport-data2.p.rapidapi.com/api/v2/iata/{iata_code}", + "description":"Provide Airport by IATA code.", + "method":"GET", + "required_parameters":[ + { + "name":"iata_code", + "type":"string", + "description":"", + "default":"LGW" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airport-data2.p.rapidapi.com/api/v2/iata/{iata_code}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airport-data2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "Id":{ + "type":"integer" + }, + "Name":{ + "type":"string" + }, + "Type":{ + "type":"string" + }, + "City":{ + "type":"string" + }, + "Country":{ + "type":"string" + }, + "Flag_Image":{ + "type":"string" + }, + "IATA_Code":{ + "type":"string" + }, + "ICAO_Code":{ + "type":"string" + }, + "Latitude":{ + "type":"string" + }, + "Longitude":{ + "type":"string" + }, + "TimeZone":{ + "type":"string" + } + } + } + }, + { + "name":"Airport By Name", + "url":"https://airport-data2.p.rapidapi.com/api/v2/name/{name}", + "description":"Provide Airport details by provided Airport name", + "method":"GET", + "required_parameters":[ + { + "name":"name", + "type":"string", + "description":"", + "default":"Heathrow" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airport-data2.p.rapidapi.com/api/v2/name/{name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airport-data2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "Id":{ + "type":"integer" + }, + "Name":{ + "type":"string" + }, + "Type":{ + "type":"string" + }, + "City":{ + "type":"string" + }, + "Country":{ + "type":"string" + }, + "Flag_Image":{ + "type":"string" + }, + "IATA_Code":{ + "type":"string" + }, + "ICAO_Code":{ + "type":"string" + }, + "Latitude":{ + "type":"string" + }, + "Longitude":{ + "type":"string" + }, + "TimeZone":{ + "type":"string" + } + } + } + } + }, + { + "name":"Airport By ICAO Code", + "url":"https://airport-data2.p.rapidapi.com/api/v2/icao/{icao_code}", + "description":"Provide airport details by ICAO code", + "method":"GET", + "required_parameters":[ + { + "name":"icao_code", + "type":"string", + "description":"", + "default":"EGKK" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airport-data2.p.rapidapi.com/api/v2/icao/{icao_code}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airport-data2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "Id":{ + "type":"integer" + }, + "Name":{ + "type":"string" + }, + "Type":{ + "type":"string" + }, + "City":{ + "type":"string" + }, + "Country":{ + "type":"string" + }, + "Flag_Image":{ + "type":"string" + }, + "IATA_Code":{ + "type":"string" + }, + "ICAO_Code":{ + "type":"string" + }, + "Latitude":{ + "type":"string" + }, + "Longitude":{ + "type":"string" + }, + "TimeZone":{ + "type":"string" + } + } + } + }, + { + "name":"Airports By Type", + "url":"https://airport-data2.p.rapidapi.com/api/v2/type/{type}", + "description":"List of airports by type.", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"string", + "description":"", + "default":"Large Airport" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airport-data2.p.rapidapi.com/api/v2/type/{type}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airport-data2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "Id":{ + "type":"integer" + }, + "Name":{ + "type":"string" + }, + "Type":{ + "type":"string" + }, + "City":{ + "type":"string" + }, + "Country":{ + "type":"string" + }, + "Flag_Image":{ + "type":"string" + }, + "IATA_Code":{ + "type":"string" + }, + "ICAO_Code":{ + "type":"string" + }, + "Latitude":{ + "type":"string" + }, + "Longitude":{ + "type":"string" + }, + "TimeZone":{ + "type":"string" + } + } + } + } + }, + { + "name":"Airports By Country", + "url":"https://airport-data2.p.rapidapi.com/api/v2/country/{country}", + "description":"Provides a list of airports by country name.", + "method":"GET", + "required_parameters":[ + { + "name":"country", + "type":"string", + "description":"", + "default":"United Kingdom" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airport-data2.p.rapidapi.com/api/v2/country/{country}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airport-data2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "Id":{ + "type":"integer" + }, + "Name":{ + "type":"string" + }, + "Type":{ + "type":"string" + }, + "City":{ + "type":"string" + }, + "Country":{ + "type":"string" + }, + "Flag_Image":{ + "type":"string" + }, + "IATA_Code":{ + "type":"string" + }, + "ICAO_Code":{ + "type":"string" + }, + "Latitude":{ + "type":"string" + }, + "Longitude":{ + "type":"string" + }, + "TimeZone":{ + "type":"string" + } + } + } + } + }, + { + "name":"Airports By City", + "url":"https://airport-data2.p.rapidapi.com/api/v2/city/{city}", + "description":"Provide a list of Airports by City name", + "method":"GET", + "required_parameters":[ + { + "name":"city", + "type":"string", + "description":"", + "default":"London" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://airport-data2.p.rapidapi.com/api/v2/city/{city}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airport-data2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "Id":{ + "type":"integer" + }, + "Name":{ + "type":"string" + }, + "Type":{ + "type":"string" + }, + "City":{ + "type":"string" + }, + "Country":{ + "type":"string" + }, + "Flag_Image":{ + "type":"string" + }, + "IATA_Code":{ + "type":"string" + }, + "ICAO_Code":{ + "type":"string" + }, + "Latitude":{ + "type":"string" + }, + "Longitude":{ + "type":"string" + }, + "TimeZone":{ + "type":"string" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/airport_data/api.py b/toolbench/toolenv/tools/Data/airport_data/api.py new file mode 100644 index 0000000000000000000000000000000000000000..dafed9bd26a1a8cd628591d1d64676658406d42e --- /dev/null +++ b/toolbench/toolenv/tools/Data/airport_data/api.py @@ -0,0 +1,134 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def airport_by_iata_code(iata_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide Airport by IATA code." + + """ + url = f"https://airport-data2.p.rapidapi.com/api/v2/iata/{iata_code}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airport-data2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def airport_by_name(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide Airport details by provided Airport name" + + """ + url = f"https://airport-data2.p.rapidapi.com/api/v2/name/{name}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airport-data2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def airport_by_icao_code(icao_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide airport details by ICAO code" + + """ + url = f"https://airport-data2.p.rapidapi.com/api/v2/icao/{icao_code}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airport-data2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def airports_by_type(type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "List of airports by type." + + """ + url = f"https://airport-data2.p.rapidapi.com/api/v2/type/{type}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airport-data2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def airports_by_country(country: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides a list of airports by country name." + + """ + url = f"https://airport-data2.p.rapidapi.com/api/v2/country/{country}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airport-data2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def airports_by_city(city: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provide a list of Airports by City name" + + """ + url = f"https://airport-data2.p.rapidapi.com/api/v2/city/{city}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airport-data2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/airportsdata.json b/toolbench/toolenv/tools/Data/airportsdata.json new file mode 100644 index 0000000000000000000000000000000000000000..d34256e722d547f7108ba14c89609e833821e478 --- /dev/null +++ b/toolbench/toolenv/tools/Data/airportsdata.json @@ -0,0 +1,154 @@ +{ + "tool_name":"AirportsData", + "tool_description":"Get basic information from 28k+ airports and landing strips around the world. With filtering, sorting and pagination options. ", + "title":"AirportsData", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":95, + "avgLatency":837, + "avgSuccessRate":95, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/gamma-solutions-gamma-solutions-default/api/airportsdata/", + "host":"airportsdata.p.rapidapi.com", + "api_list":[ + { + "name":"Get values", + "url":"https://airportsdata.p.rapidapi.com/airports/values", + "description":"Get a list of all **unique** values in the dataset for each of the properties. Results can be sorted and paginated.", + "method":"GET", + "required_parameters":[ + { + "name":"key", + "type":"STRING", + "description":"Values will be returned for this property. Possible values are: icao, iata, name, city, subd, country, elevation, lat, lon, tz and lid.", + "default":"iata" + } + ], + "optional_parameters":[ + { + "name":"skip", + "type":"NUMBER", + "description":"Skip n results", + "default":"100" + }, + { + "name":"sortByOrder", + "type":"STRING", + "description":"Specify the sorting order. Possible values are *asc* and *desc*. Results are sorted in ascending order by default. ", + "default":"desc" + }, + { + "name":"limit", + "type":"NUMBER", + "description":"Limit to n results.", + "default":"50" + } + ], + "code":"import requests\n\nurl = \"https://airportsdata.p.rapidapi.com/airports/values\"\nquerystring = {\"key\": key, \"skip\": skip, \"sortByOrder\": sortbyorder, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airportsdata.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Get airports", + "url":"https://airportsdata.p.rapidapi.com/airports", + "description":"Will return data from 28k+ airports in the database.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"lid", + "type":"STRING", + "description":"U.S. FAA Location Identifier (12,566 entries), or an empty string", + "default":"" + }, + { + "name":"sortBy", + "type":"STRING", + "description":"Sort results by a property value. Possible values are: IATA, IACO, name, city, subd, country, tz, lid and elevation. ", + "default":"iata" + }, + { + "name":"name", + "type":"STRING", + "description":"Filter results by name. The value should be sent as comma-separated. For example, for *Zabrat Airport*, send *Zabrat,Airport*", + "default":"Ishigaki,Airport" + }, + { + "name":"limit", + "type":"NUMBER", + "description":"Limit to n results.", + "default":"50" + }, + { + "name":"elevationOver", + "type":"NUMBER", + "description":"Filter airports with an MSL elevation, or highest point of the landing area in feet, over this value.", + "default":"50" + }, + { + "name":"country", + "type":"STRING", + "description":" ISO 3166-1 alpha-2 country code (plus XK for Kosovo).", + "default":"JP" + }, + { + "name":"city", + "type":"STRING", + "description":"Filter results by city. The value should be sent as comma-separated. For example, for *Zakynthos Island*, send *Zakynthos,Island*", + "default":"Ishigaki" + }, + { + "name":"skip", + "type":"NUMBER", + "description":"Skip first n results. ", + "default":"0" + }, + { + "name":"sortByOrder", + "type":"STRING", + "description":"Specify the sorting order. Possible values are *asc* and *desc*. Results are sorted in ascending order by default. ", + "default":"desc" + }, + { + "name":"elevationUnder", + "type":"NUMBER", + "description":"Filter airports with an MSL elevation, or highest point of the landing area in feet, under this value.", + "default":"2000" + }, + { + "name":"tz", + "type":"STRING", + "description":"Timezone expressed as a tz database name (IANA-compliant) or an empty string for Antarctica.", + "default":"Asia/Tokyo" + }, + { + "name":"icao", + "type":"STRING", + "description":"", + "default":"ROIG" + }, + { + "name":"subd", + "type":"STRING", + "description":"Filter results by subdivision (e.g. state, province, region, etc.). The value should be sent as comma-separated. For example, for *Newfoundland and Labrador*, send *Newfoundland,and,Labrador*", + "default":"Okinawa" + }, + { + "name":"iata", + "type":"STRING", + "description":"", + "default":"ISG" + } + ], + "code":"import requests\n\nurl = \"https://airportsdata.p.rapidapi.com/airports\"\nquerystring = {\"sortBy\": sortby, \"name\": name, \"limit\": limit, \"elevationOver\": elevationover, \"country\": country, \"city\": city, \"skip\": skip, \"sortByOrder\": sortbyorder, \"elevationUnder\": elevationunder, \"tz\": tz, \"icao\": icao, \"subd\": subd, \"iata\": iata}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"airportsdata.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/airportsdata/api.py b/toolbench/toolenv/tools/Data/airportsdata/api.py new file mode 100644 index 0000000000000000000000000000000000000000..32a553e5b4b7132f423069b52ebb4d6deb6fd947 --- /dev/null +++ b/toolbench/toolenv/tools/Data/airportsdata/api.py @@ -0,0 +1,100 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_values(key: str, skip: int=100, sortbyorder: str='desc', limit: int=50, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of all **unique** values in the dataset for each of the properties. Results can be sorted and paginated." + key: Values will be returned for this property. Possible values are: icao, iata, name, city, subd, country, elevation, lat, lon, tz and lid. + skip: Skip n results + sortbyorder: Specify the sorting order. Possible values are *asc* and *desc*. Results are sorted in ascending order by default. + limit: Limit to n results. + + """ + url = f"https://airportsdata.p.rapidapi.com/airports/values" + querystring = {'key': key, } + if skip: + querystring['skip'] = skip + if sortbyorder: + querystring['sortByOrder'] = sortbyorder + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airportsdata.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_airports(lid: str=None, sortby: str='iata', name: str='Ishigaki,Airport', limit: int=50, elevationover: int=50, country: str='JP', city: str='Ishigaki', skip: int=0, sortbyorder: str='desc', elevationunder: int=2000, tz: str='Asia/Tokyo', icao: str='ROIG', subd: str='Okinawa', iata: str='ISG', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Will return data from 28k+ airports in the database." + lid: U.S. FAA Location Identifier (12,566 entries), or an empty string + sortby: Sort results by a property value. Possible values are: IATA, IACO, name, city, subd, country, tz, lid and elevation. + name: Filter results by name. The value should be sent as comma-separated. For example, for *Zabrat Airport*, send *Zabrat,Airport* + limit: Limit to n results. + elevationover: Filter airports with an MSL elevation, or highest point of the landing area in feet, over this value. + country: ISO 3166-1 alpha-2 country code (plus XK for Kosovo). + city: Filter results by city. The value should be sent as comma-separated. For example, for *Zakynthos Island*, send *Zakynthos,Island* + skip: Skip first n results. + sortbyorder: Specify the sorting order. Possible values are *asc* and *desc*. Results are sorted in ascending order by default. + elevationunder: Filter airports with an MSL elevation, or highest point of the landing area in feet, under this value. + tz: Timezone expressed as a tz database name (IANA-compliant) or an empty string for Antarctica. + subd: Filter results by subdivision (e.g. state, province, region, etc.). The value should be sent as comma-separated. For example, for *Newfoundland and Labrador*, send *Newfoundland,and,Labrador* + + """ + url = f"https://airportsdata.p.rapidapi.com/airports" + querystring = {} + if lid: + querystring['lid'] = lid + if sortby: + querystring['sortBy'] = sortby + if name: + querystring['name'] = name + if limit: + querystring['limit'] = limit + if elevationover: + querystring['elevationOver'] = elevationover + if country: + querystring['country'] = country + if city: + querystring['city'] = city + if skip: + querystring['skip'] = skip + if sortbyorder: + querystring['sortByOrder'] = sortbyorder + if elevationunder: + querystring['elevationUnder'] = elevationunder + if tz: + querystring['tz'] = tz + if icao: + querystring['icao'] = icao + if subd: + querystring['subd'] = subd + if iata: + querystring['iata'] = iata + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "airportsdata.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/alcohol_consumption_by_country.json b/toolbench/toolenv/tools/Data/alcohol_consumption_by_country.json new file mode 100644 index 0000000000000000000000000000000000000000..81cae904575ed6ea217c5f42476614b3daebb8e4 --- /dev/null +++ b/toolbench/toolenv/tools/Data/alcohol_consumption_by_country.json @@ -0,0 +1,30 @@ +{ + "tool_name":"Alcohol Consumption By Country", + "tool_description":"This API provides data on alcohol consumption by country. With this API, users can access valuable insights into global alcohol consumption patterns, enabling them to make data-driven decisions in a variety of fields, including healthcare, public policy, and marketing.", + "title":"Alcohol Consumption By Country", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":1403, + "avgSuccessRate":100, + "popularityScore":9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/Chetan11dev/api/alcohol-consumption-by-country/", + "host":"alcohol-consumption-by-country.p.rapidapi.com", + "api_list":[ + { + "name":"Get Alcohol Consumption of all Countries", + "url":"https://alcohol-consumption-by-country.p.rapidapi.com/backend/alcohol-consumption-by-country/data/", + "description":"Get Alcohol Consumption of all Countries", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://alcohol-consumption-by-country.p.rapidapi.com/backend/alcohol-consumption-by-country/data/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"alcohol-consumption-by-country.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/alcohol_consumption_by_country/api.py b/toolbench/toolenv/tools/Data/alcohol_consumption_by_country/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1b90484a9f250cc59633e8303f896ea2d9ce8b5e --- /dev/null +++ b/toolbench/toolenv/tools/Data/alcohol_consumption_by_country/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_alcohol_consumption_of_all_countries(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Alcohol Consumption of all Countries" + + """ + url = f"https://alcohol-consumption-by-country.p.rapidapi.com/backend/alcohol-consumption-by-country/data/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "alcohol-consumption-by-country.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/all_about_books.json b/toolbench/toolenv/tools/Data/all_about_books.json new file mode 100644 index 0000000000000000000000000000000000000000..5f650b9c6148660db107a9a3336708afb6969ac6 --- /dev/null +++ b/toolbench/toolenv/tools/Data/all_about_books.json @@ -0,0 +1,111 @@ +{ + "tool_name":"All about Books", + "tool_description":"A list of APIs to provide information about books published since 1900. Information includes Author(s) details, Publisher(s) details and many more.", + "title":"All about Books", + "pricing":"FREEMIUM", + "score":null, + "home_url":"https://rapidapi.com/TekBunny/api/all-about-books/", + "host":"all-about-books.p.rapidapi.com", + "api_list":[ + { + "name":"Books by Title", + "url":"https://all-about-books.p.rapidapi.com/api/v1/book/{title}", + "description":"Provides books with matching or partially matching title provided to API request.", + "method":"GET", + "required_parameters":[ + { + "name":"title", + "type":"string", + "description":"", + "default":"All Hallows" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-about-books.p.rapidapi.com/api/v1/book/{title}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-about-books.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Books by Publisher Name", + "url":"https://all-about-books.p.rapidapi.com/api/v1/publisher/{name}", + "description":"Provides list of books published by a Publisher.", + "method":"GET", + "required_parameters":[ + { + "name":"name", + "type":"string", + "description":"", + "default":"Tor" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-about-books.p.rapidapi.com/api/v1/publisher/{name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-about-books.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Books by Year", + "url":"https://all-about-books.p.rapidapi.com/api/v1/publish/{year}", + "description":"Provides a list of books published in a year. Data available from 1900 onwards.", + "method":"GET", + "required_parameters":[ + { + "name":"year", + "type":"string", + "description":"", + "default":"2023" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-about-books.p.rapidapi.com/api/v1/publish/{year}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-about-books.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Books by Genre", + "url":"https://all-about-books.p.rapidapi.com/api/v1/genre/{genre}", + "description":"Provides a list of books from a specific genre", + "method":"GET", + "required_parameters":[ + { + "name":"genre", + "type":"string", + "description":"", + "default":"Science-Fiction" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-about-books.p.rapidapi.com/api/v1/genre/{genre}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-about-books.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Books by Author", + "url":"https://all-about-books.p.rapidapi.com/api/v1/author/{name}", + "description":"Generates one or more books written by an Author provided in API request.", + "method":"GET", + "required_parameters":[ + { + "name":"name", + "type":"string", + "description":"", + "default":"Veronica Roth" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-about-books.p.rapidapi.com/api/v1/author/{name}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-about-books.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/all_about_books/api.py b/toolbench/toolenv/tools/Data/all_about_books/api.py new file mode 100644 index 0000000000000000000000000000000000000000..44f31b9cfc6c3d5058bbb5156002eb7054297f3b --- /dev/null +++ b/toolbench/toolenv/tools/Data/all_about_books/api.py @@ -0,0 +1,113 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def books_by_title(title: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides books with matching or partially matching title provided to API request." + + """ + url = f"https://all-about-books.p.rapidapi.com/api/v1/book/{title}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-about-books.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def books_by_publisher_name(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides list of books published by a Publisher." + + """ + url = f"https://all-about-books.p.rapidapi.com/api/v1/publisher/{name}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-about-books.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def books_by_year(year: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides a list of books published in a year. Data available from 1900 onwards." + + """ + url = f"https://all-about-books.p.rapidapi.com/api/v1/publish/{year}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-about-books.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def books_by_genre(genre: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Provides a list of books from a specific genre" + + """ + url = f"https://all-about-books.p.rapidapi.com/api/v1/genre/{genre}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-about-books.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def books_by_author(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Generates one or more books written by an Author provided in API request." + + """ + url = f"https://all-about-books.p.rapidapi.com/api/v1/author/{name}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-about-books.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/all_in_one_crypto_swiss_knife.json b/toolbench/toolenv/tools/Data/all_in_one_crypto_swiss_knife.json new file mode 100644 index 0000000000000000000000000000000000000000..33c6c666acd947aa150a706cd177e5037de881c2 --- /dev/null +++ b/toolbench/toolenv/tools/Data/all_in_one_crypto_swiss_knife.json @@ -0,0 +1,702 @@ +{ + "tool_name":"🔥 All-In-One Crypto Swiss Knife 🚀", + "tool_description":"Coins, NFTS, Portfolio tracker, Whales, airdrops, news, tweets, YT videos, reddit posts, DeFi protocols,, games, podcasts, events, gas price and more!", + "title":"🔥 All-In-One Crypto Swiss Knife 🚀", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":80, + "avgLatency":1165, + "avgSuccessRate":80, + "popularityScore":9.4, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/emir12/api/all-in-one-crypto-swiss-knife/", + "host":"all-in-one-crypto-swiss-knife.p.rapidapi.com", + "api_list":[ + { + "name":"Top coins by market cap", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/coins/toplist", + "description":"Get top coins by mCap", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"20" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/coins/toplist\"\nquerystring = {\"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"News", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/news", + "description":"get crypto news", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/news\"\nquerystring = {\"page\": page, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Podcasts", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/podcasts", + "description":"get crypto podcasts", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + }, + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/podcasts\"\nquerystring = {\"limit\": limit, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Gas price", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gas", + "description":"get current ETH gas price", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gas\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Summary", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/summary", + "description":"Get play 2 earn market summary", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/summary\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Free games", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/free", + "description":"get list of free games", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + }, + { + "name":"pageSize", + "type":"STRING", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/free\"\nquerystring = {\"page\": page, \"pageSize\": pagesize}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Upcoming", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/upcoming", + "description":"get upcoming play 2 earn games", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"pageSize", + "type":"STRING", + "description":"", + "default":"10" + }, + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/upcoming\"\nquerystring = {\"pageSize\": pagesize, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Trending games", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/trending", + "description":"get trending play 2 earn games", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"pageSize", + "type":"STRING", + "description":"", + "default":"20" + }, + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/trending\"\nquerystring = {\"pageSize\": pagesize, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Games", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/games", + "description":"Get play 2 earn games", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + }, + { + "name":"pageSize", + "type":"STRING", + "description":"", + "default":"10" + }, + { + "name":"platform", + "type":"STRING", + "description":"PLATFORMS: \nAndroid\niOS\nWindows\nBrowser\nMac\nLinux\nPC\nMobile\n", + "default":"" + }, + { + "name":"genre", + "type":"STRING", + "description":"GENRES:\nAction\nAdventure\nAR\nArcade\nAuto Battler\nBase Building\nBattle Royale\nBrawler\nBreeding\nCard Game\nCasual\nCity Building\nCollectible\nCombat\nDeFi\nFantasy\nFighting\nFootball Game\nFPS\nFrontier defense\nHorror Game\nIdle Game\nMetaverse\nMinigame\nMining\nMMO\nMMORPG\nMOBA\nMove To Earn\nPuzzle\nPVP\nRacing\nRNG\nRPG\nSci-Fi\nShooter\nSimulation\nSpace Game\nSports\nStrategy\nSurvival\nTower Defense\nTurn-based Strategy\nVirtual-World\nVR\nOther", + "default":"" + }, + { + "name":"blockchain", + "type":"STRING", + "description":"BLOCKCHAINS:\nHive\nWAX\nEOS\nBNB Chain\nPolygon\nEthereum\nImmutable-X\nSolana\nTRON\nNEO\nFlow\nEnjin\nNEAR\nAvalanche\nWaves\nVulcan Forged\nHarmony\nOKExChain\nIOST\nHECO\nGala Games\nTerra\nAurora\nCardano\nElrond\nCelo\nVeChain\nFantom\nQtum\nKlaytn\nAlgorand\nCronos\nDEAP Coin\nMoonriver\nOasis Network\nTelos\nPolkadot\nXaya\nPhantasma\nWEMIX\nMyria\nHuobi ECO Chain Mainnet\nWanchain\nArbitrum One\nBNB Sidechain\nDogechain\nMEVerse\nAptos\nOther", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/games\"\nquerystring = {\"page\": page, \"pageSize\": pagesize}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Reddit", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/reddit", + "description":"Get top latest crypto posts from Reddit from any subreddit.\nname= subreddit name from reddit url\nExample: https://www.reddit.com/r/dogecoin/", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + }, + { + "name":"name", + "type":"STRING", + "description":"Subreddit name from url. Example: https://www.reddit.com/r/dogecoin/", + "default":"dogecoin" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/reddit\"\nquerystring = {\"limit\": limit, \"name\": name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Twitter", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/twitter", + "description":"Get crypto tweets by curated authors", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/twitter\"\nquerystring = {\"page\": page, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Youtube videos", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/youtube", + "description":"Get videos.\nBy default returns videos with 'crypto' keyword but you can search for any keyword", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"q", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/youtube\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Whale Activities", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/whales/activities", + "description":"Get latest whale activities.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"15" + }, + { + "name":"start", + "type":"STRING", + "description":"", + "default":"0" + }, + { + "name":"order_by", + "type":"STRING", + "description":"[\\\"-time_at\\\", \\\"time_at\\\", \\\"-usd_value\\\", \\\"usd_value\\\"];", + "default":"-time_at" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/whales/activities\"\nquerystring = {\"limit\": limit, \"start\": start, \"order_by\": order_by}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Whales rank", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/whales", + "description":"Get biggest whale addresses", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"start", + "type":"STRING", + "description":"", + "default":"0" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/whales\"\nquerystring = {\"start\": start, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Events", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/events", + "description":"Get crypto upcoming events grouped by dates", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + }, + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/events\"\nquerystring = {\"limit\": limit, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Projects / Staking/ Other Activities", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/projects", + "description":"Get activities that address is involved in", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"0x60618d7f1966310d90177640880edaed41e15f2d" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/projects\"\nquerystring = {\"address\": address}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"NFTs on address", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/nfts", + "description":"Get list of NFTs that address holds.", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"0x253ba7cf994ec46845f8f2799f5f53777366ca70" + } + ], + "optional_parameters":[ + { + "name":"chain", + "type":"STRING", + "description":" \\\"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\\\";\n", + "default":"eth" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/nfts\"\nquerystring = {\"address\": address, \"chain\": chain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Net worth history (sparklines)", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/net-curve", + "description":"Get sparklines with address net worth for chart rendering.\nReturns array of objects with timestamp and USD value", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"0x60618d7f1966310d90177640880edaed41e15f2d" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/net-curve\"\nquerystring = {\"address\": address}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Address transaction history", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/history", + "description":"Get transaction history of any address.\nSupported chains: \"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\";", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"0x60618d7f1966310d90177640880edaed41e15f2d" + } + ], + "optional_parameters":[ + { + "name":"start_time", + "type":"STRING", + "description":"timestamp", + "default":"0" + }, + { + "name":"chain", + "type":"STRING", + "description":"Supported chains: \\\"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\\\";\n", + "default":"" + }, + { + "name":"page_count", + "type":"STRING", + "description":"How many elements to fetch", + "default":"20" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/history\"\nquerystring = {\"address\": address, \"start_time\": start_time, \"page_count\": page_count}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Tokens Balances", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/balance", + "description":"get balance of any address.\nsupportedChains: eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava", + "method":"GET", + "required_parameters":[ + { + "name":"address", + "type":"STRING", + "description":"", + "default":"0x60618d7f1966310d90177640880edaed41e15f2d" + }, + { + "name":"chain", + "type":"STRING", + "description":"", + "default":"eth" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/balance\"\nquerystring = {\"address\": address, \"chain\": chain}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top holders", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/top-holders", + "description":"Get top holders in each protocol", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"STRING", + "description":"", + "default":"curve" + } + ], + "optional_parameters":[ + { + "name":"start", + "type":"STRING", + "description":"", + "default":"0" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/top-holders\"\nquerystring = {\"start\": start, \"limit\": limit, \"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Protocols", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols", + "description":"Get protocols.\nYou can search by adding 'q' query param.\n\nSupported chains: \"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\";", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"q", + "type":"STRING", + "description":"Search parameter", + "default":"" + }, + { + "name":"chain_id", + "type":"STRING", + "description":"Supported chains: \\\"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\\\";\n\nLeave empty for all protocols ", + "default":"fuse" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols\"\nquerystring = {\"chain_id\": chain_id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Protocol", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/protocol", + "description":"Get protocol", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"STRING", + "description":"", + "default":"curve" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/protocol\"\nquerystring = {\"id\": id}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Pools", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/pools", + "description":"Get DeFi pools\nYou can get id from /protocols endpoint.", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"STRING", + "description":"", + "default":"curve" + } + ], + "optional_parameters":[ + { + "name":"start", + "type":"STRING", + "description":"", + "default":"0" + }, + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"10" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/pools\"\nquerystring = {\"id\": id, \"start\": start, \"limit\": limit}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Total value locked", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/tvl", + "description":"Get TVL in each chain", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"limit", + "type":"STRING", + "description":"", + "default":"20" + }, + { + "name":"page", + "type":"STRING", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/tvl\"\nquerystring = {\"limit\": limit, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Potential upcoming", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/airdrops/potential", + "description":"Get list of tokenless protocols that may airdrop soon", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/airdrops/potential\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Single Coin", + "url":"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/coins/history", + "description":"Get single coin info and history sparklines for rendering chart", + "method":"GET", + "required_parameters":[ + { + "name":"interval", + "type":"STRING", + "description":"Intervals supported: 1D, 1W, 1M, 3M, YTD, 1Y, 3Y, ALL (case insensitive)\n\n", + "default":"1D" + }, + { + "name":"slug", + "type":"STRING", + "description":"", + "default":"bitcoin" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/coins/history\"\nquerystring = {\"interval\": interval, \"slug\": slug}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-in-one-crypto-swiss-knife.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/all_in_one_crypto_swiss_knife/api.py b/toolbench/toolenv/tools/Data/all_in_one_crypto_swiss_knife/api.py new file mode 100644 index 0000000000000000000000000000000000000000..948ba6ebe5fdceb7c7fc6a3f9983f9839720f2f0 --- /dev/null +++ b/toolbench/toolenv/tools/Data/all_in_one_crypto_swiss_knife/api.py @@ -0,0 +1,787 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def top_coins_by_market_cap(limit: str='20', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get top coins by mCap" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/coins/toplist" + querystring = {} + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def news(page: str='1', limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get crypto news" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/news" + querystring = {} + if page: + querystring['page'] = page + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def podcasts(limit: str='10', page: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get crypto podcasts" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/podcasts" + querystring = {} + if limit: + querystring['limit'] = limit + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def gas_price(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get current ETH gas price" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gas" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def summary(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get play 2 earn market summary" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/summary" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def free_games(page: str='1', pagesize: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get list of free games" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/free" + querystring = {} + if page: + querystring['page'] = page + if pagesize: + querystring['pageSize'] = pagesize + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def upcoming(pagesize: str='10', page: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get upcoming play 2 earn games" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/upcoming" + querystring = {} + if pagesize: + querystring['pageSize'] = pagesize + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def trending_games(pagesize: str='20', page: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get trending play 2 earn games" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/trending" + querystring = {} + if pagesize: + querystring['pageSize'] = pagesize + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def games(page: str='1', pagesize: str='10', platform: str=None, genre: str=None, blockchain: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get play 2 earn games" + platform: PLATFORMS: +Android +iOS +Windows +Browser +Mac +Linux +PC +Mobile + + genre: GENRES: +Action +Adventure +AR +Arcade +Auto Battler +Base Building +Battle Royale +Brawler +Breeding +Card Game +Casual +City Building +Collectible +Combat +DeFi +Fantasy +Fighting +Football Game +FPS +Frontier defense +Horror Game +Idle Game +Metaverse +Minigame +Mining +MMO +MMORPG +MOBA +Move To Earn +Puzzle +PVP +Racing +RNG +RPG +Sci-Fi +Shooter +Simulation +Space Game +Sports +Strategy +Survival +Tower Defense +Turn-based Strategy +Virtual-World +VR +Other + blockchain: BLOCKCHAINS: +Hive +WAX +EOS +BNB Chain +Polygon +Ethereum +Immutable-X +Solana +TRON +NEO +Flow +Enjin +NEAR +Avalanche +Waves +Vulcan Forged +Harmony +OKExChain +IOST +HECO +Gala Games +Terra +Aurora +Cardano +Elrond +Celo +VeChain +Fantom +Qtum +Klaytn +Algorand +Cronos +DEAP Coin +Moonriver +Oasis Network +Telos +Polkadot +Xaya +Phantasma +WEMIX +Myria +Huobi ECO Chain Mainnet +Wanchain +Arbitrum One +BNB Sidechain +Dogechain +MEVerse +Aptos +Other + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/gaming/games" + querystring = {} + if page: + querystring['page'] = page + if pagesize: + querystring['pageSize'] = pagesize + if platform: + querystring['platform'] = platform + if genre: + querystring['genre'] = genre + if blockchain: + querystring['blockchain'] = blockchain + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def reddit(limit: str='10', name: str='dogecoin', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get top latest crypto posts from Reddit from any subreddit. + name= subreddit name from reddit url + Example: https://www.reddit.com/r/dogecoin/" + name: Subreddit name from url. Example: https://www.reddit.com/r/dogecoin/ + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/reddit" + querystring = {} + if limit: + querystring['limit'] = limit + if name: + querystring['name'] = name + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def twitter(page: str='1', limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get crypto tweets by curated authors" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/twitter" + querystring = {} + if page: + querystring['page'] = page + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def youtube_videos(q: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get videos. + By default returns videos with 'crypto' keyword but you can search for any keyword" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/social/youtube" + querystring = {} + if q: + querystring['q'] = q + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def whale_activities(limit: str='15', start: str='0', order_by: str='-time_at', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get latest whale activities." + order_by: [\"-time_at\", \"time_at\", \"-usd_value\", \"usd_value\"]; + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/whales/activities" + querystring = {} + if limit: + querystring['limit'] = limit + if start: + querystring['start'] = start + if order_by: + querystring['order_by'] = order_by + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def whales_rank(start: str='0', limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get biggest whale addresses" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/whales" + querystring = {} + if start: + querystring['start'] = start + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def events(limit: str='10', page: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get crypto upcoming events grouped by dates" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/events" + querystring = {} + if limit: + querystring['limit'] = limit + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def projects_staking_other_activities(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get activities that address is involved in" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/projects" + querystring = {'address': address, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def nfts_on_address(address: str, chain: str='eth', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of NFTs that address holds." + chain: \"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\"; + + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/nfts" + querystring = {'address': address, } + if chain: + querystring['chain'] = chain + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def net_worth_history_sparklines(address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get sparklines with address net worth for chart rendering. + Returns array of objects with timestamp and USD value" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/net-curve" + querystring = {'address': address, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def address_transaction_history(address: str, start_time: str='0', chain: str=None, page_count: str='20', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get transaction history of any address. + Supported chains: "eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava";" + start_time: timestamp + chain: Supported chains: \"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\"; + + page_count: How many elements to fetch + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/history" + querystring = {'address': address, } + if start_time: + querystring['start_time'] = start_time + if chain: + querystring['chain'] = chain + if page_count: + querystring['page_count'] = page_count + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def tokens_balances(address: str, chain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "get balance of any address. + supportedChains: eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/portfolio/balance" + querystring = {'address': address, 'chain': chain, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_holders(is_id: str, start: str='0', limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get top holders in each protocol" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/top-holders" + querystring = {'id': is_id, } + if start: + querystring['start'] = start + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def protocols(q: str=None, chain_id: str='fuse', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get protocols. + You can search by adding 'q' query param. + + Supported chains: "eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava";" + q: Search parameter + chain_id: Supported chains: \"eth, bsc, matic, avax, okt, hmy, heco, klay, op, arb, ftm, xdai, cro, mobm, celo, aurora, fuse, evmos, cfx, kava\"; + +Leave empty for all protocols + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols" + querystring = {} + if q: + querystring['q'] = q + if chain_id: + querystring['chain_id'] = chain_id + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def protocol(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get protocol" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/protocol" + querystring = {'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def pools(is_id: str, start: str='0', limit: str='10', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get DeFi pools + You can get id from /protocols endpoint." + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/pools" + querystring = {'id': is_id, } + if start: + querystring['start'] = start + if limit: + querystring['limit'] = limit + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def total_value_locked(limit: str='20', page: str='1', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get TVL in each chain" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/protocols/tvl" + querystring = {} + if limit: + querystring['limit'] = limit + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def potential_upcoming(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of tokenless protocols that may airdrop soon" + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/airdrops/potential" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def single_coin(interval: str, slug: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get single coin info and history sparklines for rendering chart" + interval: Intervals supported: 1D, 1W, 1M, 3M, YTD, 1Y, 3Y, ALL (case insensitive) + + + + """ + url = f"https://all-in-one-crypto-swiss-knife.p.rapidapi.com/coins/history" + querystring = {'interval': interval, 'slug': slug, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-in-one-crypto-swiss-knife.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/all_information_about_ip.json b/toolbench/toolenv/tools/Data/all_information_about_ip.json new file mode 100644 index 0000000000000000000000000000000000000000..fa9e6baeb85e36931677dbb1b402218523ff3c8a --- /dev/null +++ b/toolbench/toolenv/tools/Data/all_information_about_ip.json @@ -0,0 +1,131 @@ +{ + "tool_name":"All information about IP", + "tool_description":"API for getting information about ip address, taken from several databases, compared.", + "title":"All information about IP", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":2712, + "avgSuccessRate":100, + "popularityScore":8.6, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/kalinindanilq7734/api/all-information-about-ip/", + "host":"all-information-about-ip.p.rapidapi.com", + "api_list":[ + { + "name":"Get IP information", + "url":"https://all-information-about-ip.p.rapidapi.com/", + "description":"Get IP information", + "method":"GET", + "required_parameters":[ + { + "name":"query", + "type":"STRING", + "description":"", + "default":"188.68.223.26" + } + ], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + } + ], + "code":"import requests\n\nurl = \"https://all-information-about-ip.p.rapidapi.com/\"\nquerystring = {\"lang\": lang, \"query\": query}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"all-information-about-ip.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json;", + "date":"Thu, 16 Mar 2023 07:47:58 GMT", + "server":"RapidAPI-1.2.8", + "x-powered-by":"PHP/7.4.28", + "x-rapidapi-region":"AWS - eu-central-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object", + "properties":{ + "status":{ + "type":"string" + }, + "data":{ + "type":"object", + "properties":{ + "query":{ + "type":"string" + }, + "continent":{ + "type":"string" + }, + "continentCode":{ + "type":"string" + }, + "country":{ + "type":"string" + }, + "countryCode":{ + "type":"string" + }, + "currency":{ + "type":"string" + }, + "regionName":{ + "type":"string" + }, + "city":{ + "type":"string" + }, + "timezone":{ + "type":"string" + }, + "mobile":{ + "type":"boolean" + }, + "proxy":{ + "type":"boolean" + }, + "lat":{ + "type":"number" + }, + "lon":{ + "type":"number" + }, + "org":{ + "type":"string" + }, + "as":{ + "type":"string" + }, + "asname":{ + "type":"string" + }, + "isp":{ + "type":"string" + }, + "zip":{ + "type":"string" + }, + "region":{ + "type":"string" + }, + "district":{ + "type":"string" + }, + "hosting":{ + "type":"boolean" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/all_information_about_ip/api.py b/toolbench/toolenv/tools/Data/all_information_about_ip/api.py new file mode 100644 index 0000000000000000000000000000000000000000..1955ae92183e2930361be263d15c12ae80bda06f --- /dev/null +++ b/toolbench/toolenv/tools/Data/all_information_about_ip/api.py @@ -0,0 +1,31 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_ip_information(query: str, lang: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get IP information" + + """ + url = f"https://all-information-about-ip.p.rapidapi.com/" + querystring = {'query': query, } + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "all-information-about-ip.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/amazon_products_api.json b/toolbench/toolenv/tools/Data/amazon_products_api.json new file mode 100644 index 0000000000000000000000000000000000000000..291697e867c4d2feab67202da1b24d1b438f6088 --- /dev/null +++ b/toolbench/toolenv/tools/Data/amazon_products_api.json @@ -0,0 +1,87 @@ +{ + "tool_name": "Amazon-Products-API", + "tool_description": "API to provide amazon products data", + "title": "Amazon-Products-API", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 28916, + "avgSuccessRate": 100, + "popularityScore": 8.6, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/fastlaneyttv/api/amazon-products-api/", + "host": "amazon-products-api.p.rapidapi.com", + "api_list": [ + { + "name": "Product Data", + "url": "https://amazon-products-api.p.rapidapi.com/get-product-data", + "description": "Retrieves product data given ASIN and host.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-products-api.p.rapidapi.com/get-product-data\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-products-api.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": { + "result": { + "ASIN": "B08H75RTZ8", + "Batteries": "2 A batteries required. (included)", + "Best Sellers Rank": "#86 in Video Games (See Top 100 in Video Games) #1 in Xbox Series X & S Consoles #1 in Xbox Consoles", + "Binding": "Video Game", + "Country of Origin": "China", + "Customer Reviews": "4.8 out of 5 stars \n 19,774 ratings \n\n\n 4.8 out of 5 stars", + "Date First Available": "September 22, 2020", + "Item Weight": "9.8 pounds", + "Item model number": "Internacional", + "Manufacturer": "Microsoft", + "Pricing": "The strikethrough price is the List Price. Savings represents a discount off the List Price.", + "Product Dimensions": "5.94 x 11.85 x 5.94 inches; 9.8 Pounds", + "Release date": "November 10, 2020", + "price": "$499.99$499.99", + "title": "Xbox Series X" + } + }, + "headers": { + "access-control-allow-credentials": "true", + "access-control-allow-origin": "*", + "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400", + "cf-cache-status": "DYNAMIC", + "cf-ray": "78fae5e45e0dab47-SIN", + "content-type": "application/json", + "date": "Thu, 26 Jan 2023 17:16:49 GMT", + "server": "RapidAPI-1.2.8", + "vary": "Accept-Encoding", + "x-rapidapi-region": "AWS - ap-southeast-1", + "x-rapidapi-version": "1.2.8", + "x-render-origin-server": "gunicorn" + }, + "schema": {} + }, + { + "name": "Home", + "url": "https://amazon-products-api.p.rapidapi.com/", + "description": "Home Route to show usage message", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-products-api.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-products-api.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "Product Data", + "url": "https://amazon-products-api.p.rapidapi.com/get-product-data", + "description": "Retrieves product data given ASIN and host.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-products-api.p.rapidapi.com/get-product-data\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-products-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-products-api.p.rapidapi.com/get-product-data\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-products-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/amazon_products_api/api.py b/toolbench/toolenv/tools/Data/amazon_products_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f1fd6eaaa59821d17c83732e63727adf647a1aea --- /dev/null +++ b/toolbench/toolenv/tools/Data/amazon_products_api/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def home(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Home Route to show usage message" + + """ + url = f"https://amazon-products-api.p.rapidapi.com/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-products-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/amazon_web_scraping_api.json b/toolbench/toolenv/tools/Data/amazon_web_scraping_api.json new file mode 100644 index 0000000000000000000000000000000000000000..6e22088c5527a4e27d121042b30b7c7801c9ed86 --- /dev/null +++ b/toolbench/toolenv/tools/Data/amazon_web_scraping_api.json @@ -0,0 +1,2757 @@ +{ + "product_id": "api_525d1fdb-550a-4281-9854-b3151d0dec13", + "tool_description": "Provides access to amazon product details, customer reviews, product images, videos, and more, with support for all Amazon websites across the globe. Whether you're a developer building an e-commerce app or a business looking to enhance your customer experience, our API has got you covered. Try it today and start integrating Amazon product data into your application or website.\n\nCheckout our channel of telegram: https://t.me/+EkKIVZiiDQthMmYx", + "home_url": "https://rapidapi.com/yeisonpx/api/amazon-web-scraping-api/", + "name": "Amazon Web Scraping API", + "title": "Amazon Web Scraping API", + "pricing": "FREEMIUM", + "tool_name": "Amazon Web Scraping API", + "score": { + "avgServiceLevel": 97, + "avgLatency": 7960, + "avgSuccessRate": 94, + "popularityScore": 9.6, + "__typename": "Score" + }, + "host": "amazon-web-scraping-api.p.rapidapi.com", + "api_list": [ + { + "name": "Get Websites", + "url": "https://amazon-web-scraping-api.p.rapidapi.com/websites", + "description": "Get the available websites available by country to extract amazon product data.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/websites\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/websites\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": [ + { + "countryCode": "eg", + "website": "amazon.eg", + "countryName": "Egypt" + }, + { + "countryCode": "br", + "website": "amazon.com.br", + "countryName": "Brazil" + }, + { + "countryCode": "ca", + "website": "amazon.ca", + "countryName": "Canada" + }, + { + "countryCode": "mx", + "website": "amazon.com.mx", + "countryName": "Mexico" + }, + { + "countryCode": "us", + "website": "amazon.com", + "countryName": "United States" + }, + { + "countryCode": "cn", + "website": "amazon.cn", + "countryName": "China" + }, + { + "countryCode": "in", + "website": "amazon.in", + "countryName": "India" + }, + { + "countryCode": "jp", + "website": "amazon.co.jp", + "countryName": "Japan" + }, + { + "countryCode": "sa", + "website": "amazon.sa", + "countryName": "Saudi Arabia" + }, + { + "countryCode": "sg", + "website": "amazon.sg", + "countryName": "Singapore" + }, + { + "countryCode": "tr", + "website": "amazon.com.tr", + "countryName": "Turkey" + }, + { + "countryCode": "ae", + "website": "amazon.ae", + "countryName": "United Arab Emirates" + }, + { + "countryCode": "be", + "website": "amazon.com.be", + "countryName": "Belgium" + }, + { + "countryCode": "fr", + "website": "amazon.fr", + "countryName": "France" + }, + { + "countryCode": "de", + "website": "amazon.de", + "countryName": "Germany" + }, + { + "countryCode": "it", + "website": "amazon.it", + "countryName": "Italy" + }, + { + "countryCode": "nl", + "website": "amazon.nl", + "countryName": "Netherlands" + }, + { + "countryCode": "pl", + "website": "amazon.pl", + "countryName": "Poland" + }, + { + "countryCode": "es", + "website": "amazon.es", + "countryName": "Spain" + }, + { + "countryCode": "se", + "website": "amazon.se", + "countryName": "Sweden" + }, + { + "countryCode": "uk", + "website": "amazon.co.uk", + "countryName": "United Kingdom" + }, + { + "countryCode": "au", + "website": "amazon.com.au", + "countryName": "Australia" + } + ] + }, + { + "name": "Search Products(All countries)", + "url": "https://amazon-web-scraping-api.p.rapidapi.com/products/search", + "description": "Allows to search products in Amazon using real time data scraping API.", + "method": "GET", + "required_parameters": [ + { + "name": "criteria", + "type": "STRING", + "description": "Search term that will be used to search for products on Amazon.", + "default": "AMD Ryzen" + } + ], + "optional_parameters": [ + { + "name": "countryCode", + "type": "STRING", + "description": "This query parameter represents the country code of the Amazon store where the search will be performed. This parameter should be replaced with the two-letter code of the country that you want to search on Amazon. Default 'US' for United States. Check available list in Get Webistes endpoints.", + "default": "US" + }, + { + "name": "page", + "type": "NUMBER", + "description": "Page number of results that you want to retrieve. If this parameter is not specified, the results of the first page will be returned.", + "default": "1" + }, + { + "name": "languageCode", + "type": "STRING", + "description": "", + "default": "EN" + } + ], + "code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/search\"\nquerystring = {\"countryCode\": \"US\", \"page\": \"1\", \"criteria\": \"AMD Ryzen\", \"languageCode\": \"EN\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/search\"\nquerystring = {\"countryCode\": \"US\", \"page\": \"1\", \"criteria\": \"AMD Ryzen\", \"languageCode\": \"EN\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "page": 1, + "pageCount": 21, + "products": [ + { + "name": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_UY218_.jpg", + "description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics" + }, + "totalReviews": 4886, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 167.91, + "priceFraction": "91", + "beforePrice": 359.0 + }, + "asin": "B091J3NYVF", + "url": "https://www.amazon.com/dp/B091J3NYVF", + "position": 2 + }, + { + "name": "AMD Ryzen 5 5600X 6-core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/61vGQNUEsGL._AC_UY218_.jpg", + "description": "AMD Ryzen 5 5600X 6-core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 20780, + "rating": 4.85, + "sponsored": false, + "amazonChoice": true, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": true, + "priceSymbol": "$", + "currentPrice": 148.99, + "priceFraction": "99", + "beforePrice": 309.0 + }, + "asin": "B08166SLDF", + "url": "https://www.amazon.com/dp/B08166SLDF", + "position": 3 + }, + { + "name": "AMD Ryzen 9 5900X 12-core, 24-Thread Unlocked Desktop Processor", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/616VM20+AzL._AC_UY218_.jpg", + "description": "AMD Ryzen 9 5900X 12-core, 24-Thread Unlocked Desktop Processor" + }, + "totalReviews": 9251, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 306.85, + "priceFraction": "85", + "beforePrice": 569.99 + }, + "asin": "B08164VTWH", + "url": "https://www.amazon.com/dp/B08164VTWH", + "position": 4 + }, + { + "name": "AMD Ryzen\u2122 7 5700X 8-Core, 16-Thread Unlocked Desktop Processor", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/61eXyK93hQL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 7 5700X 8-Core, 16-Thread Unlocked Desktop Processor" + }, + "totalReviews": 2733, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 190.66, + "priceFraction": "66", + "beforePrice": 319.0 + }, + "asin": "B09VCHQHZ6", + "url": "https://www.amazon.com/dp/B09VCHQHZ6", + "position": 7 + }, + { + "name": "AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/61DYLoyNRWL._AC_UY218_.jpg", + "description": "AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor" + }, + "totalReviews": 14983, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 208.8, + "priceFraction": "80", + "beforePrice": 449.0 + }, + "asin": "B0815XFSGK", + "url": "https://www.amazon.com/dp/B0815XFSGK", + "position": 8 + }, + { + "name": "AMD Ryzen 5 5600G 6-Core 12-Thread Unlocked Desktop Processor with Radeon Graphics", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51f2hkWjTlL._AC_UY218_.jpg", + "description": "AMD Ryzen 5 5600G 6-Core 12-Thread Unlocked Desktop Processor with Radeon Graphics" + }, + "totalReviews": 12394, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 121.57, + "priceFraction": "57", + "beforePrice": 259.0 + }, + "asin": "B092L9GF5N", + "url": "https://www.amazon.com/dp/B092L9GF5N", + "position": 9 + }, + { + "name": "AMD Ryzen\u2122 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51UsQaqgJwL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor" + }, + "totalReviews": 525, + "rating": 4.75, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 310.0, + "priceFraction": "00", + "beforePrice": 449.0 + }, + "asin": "B0BBHHT8LY", + "url": "https://www.amazon.com/dp/B0BBHHT8LY", + "position": 10 + }, + { + "name": "AMD Ryzen\u2122 5 4600G, 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/61xqmYOrStL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 5 4600G, 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 614, + "rating": 4.75, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 84.99, + "priceFraction": "99", + "beforePrice": 154.0 + }, + "asin": "B09Z5NH6SJ", + "url": "https://www.amazon.com/dp/B09Z5NH6SJ", + "position": 11 + }, + { + "name": "AMD Ryzen\u2122 5 5500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51o1kx5YHkL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 5 5500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 1724, + "rating": 4.75, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 91.14, + "priceFraction": "14", + "beforePrice": 159.0 + }, + "asin": "B09VCJ171S", + "url": "https://www.amazon.com/dp/B09VCJ171S", + "position": 12 + }, + { + "name": "AMD Ryzen\u2122 7 5800X3D 8-core, 16-Thread Desktop Processor with AMD 3D V-Cache\u2122 Technology", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/61Kq99IRdcL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 7 5800X3D 8-core, 16-Thread Desktop Processor with AMD 3D V-Cache\u2122 Technology" + }, + "totalReviews": 2500, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": true, + "amazonPrime": false, + "price": { + "discounted": true, + "priceSymbol": "$", + "currentPrice": 289.14, + "priceFraction": "14", + "beforePrice": 449.0 + }, + "asin": "B09VCJ2SHD", + "url": "https://www.amazon.com/dp/B09VCJ2SHD", + "position": 15 + }, + { + "name": "AMD Ryzen\u2122 9 7900X 12-Core, 24-Thread Unlocked Desktop Processor", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51xkaPM+p9L._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 9 7900X 12-Core, 24-Thread Unlocked Desktop Processor" + }, + "totalReviews": 404, + "rating": 4.75, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 411.68, + "priceFraction": "68", + "beforePrice": 549.0 + }, + "asin": "B0BBJ59WJ4", + "url": "https://www.amazon.com/dp/B0BBJ59WJ4", + "position": 16 + }, + { + "name": "AMD Mini PC with AMD Ryzen 5 5600U Processor and Radeon\u2122 Graphics,6 Cores 12 Threads, 16G RAM, 512G SSD, Windows 11Pro WiFi 5\uff0c2.4GHz/ 5GHz Radio Frequency, Bluetooth 5.0", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/61PxItxL9xL._AC_UY218_.jpg", + "description": "Sponsored Ad - AMD Mini PC with AMD Ryzen 5 5600U Processor and Radeon\u2122 Graphics,6 Cores 12 Threads, 16G RAM, 512G SSD, Wi..." + }, + "totalReviews": null, + "rating": null, + "sponsored": true, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 289.99, + "priceFraction": "99", + "beforePrice": null + }, + "asin": "B0B6HZWR5G", + "url": "https://www.amazon.com/dp/B0B6HZWR5G", + "position": 17 + }, + { + "name": "AMD Ryzen\u2122 5 4500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/711shQQt2RL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 5 4500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 897, + "rating": 4.65, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 78.68, + "priceFraction": "68", + "beforePrice": 129.0 + }, + "asin": "B09VCJN7HZ", + "url": "https://www.amazon.com/dp/B09VCJN7HZ", + "position": 18 + }, + { + "name": "AMD Ryzen\u2122 5 5600 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51GUexhiieL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 5 5600 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 2893, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 129.0, + "priceFraction": "00", + "beforePrice": 199.0 + }, + "asin": "B09VCHR1VH", + "url": "https://www.amazon.com/dp/B09VCHR1VH", + "position": 19 + }, + { + "name": "AMD Ryzen\u2122 3 4100 4-Core, 8-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/71S4Zxo0yrL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 3 4100 4-Core, 8-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 149, + "rating": 4.25, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 64.11, + "priceFraction": "11", + "beforePrice": 99.0 + }, + "asin": "B09VCRQVWM", + "url": "https://www.amazon.com/dp/B09VCRQVWM", + "position": 20 + }, + { + "name": "AMD Ryzen 5 3600 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/81b75EQJrgL._AC_UY218_.jpg", + "description": "AMD Ryzen 5 3600 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler" + }, + "totalReviews": 42695, + "rating": 4.85, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 87.99, + "priceFraction": "99", + "beforePrice": 199.0 + }, + "asin": "B07STGGQ18", + "url": "https://www.amazon.com/dp/B07STGGQ18", + "position": 21 + }, + { + "name": "Micro Center AMD Ryzen 5 5600X Desktop Processor 6-core 12-Thread Up to 4.6GHz Unlocked with Wraith Stealth Cooler Bundle with MSI B550-A PRO AM4 DDR4 ATX Motherboard PCIe 4.0 M.2 USB 3.2 Gen 2", + "leftInStock": "Only 9 left in stock - order soon.", + "image": { + "url": "https://m.media-amazon.com/images/I/71jfPl7H9YL._AC_UY218_.jpg", + "description": "Sponsored Ad - Micro Center AMD Ryzen 5 5600X Desktop Processor 6-core 12-Thread Up to 4.6GHz Unlocked with Wraith Stealth..." + }, + "totalReviews": 827, + "rating": 4.55, + "sponsored": true, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 339.99, + "priceFraction": "99", + "beforePrice": null + }, + "asin": "B099ZJ11CP", + "url": "https://www.amazon.com/dp/B099ZJ11CP", + "position": 22 + }, + { + "name": "AMD Ryzen\u2122 9 7950X 16-Core, 32-Thread Unlocked Desktop Processor", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51nBGlyDOoL._AC_UY218_.jpg", + "description": "AMD Ryzen\u2122 9 7950X 16-Core, 32-Thread Unlocked Desktop Processor" + }, + "totalReviews": 547, + "rating": 4.75, + "sponsored": false, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 536.74, + "priceFraction": "74", + "beforePrice": 571.0 + }, + "asin": "B0BBHD5D8Y", + "url": "https://www.amazon.com/dp/B0BBHD5D8Y", + "position": 23 + }, + { + "name": "AMD Ryzen R5-5600U Low-Power 8-core 16-Thread Soft Routing Mini Host/I226-V/Aluminum Case (64G/512G)", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/513K0uygq3L._AC_UY218_.jpg", + "description": "Sponsored Ad - AMD Ryzen R5-5600U Low-Power 8-core 16-Thread Soft Routing Mini Host/I226-V/Aluminum Case (64G/512G)" + }, + "totalReviews": null, + "rating": null, + "sponsored": true, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 644.99, + "priceFraction": "99", + "beforePrice": null + }, + "asin": "B0BYHQL5PS", + "url": "https://www.amazon.com/dp/B0BYHQL5PS", + "position": 24 + }, + { + "name": "AMD Ryzen 9 7900X 12-Core 24-Thread Unlocked Desktop Processor Bundle with ASUS ROG Crosshair X670E Hero (WiFi 6E) Socket AM5 (LGA 1718) Ryzen 7000 Gaming Motherboard \u202fPCIe 5.0 DDR5", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/618+94aHDyL._AC_UY218_.jpg", + "description": "Sponsored Ad - AMD Ryzen 9 7900X 12-Core 24-Thread Unlocked Desktop Processor Bundle with ASUS ROG Crosshair X670E Hero (W..." + }, + "totalReviews": 1054, + "rating": 4.65, + "sponsored": true, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 989.99, + "priceFraction": "99", + "beforePrice": 1069.99 + }, + "asin": "B0C23VB9L3", + "url": "https://www.amazon.com/dp/B0C23VB9L3", + "position": 25 + }, + { + "name": "AMD Ryzen R7-5800U Low-Power 8-core 16-Thread Soft Routing Mini Host/I226-V/Aluminum Case (AMD 5800-BAREBONE)", + "leftInStock": null, + "image": { + "url": "https://m.media-amazon.com/images/I/51GkiftSLML._AC_UY218_.jpg", + "description": "Sponsored Ad - AMD Ryzen R7-5800U Low-Power 8-core 16-Thread Soft Routing Mini Host/I226-V/Aluminum Case (AMD 5800-BAREBONE)" + }, + "totalReviews": null, + "rating": null, + "sponsored": true, + "amazonChoice": false, + "bestSeller": false, + "amazonPrime": false, + "price": { + "discounted": false, + "priceSymbol": "$", + "currentPrice": 421.99, + "priceFraction": "99", + "beforePrice": null + }, + "asin": "B0BYJ63W4Z", + "url": "https://www.amazon.com/dp/B0BYJ63W4Z", + "position": 26 + } + ], + "categories": [ + { + "name": "Computer Internal Components", + "categoryLink_url": "https://www.amazon.com//s?k=amd+ryzen&rh=n%3A17923671011&s=relevanceblender&dc&language=en_US&qid=1686958223&rnid=2941120011&ref=sr_nr_n_1&ds=v1%3AUEr1HuvJOlKpT9td%2FeOkslPx7FDDOowUbUxX%2BYfSHeg", + "categoryId": "n/17923671011" + }, + { + "name": "Computer CPU Processors", + "categoryLink_url": "https://www.amazon.com//s?k=amd+ryzen&rh=n%3A17923671011%2Cn%3A229189&s=relevanceblender&dc&language=en_US&qid=1686958223&rnid=2941120011&ref=sr_nr_n_2&ds=v1%3A9TiGR4pJ%2BDTm6pPbs5%2FrLwxEB%2B3Us6Wq3c3GT3pzJsQ", + "categoryId": "n/229189" + }, + { + "name": "Computer Motherboards", + "categoryLink_url": "https://www.amazon.com//s?k=amd+ryzen&rh=n%3A17923671011%2Cn%3A1048424&s=relevanceblender&dc&language=en_US&qid=1686958223&rnid=2941120011&ref=sr_nr_n_3&ds=v1%3ABncQ015wNgr%2FiDOeoX12oia9zQ61XkxhSpYhmhb0wuM", + "categoryId": "n/1048424" + }, + { + "name": "Desktop Computers", + "categoryLink_url": "https://www.amazon.com//s?k=amd+ryzen&rh=n%3A565098&s=relevanceblender&dc&language=en_US&qid=1686958223&rnid=2941120011&ref=sr_nr_n_4&ds=v1%3AOjvgbx59rKMMVzQW0hS9QkuunBW2pBOTLuG620Dtswk", + "categoryId": "n/565098" + }, + { + "name": "Mini Computers", + "categoryLink_url": "https://www.amazon.com//s?k=amd+ryzen&rh=n%3A565098%2Cn%3A13896591011&s=relevanceblender&dc&language=en_US&qid=1686958223&rnid=2941120011&ref=sr_nr_n_5&ds=v1%3AXTkVMLpnCJ0q9AjmQXB%2FlPWfW%2BLZ4fJGF%2BaoTwPnc30", + "categoryId": "n/13896591011" + } + ] + } + }, + { + "name": "Get Deals", + "url": "https://amazon-web-scraping-api.p.rapidapi.com/products/deals", + "description": "Get amazon deals allowing to filter by category. The category list is included in the response.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [ + { + "name": "countryCode", + "type": "STRING", + "description": "", + "default": "US" + }, + { + "name": "languageCode", + "type": "STRING", + "description": "", + "default": "EN" + }, + { + "name": "categoryId", + "type": "STRING", + "description": "Allows to filter by category ID. By default all the categories are returned. ", + "default": "" + } + ], + "code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/deals\"\nquerystring = {\"countryCode\": \"US\", \"languageCode\": \"EN\", \"categoryId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/deals\"\nquerystring = {\"countryCode\": \"US\", \"languageCode\": \"EN\", \"categoryId\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "page": 1, + "pageCount": 60, + "deals": [ + { + "name": "Bryco Goods Packing Paper", + "deal_url": "https://www.amazon.com/deal/5ca733a7?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_0_5ca733a7_dt_sl14_42", + "label": "Up to 57% off", + "image_url": "https://m.media-amazon.com/images/I/41lrrlEAExL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Bryco Goods Packing Paper" + }, + { + "name": "Brightup beard trimmer", + "deal_url": "https://www.amazon.com/deal/4151f372?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_1_4151f372_dt_sl14_42", + "label": "Up to 55% off", + "image_url": "https://m.media-amazon.com/images/I/51hloxE9rvL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Brightup beard trimmer" + }, + { + "name": "Patio, Lawn & Garden from InnoGear, Klahaite, Bear Mountain and more.", + "deal_url": "https://www.amazon.com/deal/36e49e0c?showVariations=true&moreDeals=694fa981%2Cb625e2b9%2C38190c5a%2C51efb594%2Cb2afab64&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_2_36e49e0c_dt_sl14_42", + "label": "Up to 31% off", + "image_url": "https://m.media-amazon.com/images/I/51gKXM53W-L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Patio, Lawn & Garden from InnoGear, Klahaite, Bear Mountain and more." + }, + { + "name": "Rent the Runway New and Pre-Loved Apparel", + "deal_url": "https://www.amazon.com/deal/c69acd91?searchAlias=fashion&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_3_c69acd91_dt_sl14_42", + "label": "Up to 85% off", + "image_url": "https://m.media-amazon.com/images/I/31rGJdJp+tL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Rent the Runway New and Pre-Loved Apparel" + }, + { + "name": "WEMAX projectors", + "deal_url": "https://www.amazon.com/deal/1dd01e59?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_4_1dd01e59_dt_sl14_42", + "label": "Up to 35% off", + "image_url": "https://m.media-amazon.com/images/I/41rpXAI-MGL._AC_UF226,226_FMjpg_.jpg", + "image_description": "WEMAX projectors" + }, + { + "name": "Ring Doorbells, Cameras, Alarms and Bundles", + "deal_url": "https://www.amazon.com/deal/7ceb873f?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_5_7ceb873f_dt_sl14_42", + "label": "Up to 31% off", + "image_url": "https://m.media-amazon.com/images/I/311F+QCgbCL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Ring Doorbells, Cameras, Alarms and Bundles" + }, + { + "name": "Blink Smart Home Doorbells and Cameras", + "deal_url": "https://www.amazon.com/deal/0558e54b?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_6_0558e54b_dt_sl14_42", + "label": "Up to 46% off", + "image_url": "https://m.media-amazon.com/images/I/31T7PgujZ3L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Blink Smart Home Doorbells and Cameras" + }, + { + "name": "Fire TV Streaming Devices (4K and HD)", + "deal_url": "https://www.amazon.com/deal/de598b05?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_7_de598b05_dt_sl14_42", + "label": "Up to 38% off", + "image_url": "https://m.media-amazon.com/images/I/31wybZaa6PL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Fire TV Streaming Devices (4K and HD)" + }, + { + "name": "Summer Fashion Styles from Amazon Brands", + "deal_url": "https://www.amazon.com/deal/e3d83312?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_8_e3d83312_dt_sl14_42", + "label": "Up to 45% off", + "image_url": "https://m.media-amazon.com/images/I/41OGHcl70FL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Summer Fashion Styles from Amazon Brands" + }, + { + "name": "Father's Day Tools & Power Equipment from Denali, an Amazon Brand", + "deal_url": "https://www.amazon.com/deal/6737150d?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_9_6737150d_dt_sl14_42", + "label": "Up to 27% off", + "image_url": "https://m.media-amazon.com/images/I/41VWcPUpydL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Father's Day Tools & Power Equipment from Denali, an Amazon Brand" + }, + { + "name": "Brady Brand Apparel", + "deal_url": "https://www.amazon.com/deal/75a40247?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_10_75a40247_dt_sl14_42", + "label": "Up to 53% off", + "image_url": "https://m.media-amazon.com/images/I/31naTso4zzL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Brady Brand Apparel" + }, + { + "name": "Dresses, Bags, Shoes, and Jewlery from Luxury Designers", + "deal_url": "https://www.amazon.com/s?i=luxury&rh=n%3A18981045011%2Cp_n_best_pct_off%3A23747329011%2Cp_89%3A&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_11_c33ce8d2_dt_sl14_42", + "label": "Deal", + "image_url": "https://m.media-amazon.com/images/I/41IrNQiSbdL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Dresses, Bags, Shoes, and Jewlery from Luxury Designers" + }, + { + "name": "25% off Grubhub", + "deal_url": "https://www.amazon.com/prime/offer/grubhub/prime-deal?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_12_b814d81e_dt_sl14_42", + "label": "Deal", + "image_url": "https://m.media-amazon.com/images/I/71vPeZpHyUL._AC_UF226,226_FMjpg_.png", + "image_description": "25% off Grubhub" + }, + { + "name": "Samsung Galaxy S22 Ultra", + "deal_url": "https://www.amazon.com/stores/page/preview?isSlp=1&isPreview=1&asins=B09MW19JW2%2CB09MW13RQH%2CB09MVZSW5V%2CB09MVZY521%2CB09MVZH5RB%2CB09MW17JQY%2CB09MW11C2H%2CB09MVYMR79%2CB09MW1HJ9T%2CB09MVZLCLN%2CB09MVZ93YN%2CB09MVYPST5%2C&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_13_018c4d7e_dt_sl14_42", + "label": "Deal", + "image_url": "https://m.media-amazon.com/images/I/41Te8HXFyjL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Samsung Galaxy S22 Ultra" + }, + { + "name": "P&G: Buy $60, Get $15 Amazon Credit. Includes Household, Health, Baby and Beauty Eligible Brands.", + "deal_url": "https://www.amazon.com/stores/page/36FE6B68-B764-475B-B8C6-7C47DC10C647?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_14_533676f8_dt_sl14_42", + "label": "Deal", + "image_url": "https://m.media-amazon.com/images/I/519EqYc4SUL._AC_UF226,226_FMjpg_.jpg", + "image_description": "P&G: Buy $60, Get $15 Amazon Credit. Includes Household, Health, Baby and Beauty Eligible Brands." + }, + { + "name": "BESTCROF Rug Pads Grippers, Non Slip Washable Grippers for Rug, New Materials to Anti Curling Rug Pad : Keep Your Rug in Place & Make Corner Flat and Easily Peel Off", + "deal_url": "https://www.amazon.com/BESTCROF-Grippers-Washable-Materials-Curling/dp/B0B45WGJG3?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_15_5c1a905e_dt_sl14_42", + "label": "Up to 70% off", + "image_url": "https://m.media-amazon.com/images/I/51CemPl9bfL._AC_UF226,226_FMjpg_.jpg", + "image_description": "BESTCROF Rug Pads Grippers, Non Slip Washable Grippers for Rug, New Materials to Anti Curling Rug Pad : Keep Your Rug in P..." + }, + { + "name": "Packing Cubes for Travel 7 Pcs Foldable Travel Cubes Set Lightweight Luggage Organizers", + "deal_url": "https://www.amazon.com/Packing-Suitcases-Compression-Clothing-Underwear/dp/B0C1BWZMWJ?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_16_97dc65bb_dt_sl14_42", + "label": "Up to 78% off", + "image_url": "https://m.media-amazon.com/images/I/61xcdI+QZfL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Packing Cubes for Travel 7 Pcs Foldable Travel Cubes Set Lightweight Luggage Organizers" + }, + { + "name": "Kindle E-readers", + "deal_url": "https://www.amazon.com/deal/acbac6f2?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_17_acbac6f2_dt_sl14_42", + "label": "Up to 29% off", + "image_url": "https://m.media-amazon.com/images/I/41b2gIbrwGL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Kindle E-readers" + }, + { + "name": "Select Furniture", + "deal_url": "https://www.amazon.com/deal/59153b6c?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_18_59153b6c_dt_sl14_42", + "label": "Up to 53% off", + "image_url": "https://m.media-amazon.com/images/I/51+Wrgw7swL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Select Furniture" + }, + { + "name": "Echo Devices", + "deal_url": "https://www.amazon.com/deal/e0a1287c?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_19_e0a1287c_dt_sl14_42", + "label": "Up to 44% off", + "image_url": "https://m.media-amazon.com/images/I/61-uuTemxLL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Echo Devices" + }, + { + "name": "Disposable Coffee Cups with Lids and Straws - 16 oz (90 Set) Togo Hot Paper Coffee Cup with Lid To Go for Beverages Espresso Tea Insulated Reusable Cold Drinks Ripple Cups Protect Fingers From Heat!", + "deal_url": "https://www.amazon.com/Disposable-Coffee-Cups-Lids-Straws/dp/B08CZDHDJR?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_20_e1509368_dt_sl14_42", + "label": "Up to 24% off", + "image_url": "https://m.media-amazon.com/images/I/51kb-HPZPOL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Disposable Coffee Cups with Lids and Straws - 16 oz (90 Set) Togo Hot Paper Coffee Cup with Lid To Go for Beverages Espres..." + }, + { + "name": "Plarmod Sun Fashing Hat for Men, 3.5\u201d Wide Brim Cools Super Wide Brim Sun Hat for Fishing, Hiking", + "deal_url": "https://www.amazon.com/Plarmod-Fashing-Hat-UPF50-Waterproof-Fishing/dp/B0B2WX669P?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_21_8daeb326_dt_sl14_42", + "label": "Up to 62% off", + "image_url": "https://m.media-amazon.com/images/I/51H9cvMFIBL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Plarmod Sun Fashing Hat for Men, 3.5\u201d Wide Brim Cools Super Wide Brim Sun Hat for Fishing, Hiking" + }, + { + "name": "Beats Earbuds", + "deal_url": "https://www.amazon.com/deal/8268d41f?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_22_8268d41f_dt_sl14_42", + "label": "Up to 36% off", + "image_url": "https://m.media-amazon.com/images/I/31XcVBWCTmS._AC_UF226,226_FMjpg_.jpg", + "image_description": "Beats Earbuds" + }, + { + "name": "Sony Headphones", + "deal_url": "https://www.amazon.com/deal/bd290307?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_23_bd290307_dt_sl14_42", + "label": "Up to 37% off", + "image_url": "https://m.media-amazon.com/images/I/31BXEEUVfFL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Sony Headphones" + }, + { + "name": "Copper Infused Adjustable Support Splint Wrist Brace for Carpal Tunnel Relief Support", + "deal_url": "https://www.amazon.com/psycilla-Copper-Infused-Adjustable-Support-Both/dp/B0BX47RQFV?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_24_a0d42e48_dt_sl14_42", + "label": "$16.99 and under", + "image_url": "https://m.media-amazon.com/images/I/41LngXBp8gL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Copper Infused Adjustable Support Splint Wrist Brace for Carpal Tunnel Relief Support" + }, + { + "name": "Samsung Memory and Drives", + "deal_url": "https://www.amazon.com/stores/page/preview?isSlp=1&isPreview=1&asins=B07BPK3XWW%2CB07MFZY2F2%2CB07MG119KG%2CB0874XJL6M%2CB0874YS2N7%2CB089C5P5SX%2CB08GLX7TNT%2CB08RK2SR23%2CB08V83JZH4%2CB09B1G2NDW%2CB09B1GNFNT%2CB09B1HCF3H%2CB09B1HMJ9Z%2CB09B1HYPR9%2CB09JHL33X7%2CB09TD1TXMH%2CB09WB1857W%2CB09WB2NL8W%2CB0B1VMJ394%2CB0C1PPWTWT%2C&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_25_2f6a882c_dt_sl14_42", + "label": "Up to 63% off", + "image_url": "https://m.media-amazon.com/images/I/417GDosJw+L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Samsung Memory and Drives" + }, + { + "name": "Amazon Kids Fire Tablet Devices", + "deal_url": "https://www.amazon.com/deal/e8aa1390?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_26_e8aa1390_dt_sl14_42", + "label": "Up to 50% off", + "image_url": "https://m.media-amazon.com/images/I/41uiQuftdnL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Amazon Kids Fire Tablet Devices" + }, + { + "name": "Amazon Fire Tablet Devices", + "deal_url": "https://www.amazon.com/deal/bdd5af89?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_27_bdd5af89_dt_sl14_42", + "label": "Up to 32% off", + "image_url": "https://m.media-amazon.com/images/I/61kKi1EuiaL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Amazon Fire Tablet Devices" + }, + { + "name": "Select Furniture and Mattresses from Lucid, Linenspa, and Edenbrook", + "deal_url": "https://www.amazon.com/deal/ef7ac670?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_28_ef7ac670_dt_sl14_42", + "label": "Up to 43% off", + "image_url": "https://m.media-amazon.com/images/I/51kPjlQyGtL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Select Furniture and Mattresses from Lucid, Linenspa, and Edenbrook" + }, + { + "name": "Bose Headphones", + "deal_url": "https://www.amazon.com/deal/69296f72?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_29_69296f72_dt_sl14_42", + "label": "Up to 17% off", + "image_url": "https://m.media-amazon.com/images/I/31gXnogBxkL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Bose Headphones" + }, + { + "name": "Furniture from Amazon Brands", + "deal_url": "https://www.amazon.com/deal/500e9135?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_30_500e9135_dt_sl14_42", + "label": "Up to 33% off", + "image_url": "https://m.media-amazon.com/images/I/41KFTQsuQpL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Furniture from Amazon Brands" + }, + { + "name": "Electronics, Office, and Batteries from Amazon Basics", + "deal_url": "https://www.amazon.com/deal/004501d1?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_31_004501d1_dt_sl14_42", + "label": "Up to 39% off", + "image_url": "https://m.media-amazon.com/images/I/41hCNUFr5AL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Electronics, Office, and Batteries from Amazon Basics" + }, + { + "name": "OtterBox Cases and Accessories", + "deal_url": "https://www.amazon.com/b?ie=UTF8&node=23681586011&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_32_d4dfd6c9_dt_sl14_42", + "label": "Up to 51% off", + "image_url": "https://m.media-amazon.com/images/I/412j9wgJ+7L._AC_UF226,226_FMjpg_.jpg", + "image_description": "OtterBox Cases and Accessories" + }, + { + "name": "Echo Show 8 (2nd Gen)", + "deal_url": "https://www.amazon.com/deal/c4c937de?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_33_c4c937de_dt_sl14_42", + "label": "42% off", + "image_url": "https://m.media-amazon.com/images/I/41sWKVFbzWL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Echo Show 8 (2nd Gen)" + }, + { + "name": "Ring Accessories", + "deal_url": "https://www.amazon.com/deal/ed9a396c?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_34_ed9a396c_dt_sl14_42", + "label": "20% off", + "image_url": "https://m.media-amazon.com/images/I/31dsIozaXlL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Ring Accessories" + }, + { + "name": "Waterpik Cordless Advanced", + "deal_url": "https://www.amazon.com/deal/d7c606bd?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_35_d7c606bd_dt_sl14_42", + "label": "30% off", + "image_url": "https://m.media-amazon.com/images/I/31EJB4FQsyL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Waterpik Cordless Advanced" + }, + { + "name": "Under Armour Apparel, Footwear, and Accessories", + "deal_url": "https://www.amazon.com/deal/815db994?moreDeals=ac375c90%2C9d68867b&searchAlias=fashion&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_36_815db994_dt_sl14_42", + "label": "Up to 25% off", + "image_url": "https://m.media-amazon.com/images/I/51duWPFqB5L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Under Armour Apparel, Footwear, and Accessories" + }, + { + "name": "Amazon eero mesh Wi-Fi routers and systems", + "deal_url": "https://www.amazon.com/deal/240d2043?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_37_240d2043_dt_sl14_42", + "label": "20% off", + "image_url": "https://m.media-amazon.com/images/I/11KHrBWmHKL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Amazon eero mesh Wi-Fi routers and systems" + }, + { + "name": "iRobot Roomba Robotic Vacuums", + "deal_url": "https://www.amazon.com/deal/e90a7543?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_38_e90a7543_dt_sl14_42", + "label": "Up to 41% off", + "image_url": "https://m.media-amazon.com/images/I/41iZqSedeQL._AC_UF226,226_FMjpg_.jpg", + "image_description": "iRobot Roomba Robotic Vacuums" + }, + { + "name": "Bedding, Bath, Window Treatments and Kitchenware from Linenspa, Lush Decor and Kitchen Aid", + "deal_url": "https://www.amazon.com/b?node=116076620011&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_39_0328de80_dt_sl14_42", + "label": "Up to 58% off", + "image_url": "https://m.media-amazon.com/images/I/419yyekSe4L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Bedding, Bath, Window Treatments and Kitchenware from Linenspa, Lush Decor and Kitchen Aid" + }, + { + "name": "Samsung Galaxy S23 Series", + "deal_url": "https://www.amazon.com/stores/page/preview?isSlp=1&isPreview=1&asins=B0BLP57HTN%2CB0BLP2Y34S%2CB0BLP45GY8%2CB0BLP2B5DZ%2CB0BLP3ZZXT%2CB0BLP2G96N%2CB0BLP3ZMZP%2CB0BLP4J9RR%2CB0BLP1HYDS%2CB0BLP46C86%2CB0BLP3K28S%2CB0BLP3PWR7%2CB0BLP1DD3W%2CB0BLP2PY6N%2CB0BLP1RJZJ%2CB0BLP18HMC%2CB0BLNZVRK2%2CB0BLP1D1XL%2CB0BLP3TL8J%2CB0BLP46D6W%2CB0BLP25C33%2CB0BLP36T7W%2CB0BLP2YFKB%2CB0BLP3ZRSJ%2C&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_40_3477846a_dt_sl14_42", + "label": "Up to 17% off", + "image_url": "https://m.media-amazon.com/images/I/41leg2eW-uL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Samsung Galaxy S23 Series" + }, + { + "name": "DEWALT 20V Max Tools", + "deal_url": "https://www.amazon.com/deal/7dbfed0a?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_41_7dbfed0a_dt_sl14_42", + "label": "Up to 52% off", + "image_url": "https://m.media-amazon.com/images/I/51M1O-LdPBL._AC_UF226,226_FMjpg_.jpg", + "image_description": "DEWALT 20V Max Tools" + }, + { + "name": "23andMe Personal Genetic DNA Tests (Your Choice)", + "deal_url": "https://www.amazon.com/deal/0b35010c?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_42_0b35010c_dt_sl14_42", + "label": "Up to 25% off", + "image_url": "https://m.media-amazon.com/images/I/41hsvQJgEtL._AC_UF226,226_FMjpg_.jpg", + "image_description": "23andMe Personal Genetic DNA Tests (Your Choice)" + }, + { + "name": "Select Furniture from Amazon Brands", + "deal_url": "https://www.amazon.com/deal/58f44e3a?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_43_58f44e3a_dt_sl14_42", + "label": "Up to 35% off", + "image_url": "https://m.media-amazon.com/images/I/41mIg5fCqIL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Select Furniture from Amazon Brands" + }, + { + "name": "Bowflex and Schwinn Fitness Equipment", + "deal_url": "https://www.amazon.com/deal/e4489e60?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_44_e4489e60_dt_sl14_42", + "label": "Up to 40% off", + "image_url": "https://m.media-amazon.com/images/I/41szOTQEGTL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Bowflex and Schwinn Fitness Equipment" + }, + { + "name": "Nautica Men's Apparel", + "deal_url": "https://www.amazon.com/deal/7591a0c2?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_45_7591a0c2_dt_sl14_42", + "label": "Up to 61% off", + "image_url": "https://m.media-amazon.com/images/I/41WzkIRDNqS._AC_UF226,226_FMjpg_.jpg", + "image_description": "Nautica Men's Apparel" + }, + { + "name": "GoSports and GoFloats Products", + "deal_url": "https://www.amazon.com/deal/b7c28478?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_46_b7c28478_dt_sl14_42", + "label": "Up to 29% off", + "image_url": "https://m.media-amazon.com/images/I/41acZQTPRQL._AC_UF226,226_FMjpg_.jpg", + "image_description": "GoSports and GoFloats Products" + }, + { + "name": "JISULIFE Portable Neck Fan, Hands Free Bladeless Fan, 4000 mAh Battery Operated Wearable Personal Fan, Leafless, Rechargeable, Headphone Design, USB Powered Desk Fan,3 Speeds", + "deal_url": "https://www.amazon.com/Portable-Bladeless-Operated-Rechargeable-Headphone/dp/B088ZN47V8?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_47_7d093842_dt_sl14_42", + "label": "Up to 40% off", + "image_url": "https://m.media-amazon.com/images/I/41tecJN0GSS._AC_UF226,226_FMjpg_.jpg", + "image_description": "JISULIFE Portable Neck Fan, Hands Free Bladeless Fan, 4000 mAh Battery Operated Wearable Personal Fan, Leafless, Rechargea..." + }, + { + "name": "Home Products by Amazon Basics", + "deal_url": "https://www.amazon.com/deal/aed99a9e?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_48_aed99a9e_dt_sl14_42", + "label": "Up to 35% off", + "image_url": "https://m.media-amazon.com/images/I/61OyJNbOHtL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Home Products by Amazon Basics" + }, + { + "name": "Boriwat Back Massager with Heat, Massagers for Neck and Back, 3D Kneading Massage Pillow for Back, Neck, Shoulder, Leg Pain Relief, Gifts for Men Women Mom Dad, Stress Relax at Home Office and Car", + "deal_url": "https://www.amazon.com/Massager-Massagers-Shiatsu-Massage-Shoulder/dp/B09JT15JQF?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_49_00f35a35_dt_sl14_42", + "label": "76% off", + "image_url": "https://m.media-amazon.com/images/I/41WO7oi+0uL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Boriwat Back Massager with Heat, Massagers for Neck and Back, 3D Kneading Massage Pillow for Back, Neck, Shoulder, Leg Pai..." + }, + { + "name": "Double Sided Tape (16.5FT) Heavy Duty Mounting Tape,Multipurpose Strong Double Sided Tape,Washable and Reusable Sticky Wall Tape,Clear Removable Double Sided Tape for Household/Office/Car Decor", + "deal_url": "https://www.amazon.com/Mounting-Multipurpose-Washable-Removable-Household/dp/B0B3VP95K2?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_50_84e18d40_dt_sl14_42", + "label": "15% off", + "image_url": "https://m.media-amazon.com/images/I/41JziTF259L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Double Sided Tape (16.5FT) Heavy Duty Mounting Tape,Multipurpose Strong Double Sided Tape,Washable and Reusable Sticky Wal..." + }, + { + "name": "Watches from Fossil, Invicta, Anne Klein and more", + "deal_url": "https://www.amazon.com/deal/770426d5?searchAlias=fashion&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_51_770426d5_dt_sl14_42", + "label": "Up to 53% off", + "image_url": "https://m.media-amazon.com/images/I/41Qe3z8JDhL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Watches from Fossil, Invicta, Anne Klein and more" + }, + { + "name": "Save On Fujitsu Color Scanners", + "deal_url": "https://www.amazon.com/deal/d3d43c77?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_52_d3d43c77_dt_sl14_42", + "label": "Up to 24% off", + "image_url": "https://m.media-amazon.com/images/I/512Do1Dt3bL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Save On Fujitsu Color Scanners" + }, + { + "name": "DEWALT Tools, Batteries and Accessories", + "deal_url": "https://www.amazon.com/b?node=108378314011&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_53_1543c5c1_dt_sl14_42", + "label": "Up to 45% off", + "image_url": "https://m.media-amazon.com/images/I/41-LuVhf1tL._AC_UF226,226_FMjpg_.jpg", + "image_description": "DEWALT Tools, Batteries and Accessories" + }, + { + "name": "Braun IPL Long Lasting Hair Removal and Epilator Root Hair Removal", + "deal_url": "https://www.amazon.com/deal/9d082ec8?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_54_9d082ec8_dt_sl14_42", + "label": "Up to 15% off", + "image_url": "https://m.media-amazon.com/images/I/81REyKNmYnL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Braun IPL Long Lasting Hair Removal and Epilator Root Hair Removal" + }, + { + "name": "Braun Shavers, Stylers, and CCR Refills", + "deal_url": "https://www.amazon.com/deal/4ffb1d05?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_55_4ffb1d05_dt_sl14_42", + "label": "Up to 23% off", + "image_url": "https://m.media-amazon.com/images/I/81WaNhMfeQL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Braun Shavers, Stylers, and CCR Refills" + }, + { + "name": "Physician's CHOICE Probiotics High CFU - Probiotics for Women, Probiotics for Men and Adults, Natural, Shelf Stable Probiotic Supplement with Organic Prebiotic, Acidophilus Probiotic", + "deal_url": "https://www.amazon.com/Prebiotics-Probiotics-Women-D-Mannose-Cranberry/dp/B09Z3TPGRZ?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_56_3dbfdbc6_dt_sl14_42", + "label": "Up to 41% off", + "image_url": "https://m.media-amazon.com/images/I/51nMwe3M0UL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Physician's CHOICE Probiotics High CFU - Probiotics for Women, Probiotics for Men and Adults, Natural, Shelf Stable Probio..." + }, + { + "name": "Sony Home Audio Soundbar, Speakers and Receivers", + "deal_url": "https://www.amazon.com/deal/f5b961f2?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_57_f5b961f2_dt_sl14_42", + "label": "Up to 41% off", + "image_url": "https://m.media-amazon.com/images/I/21TGuuIrJLL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Sony Home Audio Soundbar, Speakers and Receivers" + }, + { + "name": "Bose Soundlink Speakers", + "deal_url": "https://www.amazon.com/deal/2d41ebce?showVariations=true&pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_58_2d41ebce_dt_sl14_42", + "label": "Up to 24% off", + "image_url": "https://m.media-amazon.com/images/I/41osF6p2CaL._AC_UF226,226_FMjpg_.jpg", + "image_description": "Bose Soundlink Speakers" + }, + { + "name": "Alienware Aurora R14 Liquid Cooled Gaming Desktop - AMD Ryzen 9 5900, 32GB 3466MHz RAM, 1TB SDD + 2TB HDD, NVIDIA GeForce RTX 3080 10GB GDDR6X Graphics, VR Ready, USB-C, Windows 11 Home \u2013 Black", + "deal_url": "https://www.amazon.com/Alienware-Aurora-Liquid-Cooled-Desktop/dp/B09NLDMKVR?pf_rd_r=6X36YF472SZVR81ZRJX5&pf_rd_t=Events&pf_rd_i=deals&pf_rd_p=97275c3e-f5b2-4e03-aa59-c8989093fd42&pf_rd_s=slot-14&ref=dlx_deals_gd_dcl_img_59_840dfe25_dt_sl14_42", + "label": "20% off", + "image_url": "https://m.media-amazon.com/images/I/41S2Ov83M1L._AC_UF226,226_FMjpg_.jpg", + "image_description": "Alienware Aurora R14 Liquid Cooled Gaming Desktop - AMD Ryzen 9 5900, 32GB 3466MHz RAM, 1TB SDD + 2TB HDD, NVIDIA GeForce ..." + } + ], + "categories": [ + { + "name": "Amazon Devices & Accessories", + "category_id": "filter-department-16333372011" + }, + { + "name": "Appliances", + "category_id": "filter-department-2619525011" + }, + { + "name": "Arts, Crafts & Sewing", + "category_id": "filter-department-2617941011" + }, + { + "name": "Audible Books & Originals", + "category_id": "filter-department-18145289011" + }, + { + "name": "Automotive", + "category_id": "filter-department-15684181" + }, + { + "name": "Baby Clothing & Shoes", + "category_id": "filter-department-7147444011" + }, + { + "name": "Baby Products", + "category_id": "filter-department-165796011" + }, + { + "name": "Beauty & Personal Care", + "category_id": "filter-department-3760911" + }, + { + "name": "Books", + "category_id": "filter-department-283155" + }, + { + "name": "Boys' Fashion", + "category_id": "filter-department-7147443011" + }, + { + "name": "Camera & Photo", + "category_id": "filter-department-502394" + }, + { + "name": "CDs & Vinyl", + "category_id": "filter-department-5174" + }, + { + "name": "Cell Phones & Accessories", + "category_id": "filter-department-2335752011" + }, + { + "name": "Clothing, Shoes & Jewelry", + "category_id": "filter-department-7141123011" + }, + { + "name": "Computers & Accessories", + "category_id": "filter-department-541966" + }, + { + "name": "Costumes & Accessories", + "category_id": "filter-department-7586165011" + }, + { + "name": "Electronics", + "category_id": "filter-department-172282" + }, + { + "name": "Furniture", + "category_id": "filter-department-1063306" + }, + { + "name": "Gift Cards", + "category_id": "filter-department-2238192011" + }, + { + "name": "Girls' Fashion", + "category_id": "filter-department-7147442011" + }, + { + "name": "Grocery & Gourmet Food", + "category_id": "filter-department-16310101" + }, + { + "name": "Handmade Products", + "category_id": "filter-department-11260432011" + }, + { + "name": "Headphones & Earbuds", + "category_id": "filter-department-172541" + }, + { + "name": "Health & Household", + "category_id": "filter-department-3760901" + }, + { + "name": "Home & Kitchen", + "category_id": "filter-department-1055398" + }, + { + "name": "Home Audio & Theater Products", + "category_id": "filter-department-667846011" + }, + { + "name": "Industrial & Scientific", + "category_id": "filter-department-16310091" + }, + { + "name": "Kindle eBooks", + "category_id": "filter-department-154606011" + }, + { + "name": "Kindle Store", + "category_id": "filter-department-133140011" + }, + { + "name": "Kitchen & Dining", + "category_id": "filter-department-284507" + }, + { + "name": "Luggage & Travel Gear", + "category_id": "filter-department-9479199011" + }, + { + "name": "Men's Clothing", + "category_id": "filter-department-1040658" + }, + { + "name": "Men's Fashion", + "category_id": "filter-department-7147441011" + }, + { + "name": "Men's Grooming", + "category_id": "filter-department-6682399011" + }, + { + "name": "Men's Shoes", + "category_id": "filter-department-679255011" + }, + { + "name": "Men's Watches", + "category_id": "filter-department-6358539011" + }, + { + "name": "Movies & TV", + "category_id": "filter-department-2625373011" + }, + { + "name": "Musical Instruments", + "category_id": "filter-department-11091801" + }, + { + "name": "Office Products", + "category_id": "filter-department-1064954" + }, + { + "name": "Patio, Lawn & Garden", + "category_id": "filter-department-2972638011" + }, + { + "name": "Pet Supplies", + "category_id": "filter-department-2619533011" + }, + { + "name": "Portable Bluetooth Speakers", + "category_id": "filter-department-7073956011" + }, + { + "name": "Power Tools & Hand Tools", + "category_id": "filter-department-328182011" + }, + { + "name": "Prime Video", + "category_id": "filter-department-2858778011" + }, + { + "name": "Software", + "category_id": "filter-department-229534" + }, + { + "name": "Sports & Outdoors", + "category_id": "filter-department-3375251" + }, + { + "name": "Televisions & Video Products", + "category_id": "filter-department-1266092011" + }, + { + "name": "Tools & Home Improvement", + "category_id": "filter-department-228013" + }, + { + "name": "Toys & Games", + "category_id": "filter-department-165793011" + }, + { + "name": "Video Games", + "category_id": "filter-department-468642" + }, + { + "name": "Women's Clothing", + "category_id": "filter-department-1040660" + }, + { + "name": "Women's Fashion", + "category_id": "filter-department-7147440011" + }, + { + "name": "Women's Jewelry", + "category_id": "filter-department-7192394011" + }, + { + "name": "Women's Shoes", + "category_id": "filter-department-679337011" + }, + { + "name": "Women's Watches", + "category_id": "filter-department-6358543011" + } + ] + } + }, + { + "name": "Get Languages", + "url": "https://amazon-web-scraping-api.p.rapidapi.com/languages", + "description": "Return the list of currently supported languages in the API.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": [ + { + "key": "EN", + "language": "English" + }, + { + "key": "ES", + "language": "Spanish" + }, + { + "key": "PT", + "language": "Portuguese" + } + ] + }, + { + "name": "\u200bGet Product Details(All countries)", + "url": "https://amazon-web-scraping-api.p.rapidapi.com/products/B091J3NYVF", + "description": "Get the detail of a specific product from Amazon using the ASIN code.", + "method": "GET", + "required_parameters": [ + { + "name": "asin", + "type": "string", + "description": "", + "default": "B091J3NYVF" + } + ], + "optional_parameters": [ + { + "name": "languageCode", + "type": "STRING", + "description": "", + "default": "EN" + }, + { + "name": "countryCode", + "type": "STRING", + "description": "", + "default": "US" + } + ], + "code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/B091J3NYVF\"\nquerystring = {\"languageCode\": \"EN\", \"countryCode\": \"US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/{asin}\"\nquerystring = {\"languageCode\": \"EN\", \"countryCode\": \"US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "asin_id": "B091J3NYVF", + "name": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "description": "For gamers, creators, and all-around PC users who want enthusiast-class performance without the need for a discrete graphics card \u2013 look no further than Ryzen\u2122 5000 G-Series Desktop Processors \u2013 The Ultimate Desktop Processor with Graphics.", + "price": { + "discounted": true, + "savingPorcentage": 53, + "priceSymbol": "$", + "price": 167.91, + "priceFraction": 91, + "before": 359.0 + }, + "features": [ + "Play some of the most popular games at 1080p with the fastest processor graphics in the world, no graphics card required", + "8 Cores and 16 processing threads, bundled with the AMD Wraith Stealth cooler", + "4.6 GHz Max Boost, unlocked for overclocking, 20 MB cache, DDR4-3200 support", + "For the advanced Socket AM4 platform. Maximum Operating Temperature (Tjmax)-95\u00b0C" + ], + "productInformation": [ + { + "label": "Processor", + "value": "\u200e4.6 GHz amd_ryzen_7_5700g" + }, + { + "label": "Brand", + "value": "\u200eAMD" + }, + { + "label": "Series", + "value": "\u200eAMD Ryzen 7 5700G with Wraith Stealth Cooler" + }, + { + "label": "Item model number", + "value": "\u200eAMD Ryzen 7 5700G" + }, + { + "label": "Item Weight", + "value": "\u200e14.5 ounces" + }, + { + "label": "Product Dimensions", + "value": "\u200e1.57 x 1.57 x 0.24 inches" + }, + { + "label": "Item Dimensions LxWxH", + "value": "\u200e1.57 x 1.57 x 0.24 inches" + }, + { + "label": "Color", + "value": "\u200eModel" + }, + { + "label": "Processor Brand", + "value": "\u200eAMD" + }, + { + "label": "Number of Processors", + "value": "\u200e8" + }, + { + "label": "Computer Memory Type", + "value": "\u200eDDR4 SDRAM" + }, + { + "label": "Voltage", + "value": "\u200e1 Volts" + }, + { + "label": "Batteries", + "value": "\u200e1 Lithium Ion batteries required." + }, + { + "label": "Manufacturer", + "value": "\u200eAMD" + }, + { + "label": "Language", + "value": "\u200eEnglish, English, English, English, English" + }, + { + "label": "ASIN", + "value": "\u200eB091J3NYVF" + }, + { + "label": "Country of Origin", + "value": "\u200eMalaysia" + }, + { + "label": "Is Discontinued By Manufacturer", + "value": "\u200eNo" + }, + { + "label": "Date First Available", + "value": "\u200eAugust 5, 2021" + }, + { + "label": "Customer Reviews", + "value": "4.8 \n4.8 out of 5 stars\n 4,886 ratings\n4.8 out of 5 stars" + }, + { + "label": "Best Sellers Rank", + "value": "#6 in Computer CPU Processors" + } + ], + "mainImage_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "mainImage_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "medias": { + "data": { + "images": [ + { + "asin": "B0BTTCZ4VF", + "title": "Processor + ROG Strix B550-F Motherboard", + "imageCount": 1, + "images": [ + { + "large": "https://m.media-amazon.com/images/I/41i6MPMFfTL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41i6MPMFfTL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SL1001_.jpg", + "variant": "MAIN", + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SX679_.jpg": [ + { + "": "679" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SX425_.jpg": [ + { + "": "425" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SX466_.jpg": [ + { + "": "466" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SY355_.jpg": [ + { + "": "355" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SX522_.jpg": [ + { + "": "522" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SX569_.jpg": [ + { + "": "569" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/51EKf60nyKL._AC_SY450_.jpg": [ + { + "": "450" + }, + { + "": "450" + } + ] + } + ] + }, + { + "asin": "B0BTTC54BX", + "title": "Processor + AM4 TUF X570-Plus Motherboard", + "imageCount": 1, + "images": [ + { + "large": "https://m.media-amazon.com/images/I/41viMDq1TKL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41viMDq1TKL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SL1001_.jpg", + "variant": "MAIN", + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SX522_.jpg": [ + { + "": "522" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SX569_.jpg": [ + { + "": "569" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SX425_.jpg": [ + { + "": "425" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SX466_.jpg": [ + { + "": "466" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SY450_.jpg": [ + { + "": "450" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SX679_.jpg": [ + { + "": "679" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/51TQNgOrPwL._AC_SY355_.jpg": [ + { + "": "355" + }, + { + "": "355" + } + ] + } + ] + }, + { + "asin": "B091J3NYVF", + "title": "Processor Only", + "imageCount": 6, + "images": [ + { + "large": "https://m.media-amazon.com/images/I/41lni-oQKpL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41lni-oQKpL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SL1000_.jpg", + "variant": "MAIN", + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SX466_.jpg": [ + { + "": "466" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SX569_.jpg": [ + { + "": "569" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SY355_.jpg": [ + { + "": "355" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SY450_.jpg": [ + { + "": "450" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SX425_.jpg": [ + { + "": "425" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SX522_.jpg": [ + { + "": "522" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/51D3DrDmwkL._AC_SX679_.jpg": [ + { + "": "679" + }, + { + "": "679" + } + ] + }, + { + "large": "https://m.media-amazon.com/images/I/21RRQfzWrRL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/21RRQfzWrRL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SL1000_.jpg", + "variant": "PT01", + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX466_.jpg": [ + { + "": "262" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX450_.jpg": [ + { + "": "253" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX355_.jpg": [ + { + "": "200" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX679_.jpg": [ + { + "": "382" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX522_.jpg": [ + { + "": "293" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX425_.jpg": [ + { + "": "239" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/31zIEo1s1wL._AC_SX569_.jpg": [ + { + "": "320" + }, + { + "": "569" + } + ] + }, + { + "large": "https://m.media-amazon.com/images/I/41iFl-CgRdL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41iFl-CgRdL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SL1000_.jpg", + "variant": "PT03", + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX522_.jpg": [ + { + "": "293" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX450_.jpg": [ + { + "": "253" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX569_.jpg": [ + { + "": "320" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX355_.jpg": [ + { + "": "200" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX679_.jpg": [ + { + "": "382" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX466_.jpg": [ + { + "": "262" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/611EGHkdmfL._AC_SX425_.jpg": [ + { + "": "239" + }, + { + "": "425" + } + ] + }, + { + "large": "https://m.media-amazon.com/images/I/41sYwJ8ReXL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41sYwJ8ReXL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SL1500_.jpg", + "variant": "PT04", + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX679_.jpg": [ + { + "": "525" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX450_.jpg": [ + { + "": "348" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX466_.jpg": [ + { + "": "360" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX425_.jpg": [ + { + "": "328" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX569_.jpg": [ + { + "": "440" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX355_.jpg": [ + { + "": "274" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/71aqa3+UdoL._AC_SX522_.jpg": [ + { + "": "403" + }, + { + "": "522" + } + ] + }, + { + "large": "https://m.media-amazon.com/images/I/51TgoxioW9L._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/51TgoxioW9L._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SL1500_.jpg", + "variant": "PT99", + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX679_.jpg": [ + { + "": "661" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX466_.jpg": [ + { + "": "454" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX522_.jpg": [ + { + "": "508" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX450_.jpg": [ + { + "": "438" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX355_.jpg": [ + { + "": "346" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX569_.jpg": [ + { + "": "554" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/81+-dQQDuyL._AC_SX425_.jpg": [ + { + "": "414" + }, + { + "": "425" + } + ] + }, + { + "large": "https://m.media-amazon.com/images/I/31OxslxbmWL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/31OxslxbmWL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SL1384_.jpg", + "variant": "RGHT", + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX355_.jpg": [ + { + "": "305" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX569_.jpg": [ + { + "": "488" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX466_.jpg": [ + { + "": "400" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX425_.jpg": [ + { + "": "365" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX679_.jpg": [ + { + "": "583" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX450_.jpg": [ + { + "": "386" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/51rNzX5zysL._AC_SX522_.jpg": [ + { + "": "448" + }, + { + "": "522" + } + ] + } + ] + }, + { + "asin": "B0BTTCTJJR", + "title": "Processor + AM4 X570S Zen 3 Motherboard", + "imageCount": 1, + "images": [ + { + "large": "https://m.media-amazon.com/images/I/41cSBsDqMBL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41cSBsDqMBL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SL1001_.jpg", + "variant": "MAIN", + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SY450_.jpg": [ + { + "": "450" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SX679_.jpg": [ + { + "": "679" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SX522_.jpg": [ + { + "": "522" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SX466_.jpg": [ + { + "": "466" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SX425_.jpg": [ + { + "": "425" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SY355_.jpg": [ + { + "": "355" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/5190yAt5GXL._AC_SX569_.jpg": [ + { + "": "569" + }, + { + "": "569" + } + ] + } + ] + }, + { + "asin": "B0BTT99HXX", + "title": "Processor + Hero X570 ATX Motherboard", + "imageCount": 1, + "images": [ + { + "large": "https://m.media-amazon.com/images/I/41Fxk+8l6qL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41Fxk+8l6qL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SL1001_.jpg", + "variant": "MAIN", + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SY450_.jpg": [ + { + "": "450" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SX569_.jpg": [ + { + "": "569" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SY355_.jpg": [ + { + "": "355" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SX425_.jpg": [ + { + "": "425" + }, + { + "": "425" + } + ], + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SX522_.jpg": [ + { + "": "522" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SX466_.jpg": [ + { + "": "466" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/51KurUYKUvL._AC_SX679_.jpg": [ + { + "": "679" + }, + { + "": "679" + } + ] + } + ] + }, + { + "asin": "B0BTTGCH9T", + "title": "Processor + Prime B550-PLUS Motherboard", + "imageCount": 1, + "images": [ + { + "large": "https://m.media-amazon.com/images/I/41aa1nXTDgL._AC_.jpg", + "thumb": "https://m.media-amazon.com/images/I/41aa1nXTDgL._AC_US40_.jpg", + "hiRes": "https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SL1001_.jpg", + "variant": "MAIN", + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SX466_.jpg": [ + { + "": "466" + }, + { + "": "466" + } + ], + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SY450_.jpg": [ + { + "": "450" + }, + { + "": "450" + } + ], + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SY355_.jpg": [ + { + "": "355" + }, + { + "": "355" + } + ], + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SX522_.jpg": [ + { + "": "522" + }, + { + "": "522" + } + ], + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SX679_.jpg": [ + { + "": "679" + }, + { + "": "679" + } + ], + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SX569_.jpg": [ + { + "": "569" + }, + { + "": "569" + } + ], + "main_https://m.media-amazon.com/images/I/51OFlimnrhL._AC_SX425_.jpg": [ + { + "": "425" + }, + { + "": "425" + } + ] + } + ] + } + ], + "videos": [ + { + "groupType": "IB_G1", + "offset": "0", + "thumb": "https://m.media-amazon.com/images/I/51SiA489SpL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg", + "durationSeconds": 39, + "marketPlaceID": "ATVPDKIKX0DER", + "isVideo": true, + "isHeroVideo": false, + "title": "AMD Ryzen 5000 G-Series process, Built-in Radeon Graphics", + "languageCode": "en_US", + "holderId": "holder0c478717df8243058db037c0fea12f3a", + "url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/b7fc0d15-466b-4183-8720-3eec07f13d7c/default.jobtemplate.mp4.480.mp4", + "videoHeight": "480", + "videoWidth": "854", + "durationTimestamp": "00:39", + "slateUrl": "https://m.media-amazon.com/images/I/51SiA489SpL.SX522_.jpg", + "minimumAge": 0, + "variant": "MAIN", + "slateHash_extension": "jpg", + "slateHash_physicalID": null, + "slateHash_width": "640", + "slateHash_height": "360", + "mediaObjectId": "0c478717df8243058db037c0fea12f3a", + "thumbUrl": "https://m.media-amazon.com/images/I/51SiA489SpL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg" + }, + { + "groupType": "IB_G1", + "offset": "0", + "thumb": "https://m.media-amazon.com/images/I/51Cr3szVfuL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg", + "durationSeconds": 268, + "marketPlaceID": "ATVPDKIKX0DER", + "isVideo": true, + "isHeroVideo": false, + "title": "How to Install AMD Ryzen Processors", + "languageCode": "en_US", + "holderId": "holder00d98d9de9284c879b849d320705e146", + "url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/a0c2407d-f248-4430-b109-295f35bd60b3/default.jobtemplate.mp4.480.mp4", + "videoHeight": "480", + "videoWidth": "854", + "durationTimestamp": "04:28", + "slateUrl": "https://m.media-amazon.com/images/I/51Cr3szVfuL.SX522_.jpg", + "minimumAge": 0, + "variant": "MAIN", + "slateHash_extension": "jpg", + "slateHash_physicalID": null, + "slateHash_width": "640", + "slateHash_height": "360", + "mediaObjectId": "00d98d9de9284c879b849d320705e146", + "thumbUrl": "https://m.media-amazon.com/images/I/51Cr3szVfuL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg" + }, + { + "groupType": "IB_G1", + "offset": "0", + "thumb": "https://m.media-amazon.com/images/I/51fUHeDarFL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg", + "durationSeconds": 115, + "marketPlaceID": "ATVPDKIKX0DER", + "isVideo": true, + "isHeroVideo": false, + "title": "How to Update Motherboard BIOS for AMD Ryzen Processors", + "languageCode": "en_US", + "holderId": "holder01231a9e702d4928afe92f2e2fbb0680", + "url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/227f7ad6-a4cb-48aa-a9d2-6e3e4a6736df/default.jobtemplate.mp4.480.mp4", + "videoHeight": "480", + "videoWidth": "854", + "durationTimestamp": "01:55", + "slateUrl": "https://m.media-amazon.com/images/I/51fUHeDarFL.SX522_.jpg", + "minimumAge": 0, + "variant": "MAIN", + "slateHash_extension": "jpg", + "slateHash_physicalID": null, + "slateHash_width": "640", + "slateHash_height": "360", + "mediaObjectId": "01231a9e702d4928afe92f2e2fbb0680", + "thumbUrl": "https://m.media-amazon.com/images/I/51fUHeDarFL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg" + }, + { + "groupType": "IB_G1", + "offset": "0", + "thumb": "https://m.media-amazon.com/images/I/419GidQAa6L.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg", + "durationSeconds": 30, + "marketPlaceID": "ATVPDKIKX0DER", + "isVideo": true, + "isHeroVideo": false, + "title": "AMD Ryzen 7 5700G 8-Core", + "languageCode": "en_US", + "holderId": "holder0a71e642084f43e0a7322383bbc973e9", + "url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/c9775529-88b6-42b9-abb6-7f676a16ab81/default.jobtemplate.mp4.480.mp4", + "videoHeight": "480", + "videoWidth": "854", + "durationTimestamp": "00:30", + "slateUrl": "https://m.media-amazon.com/images/I/419GidQAa6L.SX522_.jpg", + "minimumAge": 0, + "variant": "MAIN", + "slateHash_extension": "jpg", + "slateHash_physicalID": null, + "slateHash_width": "640", + "slateHash_height": "360", + "mediaObjectId": "0a71e642084f43e0a7322383bbc973e9", + "thumbUrl": "https://m.media-amazon.com/images/I/419GidQAa6L.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg" + }, + { + "groupType": "IB_G2", + "offset": "0", + "thumb": "https://m.media-amazon.com/images/I/71z1kJqMh2L.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg", + "durationSeconds": 153, + "marketPlaceID": "ATVPDKIKX0DER", + "isVideo": true, + "isHeroVideo": false, + "title": "AMD Ryzen 7 5700G Unboxing & Specs", + "languageCode": "en_US", + "holderId": "holder03b2bcc3ccaf4f8c8a62f259d0d52d27", + "url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/4fa51574-43a7-48e0-aa47-1d8feb660147/default.jobtemplate.mp4.480.mp4", + "videoHeight": "480", + "videoWidth": "854", + "durationTimestamp": "02:33", + "slateUrl": "https://m.media-amazon.com/images/I/71z1kJqMh2L.SX522_.jpg", + "minimumAge": 0, + "variant": "MAIN", + "slateHash_extension": "jpg", + "slateHash_physicalID": null, + "slateHash_width": "1920", + "slateHash_height": "1080", + "mediaObjectId": "03b2bcc3ccaf4f8c8a62f259d0d52d27", + "thumbUrl": "https://m.media-amazon.com/images/I/71z1kJqMh2L.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg" + }, + { + "groupType": "IB_G2", + "offset": "0", + "thumb": "https://m.media-amazon.com/images/I/A1LRORg0coL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg", + "durationSeconds": 175, + "marketPlaceID": "ATVPDKIKX0DER", + "isVideo": true, + "isHeroVideo": false, + "title": "AMD Ryzen 7 5700G Review (2023)", + "languageCode": "en_US", + "holderId": "holder08c4ffb073a544ea874822d90a06866d", + "url": "https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/4c6ab9f5-ed3c-48ac-9179-e9b5c505ee7a/default.jobtemplate.mp4.480.mp4", + "videoHeight": "480", + "videoWidth": "854", + "durationTimestamp": "02:55", + "slateUrl": "https://m.media-amazon.com/images/I/A1LRORg0coL.SX522_.jpg", + "minimumAge": 0, + "variant": "MAIN", + "slateHash_extension": "jpg", + "slateHash_physicalID": null, + "slateHash_width": "1920", + "slateHash_height": "1080", + "mediaObjectId": "08c4ffb073a544ea874822d90a06866d", + "thumbUrl": "https://m.media-amazon.com/images/I/A1LRORg0coL.SS40_BG85,85,85_BR-120_PKdp-play-icon-overlay__.jpg" + } + ] + } + }, + "variants": [ + { + "variationType": "Style", + "options": [ + { + "title": "Processor Only", + "price": 377.9, + "image_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "image_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "asin": "B0BTTC54BX", + "url": "https://www.amazon.com/dp/B0BTTC54BX" + }, + { + "title": "Processor Only", + "price": 562.91, + "image_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "image_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "asin": "B0BTTCTJJR", + "url": "https://www.amazon.com/dp/B0BTTCTJJR" + }, + { + "title": "Processor Only", + "price": 538.9, + "image_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "image_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "asin": "B0BTT99HXX", + "url": "https://www.amazon.com/dp/B0BTT99HXX" + }, + { + "title": "Processor Only", + "price": 297.9, + "image_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "image_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "asin": "B0BTTGCH9T", + "url": "https://www.amazon.com/dp/B0BTTGCH9T" + }, + { + "title": "Processor Only", + "price": 356.51, + "image_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "image_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "asin": "B0BTTCZ4VF", + "url": "https://www.amazon.com/dp/B0BTTCZ4VF" + }, + { + "title": "Processor Only", + "price": 167.91, + "image_url": "https://m.media-amazon.com/images/I/51D3DrDmwkL.__AC_SX300_SY300_QL70_FMwebp_.jpg", + "image_description": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "asin": "B091J3NYVF", + "url": "https://www.amazon.com/dp/B091J3NYVF" + } + ] + } + ], + "inStock": true, + "answeredQuestions": 259, + "amazonPrime": false, + "freeReturns": true, + "amazonChoice": true, + "bestSeller": true, + "reviewStatistics": { + "averageRating": 4.8, + "totalReviews": 4886, + "distrubution": [ + { + "start": 5, + "porcentage": 88 + }, + { + "start": 4, + "porcentage": 7 + }, + { + "start": 3, + "porcentage": 2 + }, + { + "start": 1, + "porcentage": 3 + } + ] + }, + "categories": [ + { + "url": "https://www.amazon.com/dp//electronics-store/b/ref=dp_bc_aui_C_1/145-7307232-9535733?ie=UTF8&node=172282", + "text": "Electronics" + }, + { + "url": "https://www.amazon.com/dp//computer-pc-hardware-accessories-add-ons/b/ref=dp_bc_aui_C_2/145-7307232-9535733?ie=UTF8&node=541966", + "text": "Computers & Accessories" + }, + { + "url": "https://www.amazon.com/dp//PC-Parts-Components/b/ref=dp_bc_aui_C_3/145-7307232-9535733?ie=UTF8&node=193870011", + "text": "Computer Components" + }, + { + "url": "https://www.amazon.com/dp//b/ref=dp_bc_aui_C_4/145-7307232-9535733?ie=UTF8&node=17923671011", + "text": "Internal Components" + }, + { + "url": "https://www.amazon.com/dp//CPU-Processors-Memory-Computer-Add-Ons/b/ref=dp_bc_aui_C_5/145-7307232-9535733?ie=UTF8&node=229189", + "text": "CPU Processors" + } + ], + "totalImages": 0, + "additionalInformation": [] + } + }, + { + "name": "\u200bGet Product Reviews(All countries)", + "url": "https://amazon-web-scraping-api.p.rapidapi.com/products/B091J3NYVF/reviews", + "description": "Get the reviews for specific product using the ASIN code.", + "method": "GET", + "required_parameters": [ + { + "name": "asin", + "type": "string", + "description": "", + "default": "B091J3NYVF" + } + ], + "optional_parameters": [ + { + "name": "languageCode", + "type": "STRING", + "description": "", + "default": "EN" + }, + { + "name": "countryCode", + "type": "STRING", + "description": "", + "default": "US" + } + ], + "code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/B091J3NYVF/reviews\"\nquerystring = {\"languageCode\": \"EN\", \"countryCode\": \"US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://amazon-web-scraping-api.p.rapidapi.com/products/{asin}/reviews\"\nquerystring = {\"languageCode\": \"EN\", \"countryCode\": \"US\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"amazon-web-scraping-api.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "name": "AMD Ryzen 7 5700G 8-Core, 16-Thread Unlocked Desktop Processor with Radeon Graphics", + "reviewStatistics": { + "averageRating": 4.8, + "totalReviews": 4886, + "distrubution": [ + { + "start": 5, + "porcentage": 88 + }, + { + "start": 4, + "porcentage": 7 + }, + { + "start": 3, + "porcentage": 2 + }, + { + "start": 1, + "porcentage": 3 + } + ] + }, + "reviews": [ + { + "profileName": "Cesar Granda Ruiz Maximiliano", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Es muy bueno por su precio", + "verifiedPurchase": true, + "date": "2023-04-19T00:00:00", + "reviewData": "Reviewed in the United States on April 19, 2023", + "rating": 5.0, + "reviewContent": "El Ryzen 7 5700G es un procesador impresionante de AMD que ofrece un rendimiento excepcional tanto para juegos como para aplicaciones de productividad. Con ocho n\u00facleos y diecis\u00e9is hilos, este procesador es capaz de manejar f\u00e1cilmente tareas exigentes y multitarea sin problemas.\n\nAdem\u00e1s, cuenta con la nueva arquitectura Zen 3 de AMD, lo que significa que ofrece una mayor eficiencia energ\u00e9tica y un rendimiento a\u00fan mayor en comparaci\u00f3n con sus predecesores. Con una velocidad de reloj base de 3,8 GHz y una velocidad de reloj m\u00e1xima de 4,6 GHz, este procesador es capaz de proporcionar un rendimiento de primer nivel en todo momento.\n\nOtro gran aspecto del Ryzen 7 5700G es su capacidad de gr\u00e1ficos integrados. El procesador cuenta con la potente GPU AMD Radeon Vega 8, que es capaz de manejar juegos modernos y aplicaciones de edici\u00f3n de video con facilidad. Esto hace que este procesador sea una excelente opci\u00f3n para aquellos que desean construir un sistema de juego de alta gama sin tener que gastar dinero extra en una tarjeta gr\u00e1fica separada.\n\nEn general, el Ryzen 7 5700G es un procesador incre\u00edble que ofrece un rendimiento excepcional y una excelente relaci\u00f3n calidad-precio. Si est\u00e1 buscando una actualizaci\u00f3n de procesador para su sistema de juego o productividad, definitivamente deber\u00eda considerar el Ryzen 7 5700G.", + "userfulCount": 9, + "id": "R1VDYGNGJ5AC9Z" + }, + { + "profileName": "justenuff", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Sure Love the Ryzen 5700G", + "verifiedPurchase": true, + "date": "2023-04-02T00:00:00", + "reviewData": "Reviewed in the United States on April 2, 2023", + "rating": 5.0, + "reviewContent": "Yep, didn't think it would run so smooth. Still testing it but I only played Scholar of the First Sin which I know is a tad old -- cpu has been running with normal webbing and loading etc with 34C temp all the time. With the SOTFS, it ran 37c. I am using the heat sink that came with it -- Stealth -- and I am using a Fractual Design G-mini case. I use four fans in it (used the two fans supplied which are quiet) and a Cougar fan which I had from another case for the back. Had all screws I need plus the standoffs. This case is but it is a wider case to accommodate many fans. The Noctura fan 1500: https://www.amazon.com/dp/B00KF7O58G/ref=cfb_at_prodpg which I got on Amazon is at the top. I have this cpu (Ryzen 5700G) with 32 gig Corsair LPX Vengeance 3200, Gigabyte B550M DS3H micro board and a EVGA 750 GA modular power supply. The case has several areas to run your cords through to the back. Many ways. Using Crucial SSD (acquired from Amazon too). Oh and I don't overclock and with all the fans in the case the cpu runs at 34c in a 74F room. Will buy again. Still testing.", + "userfulCount": 3, + "id": "RCDSLLECG2RGM" + }, + { + "profileName": "Stenn", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Great Ryzen upgrade, made system Win11 compatible and ready !", + "verifiedPurchase": true, + "date": "2023-03-24T00:00:00", + "reviewData": "Reviewed in the United States on March 24, 2023", + "rating": 5.0, + "reviewContent": "I built a mid-grade Ryzen system about 4 years ago using an MSI B350 Tomahawk Artic board and Ryzen 5 1600 and haven't looked back since then, machine doing what I needed and purring like a kitten all this time....But when 10 loaded on top of my Win7 Pro automatically, and now Win11 is coming out, I started paying attention again....so ran Microsoft's \"PC Health\" and was very surprised my newst machine was NOT ready or supported by Win11....no TPM 2.0...AND....my Ryzen 5 1600 was NOT SUPPORTED for some reason (though the Ryzen 1600X IS !?)....\n\n...so researched/cross-referenced MSI support and Microsoft list of Win11-supported AMD CPU's and settled on this Ryzen 7 5700G as a good compromise between mid-level price and significant performance improvement over my Ryzen 5 1600....didn't really need the \"G\" (Graphics) version since I was happy with my discreet nVidia video card, but since board had video connectors for this CPU, decided \"Why Not\"....\n\nMy one big worry was installing this chip into my existing Win10 system...would Windows10 boot, or see the new CPU and choke and spit BSOD due to some mystery issue like \"not the same CPU S/N\" and require a re-install ?\n\nWell...I was relieved to watch, after a nerve-wracking 15 to 20 seconds of \"power-on,\" the BIOS DID successfully post and up came my Win10 installation....running like that purring kitten again....AND, after updating Arctic BIOS and activating TPM 2.0, MS \"PC Health\" now reports \"Congratulations, your system is ready for Windows 11 !\" \ud83e\udd73\ud83d\ude42", + "userfulCount": 8, + "id": "R2GL2KPN5EUVEC" + }, + { + "profileName": "Marcos Josue Ortega Morales", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Pairing with a good RAM performs as a GT 1030", + "verifiedPurchase": true, + "date": "2023-05-20T00:00:00", + "reviewData": "Reviewed in the United States on May 20, 2023", + "rating": 5.0, + "reviewContent": "After months of testing for gaming, I'm running this 5700G with a 4000 CL16 16GBx2 kit; the performance is equals or slightly higher to a GT 1030 2GB system that I have. Performs slightly better than the GT 1030 when 4GB/8GB of VRAM is assigned at BIOS (instead of \"auto\"). My new built is a mini-pc, and this APU is the best in the market for integrated graphics at my purchase/review date. Happy with the results.", + "userfulCount": 3, + "id": "R1QEO9DCBAMTE0" + }, + { + "profileName": "Amazon Customer", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n A bit of alright..", + "verifiedPurchase": true, + "date": "2023-04-17T00:00:00", + "reviewData": "Reviewed in the United States on April 17, 2023", + "rating": 5.0, + "reviewContent": "I've had the ambition to DIY a pc for soooo long but life got in the way. Ffwd 20 years and here we are. Bought Nov of 22 with the goal of 1080p and couldn't be happier. No hiccups at all for my \"budget\" rig. Used graphics cards (accidentally bought 2, a nvidia 1060 and a Amd 580, running 1060 currently) and no issues at ALL running cyberpunk at 1080p. Planned really for only WOW and Bethesda games but having built this I am ready for more. I tell people I \"PLANNED\" graphics redundancy with a cpu that has baked in gpu plus 2 used gpus but thats cause I didn't remember what I bought lol. My next adventure is to upgrade gpu to 6800xt to try and run starfield at 4k but I fully expect (after a bit of research) that this CPU with the upgraded gpu will...do.", + "userfulCount": 4, + "id": "R2OU81G6334CQB" + }, + { + "profileName": "CarolinaUS123", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Excellent purchase !", + "verifiedPurchase": true, + "date": "2023-06-07T00:00:00", + "reviewData": "Reviewed in the United States on June 7, 2023", + "rating": 5.0, + "reviewContent": "Works perfectly. All you need for E-sports and Full HD video editing. For hardcore video gaming or long 4K video editing just add a GPU.", + "userfulCount": 0, + "id": "R3RPFD8LYLO6E0" + }, + { + "profileName": "Walter G", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Excelente procesador muy robusto", + "verifiedPurchase": true, + "date": "2023-05-30T00:00:00", + "reviewData": "Reviewed in the United States on May 30, 2023", + "rating": 5.0, + "reviewContent": "Excelente procesador muy robusto con rendimiento excelente tanto para videojuegos exigentes de ultima generaci\u00f3n, como para labores productivas.\n\nSe tenga o no una GPU dedicada es una excelente opci\u00f3n costo/beneficio.", + "userfulCount": 0, + "id": "R21UKTLFKMZASJ" + }, + { + "profileName": "Jessi L.", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n What a powerhouse for an amazing price", + "verifiedPurchase": true, + "date": "2023-05-08T00:00:00", + "reviewData": "Reviewed in the United States on May 8, 2023", + "rating": 5.0, + "reviewContent": "The Ryzen 5700G is a powerhouse processor with eight cores and sixteen threads. Its integrated Radeon graphics deliver top-notch visuals and support multiple displays. The processor runs cool and quiet, even under heavy loads, thanks to its energy efficiency. The Ryzen 5700G is a flexible option compatible with a wide range of motherboards. It's an excellent choice for gamers and those who need a high-performance processor for demanding productivity tasks with the added bonus of integrated graphics. Overall, highly recommended!", + "userfulCount": 0, + "id": "R3MD00NVQI9ZRW" + }, + { + "profileName": "Luis Miguel", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n Excelente", + "verifiedPurchase": true, + "date": "2023-06-03T00:00:00", + "reviewData": "Reviewed in the United States on June 3, 2023", + "rating": 5.0, + "reviewContent": "La tarjeta integrada de este APU es genial, mueve los juegos muy bien, la Spiderman remasterizada me la.mueve a 40-50 FPS.", + "userfulCount": 0, + "id": "R2QH7YIWOIDCYY" + }, + { + "profileName": "theking8713", + "variant": { + "asin": "B091J3NYVF" + }, + "title": "5.0 out of 5 stars\n By far exeded my expetations", + "verifiedPurchase": true, + "date": "2021-12-29T00:00:00", + "reviewData": "Reviewed in the United States on December 29, 2021", + "rating": 5.0, + "reviewContent": "This is a fantastic APU...I was coming from an 2400G that core was aperently ment for middle of the road performance with a side of it can do light gaming/rendering this one is a high end 8core/16thread with a side of it can also game/render lol...in all honesty I really didn't need anything this crazy I was just looking to put tother another ultra small form factor system and I wanted to try out the new inwin b1 case with it's improved(over the inwin chopin non pro{full disclosure I didn't know the chopin pro with the 200watt PSU existed cuz I probably wound have purchesed that instead of the b1 becase the brushed aluminum absolutely premium build and way better cooling with the all mesh side panel...ok I think I just talked myself into getting one of those aswell lol I'll turn the b1 into a server or something lol})power supply and odd not quite retro but not quite space age theme and this core ended up being listed around Thanksgiving for the MSRP of the 6core varient so that's why I got this and now my big rig with the 3700x is kinda put to shame lol...it is paired with a founders rtx 2070super tho so in that regard this Apu is not showing off but I have it paired with 32gb of ddr4 at 4000mhz cl18(cl16 easly achievable if I drop down to 3933 which I have done cuz Iv notice real performance difrences between cl16 and cl18 more so than any deminished performance from dropping 66mhz) and a 1tb nvme pcie4.0 SSD and 2 fairly fast 2tb SSHDs in the back of the b1 and also a secound m.2 measly 500gb nvme on a risser in the unused pcie16x slot and all together this system has unintentionally replaiced my main rig as my daily driver ..it's just so fast and if I'm not trying to game at 4k I don't even consider turning on the other system, considering I spend most of my time on Linux doing CPU intensive tasks and consuming multimedia not gaming this core is completely meeting all of my needs and arguably significantly exceeding them ...all the being sead I would not have payed for this core at much higher of a price, I know iv seen it upwards of $400...ya no that a non apu 12core/24thread price point but if you can catch this one on a sale for $300 or less it is an absolute beast with the added bonus of the best integrated graphics the modern world has seen to date\ud83e\udd2a\n\n...later edit...well and addendum realy\nOk so iv also purchased the 5600G and well, they feel the same, it is comparably fast vs the 8core at \"normal\" user tasks lol, I realy only see the 8 core stretch its legs when compiling large sets of source code and that's only if I deliberately tell it to use 16threads, ya honestly the 5600G might be the better of the 2 for its target userbase... BUT it needs to come in at a noticeable price difrence, unlike in my situation were they were both unbelievably cheap becase I caught them both will at a low point in the market...\nBut ya I just wanted to add that little anecdote with my experience with both of these core, now being fair to the 8 core now I have the 6 core paired with only 16gb of ram in a asrock deskmini x300m, ya these to with there detremetanly difrent total price points don't feel difrent in any way with normal load, there both stupid fast giving you a respectable instruction per clock that I'll make \"normal\" people work and entertainment just butter smooth...what more needs to be sead realy lol...", + "userfulCount": 31, + "id": "R1DY03M0KJ8A4M" + } + ], + "viewPoints": { + "positiveReview": { + "profileName": "Cesar Granda Ruiz Maximiliano", + "date": "2023-04-19T00:00:00", + "reviewData": "Reviewed in the United States on April 19, 2023", + "rating": 5.0, + "reviewContent": "El Ryzen 7 5700G es un procesador impresionante de AMD que ofrece un rendimiento excepcional tanto para juegos como para aplicaciones de productividad. Con ocho n\u00facleos y diecis\u00e9is hilos, este procesador es capaz de manejar f\u00e1cilmente tareas exigentes y multitarea sin problemas.\n\nAdem\u00e1s, cuenta con la nueva arquitectura Zen 3 de AMD, lo que significa que ofrece una mayor eficiencia energ\u00e9tica y un rendimiento a\u00fan mayor en comparaci\u00f3n con sus predecesores. Con una velocidad de reloj base de 3,8 GHz y una velocidad de reloj m\u00e1xima de 4,6 GHz, este procesador es capaz de proporcionar un rendimiento de primer nivel en todo momento.\n\nOtro gran aspecto del Ryzen 7 5700G es su capacidad de gr\u00e1ficos integrados. El procesador cuenta con la potente GPU AMD Radeon Vega 8, que es capaz de manejar juegos modernos y aplicaciones de edici\u00f3n de video con facilidad. Esto hace que este procesador sea una excelente opci\u00f3n para aquellos que desean construir un sistema de juego de alta gama sin tener que gastar dinero extra en una tarjeta gr\u00e1fica separada.\n\nEn general, el Ryzen 7 5700G es un procesador incre\u00edble que ofrece un rendimiento excepcional y una excelente relaci\u00f3n calidad-precio. Si est\u00e1 buscando una actualizaci\u00f3n de procesador para su sistema de juego o productividad, definitivamente deber\u00eda considerar el Ryzen 7 5700G.", + "userfulCount": 0 + }, + "criticalReview": { + "profileName": "Keith", + "date": "2023-04-08T00:00:00", + "reviewData": "Reviewed in the United States on April 8, 2023", + "rating": 3.0, + "reviewContent": "I purchased this processor to speed up my computer and upgrade from a Ryzen 3 from a budget build. The processor seems fine, but when I run a burnin tester there are thermal issues with the processor. Also, the machine randomly froze on the desktop after being \"woken up\" from sleep state. I think it may have something to do with thermal issues. I am going to try a little dab of quicksilver thermal paste to the already existing thermal paste on the cooling fan to see if that helps the problem. It does come with a standard cooling fan which already has some thermal compound applied so that you can install and then just mount the fan to the processor and motherboard.", + "userfulCount": 0 + } + } + } + } + ], + "standardized_name": "amazon_web_scraping_api" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/amazon_web_scraping_api/api.py b/toolbench/toolenv/tools/Data/amazon_web_scraping_api/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d03797fbb5f6af66b7290fad36e113cb33d607e0 --- /dev/null +++ b/toolbench/toolenv/tools/Data/amazon_web_scraping_api/api.py @@ -0,0 +1,158 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_websites(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the available websites available by country to extract amazon product data." + + """ + url = f"https://amazon-web-scraping-api.p.rapidapi.com/websites" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-web-scraping-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_products_all_countries(criteria: str, countrycode: str='US', page: int=1, languagecode: str='EN', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Allows to search products in Amazon using real time data scraping API." + criteria: Search term that will be used to search for products on Amazon. + countrycode: This query parameter represents the country code of the Amazon store where the search will be performed. This parameter should be replaced with the two-letter code of the country that you want to search on Amazon. Default 'US' for United States. Check available list in Get Webistes endpoints. + page: Page number of results that you want to retrieve. If this parameter is not specified, the results of the first page will be returned. + + """ + url = f"https://amazon-web-scraping-api.p.rapidapi.com/products/search" + querystring = {'criteria': criteria, } + if countrycode: + querystring['countryCode'] = countrycode + if page: + querystring['page'] = page + if languagecode: + querystring['languageCode'] = languagecode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-web-scraping-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_deals(countrycode: str='US', languagecode: str='EN', categoryid: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get amazon deals allowing to filter by category. The category list is included in the response." + categoryid: Allows to filter by category ID. By default all the categories are returned. + + """ + url = f"https://amazon-web-scraping-api.p.rapidapi.com/products/deals" + querystring = {} + if countrycode: + querystring['countryCode'] = countrycode + if languagecode: + querystring['languageCode'] = languagecode + if categoryid: + querystring['categoryId'] = categoryid + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-web-scraping-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Return the list of currently supported languages in the API." + + """ + url = f"https://amazon-web-scraping-api.p.rapidapi.com/languages" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-web-scraping-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_product_details_all_countries(asin: str, languagecode: str='EN', countrycode: str='US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the detail of a specific product from Amazon using the ASIN code." + + """ + url = f"https://amazon-web-scraping-api.p.rapidapi.com/products/{asin}" + querystring = {} + if languagecode: + querystring['languageCode'] = languagecode + if countrycode: + querystring['countryCode'] = countrycode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-web-scraping-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_product_reviews_all_countries(asin: str, languagecode: str='EN', countrycode: str='US', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get the reviews for specific product using the ASIN code." + + """ + url = f"https://amazon-web-scraping-api.p.rapidapi.com/products/{asin}/reviews" + querystring = {} + if languagecode: + querystring['languageCode'] = languagecode + if countrycode: + querystring['countryCode'] = countrycode + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "amazon-web-scraping-api.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/android_playstore_scraper.json b/toolbench/toolenv/tools/Data/android_playstore_scraper.json new file mode 100644 index 0000000000000000000000000000000000000000..e1455ae1e7828c2e8425c5bdc7e1d4d22ffc1dfb --- /dev/null +++ b/toolbench/toolenv/tools/Data/android_playstore_scraper.json @@ -0,0 +1,114 @@ +{ + "tool_name":"Android PlayStore Scraper", + "tool_description":"[Unofficial] Extract and retrieve information about Android applications listed on the Google Play Store. With this API, you can access valuable metadata, ratings, reviews, pricing, and other details for apps available on the Play Store, empowering you to gather insights, conduct market research, and enhance your app-related services.", + "title":"Android PlayStore Scraper", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":287, + "avgSuccessRate":100, + "popularityScore":9.5, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/evlar-evlar-default/api/android-playstore-scraper/", + "host":"android-playstore-scraper.p.rapidapi.com", + "api_list":[ + { + "name":"Get App Details", + "url":"https://android-playstore-scraper.p.rapidapi.com/v1/playstore", + "description":"Retrieve app details about the app on the Play Store", + "method":"GET", + "required_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"Enter the two letter country code to search in. Default is **us**. Examples include:\n\n- us\n- ca\n- gb\n- de\netc", + "default":"us" + }, + { + "name":"appid", + "type":"STRING", + "description":"Enter the app ID that you want to retrieve, for example **com.twitter.android**", + "default":"com.twitter.android" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://android-playstore-scraper.p.rapidapi.com/v1/playstore\"\nquerystring = {\"country\": country, \"appid\": appid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"android-playstore-scraper.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "status":"ok", + "timestamp":1664566431760, + "data":{ + "title":"Twitter", + "description":"Join the conversation! \n\nExpand your social network and stay updated on what’s trending now. Retweet, chime in on a thread, go viral, or just scroll through the Twitter timeline to stay on top of what’s happening, whether it’s social media news or news from around the world. \n\nTwitter is your ✨ go-to social media app ✨ and the new media source for what's going on around the globe.\n\nJump into the conversation with sound!Twitter Spaces is a new way to have live audio conversations that amplify the power of the human voice. Engage authentically with fans and followers, listen and learn about your favorite creators, influential people and activists on their live Spaces. From tweeting to talking, Join, listen, and speak in live audio conversations.\n\nExplore top trending topics in media, or get to know thought-leaders in the areas that matter to you; whether your interests range from celebrity tweets to politics, news updates, best podcast recommendations or football, you can follow & speak directly to influencers or your friends alike. Every voice can impact the world. \n\nFollow your interests. ⭐ Tweet, Retweet, Reply to Tweets, Share or Like - Twitter is the #1 social media app for latest news & updates.\n\nTrending Topics Get ready for a new kind of media. Search hashtags and trending topics to stay in the know. Follow the tweets of your favorite influencers and crime podcast hosts, alongside hundreds of interesting Twitter users, and read their content at a glance. \n\nShare your opinion Engage your social network with noteworthy links, photos and videos. DM your friends or reply in a thread. Whether you chat privately or go viral, your voice makes a difference.\n\nGet noticed. Twitter allows you to find interesting people or build a following of people who are interested in you. Beyond chatting with friends, Twitter allows influencers to build a personal connection with their fans. Speak directly to the people who influence you - you may be surprised by how many answer back. \n\n✔️ Build your profile:\n\n*Customize your profile, add a photo, description, location, and background photo \n*Post visual content 🤸\n*Use hashtags in your Tweets #️⃣\n*Draw in followers outside of Twitter 🌎\n\nTrack What’s Trending\n\nDiscover top trending hashtags and breaking news headlines. Follow media topics, Tweet threads & live videos, to keep your finger on the pulse of what’s happening. Whether you’re interested in sports highlights, pop culture memes or politics, Twitter is your source of information.\n\nJoin a community\nGo beyond just the people you know; use social media to expand your social network. Find like-minded friends or explore interests you never knew you had. Get informed on the topics that matter to you, whether your interests are mainstream or niche. You can share content or be a fly on the wall; either way, you’ll discover something new each time you open the app.\n\nFind your voice on social media - download the Twitter app for Android today!\n\nLike us on Facebook: https://www.facebook.com/TwitterInc/\nFollow us on Instagram: https://www.instagram.com/twitter/?hl=en\n\nPrivacy Policy: https://twitter.com/en/privacy\nTerms and Conditions: https://twitter.com/en/tos\n\nWe share device identifying data with some advertising partners which may include app opens that happen prior to signing up. Please see here for more details: https://help.twitter.com/en/safety-and-security/data-through-partnerships", + "descriptionHTML":"Join the conversation!

Expand your social network and stay updated on what’s trending now. Retweet, chime in on a thread, go viral, or just scroll through the Twitter timeline to stay on top of what’s happening, whether it’s social media news or news from around the world.

Twitter is your ✨ go-to social media app ✨ and the new media source for what's going on around the globe.

Jump into the conversation with sound!Twitter Spaces is a new way to have live audio conversations that amplify the power of the human voice. Engage authentically with fans and followers, listen and learn about your favorite creators, influential people and activists on their live Spaces. From tweeting to talking, Join, listen, and speak in live audio conversations.

Explore top trending topics in media, or get to know thought-leaders in the areas that matter to you; whether your interests range from celebrity tweets to politics, news updates, best podcast recommendations or football, you can follow & speak directly to influencers or your friends alike. Every voice can impact the world.

Follow your interests. ⭐ Tweet, Retweet, Reply to Tweets, Share or Like - Twitter is the #1 social media app for latest news & updates.

Trending Topics Get ready for a new kind of media. Search hashtags and trending topics to stay in the know. Follow the tweets of your favorite influencers and crime podcast hosts, alongside hundreds of interesting Twitter users, and read their content at a glance.

Share your opinion Engage your social network with noteworthy links, photos and videos. DM your friends or reply in a thread. Whether you chat privately or go viral, your voice makes a difference.

Get noticed. Twitter allows you to find interesting people or build a following of people who are interested in you. Beyond chatting with friends, Twitter allows influencers to build a personal connection with their fans. Speak directly to the people who influence you - you may be surprised by how many answer back.

✔️ Build your profile:

*Customize your profile, add a photo, description, location, and background photo
*Post visual content 🤸
*Use hashtags in your Tweets #️⃣
*Draw in followers outside of Twitter 🌎

Track What’s Trending

Discover top trending hashtags and breaking news headlines. Follow media topics, Tweet threads & live videos, to keep your finger on the pulse of what’s happening. Whether you’re interested in sports highlights, pop culture memes or politics, Twitter is your source of information.

Join a community
Go beyond just the people you know; use social media to expand your social network. Find like-minded friends or explore interests you never knew you had. Get informed on the topics that matter to you, whether your interests are mainstream or niche. You can share content or be a fly on the wall; either way, you’ll discover something new each time you open the app.

Find your voice on social media - download the Twitter app for Android today!

Like us on Facebook: https://www.facebook.com/TwitterInc/
Follow us on Instagram: https://www.instagram.com/twitter/?hl=en

Privacy Policy: https://twitter.com/en/privacy
Terms and Conditions: https://twitter.com/en/tos

We share device identifying data with some advertising partners which may include app opens that happen prior to signing up. Please see here for more details: https://help.twitter.com/en/safety-and-security/data-through-partnerships", + "summary":"Now with Twitter spaces: Join, listen, and speak in live audio conversations", + "installs":"1,000,000,000+", + "minInstalls":1000000000, + "maxInstalls":1340706030, + "score":3.6942897, + "scoreText":"3.7", + "ratings":20285209, + "reviews":686499, + "histogram":{ + "1":5228969, + "2":495985, + "3":825858, + "4":2431010, + "5":11303362 + }, + "price":0, + "free":true, + "currency":"USD", + "priceText":"Free", + "available":true, + "offersIAP":true, + "IAPRange":"$0.99 - $399.99 per item", + "androidVersion":"VARY", + "androidVersionText":"Varies with device", + "developer":"Twitter, Inc.", + "developerId":"Twitter,+Inc.", + "developerEmail":"google-play-emails@twitter.com", + "developerWebsite":"https://support.twitter.com/articles/20169915", + "developerAddress":"Twitter, Inc.\n1355 Market Street, Suite 900\nSan Francisco, CA 94103", + "privacyPolicy":"http://twitter.com/privacy", + "developerInternalID":"Twitter,+Inc.", + "genre":"Social", + "genreId":"SOCIAL", + "icon":"https://play-lh.googleusercontent.com/wIf3HtczQDjHzHuu7vezhqNs0zXAG85F7VmP7nhsTxO3OHegrVXlqIh_DWBYi86FTIGk", + "headerImage":"https://play-lh.googleusercontent.com/ppgpYkuUs_NIA3MANIeAP1PFp0t_8lL_bwbGHGi1w_9fmm-ONuiYwXXJkeyRDpryCOU", + "screenshots":[ + "https://play-lh.googleusercontent.com/_sKrulHgWUngPxvR5l41ZHJooqmeEihVE2gvgD0prWa5DI52wAJxSTgTvK6PYZepP8o", + "https://play-lh.googleusercontent.com/WvFg1NmhXJ2s0WVODKr1-khdEuRz3ZACMY9irAlEraXeUohSRia1Gg5oS0F77xwBVRI", + "https://play-lh.googleusercontent.com/oPEKR8Ay9gMN9TjtZ9A2QBnwQ02bD4FXTEz1rSxad1Iy8eh-sKSzuV2NhU1i6u_nvCY", + "https://play-lh.googleusercontent.com/ijh6SZfGzv3ct1Y2tCBDPCeevkr3hxVwwVCWRyEHkcLvF7g85SmHA8gf7V26gps-EZc", + "https://play-lh.googleusercontent.com/2zbCvart05_SY-pKi-PLN7RK1Hc0tr2LKAPv14UL1jg1m37jksVhczvWq6JH45dpWY4", + "https://play-lh.googleusercontent.com/Fimd-R9FsJCFAsX_LvqG0uFpRatgoWR5d7fZ1IDqHcaGwBKcy8Li2imhR1IQTwI-eK4", + "https://play-lh.googleusercontent.com/YfEQWDLL_dmxXqAaAl39yMw8KskshH_w5LBbwP7WpRfmZjrt4fE_NimOrpZd8w2n", + "https://play-lh.googleusercontent.com/T2GAPN8bLkW4iXJ0xCf2YOYjAglenq-0Vz_F9Q4Q7px6_VSLTCtBOUTUHdbOyL7Tij4", + "https://play-lh.googleusercontent.com/h8MHVZzZM8VcxlbDqaDjjzsHIUBW7Y8sdw2jIroP80Je1nA8x7CDi8W5b_GcO4jIL2N_" + ], + "video":"https://www.youtube.com/embed/AUBvHej0hrk?ps=play&vq=large&rel=0&autohide=1&showinfo=0", + "videoImage":"https://play-lh.googleusercontent.com/ppgpYkuUs_NIA3MANIeAP1PFp0t_8lL_bwbGHGi1w_9fmm-ONuiYwXXJkeyRDpryCOU", + "contentRating":"Mature 17+", + "adSupported":true, + "released":"Apr 30, 2010", + "updated":1664310854000, + "version":"VARY", + "recentChanges":"Get ready for the new dark mode, now with 2 options – dim and lights out – and an automatic setting!", + "comments":[ + "A recent update has completely, and I mean completely, broken Twitter for Pixel phones. Opening the app normally wi bring you to the home page, but nothing is loaded, and you aren't able to do anything. You are able to view the side bar, but as soon as you let go of it, it'll instantly hide again. Using the shortcuts works, kind of, but the homepage is unusable in this state. Seriously don't recommend until any way of fixing the issue is released.", + "This app is frustrating as heck. When you're scrolling through your timeline, it will randomly shoot off to a whole different part of the timeline. When you search for past posts you made, half the time, they won't appear. When you \"leave\" a conversation, it won't even let you comment on that post again. And when you just want to send an email to Twitter's support team asking about these issues, there's no contact info. Just endless screens that circle back on each other.", + "As of today the app is completely non-functional on my device (Pixel 6 Pro). Have tried restarting my device, force closing the app several times, and uninstalled/reinstalled. Nothing works at all. Even in general though, it truly is astounding how much worse the Android version is compared to the iOS version, even on a major platform like the Pixel. It really isn't even close to as good of an experience.", + "Extremely primitive design. No ability to see a list of just the people you follow. Must manually search for them every time. No ability to sort whatsoever. One big convoluted mess. Slow and unresponsive. No Twitter is not better in the app. They need to take a look at the YouTube app. Did I just travel back in time 20 years?", + "Terrible update. When you click into a video, it cuts off ¼ of the bottom of the screen, so you miss a decent amount of what you are trying to see. When you try going to landscape, it just switches to a new video. There very clearly trying to be more like tiktok in how they function. They've also added a lot more ads than there were. You now see ads every few posts. With the trajectory they're taking now, the service will be unusable in a few months." + ], + "appId":"com.twitter.android", + "url":"https://play.google.com/store/apps/details?id=com.twitter.android&hl=en&gl=us" + } + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/android_playstore_scraper/api.py b/toolbench/toolenv/tools/Data/android_playstore_scraper/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7a21c194a4ea5383ba65aff132c875636bd10e3c --- /dev/null +++ b/toolbench/toolenv/tools/Data/android_playstore_scraper/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_app_details(country: str, appid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve app details about the app on the Play Store" + country: Enter the two letter country code to search in. Default is **us**. Examples include: + +- us +- ca +- gb +- de +etc + appid: Enter the app ID that you want to retrieve, for example **com.twitter.android** + + """ + url = f"https://android-playstore-scraper.p.rapidapi.com/v1/playstore" + querystring = {'country': country, 'appid': appid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "android-playstore-scraper.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/anilist_graphql.json b/toolbench/toolenv/tools/Data/anilist_graphql.json new file mode 100644 index 0000000000000000000000000000000000000000..d8451c04c437782c97b7d2b41af2dcf64c6f3202 --- /dev/null +++ b/toolbench/toolenv/tools/Data/anilist_graphql.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_55d5de0f-f5c2-40e4-b8d8-ec6a19f04468", + "tool_description": "Track, discover, and share anime and manga with AniList. Discover top-rated and popular shows through reviews and recommendations. This is a Community Listing AniList API.", + "home_url": "https://rapidapi.com/rapidapi/api/anilist-graphql/", + "name": "AniList GraphQL", + "title": "AniList GraphQL", + "pricing": "FREE", + "tool_name": "AniList GraphQL", + "score": { + "avgServiceLevel": 100, + "avgLatency": 419, + "avgSuccessRate": 98, + "popularityScore": 9.7, + "__typename": "Score" + }, + "host": "anilist-graphql.p.rapidapi.com", + "api_list": [ + { + "name": "graphQL", + "url": "https://anilist-graphql.p.rapidapi.com/", + "description": "Edit Variable values to ensure a successful API response & customize your request. Example queries can be found in the [About](https://rapidapi.com/rapidapi/api/anilist-graphql/details) page!", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://anilist-graphql.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anilist-graphql.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://anilist-graphql.p.rapidapi.com/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"anilist-graphql.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/animals_by_api_ninjas.json b/toolbench/toolenv/tools/Data/animals_by_api_ninjas.json new file mode 100644 index 0000000000000000000000000000000000000000..b61ff65f53c256c419ad2036cf44badd20dd615b --- /dev/null +++ b/toolbench/toolenv/tools/Data/animals_by_api_ninjas.json @@ -0,0 +1,37 @@ +{ + "tool_name":"Animals by API-Ninjas", + "tool_description":"Detailed and interesting facts for thousands of animal species. See more info at https://api-ninjas.com/api/animals.", + "title":"Animals by API-Ninjas", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":754, + "avgSuccessRate":99, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/apininjas/api/animals-by-api-ninjas/", + "host":"animals-by-api-ninjas.p.rapidapi.com", + "api_list":[ + { + "name":"/v1/animals", + "url":"https://animals-by-api-ninjas.p.rapidapi.com/v1/animals", + "description":"API Ninjas Animals API endpoint. Returns up to 10 results matching the input name parameter.", + "method":"GET", + "required_parameters":[ + { + "name":"name", + "type":"STRING", + "description":"common name of animal to search. This parameter supports partial matches (e.g. fox will match gray fox and red fox)", + "default":"cheetah" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://animals-by-api-ninjas.p.rapidapi.com/v1/animals\"\nquerystring = {\"name\": name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"animals-by-api-ninjas.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/animals_by_api_ninjas/api.py b/toolbench/toolenv/tools/Data/animals_by_api_ninjas/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d8fbd1263fb92b1ebffedf43578fd23af5dcc364 --- /dev/null +++ b/toolbench/toolenv/tools/Data/animals_by_api_ninjas/api.py @@ -0,0 +1,30 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def v1_animals(name: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API Ninjas Animals API endpoint. Returns up to 10 results matching the input name parameter." + name: common name of animal to search. This parameter supports partial matches (e.g. fox will match gray fox and red fox) + + """ + url = f"https://animals-by-api-ninjas.p.rapidapi.com/v1/animals" + querystring = {'name': name, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "animals-by-api-ninjas.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/animeapi/api.py b/toolbench/toolenv/tools/Data/animeapi/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7fbb20e0e0d252bc899283cc984d8cdbdb9aa7b7 --- /dev/null +++ b/toolbench/toolenv/tools/Data/animeapi/api.py @@ -0,0 +1,49 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def all_anime(release: int=None, genre: str=None, pagesize: int=None, page: int=None, q: str='naruto', status: str=None, sortby: str=None, qintitle: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get detailed anime information using search queries, returned in JSON format." + release: The release year of the anime + q: Search query to match titles or description of anime + status: The status of the anime: ongoing or completed + qintitle: Search query to match titles of anime only + + """ + url = f"https://animeapi4.p.rapidapi.com/all" + querystring = {} + if release: + querystring['release'] = release + if genre: + querystring['genre'] = genre + if pagesize: + querystring['pageSize'] = pagesize + if page: + querystring['page'] = page + if q: + querystring['q'] = q + if status: + querystring['status'] = status + if sortby: + querystring['sortBy'] = sortby + if qintitle: + querystring['qInTitle'] = qintitle + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "animeapi4.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/api_license_plate_spain_matr_cula_api_espa_a.json b/toolbench/toolenv/tools/Data/api_license_plate_spain_matr_cula_api_espa_a.json new file mode 100644 index 0000000000000000000000000000000000000000..b876656db0d39283f13a0a32ddbef7f98cd991fc --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_license_plate_spain_matr_cula_api_espa_a.json @@ -0,0 +1,198 @@ +{ + "tool_name":"API License plate Spain - Matrícula API España", + "tool_description":"API license plate The License Plate API is the ideal solution for professionals looking for vehicle information in Spain. Our license plate API allows you to get detailed information about any vehicle registered in Spain with just one click by simply entering its license plate. You can access information such as brand, model, version, MINE type, K-Type TECDOC identifier, color, weight, dimensions, body type, tax horsepower, real power in kW , engine code, CO2 emissions, type of energy, type ...", + "title":"API License plate Spain - Matrícula API España", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":1511, + "avgSuccessRate":80, + "popularityScore":8.6, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/autowaysnet/api/api-license-plate-spain-matricula-api-espana/", + "host":"api-license-plate-spain-matricula-api-espana.p.rapidapi.com", + "api_list":[ + { + "name":"getCarInfos", + "url":"https://api-license-plate-spain-matricula-api-espana.p.rapidapi.com/", + "description":"Get all car information using Spain car plate, ex :\"1995CCX\"", + "method":"GET", + "required_parameters":[ + { + "name":"plaque", + "type":"STRING", + "description":"", + "default":"1995CCX" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://api-license-plate-spain-matricula-api-espana.p.rapidapi.com/\"\nquerystring = {\"plaque\": plaque}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-license-plate-spain-matricula-api-espana.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "error":false, + "code":"200", + "data":{ + "AWN_k_type":"11873", + "AWN_VIN":"VF7CHRHYB39368528", + "AWN_marque":"CITROEN", + "AWN_modele":"XSARA PICASSO", + "AWN_immat":"1995CCX", + "AWN_marque_id":"6", + "AWN_modele_id":"1971", + "AWN_modele_etude":"XSARA PICASSO", + "AWN_poids_vide":"1850", + "AWN_poids_total_roulant":"1300", + "AWN_puissance_chevaux":"0", + "AWN_puissance_fiscale":"13", + "AWN_carrosserie":"Inconnue", + "AWN_genre":"Inconnue", + "AWN_genre_carte_grise":"TURISMO", + "AWN_energie":"Gazole", + "AWN_energie_code":"18", + "AWN_emission_co_2":"0", + "AWN_date_mise_en_circulation":"23-12-2002", + "AWN_date_30":"23-12-2002", + "AWN_numero_de_serie":"B39368528", + "AWN_nbr_cylindre_energie":"1997", + "AWN_collection":"NON", + "AWN_puissance_KW":"0", + "AWN_nbr_portes":"0", + "AWN_nbr_de_places":"5", + "AWN_type_boite_vites":"Inconnue", + "AWN_propulsion":"Inconnue", + "AWN_TID":"6257196", + "AWN_brand_img_path":"img/brands/citroen.png", + "AWN_country":"es", + "AWN_brand_img_full_path":"https://app.auto-ways.net/img/brands/citroen.png" + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "cache-control":"no-cache, private", + "content-type":"application/json", + "date":"Mon, 08 May 2023 00:59:51 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding,User-Agent", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object", + "properties":{ + "error":{ + "type":"boolean" + }, + "code":{ + "type":"integer" + }, + "data":{ + "type":"object", + "properties":{ + "AWN_k_type":{ + "type":"string" + }, + "AWN_VIN":{ + "type":"string" + }, + "AWN_marque":{ + "type":"string" + }, + "AWN_modele":{ + "type":"string" + }, + "AWN_immat":{ + "type":"string" + }, + "AWN_marque_id":{ + "type":"string" + }, + "AWN_modele_id":{ + "type":"string" + }, + "AWN_modele_etude":{ + "type":"string" + }, + "AWN_poids_vide":{ + "type":"string" + }, + "AWN_poids_total_roulant":{ + "type":"string" + }, + "AWN_puissance_chevaux":{ + "type":"string" + }, + "AWN_puissance_fiscale":{ + "type":"string" + }, + "AWN_carrosserie":{ + "type":"string" + }, + "AWN_genre":{ + "type":"string" + }, + "AWN_genre_carte_grise":{ + "type":"string" + }, + "AWN_energie":{ + "type":"string" + }, + "AWN_energie_code":{ + "type":"string" + }, + "AWN_emission_co_2":{ + "type":"string" + }, + "AWN_date_mise_en_circulation":{ + "type":"string" + }, + "AWN_date_30":{ + "type":"string" + }, + "AWN_numero_de_serie":{ + "type":"string" + }, + "AWN_nbr_cylindre_energie":{ + "type":"string" + }, + "AWN_collection":{ + "type":"string" + }, + "AWN_puissance_KW":{ + "type":"string" + }, + "AWN_nbr_portes":{ + "type":"string" + }, + "AWN_nbr_de_places":{ + "type":"string" + }, + "AWN_type_boite_vites":{ + "type":"string" + }, + "AWN_propulsion":{ + "type":"string" + }, + "AWN_TID":{ + "type":"string" + }, + "AWN_brand_img_path":{ + "type":"string" + }, + "country":{ + "type":"string" + }, + "AWN_country":{ + "type":"string" + }, + "AWN_brand_img_full_path":{ + "type":"string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/api_license_plate_spain_matr_cula_api_espa_a/api.py b/toolbench/toolenv/tools/Data/api_license_plate_spain_matr_cula_api_espa_a/api.py new file mode 100644 index 0000000000000000000000000000000000000000..b3a6baa66cd4b43145bda48d8799a8118de5e42b --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_license_plate_spain_matr_cula_api_espa_a/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getcarinfos(plaque: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get all car information using Spain car plate, ex :"1995CCX"" + + """ + url = f"https://api-license-plate-spain-matricula-api-espana.p.rapidapi.com/" + querystring = {'plaque': plaque, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-license-plate-spain-matricula-api-espana.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/api_plaque_immatriculation_siv.json b/toolbench/toolenv/tools/Data/api_plaque_immatriculation_siv.json new file mode 100644 index 0000000000000000000000000000000000000000..0b7700e21671c026b84f1246a05c74de9a267685 --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_plaque_immatriculation_siv.json @@ -0,0 +1,349 @@ +{ + "tool_name":"Api plaque immatriculation SIV", + "tool_description":"Immatriculation API (France) \n\nNotre service Web permettra à votre site Internet ou à vos applications d’identifier les motos et les scooters en utilisant leur plaque d’immatriculation. Cette méthode est largement utilisée par la plupart des boutiques en ligne de pièces détachées pour identifier les véhicules de leurs clients, afin d’éviter les erreurs d’identification, les insatisfactions clients et les retours de marchandise.\n\nÊtes-vous à la recherche de plaques d’immatriculation françaises...", + "title":"Api plaque immatriculation SIV", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":1830, + "avgSuccessRate":100, + "popularityScore":9.6, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/api-plaque-immatriculation-siv-api-plaque-immatriculation-siv-default/api/api-plaque-immatriculation-siv/", + "host":"api-plaque-immatriculation-siv.p.rapidapi.com", + "api_list":[ + { + "name":"/get-vehicule-info2", + "url":"https://api-plaque-immatriculation-siv.p.rapidapi.com/get-vehicule-info", + "description":"* Récupérer les informations des véhicules simplement avec notre API PLAQUE IMMATRICULATION rapide flexible .\n\nLes données sont demandées à notre api plaque immatriculation en temps réel à partir de sources de données officielles du gouvernement, de sorte que les informations que vous voyez soient en temps réel et non mises en cache, ou stockées.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"immatriculation", + "type":"STRING", + "description":"", + "default":"AA-123-BC" + }, + { + "name":"token", + "type":"STRING", + "description":"", + "default":"TokenDemoRapidapi" + }, + { + "name":"host_name", + "type":"STRING", + "description":"", + "default":"https://apiplaqueimmatriculation.com" + } + ], + "code":"import requests\n\nurl = \"https://api-plaque-immatriculation-siv.p.rapidapi.com/get-vehicule-info\"\nquerystring = {\"immatriculation\": immatriculation, \"token\": token, \"host_name\": host_name}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-plaque-immatriculation-siv.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "data":{ + "erreur":"", + "immat":"aa123bc", + "co2":"134", + "energie":"1", + "energieNGC":"DIESEL", + "genreVCG":"1", + "genreVCGNGC":"VP", + "puisFisc":"7", + "carrosserieCG":"CI", + "marque":"RENAULT", + "modele":"MEGANE III", + "date1erCir_us":"2009-04-18", + "date1erCir_fr":"18-04-2009", + "collection":"non", + "date30":"1989-06-30", + "vin":"VF1DZ0N0641118804", + "boite_vitesse":"M", + "puisFiscReel":"130", + "nr_passagers":"5", + "nb_portes":"5", + "type_mine":"MRE5531A0421", + "couleur":"NOIR", + "poids":"1310 kg", + "cylindres":"4", + "sra_id":"RE80126", + "sra_group":"32", + "sra_commercial":"1.9 DCI 130 XV DE FRANCE", + "logo_marque":"https://api.apiplaqueimmatriculation.com/logos_marques/renault.png", + "code_moteur":"", + "k_type":"31164" + } + }, + "headers":{ + "content-type":"" + }, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"object", + "properties":{ + "erreur":{ + "type":"string" + }, + "immat":{ + "type":"string" + }, + "co2":{ + "type":"string" + }, + "energie":{ + "type":"string" + }, + "energieNGC":{ + "type":"string" + }, + "genreVCG":{ + "type":"string" + }, + "genreVCGNGC":{ + "type":"string" + }, + "puisFisc":{ + "type":"string" + }, + "carrosserieCG":{ + "type":"string" + }, + "marque":{ + "type":"string" + }, + "modele":{ + "type":"string" + }, + "date1erCir_us":{ + "type":"string" + }, + "date1erCir_fr":{ + "type":"string" + }, + "collection":{ + "type":"string" + }, + "date30":{ + "type":"string" + }, + "vin":{ + "type":"string" + }, + "boite_vitesse":{ + "type":"string" + }, + "puisFiscReel":{ + "type":"string" + }, + "nr_passagers":{ + "type":"string" + }, + "nb_portes":{ + "type":"string" + }, + "type_mine":{ + "type":"string" + }, + "couleur":{ + "type":"string" + }, + "poids":{ + "type":"string" + }, + "cylindres":{ + "type":"string" + }, + "sra_id":{ + "type":"string" + }, + "sra_group":{ + "type":"string" + }, + "sra_commercial":{ + "type":"string" + }, + "logo_marque":{ + "type":"string" + }, + "code_moteur":{ + "type":"string" + }, + "k_type":{ + "type":"string" + } + } + } + } + } + }, + { + "name":"/get-vehicule-info", + "url":"https://api-plaque-immatriculation-siv.p.rapidapi.com/get-vehicule-info", + "description":"* Récupérer les informations des véhicules simplement avec notre API PLAQUE IMMATRICULATION rapide flexible .\n\nLes données sont demandées à notre api plaque immatriculation en temps réel à partir de sources de données officielles du gouvernement, de sorte que les informations que vous voyez soient en temps réel et non mises en cache, ou stockées.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"token", + "type":"STRING", + "description":"", + "default":"TokenDemoRapidapi" + }, + { + "name":"host_name", + "type":"STRING", + "description":"", + "default":"https://apiplaqueimmatriculation.com" + }, + { + "name":"immatriculation", + "type":"STRING", + "description":"", + "default":"AA-123-BC" + } + ], + "code":"import requests\n\nurl = \"https://api-plaque-immatriculation-siv.p.rapidapi.com/get-vehicule-info\"\nquerystring = {\"token\": token, \"host_name\": host_name, \"immatriculation\": immatriculation}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-plaque-immatriculation-siv.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "data":{ + "erreur":"", + "immat":"aa123bc", + "co2":"134", + "energie":"1", + "energieNGC":"DIESEL", + "genreVCG":"1", + "genreVCGNGC":"VP", + "puisFisc":"7", + "carrosserieCG":"CI", + "marque":"RENAULT", + "modele":"MEGANE III", + "date1erCir_us":"2009-04-18", + "date1erCir_fr":"18-04-2009", + "collection":"non", + "date30":"1989-06-30", + "vin":"VF1DZ0N0641118804", + "boite_vitesse":"M", + "puisFiscReel":"130", + "nr_passagers":"5", + "nb_portes":"5", + "type_mine":"MRE5531A0421", + "couleur":"NOIR", + "poids":"1310 kg", + "cylindres":"4", + "sra_id":"RE80126", + "sra_group":"32", + "sra_commercial":"1.9 DCI 130 XV DE FRANCE", + "logo_marque":"https://api.apiplaqueimmatriculation.com/logos_marques/renault.png", + "code_moteur":"", + "k_type":"31164" + } + }, + "headers":{ + "content-type":"" + }, + "schema":{ + "type":"object", + "properties":{ + "data":{ + "type":"object", + "properties":{ + "erreur":{ + "type":"string" + }, + "immat":{ + "type":"string" + }, + "co2":{ + "type":"string" + }, + "energie":{ + "type":"string" + }, + "energieNGC":{ + "type":"string" + }, + "genreVCG":{ + "type":"string" + }, + "genreVCGNGC":{ + "type":"string" + }, + "puisFisc":{ + "type":"string" + }, + "carrosserieCG":{ + "type":"string" + }, + "marque":{ + "type":"string" + }, + "modele":{ + "type":"string" + }, + "date1erCir_us":{ + "type":"string" + }, + "date1erCir_fr":{ + "type":"string" + }, + "collection":{ + "type":"string" + }, + "date30":{ + "type":"string" + }, + "vin":{ + "type":"string" + }, + "boite_vitesse":{ + "type":"string" + }, + "puisFiscReel":{ + "type":"string" + }, + "nr_passagers":{ + "type":"string" + }, + "nb_portes":{ + "type":"string" + }, + "type_mine":{ + "type":"string" + }, + "couleur":{ + "type":"string" + }, + "poids":{ + "type":"string" + }, + "cylindres":{ + "type":"string" + }, + "sra_id":{ + "type":"string" + }, + "sra_group":{ + "type":"string" + }, + "sra_commercial":{ + "type":"string" + }, + "logo_marque":{ + "type":"string" + }, + "code_moteur":{ + "type":"string" + }, + "k_type":{ + "type":"string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/api_plaque_immatriculation_siv/api.py b/toolbench/toolenv/tools/Data/api_plaque_immatriculation_siv/api.py new file mode 100644 index 0000000000000000000000000000000000000000..8de96b8af3866e666ccaaafd1bfafb78200dcccd --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_plaque_immatriculation_siv/api.py @@ -0,0 +1,66 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_vehicule_info2(immatriculation: str='AA-123-BC', token: str='TokenDemoRapidapi', host_name: str='https://apiplaqueimmatriculation.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "* Récupérer les informations des véhicules simplement avec notre API PLAQUE IMMATRICULATION rapide flexible . + + Les données sont demandées à notre api plaque immatriculation en temps réel à partir de sources de données officielles du gouvernement, de sorte que les informations que vous voyez soient en temps réel et non mises en cache, ou stockées." + + """ + url = f"https://api-plaque-immatriculation-siv.p.rapidapi.com/get-vehicule-info" + querystring = {} + if immatriculation: + querystring['immatriculation'] = immatriculation + if token: + querystring['token'] = token + if host_name: + querystring['host_name'] = host_name + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-plaque-immatriculation-siv.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_vehicule_info(token: str='TokenDemoRapidapi', host_name: str='https://apiplaqueimmatriculation.com', immatriculation: str='AA-123-BC', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "* Récupérer les informations des véhicules simplement avec notre API PLAQUE IMMATRICULATION rapide flexible . + + Les données sont demandées à notre api plaque immatriculation en temps réel à partir de sources de données officielles du gouvernement, de sorte que les informations que vous voyez soient en temps réel et non mises en cache, ou stockées." + + """ + url = f"https://api-plaque-immatriculation-siv.p.rapidapi.com/get-vehicule-info" + querystring = {} + if token: + querystring['token'] = token + if host_name: + querystring['host_name'] = host_name + if immatriculation: + querystring['immatriculation'] = immatriculation + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-plaque-immatriculation-siv.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/api_rest_neo_web.json b/toolbench/toolenv/tools/Data/api_rest_neo_web.json new file mode 100644 index 0000000000000000000000000000000000000000..f6f85777b9d50ffaf7f74dea05b4ad9de2f561b5 --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_rest_neo_web.json @@ -0,0 +1,219 @@ +{ + "tool_name": "Api-Rest Neo Web", + "tool_description": "Api Neo Web", + "title": "Api-Rest Neo Web", + "pricing": "FREE", + "score": null, + "home_url": "https://rapidapi.com/omard97/api/api-rest-neo-web/", + "host": "api-rest-neo-web.p.rapidapi.com", + "api_list": [ + { + "name": "ClienteporID", + "url": "https://api-rest-neo-web.p.rapidapi.com/cliente/7", + "description": "Mediante la solicitud \"GET\" se solicita la informaci\u00f3n del cliente requerido mediante la b\u00fasqueda de su ID.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/cliente/7\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "HistorialdeClientes", + "url": "https://api-rest-neo-web.p.rapidapi.com/cliente", + "description": "## _Lista_\n\nMediante la solicitud \"GET\" se solicita el listado de todos los clientes actuales en la Base de Datos.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/cliente\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Listadeproductos", + "url": "https://api-rest-neo-web.p.rapidapi.com/producto", + "description": "## _Lista_\n\nUtilizando la solicitud \"GET\" se obtiene la lista de todos los productos y su informaci\u00f3n.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/producto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "CrearunCliente", + "url": "https://api-rest-neo-web.p.rapidapi.com/crearCliente", + "description": "## *Creaci\u00f3n*\n\nMediante la solicitud \"POST\" se crea un registro de un cliente con sus datos personales.\n\nEn el siguiente ejemplo se puede observar la verificaci\u00f3n de la creaci\u00f3n del cliente.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearCliente\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Eliminaruncliente", + "url": "https://api-rest-neo-web.p.rapidapi.com/borrar/cliente/11", + "description": "## *Eliminaci\u00f3n*\nMediante la solicitud \"DELETE\" y eligiendo el ID, se elimina toda informaci\u00f3n del cliente.\n", + "method": "DELETE", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/borrar/cliente/11\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Actualizaruncliente", + "url": "https://api-rest-neo-web.p.rapidapi.com/update/cliente/14", + "description": "## _Actualizaci\u00f3n_\n\nMediante la solicitud \"PUT\" se actualiza la informaci\u00f3n que se desee del cliente.", + "method": "PUT", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/update/cliente/14\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Borrarunproducto", + "url": "https://api-rest-neo-web.p.rapidapi.com/producto", + "description": "## *Eliminaci\u00f3n*\n\nMediante la solicitud \"DELETE\" y eligiendo el ID, se elimina toda informaci\u00f3n del producto.\n\n###### En \"Example Response\" cambie el ejemplo para observar como se eliminaron los datos.", + "method": "DELETE", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/producto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.delete(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Productosvendidosaclientes", + "url": "https://api-rest-neo-web.p.rapidapi.com/clienteproducto", + "description": "## _Lista_\n\nUtilizando la solicitud \"GET\" obtenemos todos los productos que han sido vendidos y a que cliente se lo vendi\u00f3.\n\n", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/clienteproducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Actualizarunproducto", + "url": "https://api-rest-neo-web.p.rapidapi.com/update/producto/9", + "description": "## *Actualizaci\u00f3n*\n\nMediante la solicitud \"PUT\" se actualiza la informacion del producto requerido.\n\n###### En \"Example Response\" cambie el ejemplo para observar como se actualizaron los datos.", + "method": "PUT", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/update/producto/9\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.put(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Crearproductosvendidosaclientes", + "url": "https://api-rest-neo-web.p.rapidapi.com/crearclienteproducto", + "description": "## *Creaci\u00f3n*\nUtilizando la solicitud \"POST\" se crea un nuevo registro en historial\n\n###### En \"Example Response\" cambie el ejemplo para observar como se eliminaron los datos.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearclienteproducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "ProductoporID", + "url": "https://api-rest-neo-web.p.rapidapi.com/producto/3", + "description": "## _ID_\n\nUtilizando la solicitud \"GET\" y como par\u00e1metro un n\u00famero que representa el ID del producto, se obtiene la informaci\u00f3n de dicho producto solicitado.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/producto/3\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "CrearunProducto", + "url": "https://api-rest-neo-web.p.rapidapi.com/crearProducto", + "description": "## _Crear_\n\nUtilizando la solicitud \"POST\" creamos un nuevo producto en la Base de Datos.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearProducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "Productovendidoauncliente", + "url": "https://api-rest-neo-web.p.rapidapi.com/clienteproducto/3", + "description": "## _Lista_\n\nUtilizando la solicitud \"GET\" obtenemos todos los productos que se vendieron a un solo cliente, utilizando el ID de ese mismo cliente.", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/clienteproducto/3\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 200, + "body": {}, + "headers": {}, + "schema": {} + }, + { + "name": "CrearunCliente", + "url": "https://api-rest-neo-web.p.rapidapi.com/crearCliente", + "description": "## *Creaci\u00f3n*\n\nMediante la solicitud \"POST\" se crea un registro de un cliente con sus datos personales.\n\nEn el siguiente ejemplo se puede observar la verificaci\u00f3n de la creaci\u00f3n del cliente.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearCliente\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearCliente\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "Crearproductosvendidosaclientes", + "url": "https://api-rest-neo-web.p.rapidapi.com/crearclienteproducto", + "description": "## *Creaci\u00f3n*\nUtilizando la solicitud \"POST\" se crea un nuevo registro en historial\n\n###### En \"Example Response\" cambie el ejemplo para observar como se eliminaron los datos.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearclienteproducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearclienteproducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + }, + { + "name": "CrearunProducto", + "url": "https://api-rest-neo-web.p.rapidapi.com/crearProducto", + "description": "## _Crear_\n\nUtilizando la solicitud \"POST\" creamos un nuevo producto en la Base de Datos.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearProducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-rest-neo-web.p.rapidapi.com/crearProducto\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-rest-neo-web.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/api_rest_neo_web/api.py b/toolbench/toolenv/tools/Data/api_rest_neo_web/api.py new file mode 100644 index 0000000000000000000000000000000000000000..a69eb9980f3a5d58515bac8d18e990fb2071d2ea --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_rest_neo_web/api.py @@ -0,0 +1,146 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def clienteporid(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Mediante la solicitud "GET" se solicita la información del cliente requerido mediante la búsqueda de su ID." + + """ + url = f"https://api-rest-neo-web.p.rapidapi.com/cliente/7" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-rest-neo-web.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def historialdeclientes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "## _Lista_ + + Mediante la solicitud "GET" se solicita el listado de todos los clientes actuales en la Base de Datos." + + """ + url = f"https://api-rest-neo-web.p.rapidapi.com/cliente" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-rest-neo-web.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def listadeproductos(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "## _Lista_ + + Utilizando la solicitud "GET" se obtiene la lista de todos los productos y su información." + + """ + url = f"https://api-rest-neo-web.p.rapidapi.com/producto" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-rest-neo-web.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def productosvendidosaclientes(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "## _Lista_ + + Utilizando la solicitud "GET" obtenemos todos los productos que han sido vendidos y a que cliente se lo vendió. + + " + + """ + url = f"https://api-rest-neo-web.p.rapidapi.com/clienteproducto" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-rest-neo-web.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def productoporid(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "## _ID_ + + Utilizando la solicitud "GET" y como parámetro un número que representa el ID del producto, se obtiene la información de dicho producto solicitado." + + """ + url = f"https://api-rest-neo-web.p.rapidapi.com/producto/3" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-rest-neo-web.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def productovendidoauncliente(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "## _Lista_ + + Utilizando la solicitud "GET" obtenemos todos los productos que se vendieron a un solo cliente, utilizando el ID de ese mismo cliente." + + """ + url = f"https://api-rest-neo-web.p.rapidapi.com/clienteproducto/3" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-rest-neo-web.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/api_shibuya_infomation_in_tokyo.json b/toolbench/toolenv/tools/Data/api_shibuya_infomation_in_tokyo.json new file mode 100644 index 0000000000000000000000000000000000000000..613c76d30eae91c1059f3faa388126f6c226641a --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_shibuya_infomation_in_tokyo.json @@ -0,0 +1,30 @@ +{ + "tool_name":"API Shibuya infomation In Tokyo", + "tool_description":"API Shibuya infomation In Tokyo", + "title":"API Shibuya infomation In Tokyo", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":993, + "avgSuccessRate":100, + "popularityScore":8.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/tokyo11922527/api/api-shibuya-infomation-in-tokyo/", + "host":"api-shibuya-infomation-in-tokyo.p.rapidapi.com", + "api_list":[ + { + "name":"API Shibuya infomation In Tokyo", + "url":"https://api-shibuya-infomation-in-tokyo.p.rapidapi.com/QPN3L1/data", + "description":"API Shibuya infomation In Tokyo", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://api-shibuya-infomation-in-tokyo.p.rapidapi.com/QPN3L1/data\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-shibuya-infomation-in-tokyo.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/api_shibuya_infomation_in_tokyo/api.py b/toolbench/toolenv/tools/Data/api_shibuya_infomation_in_tokyo/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fee2b248ed4ad4e4881356db54e0b522fa17402b --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_shibuya_infomation_in_tokyo/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def api_shibuya_infomation_in_tokyo(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "API Shibuya infomation In Tokyo" + + """ + url = f"https://api-shibuya-infomation-in-tokyo.p.rapidapi.com/qpn3l1/data" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-shibuya-infomation-in-tokyo.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/api_siv_syst_me_d_immatriculation_des_v_hicules.json b/toolbench/toolenv/tools/Data/api_siv_syst_me_d_immatriculation_des_v_hicules.json new file mode 100644 index 0000000000000000000000000000000000000000..8eb379cd8f426586128db294bd19bb497bc8e952 --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_siv_syst_me_d_immatriculation_des_v_hicules.json @@ -0,0 +1,308 @@ +{ + "tool_name":"API SIV - Système d'immatriculation des véhicules", + "tool_description":"L'api de plaque d'immatriculation en France est un outil en ligne pratique pour obtenir des informations sur les véhicules immatriculés en France. Il suffit de saisir la plaque d'immatriculation d'un véhicule pour obtenir des informations détaillées grâce à l'api de plaque d'immatriculation.\n\nAvec l'api de plaque d'immatriculation en France, les utilisateurs peuvent obtenir des informations telles que la marque, le modèle, la version, le type MINE, la couleur, le poids, les dimensions, le typ...", + "title":"API SIV - Système d'immatriculation des véhicules", + "pricing":"PAID", + "score":{ + "avgServiceLevel":95, + "avgLatency":3461, + "avgSuccessRate":85, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/autowaysnet/api/api-siv-systeme-d-immatriculation-des-vehicules/", + "host":"api-siv-systeme-d-immatriculation-des-vehicules.p.rapidapi.com", + "api_list":[ + { + "name":"getCarInfo", + "url":"https://api-siv-systeme-d-immatriculation-des-vehicules.p.rapidapi.com/{plaque}", + "description":"This endpoint provides car info from a French car plate, all you need is to interrogate the path with the correct formatted car plate, example \"/AA206bc\". And you will get all info you need", + "method":"GET", + "required_parameters":[ + { + "name":"plaque", + "type":"string", + "description":"", + "default":"EH826NS" + } + ], + "optional_parameters":[ + { + "name":"with_k_type", + "type":"NUMBER", + "description":"Demandez le code TecDoc k-Type en définissant l'attribut with_k_type=1 , par défaut est 0.\n", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://api-siv-systeme-d-immatriculation-des-vehicules.p.rapidapi.com/{plaque}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-siv-systeme-d-immatriculation-des-vehicules.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "error":false, + "code":"200", + "data":{ + "AWN_carrosserie":"TS TERRAINS/CHEMINS", + "AWN_carrosserie_carte_grise":"CI", + "AWN_emission_co_2":"211", + "AWN_code_moteur":"1AZFE", + "AWN_VIN":"JTEHH20V200227091", + "AWN_consommation_ex_urbaine":"7.3", + "AWN_consommation_mixte":"8.8", + "AWN_consommation_urbaine":"11.4", + "AWN_couleur":"GRIS", + "AWN_nbr_cylindre_energie":"1998", + "AWN_date_mise_en_circulation":"10-04-2003", + "AWN_date_cg":"29-10-2019", + "AWN_depollution":"NON", + "AWN_empattement":"249", + "AWN_energie":"ESSENCE", + "AWN_genre":"VP", + "AWN_genre_carte_grise":"VP", + "AWN_Hauteur":"168", + "AWN_immat":"AM766SQ", + "AWN_largeur":"179", + "AWN_longueur":"422", + "AWN_marque":"TOYOTA", + "AWN_marque_carrosserie":"TOYOTA", + "AWN_mode_injection":"AUTR. CARBURATIONS", + "AWN_modele":"RAV4", + "AWN_modele_etude":"RAV4", + "AWN_numero_de_serie":"00227091", + "AWN_numero_de_siren":"000000000", + "AWN_numero_de_recept_euro_prf":"e6*98/14*0070*03", + "AWN_nbr_cylindres":"4", + "AWN_nbr_de_places":"5", + "AWN_nbr_portes":"5", + "AWN_nbr_soupapes":"4", + "AWN_nbr_vitesses":"5", + "AWN_nbr_volume":"2", + "AWN_poids_vide":"1275", + "AWN_prix":"27517", + "AWN_propulsion":"4X4", + "AWN_poids_total_roulant":"1825", + "AWN_poids_total_roulant_prf":"0332", + "AWN_poids_total_autorise_en_charge_prf":"0000", + "AWN_puissance_chevaux":"150", + "AWN_puissance_fiscale":"10", + "AWN_puissance_KW":"110", + "AWN_type_boite_vites":"MECANIQUE", + "AWN_turbo_Comprressor":"NON TURBO", + "AWN_type_mine":"MJT2642BT216", + "AWN_type_variante_version":"mjt2642bt216", + "AWN_type_vin_cg":"HH20V2", + "AWN_version":"2.0 VVTI", + "AWN_pneus":[ + "215/70 R16 99 H", + "235/60 R16 100 H" + ], + "AWN_emission_co_2_prf":"000", + "AWN_nbr_decibels_prf":"086", + "AWN_anee":"2003", + "AWN_k_type":"14907", + "AWN_brand_img_full_path":"https://app.auto-ways.net/img/brands/toyota.png", + "AWN_brand_img_path":"img/brands/toyota.png" + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "cache-control":"no-cache, private", + "content-type":"application/json", + "date":"Mon, 08 May 2023 00:31:56 GMT", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding,User-Agent", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{ + "type":"object", + "properties":{ + "error":{ + "type":"boolean" + }, + "code":{ + "type":"string" + }, + "data":{ + "type":"object", + "properties":{ + "AWN_carrosserie":{ + "type":"string" + }, + "AWN_carrosserie_carte_grise":{ + "type":"string" + }, + "AWN_emission_co_2":{ + "type":"string" + }, + "AWN_code_moteur":{ + "type":"string" + }, + "AWN_VIN":{ + "type":"string" + }, + "AWN_consommation_ex_urbaine":{ + "type":"string" + }, + "AWN_consommation_mixte":{ + "type":"string" + }, + "AWN_consommation_urbaine":{ + "type":"string" + }, + "AWN_couleur":{ + "type":"string" + }, + "AWN_nbr_cylindre_energie":{ + "type":"string" + }, + "AWN_date_mise_en_circulation":{ + "type":"string" + }, + "AWN_date_cg":{ + "type":"string" + }, + "AWN_depollution":{ + "type":"string" + }, + "AWN_empattement":{ + "type":"string" + }, + "AWN_energie":{ + "type":"string" + }, + "AWN_genre":{ + "type":"string" + }, + "AWN_genre_carte_grise":{ + "type":"string" + }, + "AWN_Hauteur":{ + "type":"string" + }, + "AWN_immat":{ + "type":"string" + }, + "AWN_largeur":{ + "type":"string" + }, + "AWN_longueur":{ + "type":"string" + }, + "AWN_marque":{ + "type":"string" + }, + "AWN_marque_carrosserie":{ + "type":"string" + }, + "AWN_mode_injection":{ + "type":"string" + }, + "AWN_modele":{ + "type":"string" + }, + "AWN_modele_etude":{ + "type":"string" + }, + "AWN_numero_de_serie":{ + "type":"string" + }, + "AWN_numero_de_siren":{ + "type":"string" + }, + "AWN_numero_de_recept_euro_prf":{ + "type":"string" + }, + "AWN_nbr_cylindres":{ + "type":"string" + }, + "AWN_nbr_de_places":{ + "type":"string" + }, + "AWN_nbr_portes":{ + "type":"string" + }, + "AWN_nbr_soupapes":{ + "type":"string" + }, + "AWN_nbr_vitesses":{ + "type":"string" + }, + "AWN_nbr_volume":{ + "type":"string" + }, + "AWN_poids_vide":{ + "type":"string" + }, + "AWN_prix":{ + "type":"string" + }, + "AWN_propulsion":{ + "type":"string" + }, + "AWN_poids_total_roulant":{ + "type":"string" + }, + "AWN_poids_total_roulant_prf":{ + "type":"string" + }, + "AWN_poids_total_autorise_en_charge_prf":{ + "type":"string" + }, + "AWN_puissance_chevaux":{ + "type":"string" + }, + "AWN_puissance_fiscale":{ + "type":"string" + }, + "AWN_puissance_KW":{ + "type":"string" + }, + "AWN_type_boite_vites":{ + "type":"string" + }, + "AWN_turbo_Comprressor":{ + "type":"string" + }, + "AWN_type_mine":{ + "type":"string" + }, + "AWN_type_variante_version":{ + "type":"string" + }, + "AWN_type_vin_cg":{ + "type":"string" + }, + "AWN_version":{ + "type":"string" + }, + "AWN_pneus":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "AWN_emission_co_2_prf":{ + "type":"string" + }, + "AWN_nbr_decibels_prf":{ + "type":"string" + }, + "AWN_anee":{ + "type":"string" + }, + "AWN_k_type":{ + "type":"string" + }, + "AWN_brand_img_full_path":{ + "type":"string" + }, + "AWN_brand_img_path":{ + "type":"string" + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/api_siv_syst_me_d_immatriculation_des_v_hicules/api.py b/toolbench/toolenv/tools/Data/api_siv_syst_me_d_immatriculation_des_v_hicules/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7c27e7bf397f966cd0b1db1401bb0f584e5be66b --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_siv_syst_me_d_immatriculation_des_v_hicules/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def getcarinfo(plaque: str, with_k_type: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint provides car info from a French car plate, all you need is to interrogate the path with the correct formatted car plate, example "/AA206bc". And you will get all info you need" + with_k_type: Demandez le code TecDoc k-Type en définissant l'attribut with_k_type=1 , par défaut est 0. + + + """ + url = f"https://api-siv-systeme-d-immatriculation-des-vehicules.p.rapidapi.com/{plaque}" + querystring = {} + if with_k_type: + querystring['with_k_type'] = with_k_type + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-siv-systeme-d-immatriculation-des-vehicules.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/api_telecom.json b/toolbench/toolenv/tools/Data/api_telecom.json new file mode 100644 index 0000000000000000000000000000000000000000..434a7f5dc9684eeea1900137950888546b97cb4c --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_telecom.json @@ -0,0 +1,43 @@ +{ + "product_id": "api_b228a0c2-c1c9-4b64-8cb3-d4733295bb55", + "tool_description": "servicio de prueba api", + "home_url": "https://rapidapi.com/pabloalmeidagalvez-2Br8yjIHNt/api/api-telecom/", + "name": "api-telecom", + "title": "api-telecom", + "pricing": "FREE", + "tool_name": "api-telecom", + "score": { + "avgServiceLevel": 100, + "avgLatency": 7, + "avgSuccessRate": 100, + "popularityScore": 6.5, + "__typename": "Score" + }, + "host": "api-telecom.p.rapidapi.com", + "api_list": [ + { + "name": "/products", + "url": "https://api-telecom.p.rapidapi.com/products", + "description": "details products", + "method": "GET", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://api-telecom.p.rapidapi.com/products\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-telecom.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://api-telecom.p.rapidapi.com/products\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"api-telecom.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": { + "products": [ + { + "zone": "celulares", + "name": "celular 1", + "description": "Celular 4G con pantalla touch", + "price": 120000, + "image": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcRj9IYXCpSBzImIjSVrKxHqQkLi5dqnjekxVQ3iylyt1B3isMSEclh8MyLfg88b7s-kPuFlxDzgqJE&usqp=CAc" + } + ] + }, + "statuscode": 1, + "schema": "" + } + ], + "standardized_name": "api_telecom" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/api_telecom/api.py b/toolbench/toolenv/tools/Data/api_telecom/api.py new file mode 100644 index 0000000000000000000000000000000000000000..3539d66306f063ad25a1ea6737d879d4f16c8661 --- /dev/null +++ b/toolbench/toolenv/tools/Data/api_telecom/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def products(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "details products" + + """ + url = f"https://api-telecom.p.rapidapi.com/products" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "api-telecom.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/apollo_enrichment.json b/toolbench/toolenv/tools/Data/apollo_enrichment.json new file mode 100644 index 0000000000000000000000000000000000000000..46881474274a12d28440cfc0ff847cf7fdc69de7 --- /dev/null +++ b/toolbench/toolenv/tools/Data/apollo_enrichment.json @@ -0,0 +1,30 @@ +{ + "product_id": "api_29b86ed0-cda5-432a-8448-097832385911", + "tool_description": "Enrich your people or organization data with over 100 datapoints. Get an API key here: https://www.apollo.io/app/#/settings/integrations/api", + "home_url": "https://rapidapi.com/apollo-api-apollo-api-default/api/apollo-enrichment/", + "name": "Apollo Enrichment", + "title": "Apollo Enrichment", + "pricing": "FREE", + "tool_name": "Apollo Enrichment", + "score": { + "avgServiceLevel": 100, + "avgLatency": 239, + "avgSuccessRate": 91, + "popularityScore": 9.4, + "__typename": "Score" + }, + "host": "apollo-enrichment.p.rapidapi.com", + "api_list": [ + { + "name": "Enrich People", + "url": "https://apollo-enrichment.p.rapidapi.com/people/match", + "description": "Use this endpoint to enrich your people data", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://apollo-enrichment.p.rapidapi.com/people/match\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apollo-enrichment.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://apollo-enrichment.p.rapidapi.com/people/match\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apollo-enrichment.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/app_details_from_playstore/api.py b/toolbench/toolenv/tools/Data/app_details_from_playstore/api.py new file mode 100644 index 0000000000000000000000000000000000000000..fbf2b07d72d026aa331ff2a3287168e91e67c8b1 --- /dev/null +++ b/toolbench/toolenv/tools/Data/app_details_from_playstore/api.py @@ -0,0 +1,56 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def badge_from_shields_io(is_id: str, type: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint returns a particular attribute from the playstore data in a format that is recognized by the shields.io badges. This can be used in combination with shields.io for generating android app related badges with realtime values for your app's README file." + id: The package name of your android application. + type: can be one among : **[ downloads, package, version, size, lastUpdated, rating, noOfUsersRated, developer ]** + + """ + url = f"https://app-details-from-playstore.p.rapidapi.com/{type}" + querystring = {'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-details-from-playstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def json_with_all_details(is_id: str, forceupdate: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint returns all the available details." + id: This is where you will need to pass your app's unique id (or) sometimes called as package-name. + forceupdate: Usually, this API caches the app's data for about an hour. Hence, if you want to override this cache (or) want **non-cached fresh** data of your app, you will have to set this parameter to ***true***. + + """ + url = f"https://app-details-from-playstore.p.rapidapi.com/json" + querystring = {'id': is_id, } + if forceupdate: + querystring['forceUpdate'] = forceupdate + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-details-from-playstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/app_store.json b/toolbench/toolenv/tools/Data/app_store.json new file mode 100644 index 0000000000000000000000000000000000000000..d52005fd18ec635eb9ec13fc25c7e260d6e64f7d --- /dev/null +++ b/toolbench/toolenv/tools/Data/app_store.json @@ -0,0 +1,1220 @@ +{ + "tool_name":"App Store", + "tool_description":"Unofficial Apple App Store Api", + "title":"App Store", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":269, + "avgSuccessRate":100, + "popularityScore":9.7, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/pyuser/api/app-store2/", + "host":"app-store2.p.rapidapi.com", + "api_list":[ + { + "name":"Reviews by bundle ID", + "url":"https://app-store2.p.rapidapi.com/reviews/bundle/{appid}", + "description":"Get reviews for a chosen app by app bundle id", + "method":"GET", + "required_parameters":[ + { + "name":"appId", + "type":"string", + "description":"", + "default":"com.zhiliaoapp.musically" + } + ], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"sort", + "type":"ENUM", + "description":"", + "default":"" + }, + { + "name":"page", + "type":"NUMBER", + "description":"", + "default":"1" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/reviews/bundle/{appid}\"\nquerystring = {\"country\": country, \"lang\": lang, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Reviews by ID", + "url":"https://app-store2.p.rapidapi.com/reviews/{id}", + "description":"Get reviews for a chosen app by app id", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"string", + "description":"", + "default":"835599320" + } + ], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"page", + "type":"NUMBER", + "description":"", + "default":"1" + }, + { + "name":"sort", + "type":"ENUM", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/reviews/{id}\"\nquerystring = {\"country\": country, \"lang\": lang, \"page\": page}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Search", + "url":"https://app-store2.p.rapidapi.com/search", + "description":"Search for apps on the App Store", + "method":"GET", + "required_parameters":[ + { + "name":"q", + "type":"STRING", + "description":"", + "default":"search" + } + ], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"end_date", + "type":"DATE (YYYY-MM-DD)", + "description":"Date param to filter apps based on release date. Will return apps released on or before this end_date", + "default":"2023-05-06" + }, + { + "name":"start_date", + "type":"DATE (YYYY-MM-DD)", + "description":"Date param to filter apps based on release date. Will return apps released on or after this start_date", + "default":"2020-01-02" + }, + { + "name":"page", + "type":"NUMBER", + "description":"Used for pagination of results.", + "default":"2" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/search\"\nquerystring = {\"lang\": lang, \"country\": country, \"q\": q, \"end_date\": end_date, \"start_date\": start_date, \"page\": page, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"New free ios apps", + "url":"https://app-store2.p.rapidapi.com/ios/new/free", + "description":"Get list of new free ios apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ios/new/free\"\nquerystring = {\"category\": category, \"country\": country, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"New ios apps", + "url":"https://app-store2.p.rapidapi.com/ios/new", + "description":"Get list of new ios apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ios/new\"\nquerystring = {\"country\": country, \"category\": category, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top grossing mac apps", + "url":"https://app-store2.p.rapidapi.com/mac/top/grossing", + "description":"Get list of the top grossing mac apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/mac/top/grossing\"\nquerystring = {\"category\": category, \"country\": country, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top grossing ipad apps", + "url":"https://app-store2.p.rapidapi.com/ipad/top/grossing", + "description":"Get list of the top grossing ipad apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ipad/top/grossing\"\nquerystring = {\"country\": country, \"lang\": lang, \"category\": category, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top grossing ios apps", + "url":"https://app-store2.p.rapidapi.com/ios/top/grossing", + "description":"Get list of the top grossing ios apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ios/top/grossing\"\nquerystring = {\"country\": country, \"category\": category, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top paid mac apps", + "url":"https://app-store2.p.rapidapi.com/mac/top/paid", + "description":"Get list of the top paid mac apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/mac/top/paid\"\nquerystring = {\"category\": category, \"country\": country, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top paid ipad apps", + "url":"https://app-store2.p.rapidapi.com/ipad/top/paid", + "description":"Get list of the top paid ipad apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ipad/top/paid\"\nquerystring = {\"category\": category, \"country\": country, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top paid ios apps", + "url":"https://app-store2.p.rapidapi.com/ios/top/paid", + "description":"Get list of the top paid ios apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ios/top/paid\"\nquerystring = {\"lang\": lang, \"category\": category, \"country\": country, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top free mac apps", + "url":"https://app-store2.p.rapidapi.com/mac/top/free", + "description":"Get list of the top free mac apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/mac/top/free\"\nquerystring = {\"lang\": lang, \"category\": category, \"country\": country, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top free Ipad apps", + "url":"https://app-store2.p.rapidapi.com/ipad/top/free", + "description":"Get list of the top free Ipad apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ipad/top/free\"\nquerystring = {\"country\": country, \"category\": category, \"lang\": lang, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"New paid ios apps", + "url":"https://app-store2.p.rapidapi.com/ios/new/paid", + "description":"Get list of new paid ios apps", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ios/new/paid\"\nquerystring = {\"country\": country, \"lang\": lang, \"category\": category, \"num\": num}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Top free IOS apps", + "url":"https://app-store2.p.rapidapi.com/ios/top/free", + "description":"Get list of the top free apps on IOS", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + }, + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"num", + "type":"NUMBER", + "description":"Number of results to return. \nDefault: 50\nMax: 200", + "default":"100" + }, + { + "name":"category", + "type":"STRING", + "description":"", + "default":"6016" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/ios/top/free\"\nquerystring = {\"lang\": lang, \"country\": country, \"num\": num, \"category\": category}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Privacy Permissions by ID", + "url":"https://app-store2.p.rapidapi.com/privacy/{id}", + "description":"Get privacy permissions for an app by ID", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"string", + "description":"", + "default":"835599320" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/privacy/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Categories", + "url":"https://app-store2.p.rapidapi.com/categories", + "description":"Get App Store categories and their matching category codes", + "method":"GET", + "required_parameters":[], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/categories\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "BOOKS":6018, + "BUSINESS":6000, + "CATALOGS":6022, + "EDUCATION":6017, + "ENTERTAINMENT":6016, + "FINANCE":6015, + "FOOD_AND_DRINK":6023, + "GAMES":6014, + "GAMES_ACTION":7001, + "GAMES_ADVENTURE":7002, + "GAMES_ARCADE":7003, + "GAMES_BOARD":7004, + "GAMES_CARD":7005, + "GAMES_CASINO":7006, + "GAMES_DICE":7007, + "GAMES_EDUCATIONAL":7008, + "GAMES_FAMILY":7009, + "GAMES_MUSIC":7011, + "GAMES_PUZZLE":7012, + "GAMES_RACING":7013, + "GAMES_ROLE_PLAYING":7014, + "GAMES_SIMULATION":7015, + "GAMES_SPORTS":7016, + "GAMES_STRATEGY":7017, + "GAMES_TRIVIA":7018, + "GAMES_WORD":7019, + "HEALTH_AND_FITNESS":6013, + "LIFESTYLE":6012, + "MAGAZINES_AND_NEWSPAPERS":6021, + "MAGAZINES_ARTS":13007, + "MAGAZINES_AUTOMOTIVE":13006, + "MAGAZINES_WEDDINGS":13008, + "MAGAZINES_BUSINESS":13009, + "MAGAZINES_CHILDREN":13010, + "MAGAZINES_COMPUTER":13011, + "MAGAZINES_FOOD":13012, + "MAGAZINES_CRAFTS":13013, + "MAGAZINES_ELECTRONICS":13014, + "MAGAZINES_ENTERTAINMENT":13015, + "MAGAZINES_FASHION":13002, + "MAGAZINES_HEALTH":13017, + "MAGAZINES_HISTORY":13018, + "MAGAZINES_HOME":13003, + "MAGAZINES_LITERARY":13019, + "MAGAZINES_MEN":13020, + "MAGAZINES_MOVIES_AND_MUSIC":13021, + "MAGAZINES_POLITICS":13001, + "MAGAZINES_OUTDOORS":13004, + "MAGAZINES_FAMILY":13023, + "MAGAZINES_PETS":13024, + "MAGAZINES_PROFESSIONAL":13025, + "MAGAZINES_REGIONAL":13026, + "MAGAZINES_SCIENCE":13027, + "MAGAZINES_SPORTS":13005, + "MAGAZINES_TEENS":13028, + "MAGAZINES_TRAVEL":13029, + "MAGAZINES_WOMEN":13030, + "MEDICAL":6020, + "MUSIC":6011, + "NAVIGATION":6010, + "NEWS":6009, + "PHOTO_AND_VIDEO":6008, + "PRODUCTIVITY":6007, + "REFERENCE":6006, + "SHOPPING":6024, + "SOCIAL_NETWORKING":6005, + "SPORTS":6004, + "TRAVEL":6003, + "UTILITIES":6002, + "WEATHER":6001 + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"1538", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 08 Nov 2021 20:03:50 GMT", + "etag":"W/\"602-W4x9DVQJWFPLuwLJan6AzoYU+W4\"", + "server":"RapidAPI-1.2.8", + "via":"1.1 vegur", + "x-powered-by":"Express", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"Similar Apps By ID", + "url":"https://app-store2.p.rapidapi.com/similar/{id}", + "description":"Get a list of apps similar to the provided app", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"string", + "description":"", + "default":"835599320" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/similar/{id}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Similar Apps By bundle ID", + "url":"https://app-store2.p.rapidapi.com/similar/bundle/{appid}", + "description":"Get a list of apps similar to the provided app by app bundle ID", + "method":"GET", + "required_parameters":[ + { + "name":"appId", + "type":"string", + "description":"", + "default":"com.zhiliaoapp.musically" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/similar/bundle/{appid}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Applications by Developer", + "url":"https://app-store2.p.rapidapi.com/developer/{id}", + "description":"Get a list of apps published by a chosen developer", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"string", + "description":"", + "default":"1322881000" + } + ], + "optional_parameters":[ + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/developer/{id}\"\nquerystring = {\"lang\": lang}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":111, + "body":"", + "headers":"", + "schema":"" + }, + { + "name":"Application Details By bundle ID", + "url":"https://app-store2.p.rapidapi.com/app/bundle/{appid}", + "description":"Get Application information by app bundle id.", + "method":"GET", + "required_parameters":[ + { + "name":"appId", + "type":"string", + "description":"", + "default":"com.zhiliaoapp.musically" + } + ], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/app/bundle/{appid}\"\nquerystring = {\"country\": country, \"lang\": lang}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "id":835599320, + "appId":"com.zhiliaoapp.musically", + "title":"TikTok", + "developer":"TikTok Pte. Ltd.", + "developerId":1322881000, + "genres":[ + null + ], + "genreIds":[ + null + ], + "primaryGenre":"Entertainment", + "primaryGenreId":6016, + "contentRating":"12+", + "releaseDate":"Apr 02, 2014", + "description":"TikTok is THE destination for mobile videos. On TikTok, short-form videos are exciting, spontaneous, and genuine. Whether you’re a sports fanatic, a pet enthusiast, or just looking for a laugh, there’s something for everyone on TikTok. All you have to do is watch, engage with what you like, skip what you don’t, and you’ll find an endless stream of short videos that feel personalized just for you. From your morning coffee to your afternoon errands, TikTok has the videos that are guaranteed to make your day.\n\nWe make it easy for you to discover and create your own original videos by providing easy-to-use tools to view and capture your daily moments. Take your videos to the next level with special effects, filters, music, and more. \n\n■ Watch endless amount of videos customized specifically for you\nA personalized video feed based on what you watch, like, and share. TikTok offers you real, interesting, and fun videos that will make your day.\n \n■ Explore videos, just one scroll away\nWatch all types of videos, from Comedy, Gaming, DIY, Food, Sports, Memes, and Pets, to Oddly Satisfying, ASMR, and everything in between.\n \n■ Pause recording multiple times in one video\nPause and resume your video with just a tap. Shoot as many times as you need.\n \n■ Be entertained and inspired by a global community of creators\nMillions of creators are on TikTok showcasing their incredible skills and everyday life. Let yourself be inspired.\n\n■ Add your favorite music or sound to your videos for free\nEasily edit your videos with millions of free music clips and sounds. We curate music and sound playlists for you with the hottest tracks in every genre, including Hip Hop, Edm, Pop, Rock, Rap, and Country, and the most viral original sounds.\n\n■ Express yourself with creative effects\nUnlock tons of filters, effects, and AR objects to take your videos to the next level.\n\n■ Edit your own videos \nOur integrated editing tools allow you to easily trim, cut, merge and duplicate video clips without leaving the app.\n\n* Any feedback? Contact us at https://www.tiktok.com/legal/report/feedback or tweet us @tiktok_us", + "fileSize":"460213248", + "icon":"https://is2-ssl.mzstatic.com/image/thumb/Purple116/v4/29/5b/0e/295b0e42-efe6-9c1f-4859-d7e4e5f870c4/source/512x512bb.jpg", + "price":0, + "currency":"USD", + "iosVersion":"9.3", + "screenshots":[ + "https://is4-ssl.mzstatic.com/image/thumb/Purple115/v4/56/a4/60/56a4609f-249e-d91d-324c-3f7b6adba45c/fe9e9458-4e8f-40cd-83f8-4c50665cd617_img5_5_1_en-US.jpg/392x696bb.jpg", + "https://is5-ssl.mzstatic.com/image/thumb/Purple115/v4/39/7e/da/397eda85-836f-9039-37e0-408ce8f473b1/e2143df0-721e-410d-b719-3d0e58bc10c6_img5_5_2_en-US.jpg/392x696bb.jpg", + "https://is5-ssl.mzstatic.com/image/thumb/Purple125/v4/29/a5/57/29a557be-19ae-2797-888c-116e00e4cd15/b4432073-e822-4d24-8da9-c06b2934dd0e_img5_5_3_en-US.jpg/392x696bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple125/v4/cd/45/73/cd457342-a2b8-7075-7587-52271122e10b/5205efe5-6a71-4a58-97be-cdf760736991_img5_5_4_en-US.jpg/392x696bb.jpg" + ], + "ipadScreenshots":[ + "https://is3-ssl.mzstatic.com/image/thumb/Purple125/v4/f8/fa/83/f8fa83e0-0acc-1ba9-0a4c-999eed3d0f77/7faa1788-64b2-4ba1-9e2d-030c041dc2e4_img12_92_1_en-US.jpg/576x768bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple115/v4/1b/52/1f/1b521fc2-2a25-bc65-f169-4bce59400abe/0fa6539a-70c6-4818-baf4-ce865c09ccbe_img12_92_2_en-US.jpg/576x768bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple115/v4/03/ee/c0/03eec06a-f901-01be-f3fe-de7253aabbc3/a981e71f-921d-436f-9f1c-9730e456c524_img12_92_3_en-US.jpg/576x768bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple125/v4/92/80/e4/9280e4c8-0c13-06e9-4eae-3085b20a1029/81964b5c-2b1c-4719-9b0d-bc5bcc648228_img12_92_4_en-US.jpg/576x768bb.jpg" + ], + "appleTvScreenshots":[], + "score":4.742, + "reviews":10816000, + "updated":"Oct 27, 2021", + "version":"21.7.0", + "releaseNotes":"Try brand-new creative effects to make your videos stand out.", + "compatibleDevices":[ + "iPad2Wifi-iPad2Wifi", + "iPad23G-iPad23G", + "iPhone4S-iPhone4S", + "iPadThirdGen-iPadThirdGen", + "iPadThirdGen4G-iPadThirdGen4G", + "iPhone5-iPhone5", + "iPodTouchFifthGen-iPodTouchFifthGen", + "iPadFourthGen-iPadFourthGen", + "iPadFourthGen4G-iPadFourthGen4G", + "iPadMini-iPadMini", + "iPadMini4G-iPadMini4G", + "iPhone5c-iPhone5c", + "iPhone5s-iPhone5s", + "iPadAir-iPadAir", + "iPadAirCellular-iPadAirCellular", + "iPadMiniRetina-iPadMiniRetina", + "iPadMiniRetinaCellular-iPadMiniRetinaCellular", + "iPhone6-iPhone6", + "iPhone6Plus-iPhone6Plus", + "iPadAir2-iPadAir2", + "iPadAir2Cellular-iPadAir2Cellular", + "iPadMini3-iPadMini3", + "iPadMini3Cellular-iPadMini3Cellular", + "iPodTouchSixthGen-iPodTouchSixthGen", + "iPhone6s-iPhone6s", + "iPhone6sPlus-iPhone6sPlus", + "iPadMini4-iPadMini4", + "iPadMini4Cellular-iPadMini4Cellular", + "iPadPro-iPadPro", + "iPadProCellular-iPadProCellular", + "iPadPro97-iPadPro97", + "iPadPro97Cellular-iPadPro97Cellular", + "iPhoneSE-iPhoneSE", + "iPhone7-iPhone7", + "iPhone7Plus-iPhone7Plus", + "iPad611-iPad611", + "iPad612-iPad612", + "iPad71-iPad71", + "iPad72-iPad72", + "iPad73-iPad73", + "iPad74-iPad74", + "iPhone8-iPhone8", + "iPhone8Plus-iPhone8Plus", + "iPhoneX-iPhoneX", + "iPad75-iPad75", + "iPad76-iPad76", + "iPhoneXS-iPhoneXS", + "iPhoneXSMax-iPhoneXSMax", + "iPhoneXR-iPhoneXR", + "iPad812-iPad812", + "iPad834-iPad834", + "iPad856-iPad856", + "iPad878-iPad878", + "iPadMini5-iPadMini5", + "iPadMini5Cellular-iPadMini5Cellular", + "iPadAir3-iPadAir3", + "iPadAir3Cellular-iPadAir3Cellular", + "iPodTouchSeventhGen-iPodTouchSeventhGen", + "iPhone11-iPhone11", + "iPhone11Pro-iPhone11Pro", + "iPadSeventhGen-iPadSeventhGen", + "iPadSeventhGenCellular-iPadSeventhGenCellular", + "iPhone11ProMax-iPhone11ProMax", + "iPhoneSESecondGen-iPhoneSESecondGen", + "iPadProSecondGen-iPadProSecondGen", + "iPadProSecondGenCellular-iPadProSecondGenCellular", + "iPadProFourthGen-iPadProFourthGen", + "iPadProFourthGenCellular-iPadProFourthGenCellular", + "iPhone12Mini-iPhone12Mini", + "iPhone12-iPhone12", + "iPhone12Pro-iPhone12Pro", + "iPhone12ProMax-iPhone12ProMax", + "iPadAir4-iPadAir4", + "iPadAir4Cellular-iPadAir4Cellular", + "iPadEighthGen-iPadEighthGen", + "iPadEighthGenCellular-iPadEighthGenCellular", + "iPadProThirdGen-iPadProThirdGen", + "iPadProThirdGenCellular-iPadProThirdGenCellular", + "iPadProFifthGen-iPadProFifthGen", + "iPadProFifthGenCellular-iPadProFifthGenCellular", + "iPhone13Pro-iPhone13Pro", + "iPhone13ProMax-iPhone13ProMax", + "iPhone13Mini-iPhone13Mini", + "iPhone13-iPhone13", + "iPadMiniSixthGen-iPadMiniSixthGen", + "iPadMiniSixthGenCellular-iPadMiniSixthGenCellular", + "iPadNinthGen-iPadNinthGen", + "iPadNinthGenCellular-iPadNinthGenCellular" + ], + "supportedLanguages":[ + "AR", + "BN", + "MY", + "KM", + "CS", + "NL", + "EN", + "FR", + "DE", + "EL", + "HI", + "HU", + "ID", + "IT", + "JA", + "JV", + "KO", + "MS", + "PL", + "PT", + "RO", + "RU", + "ZH", + "ES", + "SV", + "TH", + "ZH", + "TR", + "UK", + "VI" + ] + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"6901", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 08 Nov 2021 19:56:18 GMT", + "etag":"W/\"1af5-cIDx5iAUb81ivzW8cpYKBUV9T8Q\"", + "server":"RapidAPI-1.2.8", + "via":"1.1 vegur", + "x-powered-by":"Express", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + }, + { + "name":"Application Details By ID", + "url":"https://app-store2.p.rapidapi.com/app/{id}", + "description":"Get Application information by app id.", + "method":"GET", + "required_parameters":[ + { + "name":"id", + "type":"string", + "description":"", + "default":"835599320" + } + ], + "optional_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"", + "default":"us" + }, + { + "name":"lang", + "type":"STRING", + "description":"", + "default":"en" + } + ], + "code":"import requests\n\nurl = \"https://app-store2.p.rapidapi.com/app/{id}\"\nquerystring = {\"country\": country, \"lang\": lang}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"app-store2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "id":835599320, + "appId":"com.zhiliaoapp.musically", + "title":"TikTok", + "developer":"TikTok Pte. Ltd.", + "developerId":1322881000, + "genres":[ + null + ], + "genreIds":[ + null + ], + "primaryGenre":"Entertainment", + "primaryGenreId":6016, + "contentRating":"12+", + "releaseDate":"Apr 02, 2014", + "description":"TikTok is THE destination for mobile videos. On TikTok, short-form videos are exciting, spontaneous, and genuine. Whether you’re a sports fanatic, a pet enthusiast, or just looking for a laugh, there’s something for everyone on TikTok. All you have to do is watch, engage with what you like, skip what you don’t, and you’ll find an endless stream of short videos that feel personalized just for you. From your morning coffee to your afternoon errands, TikTok has the videos that are guaranteed to make your day.\n\nWe make it easy for you to discover and create your own original videos by providing easy-to-use tools to view and capture your daily moments. Take your videos to the next level with special effects, filters, music, and more. \n\n■ Watch endless amount of videos customized specifically for you\nA personalized video feed based on what you watch, like, and share. TikTok offers you real, interesting, and fun videos that will make your day.\n \n■ Explore videos, just one scroll away\nWatch all types of videos, from Comedy, Gaming, DIY, Food, Sports, Memes, and Pets, to Oddly Satisfying, ASMR, and everything in between.\n \n■ Pause recording multiple times in one video\nPause and resume your video with just a tap. Shoot as many times as you need.\n \n■ Be entertained and inspired by a global community of creators\nMillions of creators are on TikTok showcasing their incredible skills and everyday life. Let yourself be inspired.\n\n■ Add your favorite music or sound to your videos for free\nEasily edit your videos with millions of free music clips and sounds. We curate music and sound playlists for you with the hottest tracks in every genre, including Hip Hop, Edm, Pop, Rock, Rap, and Country, and the most viral original sounds.\n\n■ Express yourself with creative effects\nUnlock tons of filters, effects, and AR objects to take your videos to the next level.\n\n■ Edit your own videos \nOur integrated editing tools allow you to easily trim, cut, merge and duplicate video clips without leaving the app.\n\n* Any feedback? Contact us at https://www.tiktok.com/legal/report/feedback or tweet us @tiktok_us", + "fileSize":"460213248", + "icon":"https://is2-ssl.mzstatic.com/image/thumb/Purple116/v4/29/5b/0e/295b0e42-efe6-9c1f-4859-d7e4e5f870c4/source/512x512bb.jpg", + "price":0, + "currency":"USD", + "iosVersion":"9.3", + "screenshots":[ + "https://is4-ssl.mzstatic.com/image/thumb/Purple115/v4/56/a4/60/56a4609f-249e-d91d-324c-3f7b6adba45c/fe9e9458-4e8f-40cd-83f8-4c50665cd617_img5_5_1_en-US.jpg/392x696bb.jpg", + "https://is5-ssl.mzstatic.com/image/thumb/Purple115/v4/39/7e/da/397eda85-836f-9039-37e0-408ce8f473b1/e2143df0-721e-410d-b719-3d0e58bc10c6_img5_5_2_en-US.jpg/392x696bb.jpg", + "https://is5-ssl.mzstatic.com/image/thumb/Purple125/v4/29/a5/57/29a557be-19ae-2797-888c-116e00e4cd15/b4432073-e822-4d24-8da9-c06b2934dd0e_img5_5_3_en-US.jpg/392x696bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple125/v4/cd/45/73/cd457342-a2b8-7075-7587-52271122e10b/5205efe5-6a71-4a58-97be-cdf760736991_img5_5_4_en-US.jpg/392x696bb.jpg" + ], + "ipadScreenshots":[ + "https://is3-ssl.mzstatic.com/image/thumb/Purple125/v4/f8/fa/83/f8fa83e0-0acc-1ba9-0a4c-999eed3d0f77/7faa1788-64b2-4ba1-9e2d-030c041dc2e4_img12_92_1_en-US.jpg/576x768bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple115/v4/1b/52/1f/1b521fc2-2a25-bc65-f169-4bce59400abe/0fa6539a-70c6-4818-baf4-ce865c09ccbe_img12_92_2_en-US.jpg/576x768bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple115/v4/03/ee/c0/03eec06a-f901-01be-f3fe-de7253aabbc3/a981e71f-921d-436f-9f1c-9730e456c524_img12_92_3_en-US.jpg/576x768bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple125/v4/92/80/e4/9280e4c8-0c13-06e9-4eae-3085b20a1029/81964b5c-2b1c-4719-9b0d-bc5bcc648228_img12_92_4_en-US.jpg/576x768bb.jpg" + ], + "appleTvScreenshots":[], + "score":4.742, + "reviews":10816000, + "updated":"Oct 27, 2021", + "version":"21.7.0", + "releaseNotes":"Try brand-new creative effects to make your videos stand out.", + "compatibleDevices":[ + "iPad2Wifi-iPad2Wifi", + "iPad23G-iPad23G", + "iPhone4S-iPhone4S", + "iPadThirdGen-iPadThirdGen", + "iPadThirdGen4G-iPadThirdGen4G", + "iPhone5-iPhone5", + "iPodTouchFifthGen-iPodTouchFifthGen", + "iPadFourthGen-iPadFourthGen", + "iPadFourthGen4G-iPadFourthGen4G", + "iPadMini-iPadMini", + "iPadMini4G-iPadMini4G", + "iPhone5c-iPhone5c", + "iPhone5s-iPhone5s", + "iPadAir-iPadAir", + "iPadAirCellular-iPadAirCellular", + "iPadMiniRetina-iPadMiniRetina", + "iPadMiniRetinaCellular-iPadMiniRetinaCellular", + "iPhone6-iPhone6", + "iPhone6Plus-iPhone6Plus", + "iPadAir2-iPadAir2", + "iPadAir2Cellular-iPadAir2Cellular", + "iPadMini3-iPadMini3", + "iPadMini3Cellular-iPadMini3Cellular", + "iPodTouchSixthGen-iPodTouchSixthGen", + "iPhone6s-iPhone6s", + "iPhone6sPlus-iPhone6sPlus", + "iPadMini4-iPadMini4", + "iPadMini4Cellular-iPadMini4Cellular", + "iPadPro-iPadPro", + "iPadProCellular-iPadProCellular", + "iPadPro97-iPadPro97", + "iPadPro97Cellular-iPadPro97Cellular", + "iPhoneSE-iPhoneSE", + "iPhone7-iPhone7", + "iPhone7Plus-iPhone7Plus", + "iPad611-iPad611", + "iPad612-iPad612", + "iPad71-iPad71", + "iPad72-iPad72", + "iPad73-iPad73", + "iPad74-iPad74", + "iPhone8-iPhone8", + "iPhone8Plus-iPhone8Plus", + "iPhoneX-iPhoneX", + "iPad75-iPad75", + "iPad76-iPad76", + "iPhoneXS-iPhoneXS", + "iPhoneXSMax-iPhoneXSMax", + "iPhoneXR-iPhoneXR", + "iPad812-iPad812", + "iPad834-iPad834", + "iPad856-iPad856", + "iPad878-iPad878", + "iPadMini5-iPadMini5", + "iPadMini5Cellular-iPadMini5Cellular", + "iPadAir3-iPadAir3", + "iPadAir3Cellular-iPadAir3Cellular", + "iPodTouchSeventhGen-iPodTouchSeventhGen", + "iPhone11-iPhone11", + "iPhone11Pro-iPhone11Pro", + "iPadSeventhGen-iPadSeventhGen", + "iPadSeventhGenCellular-iPadSeventhGenCellular", + "iPhone11ProMax-iPhone11ProMax", + "iPhoneSESecondGen-iPhoneSESecondGen", + "iPadProSecondGen-iPadProSecondGen", + "iPadProSecondGenCellular-iPadProSecondGenCellular", + "iPadProFourthGen-iPadProFourthGen", + "iPadProFourthGenCellular-iPadProFourthGenCellular", + "iPhone12Mini-iPhone12Mini", + "iPhone12-iPhone12", + "iPhone12Pro-iPhone12Pro", + "iPhone12ProMax-iPhone12ProMax", + "iPadAir4-iPadAir4", + "iPadAir4Cellular-iPadAir4Cellular", + "iPadEighthGen-iPadEighthGen", + "iPadEighthGenCellular-iPadEighthGenCellular", + "iPadProThirdGen-iPadProThirdGen", + "iPadProThirdGenCellular-iPadProThirdGenCellular", + "iPadProFifthGen-iPadProFifthGen", + "iPadProFifthGenCellular-iPadProFifthGenCellular", + "iPhone13Pro-iPhone13Pro", + "iPhone13ProMax-iPhone13ProMax", + "iPhone13Mini-iPhone13Mini", + "iPhone13-iPhone13", + "iPadMiniSixthGen-iPadMiniSixthGen", + "iPadMiniSixthGenCellular-iPadMiniSixthGenCellular", + "iPadNinthGen-iPadNinthGen", + "iPadNinthGenCellular-iPadNinthGenCellular" + ], + "supportedLanguages":[ + "AR", + "BN", + "MY", + "KM", + "CS", + "NL", + "EN", + "FR", + "DE", + "EL", + "HI", + "HU", + "ID", + "IT", + "JA", + "JV", + "KO", + "MS", + "PL", + "PT", + "RO", + "RU", + "ZH", + "ES", + "SV", + "TH", + "ZH", + "TR", + "UK", + "VI" + ] + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "connection":"keep-alive", + "content-length":"6901", + "content-type":"application/json; charset=utf-8", + "date":"Mon, 08 Nov 2021 19:54:27 GMT", + "etag":"W/\"1af5-cIDx5iAUb81ivzW8cpYKBUV9T8Q\"", + "server":"RapidAPI-1.2.8", + "via":"1.1 vegur", + "x-powered-by":"Express", + "x-rapidapi-region":"AWS - eu-west-1", + "x-rapidapi-version":"1.2.8" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/app_store/api.py b/toolbench/toolenv/tools/Data/app_store/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d8cd82a314ec8c5dcdb52ee4f0ecdf9fc680382c --- /dev/null +++ b/toolbench/toolenv/tools/Data/app_store/api.py @@ -0,0 +1,646 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def reviews_by_bundle_id(appid: str, country: str='us', lang: str='en', sort: str=None, page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get reviews for a chosen app by app bundle id" + + """ + url = f"https://app-store2.p.rapidapi.com/reviews/bundle/{appid}" + querystring = {} + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if sort: + querystring['sort'] = sort + if page: + querystring['page'] = page + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def reviews_by_id(is_id: str, country: str='us', lang: str='en', page: int=1, sort: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get reviews for a chosen app by app id" + + """ + url = f"https://app-store2.p.rapidapi.com/reviews/{is_id}" + querystring = {} + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if page: + querystring['page'] = page + if sort: + querystring['sort'] = sort + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search(q: str, lang: str='en', country: str='us', end_date: str='2023-05-06', start_date: str='2020-01-02', page: int=2, num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Search for apps on the App Store" + end_date: Date param to filter apps based on release date. Will return apps released on or before this end_date + start_date: Date param to filter apps based on release date. Will return apps released on or after this start_date + page: Used for pagination of results. + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/search" + querystring = {'q': q, } + if lang: + querystring['lang'] = lang + if country: + querystring['country'] = country + if end_date: + querystring['end_date'] = end_date + if start_date: + querystring['start_date'] = start_date + if page: + querystring['page'] = page + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def new_free_ios_apps(category: str='6016', country: str='us', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of new free ios apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ios/new/free" + querystring = {} + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def new_ios_apps(country: str='us', category: str='6016', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of new ios apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ios/new" + querystring = {} + if country: + querystring['country'] = country + if category: + querystring['category'] = category + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_grossing_mac_apps(category: str='6016', country: str='us', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top grossing mac apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/mac/top/grossing" + querystring = {} + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_grossing_ipad_apps(country: str='us', lang: str='en', category: str='6016', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top grossing ipad apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ipad/top/grossing" + querystring = {} + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if category: + querystring['category'] = category + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_grossing_ios_apps(country: str='us', category: str='6016', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top grossing ios apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ios/top/grossing" + querystring = {} + if country: + querystring['country'] = country + if category: + querystring['category'] = category + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_paid_mac_apps(category: str='6016', country: str='us', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top paid mac apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/mac/top/paid" + querystring = {} + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_paid_ipad_apps(category: str='6016', country: str='us', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top paid ipad apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ipad/top/paid" + querystring = {} + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_paid_ios_apps(lang: str='en', category: str='6016', country: str='us', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top paid ios apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ios/top/paid" + querystring = {} + if lang: + querystring['lang'] = lang + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_free_mac_apps(lang: str='en', category: str='6016', country: str='us', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top free mac apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/mac/top/free" + querystring = {} + if lang: + querystring['lang'] = lang + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_free_ipad_apps(country: str='us', category: str='6016', lang: str='en', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top free Ipad apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ipad/top/free" + querystring = {} + if country: + querystring['country'] = country + if category: + querystring['category'] = category + if lang: + querystring['lang'] = lang + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def new_paid_ios_apps(country: str='us', lang: str='en', category: str='6016', num: int=100, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of new paid ios apps" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ios/new/paid" + querystring = {} + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + if category: + querystring['category'] = category + if num: + querystring['num'] = num + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def top_free_ios_apps(lang: str='en', country: str='us', num: int=100, category: str='6016', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get list of the top free apps on IOS" + num: Number of results to return. +Default: 50 +Max: 200 + + """ + url = f"https://app-store2.p.rapidapi.com/ios/top/free" + querystring = {} + if lang: + querystring['lang'] = lang + if country: + querystring['country'] = country + if num: + querystring['num'] = num + if category: + querystring['category'] = category + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def privacy_permissions_by_id(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get privacy permissions for an app by ID" + + """ + url = f"https://app-store2.p.rapidapi.com/privacy/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def categories(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get App Store categories and their matching category codes" + + """ + url = f"https://app-store2.p.rapidapi.com/categories" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def similar_apps_by_id(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of apps similar to the provided app" + + """ + url = f"https://app-store2.p.rapidapi.com/similar/{is_id}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def similar_apps_by_bundle_id(appid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of apps similar to the provided app by app bundle ID" + + """ + url = f"https://app-store2.p.rapidapi.com/similar/bundle/{appid}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def applications_by_developer(is_id: str, lang: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of apps published by a chosen developer" + + """ + url = f"https://app-store2.p.rapidapi.com/developer/{is_id}" + querystring = {} + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def application_details_by_bundle_id(appid: str, country: str='us', lang: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Application information by app bundle id." + + """ + url = f"https://app-store2.p.rapidapi.com/app/bundle/{appid}" + querystring = {} + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def application_details_by_id(is_id: str, country: str='us', lang: str='en', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get Application information by app id." + + """ + url = f"https://app-store2.p.rapidapi.com/app/{is_id}" + querystring = {} + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "app-store2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/apple_app_store_scraper.json b/toolbench/toolenv/tools/Data/apple_app_store_scraper.json new file mode 100644 index 0000000000000000000000000000000000000000..47c5a1ea6df34562afa2e59c953ad6e660f97d3d --- /dev/null +++ b/toolbench/toolenv/tools/Data/apple_app_store_scraper.json @@ -0,0 +1,359 @@ +{ + "tool_name":"Apple App Store Scraper", + "tool_description":"[Unnoficial] Extract and retrieve information about iOS applications listed on the Apple App Store. With this API, you can access valuable metadata, ratings, reviews, pricing, and other details for apps available on the App Store, empowering you to gather insights, conduct market research, and enhance your app-related services.", + "title":"Apple App Store Scraper", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":2049, + "avgSuccessRate":100, + "popularityScore":8.9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/evlar-evlar-default/api/apple-app-store-scraper/", + "host":"apple-app-store-scraper.p.rapidapi.com", + "api_list":[ + { + "name":"Get App Details", + "url":"https://apple-app-store-scraper.p.rapidapi.com/v1/appstore", + "description":"Get details of App Store Listing", + "method":"GET", + "required_parameters":[ + { + "name":"country", + "type":"STRING", + "description":"Enter the two letter country code to search in. Default is **us**. Examples include:\n\n- us\n- ca\n- gb\n- de\netc", + "default":"us" + }, + { + "name":"appid", + "type":"STRING", + "description":"Enter the app ID that you want to retrieve, for example **544007664**. You can find this ID from the app store listing URL", + "default":"544007664" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://apple-app-store-scraper.p.rapidapi.com/v1/appstore\"\nquerystring = {\"country\": country, \"appid\": appid}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"apple-app-store-scraper.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "status":"ok", + "error":null, + "data":{ + "id":553834731, + "appId":"com.midasplayer.apps.candycrushsaga", + "title":"Candy Crush Saga", + "url":"https://apps.apple.com/us/app/candy-crush-saga/id553834731?uo=4", + "description":"Start playing Candy Crush Saga today – a legendary puzzle game loved by millions of players around the world.\n\nWith over a trillion levels played, this sweet match 3 puzzle game is one of the most popular mobile games of all time!\n\nSwitch and match Candies in this tasty puzzle adventure to progress to the next level for that sweet winning feeling! Solve puzzles with quick thinking and smart moves, and be rewarded with delicious rainbow-colored cascades and tasty candy combos!\n\nPlan your moves by matching 3 or more candies in a row, using boosters wisely in order to overcome those extra sticky puzzles! Blast the chocolate and collect sweet candy across thousands of levels, guaranteed to have you craving more!\n\nCandy Crush Saga features:\n\nTHE GAME THAT KEEPS YOU CRAVING MORE\nThousands of the best levels and puzzles in the Candy Kingdom and with more added every 2 weeks your sugar fix is never far away! \n\nMANY WAYS TO WIN REWARDS\nCheck back daily and spin the Daily Booster Wheel to receive free tasty rewards, and take part in time limited challenges to earn boosters to help you level up! \n\n VARIETY OF SUGAR-COATED CHALLENGES\nSweet ways to play: Game modes including Target Score, Clear the Jelly, Collect the Ingredients and Order Mode\n\nPLAY ALONE OR WITH FRIENDS\nGet to the top of the leaderboard events and compare scores with friends and competitors!\n\nLevels range from easy to hard for all adults to enjoy – accessible on-the-go, offline and online.\nIt's easy to sync the game between devices and unlock full game features when connected to the Internet or Wifi.", + "genres":[ + "Games", + "Entertainment", + "Puzzle", + "Casual" + ], + "genreIds":[ + "6014", + "6016", + "7012", + "7003" + ], + "primaryGenre":"Games", + "primaryGenreId":6014, + "contentRating":"4+", + "languages":[ + "AR", + "CA", + "HR", + "CS", + "DA", + "NL", + "EN", + "FI", + "FR", + "DE", + "HU", + "ID", + "IT", + "JA", + "KO", + "MS", + "NB", + "PL", + "PT", + "RO", + "RU", + "ZH", + "SK", + "ES", + "SV", + "TH", + "ZH", + "TR", + "VI" + ], + "size":"384792576", + "requiredOsVersion":"11", + "released":"2012-11-14T14:41:32Z", + "updated":"2023-07-05T06:17:44Z", + "releaseNotes":"We hope you’re having fun playing Candy Crush Saga! We update the game every week so don't forget to download the latest version to get all the sweet new features and levels!\n\nNew to the game? Don’t be shy, join the fun!", + "version":"1.256.0.1", + "price":0, + "currency":"USD", + "free":true, + "developerId":526656015, + "developer":"King", + "developerUrl":"https://apps.apple.com/us/developer/king/id526656015?uo=4", + "developerWebsite":"http://candycrushsaga.com/", + "score":4.70709, + "reviews":2912747, + "currentVersionScore":4.70709, + "currentVersionReviews":2912747, + "screenshots":[ + "https://is3-ssl.mzstatic.com/image/thumb/Purple126/v4/d9/3b/25/d93b2525-e62f-7ae5-b3bc-52b0eb935f47/91237cf9-d653-4d87-84a9-cd1965901003_285580_ccs_store-revamp_sta_ios-6s_1242x2208_1_en.jpg/392x696bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple116/v4/44/67/0e/44670ef8-10e8-20d5-8141-f8bc7f1c82d1/66fb12f9-e3d4-4234-a862-ca1a3514f0e7_285580_ccs_store-revamp_sta_ios-6s_1242x2208_2_en.jpg/392x696bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple126/v4/c6/26/9a/c6269a52-7a4e-d93d-4576-68f04eb21608/bfc11de4-80ed-4522-8c53-88ce9d6e5d0b_285580_ccs_store-revamp_sta_ios-6s_1242x2208_3_en.jpg/392x696bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/42/40/dc/4240dcf0-0bfa-1e13-7e35-dc0ac336e452/6e592b00-08b7-41d4-a7ca-21becdba397c_285580_ccs_store-revamp_sta_ios-6s_1242x2208_4_en.jpg/392x696bb.jpg", + "https://is4-ssl.mzstatic.com/image/thumb/Purple126/v4/c3/5f/84/c35f8429-fc61-ebeb-223d-13e77d4910aa/14163e37-4d5d-47be-999e-5d0383be9fd1_285580_ccs_store-revamp_sta_ios-6s_1242x2208_5_en.jpg/392x696bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/e9/67/e4/e967e469-05fe-d7b8-52ab-7e5707b07ff4/e8161bd0-89f5-4dd0-b725-f04922f194e8_285580_ccs_lt_aso-true-to-gameplay-ss_sta_ios-6s_1242x2208_1.jpg/392x696bb.jpg", + "https://is4-ssl.mzstatic.com/image/thumb/Purple126/v4/ef/b6/5f/efb65f7f-8bb4-9104-b4eb-03158ed5f481/feece3b7-0e98-44f6-a410-c0839c5f023c_285580_ccs_lt_aso-true-to-gameplay-ss_sta_ios-6s_1242x2208_2.jpg/392x696bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple126/v4/3e/43/75/3e4375c7-7c90-5651-8e5e-3b3d4aa3fcf1/4566515f-0e05-46e9-a782-2075a59941a5_285580_ccs_lt_aso-true-to-gameplay-ss_sta_ios-6s_1242x2208_3.jpg/392x696bb.jpg", + "https://is2-ssl.mzstatic.com/image/thumb/Purple116/v4/74/c1/76/74c176b1-e2bb-fc0b-2059-451d670686ce/22e89292-8124-4f09-9788-3995305da759_364295_CCS_Saga-Map-Update_ss_1242x2208_en.jpg/392x696bb.jpg" + ], + "ipadScreenshots":[ + "https://is3-ssl.mzstatic.com/image/thumb/Purple116/v4/55/9e/3f/559e3f4e-dc44-be18-6199-1a0256b51194/32164309-c810-4f43-a98a-eb4c3a4ef2a1_285580_ccs_store-revamp_sta_ios-iPad_2048x2732_1_en.jpg/576x768bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple116/v4/9a/cc/42/9acc42d8-5550-f10a-1f7b-34ec38867f27/0375e811-aa00-4f5b-ab64-545dc5e4c223_285580_ccs_store-revamp_sta_ios-iPad_2048x2732_2_en.jpg/576x768bb.jpg", + "https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/6c/4f/c3/6c4fc3a5-8764-eb7e-91fd-5f38055edade/c8de8e8d-d7f2-4b2f-9dae-9abe2dacc682_285580_ccs_store-revamp_sta_ios-iPad_2048x2732_3_en.jpg/576x768bb.jpg", + "https://is3-ssl.mzstatic.com/image/thumb/Purple126/v4/3e/3b/a6/3e3ba695-6e3a-9645-b88f-2ec8bfd3a455/cec7f27b-1f97-4eb9-a578-b4a1970e4424_285580_ccs_store-revamp_sta_ios-iPad_2048x2732_4_en.jpg/576x768bb.jpg", + "https://is5-ssl.mzstatic.com/image/thumb/Purple126/v4/b3/6f/d7/b36fd7a9-859e-c9b3-a881-f28f823e75df/482c13df-fffa-40a5-959b-52cc99d057b5_285580_ccs_store-revamp_sta_ios-iPad_2048x2732_5_en.jpg/576x768bb.jpg", + "https://is4-ssl.mzstatic.com/image/thumb/Purple126/v4/51/89/38/51893811-0932-0471-bfa4-427075146531/43dbc8a0-5f8c-4f42-ad4b-9de28521386a_285580_ccs_lt_aso-true-to-gameplay-ss_sta_ios-iPad_2048x2732_1.jpg/576x768bb.jpg", + "https://is5-ssl.mzstatic.com/image/thumb/Purple116/v4/de/c8/d1/dec8d161-7276-592d-fa39-39772e3c3b4c/96b029b6-7822-4ed5-8367-552646806b1b_285580_ccs_lt_aso-true-to-gameplay-ss_sta_ios-iPad_2048x2732_2.jpg/576x768bb.jpg", + "https://is4-ssl.mzstatic.com/image/thumb/Purple126/v4/89/4b/e0/894be070-8397-b4cd-9fe4-a0858bbcefb4/835e9d44-e4b3-4f74-b6f0-a01a8f1f0ec3_285580_ccs_lt_aso-true-to-gameplay-ss_sta_ios-iPad_2048x2732_3.jpg/576x768bb.jpg", + "https://is4-ssl.mzstatic.com/image/thumb/Purple126/v4/42/79/9f/42799f75-65fa-c12a-3780-90990c4a1e6f/d1c5f541-5d59-4cb6-abf7-b9d68d943277_364295_CCS_Saga-Map-Update_ss_2048x2732_en.jpg/576x768bb.jpg" + ], + "appletvScreenshots":[], + "supportedDevices":[ + "iPhone5s-iPhone5s", + "iPadAir-iPadAir", + "iPadAirCellular-iPadAirCellular", + "iPadMiniRetina-iPadMiniRetina", + "iPadMiniRetinaCellular-iPadMiniRetinaCellular", + "iPhone6-iPhone6", + "iPhone6Plus-iPhone6Plus", + "iPadAir2-iPadAir2", + "iPadAir2Cellular-iPadAir2Cellular", + "iPadMini3-iPadMini3", + "iPadMini3Cellular-iPadMini3Cellular", + "iPodTouchSixthGen-iPodTouchSixthGen", + "iPhone6s-iPhone6s", + "iPhone6sPlus-iPhone6sPlus", + "iPadMini4-iPadMini4", + "iPadMini4Cellular-iPadMini4Cellular", + "iPadPro-iPadPro", + "iPadProCellular-iPadProCellular", + "iPadPro97-iPadPro97", + "iPadPro97Cellular-iPadPro97Cellular", + "iPhoneSE-iPhoneSE", + "iPhone7-iPhone7", + "iPhone7Plus-iPhone7Plus", + "iPad611-iPad611", + "iPad612-iPad612", + "iPad71-iPad71", + "iPad72-iPad72", + "iPad73-iPad73", + "iPad74-iPad74", + "iPhone8-iPhone8", + "iPhone8Plus-iPhone8Plus", + "iPhoneX-iPhoneX", + "iPad75-iPad75", + "iPad76-iPad76", + "iPhoneXS-iPhoneXS", + "iPhoneXSMax-iPhoneXSMax", + "iPhoneXR-iPhoneXR", + "iPad812-iPad812", + "iPad834-iPad834", + "iPad856-iPad856", + "iPad878-iPad878", + "iPadMini5-iPadMini5", + "iPadMini5Cellular-iPadMini5Cellular", + "iPadAir3-iPadAir3", + "iPadAir3Cellular-iPadAir3Cellular", + "iPodTouchSeventhGen-iPodTouchSeventhGen", + "iPhone11-iPhone11", + "iPhone11Pro-iPhone11Pro", + "iPadSeventhGen-iPadSeventhGen", + "iPadSeventhGenCellular-iPadSeventhGenCellular", + "iPhone11ProMax-iPhone11ProMax", + "iPhoneSESecondGen-iPhoneSESecondGen", + "iPadProSecondGen-iPadProSecondGen", + "iPadProSecondGenCellular-iPadProSecondGenCellular", + "iPadProFourthGen-iPadProFourthGen", + "iPadProFourthGenCellular-iPadProFourthGenCellular", + "iPhone12Mini-iPhone12Mini", + "iPhone12-iPhone12", + "iPhone12Pro-iPhone12Pro", + "iPhone12ProMax-iPhone12ProMax", + "iPadAir4-iPadAir4", + "iPadAir4Cellular-iPadAir4Cellular", + "iPadEighthGen-iPadEighthGen", + "iPadEighthGenCellular-iPadEighthGenCellular", + "iPadProThirdGen-iPadProThirdGen", + "iPadProThirdGenCellular-iPadProThirdGenCellular", + "iPadProFifthGen-iPadProFifthGen", + "iPadProFifthGenCellular-iPadProFifthGenCellular", + "iPhone13Pro-iPhone13Pro", + "iPhone13ProMax-iPhone13ProMax", + "iPhone13Mini-iPhone13Mini", + "iPhone13-iPhone13", + "iPadMiniSixthGen-iPadMiniSixthGen", + "iPadMiniSixthGenCellular-iPadMiniSixthGenCellular", + "iPadNinthGen-iPadNinthGen", + "iPadNinthGenCellular-iPadNinthGenCellular", + "iPhoneSEThirdGen-iPhoneSEThirdGen", + "iPadAirFifthGen-iPadAirFifthGen", + "iPadAirFifthGenCellular-iPadAirFifthGenCellular", + "iPhone14-iPhone14", + "iPhone14Plus-iPhone14Plus", + "iPhone14Pro-iPhone14Pro", + "iPhone14ProMax-iPhone14ProMax", + "iPadTenthGen-iPadTenthGen", + "iPadTenthGenCellular-iPadTenthGenCellular", + "iPadPro11FourthGen-iPadPro11FourthGen", + "iPadPro11FourthGenCellular-iPadPro11FourthGenCellular", + "iPadProSixthGen-iPadProSixthGen", + "iPadProSixthGenCellular-iPadProSixthGenCellular" + ] + } + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "status":{ + "type":"string" + }, + "error":{ + "type":"null" + }, + "data":{ + "type":"object", + "properties":{ + "id":{ + "type":"integer" + }, + "appId":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "url":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "genres":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "genreIds":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "primaryGenre":{ + "type":"string" + }, + "primaryGenreId":{ + "type":"integer" + }, + "contentRating":{ + "type":"string" + }, + "languages":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "size":{ + "type":"string" + }, + "requiredOsVersion":{ + "type":"string" + }, + "released":{ + "type":"string" + }, + "updated":{ + "type":"string" + }, + "releaseNotes":{ + "type":"string" + }, + "version":{ + "type":"string" + }, + "price":{ + "type":"integer" + }, + "currency":{ + "type":"string" + }, + "free":{ + "type":"boolean" + }, + "developerId":{ + "type":"integer" + }, + "developer":{ + "type":"string" + }, + "developerUrl":{ + "type":"string" + }, + "developerWebsite":{ + "type":"string" + }, + "score":{ + "type":"number" + }, + "reviews":{ + "type":"integer" + }, + "currentVersionScore":{ + "type":"number" + }, + "currentVersionReviews":{ + "type":"integer" + }, + "screenshots":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "ipadScreenshots":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "appletvScreenshots":{ + "type":"array" + }, + "supportedDevices":{ + "type":"array", + "items":{ + "type":"string" + } + } + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/apple_app_store_scraper/api.py b/toolbench/toolenv/tools/Data/apple_app_store_scraper/api.py new file mode 100644 index 0000000000000000000000000000000000000000..2fcb183df756068ffa9d7b8d4b4d840c0b4bf81f --- /dev/null +++ b/toolbench/toolenv/tools/Data/apple_app_store_scraper/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_app_details(country: str, appid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get details of App Store Listing" + country: Enter the two letter country code to search in. Default is **us**. Examples include: + +- us +- ca +- gb +- de +etc + appid: Enter the app ID that you want to retrieve, for example **544007664**. You can find this ID from the app store listing URL + + """ + url = f"https://apple-app-store-scraper.p.rapidapi.com/v1/appstore" + querystring = {'country': country, 'appid': appid, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-app-store-scraper.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/apple_appstore/api.py b/toolbench/toolenv/tools/Data/apple_appstore/api.py new file mode 100644 index 0000000000000000000000000000000000000000..accb9aff0e79f88d92c2475d9a0f873e79f18c6c --- /dev/null +++ b/toolbench/toolenv/tools/Data/apple_appstore/api.py @@ -0,0 +1,321 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_developer_information(devid: str, country: str=None, lang: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Retrieves a list of applications by the give developer id. Options: + + -> devId: the AppStore dev Id of the developer, for example 284882218 for Facebook. + country: the two letter country code to get the app details from. Defaults to us. Note this also affects the language of the data. + -> lang: language code for the result text. Defaults to undefined, so country specific language should be used automatically." + + """ + url = f"https://apple-appstore.p.rapidapi.com/developer" + querystring = {'devId': devid, } + if country: + querystring['country'] = country + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_apps(term: str, num: str='2', country: str=None, page: str=None, idsonly: str=None, lang: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Retrieves a list of apps that results of searching by the given term. Options: + + -> term: the term to search for (required). + -> num: the amount of elements to retrieve. Defaults to 50. + -> page: page of results to retrieve. Defaults to to 1. + -> country: the two letter country code to get the similar apps from. Defaults to us. + -> lang: language code for the result text. Defaults to en-us. + -> idsOnly: (optional, defaults to false): skip extra lookup request. Search results will contain array of application ids." + + """ + url = f"https://apple-appstore.p.rapidapi.com/search" + querystring = {'term': term, } + if num: + querystring['num'] = num + if country: + querystring['country'] = country + if page: + querystring['page'] = page + if idsonly: + querystring['idsOnly'] = idsonly + if lang: + querystring['lang'] = lang + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search_apps_copy(term: str, num: str='2', country: str=None, page: str=None, lang: str=None, idsonly: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Retrieves a list of apps that results of searching by the given term. Options: + + -> term: the term to search for (required). + -> num: the amount of elements to retrieve. Defaults to 50. + -> page: page of results to retrieve. Defaults to to 1. + -> country: the two letter country code to get the similar apps from. Defaults to us. + -> lang: language code for the result text. Defaults to en-us. + -> idsOnly: (optional, defaults to false): skip extra lookup request. Search results will contain array of application ids." + + """ + url = f"https://apple-appstore.p.rapidapi.com/search" + querystring = {'term': term, } + if num: + querystring['num'] = num + if country: + querystring['country'] = country + if page: + querystring['page'] = page + if lang: + querystring['lang'] = lang + if idsonly: + querystring['idsOnly'] = idsonly + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_the_suggested_apps(term: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Given a string returns up to 50 suggestions to complete a search query term." + + """ + url = f"https://apple-appstore.p.rapidapi.com/suggest" + querystring = {'term': term, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_app_privacy(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Retrieves the ratings for the app. Currently only for US App Store. Options: + + id: the AppStore "trackId" of the app, for example 553834731 for Candy Crush Saga." + + """ + url = f"https://apple-appstore.p.rapidapi.com/privacy" + querystring = {'id': is_id, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def apps_listing(num: str='2', lang: str=None, category: str=None, country: str=None, fulldetail: bool=None, collection: str='TOP_FREE_IOS', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Retrieves a list of applications from one of the collections at Apple Store. Options + + + collection: the collection to look up. Defaults to collection.TOP_FREE_IOS, available options are: + * TOP_MAC + * TOP_FREE_MAC + * TOP_GROSSING_MAC + * TOP_PAID_MAC + * NEW_IOS + * NEW_FREE_IOS + * NEW_PAID_IOS + * TOP_FREE_IOS + * TOP_FREE_IPAD + * TOP_GROSSING_IOS + * TOP_GROSSING_IPAD + * TOP_PAID_IOS + * TOP_PAID_IPAD + + -> category: the category to look up. This is a number associated with the genre for the application. Defaults to no specific category. Available options are: + *BOOKS + *BUSINESS + *CATALOGS + *EDUCATION + *ENTERTAINMENT + *FINANCE + *FOOD_AND_DRINK + *GAMES + *GAMES_ACTION + *GAMES_ADVENTURE + *GAMES_ARCADE + *GAMES_BOARD + *GAMES_CARD + *GAMES_CASINO + *GAMES_DICE + *GAMES_EDUCATIONAL + *GAMES_FAMILY + *GAMES_MUSIC + *GAMES_PUZZLE + *GAMES_RACING + *GAMES_ROLE_PLAYING + *GAMES_SIMULATION + *GAMES_SPORTS + *GAMES_STRATEGY + *GAMES_TRIVIA + *GAMES_WORD + *HEALTH_AND_FITNESS + *LIFESTYLE + *MAGAZINES_AND_NEWSPAPERS + *MAGAZINES_ARTS + *MAGAZINES_AUTOMOTIVE + *MAGAZINES_WEDDINGS + *MAGAZINES_BUSINESS + *MAGAZINES_CHILDREN + *MAGAZINES_COMPUTER + *MAGAZINES_FOOD + *MAGAZINES_CRAFTS + *MAGAZINES_ELECTRONICS + *MAGAZINES_ENTERTAINMENT + *MAGAZINES_FASHION + *MAGAZINES_HEALTH + *MAGAZINES_HISTORY + *MAGAZINES_HOME + *MAGAZINES_LITERARY + *MAGAZINES_MEN + *MAGAZINES_MOVIES_AND_MUSIC + *MAGAZINES_POLITICS + *MAGAZINES_OUTDOORS + *MAGAZINES_FAMILY + *MAGAZINES_PETS + *MAGAZINES_PROFESSIONAL + *MAGAZINES_REGIONAL + *MAGAZINES_SCIENCE + *MAGAZINES_SPORTS + *MAGAZINES_TEENS + *MAGAZINES_TRAVEL + *MAGAZINES_WOMEN + *MEDICAL + *MUSIC + *NAVIGATION + *NEWS + *PHOTO_AND_VIDEO + *PRODUCTIVITY + *REFERENCE + *SHOPPING + *SOCIAL_NETWORKING + *SPORTS + *TRAVEL + *UTILITIES + *WEATHER + + -> country: the two letter country code to get the list from. Defaults to us. + -> lang: language code for the result text. Defaults to undefined, so country specific language should be used automatically. + -> num: the amount of elements to retrieve. Defaults to 50, maximum allowed is 200. + fulldetail: If this is set to true, an extra request will be made to get extra attributes of the resulting applications (like those returned by the app method)." + category: please read the caption for more details + fulldetail: true or false + collection: please read the caption for more details + + """ + url = f"https://apple-appstore.p.rapidapi.com/list" + querystring = {} + if num: + querystring['num'] = num + if lang: + querystring['lang'] = lang + if category: + querystring['category'] = category + if country: + querystring['country'] = country + if fulldetail: + querystring['fulldetail'] = fulldetail + if collection: + querystring['collection'] = collection + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def app_full_details(is_id: str, lang: str=None, country: str=None, ratings: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This endpoint Retrieves the full detail of an application. Options: + + ->i d: the AppStore "trackId" of the app, for example 553834731 for Candy Crush Saga. + + -> country: the two letter country code to get the app details from. Defaults to us. Note this also affects the language of the data. + + -> lang: language code for the result text. Defaults to undefined, so country specific language should be used automatically. + + -> ratings: load additional ratings information like ratings number and histogram" + + """ + url = f"https://apple-appstore.p.rapidapi.com/appinfo" + querystring = {'id': is_id, } + if lang: + querystring['lang'] = lang + if country: + querystring['country'] = country + if ratings: + querystring['ratings'] = ratings + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "apple-appstore.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/arbeitnow_free_job_board.json b/toolbench/toolenv/tools/Data/arbeitnow_free_job_board.json new file mode 100644 index 0000000000000000000000000000000000000000..c9d81e107ae8446d59cfdf4e862ce43f64b59778 --- /dev/null +++ b/toolbench/toolenv/tools/Data/arbeitnow_free_job_board.json @@ -0,0 +1,46 @@ +{ + "tool_name":"Arbeitnow Free Job Board", + "tool_description":"A Job Board API for jobs in Germany and remote with visa sponsorship, relocation support and 4 day work week jobs.", + "title":"Arbeitnow Free Job Board", + "pricing":"FREE", + "score":{ + "avgServiceLevel":100, + "avgLatency":312, + "avgSuccessRate":100, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/arbeitnow/api/arbeitnow-free-job-board/", + "host":"arbeitnow-free-job-board.p.rapidapi.com", + "api_list":[ + { + "name":"Free Job Postings API", + "url":"https://arbeitnow-free-job-board.p.rapidapi.com/api/job-board-api", + "description":"Built in Berlin, Arbeitnow helps companies hire candidates with visa sponsorship / four day work week / remote opportunities.\n\nFour day work weeks - Companies offering better work life balance with a shorter work week results in improved productivity and helps retain candidates. Get your company listed on the [4 day work week jobs](https://arbeitnow.com/4-day-work-week-jobs) page\n\nHiring without Whiteboard - No trivia questions or stress inducing whiteboard interviews? We will include you in our popular section among tech & software developers - [hiring without whiteboard.](https://arbeitnow.com/hiring-without-whiteboard)\n\n[Jobs with Salary / Compensation](https://arbeitnow.com/jobs-with-salary) information helps bring transparency to candidates on what they can expect from an offer.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"Content-Type", + "type":"STRING", + "description":"", + "default":"application/json" + }, + { + "name":"visa_sponsorship", + "type":"BOOLEAN", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://arbeitnow-free-job-board.p.rapidapi.com/api/job-board-api\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"arbeitnow-free-job-board.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/arbeitnow_free_job_board/api.py b/toolbench/toolenv/tools/Data/arbeitnow_free_job_board/api.py new file mode 100644 index 0000000000000000000000000000000000000000..ca76ea7792c074d10a724ca3b0f54d7e47b81ed9 --- /dev/null +++ b/toolbench/toolenv/tools/Data/arbeitnow_free_job_board/api.py @@ -0,0 +1,39 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def free_job_postings_api(content_type: str='application/json', visa_sponsorship: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Built in Berlin, Arbeitnow helps companies hire candidates with visa sponsorship / four day work week / remote opportunities. + + Four day work weeks - Companies offering better work life balance with a shorter work week results in improved productivity and helps retain candidates. Get your company listed on the [4 day work week jobs](https://arbeitnow.com/4-day-work-week-jobs) page + + Hiring without Whiteboard - No trivia questions or stress inducing whiteboard interviews? We will include you in our popular section among tech & software developers - [hiring without whiteboard.](https://arbeitnow.com/hiring-without-whiteboard) + + [Jobs with Salary / Compensation](https://arbeitnow.com/jobs-with-salary) information helps bring transparency to candidates on what they can expect from an offer." + + """ + url = f"https://arbeitnow-free-job-board.p.rapidapi.com/api/job-board-api" + querystring = {} + if content_type: + querystring['Content-Type'] = content_type + if visa_sponsorship: + querystring['visa_sponsorship'] = visa_sponsorship + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "arbeitnow-free-job-board.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/article_content_extractor.json b/toolbench/toolenv/tools/Data/article_content_extractor.json new file mode 100644 index 0000000000000000000000000000000000000000..f303e3b29e4c864de11ba44aa55a4bb26a2bef2e --- /dev/null +++ b/toolbench/toolenv/tools/Data/article_content_extractor.json @@ -0,0 +1,109 @@ +{ + "product_id": "api_aa0b7f7b-1eb1-422a-af29-6d3e7568b3d1", + "tool_description": "Provide a URL and get main article content from news articles or blog", + "home_url": "https://rapidapi.com/ntd119/api/article-content-extractor1/", + "name": "Article Content Extractor", + "title": "Article Content Extractor", + "pricing": "FREEMIUM", + "tool_name": "Article Content Extractor", + "score": { + "avgServiceLevel": 100, + "avgLatency": 762, + "avgSuccessRate": 100, + "popularityScore": 8.3, + "__typename": "Score" + }, + "host": "article-content-extractor1.p.rapidapi.com", + "api_list": [ + { + "name": "Get content", + "url": "https://article-content-extractor1.p.rapidapi.com/extract", + "description": "Get main article content from news articles or blog", + "method": "GET", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "", + "default": "https://rapidapi.com/blog/api-glossary/api/" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://article-content-extractor1.p.rapidapi.com/extract\"\nquerystring = {\"url\": \"https://rapidapi.com/blog/api-glossary/api/\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-content-extractor1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://article-content-extractor1.p.rapidapi.com/extract\"\nquerystring = {\"url\": \"https://rapidapi.com/blog/api-glossary/api/\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-content-extractor1.p.rapidapi.com\"\n }\n\nresponse = requests.get(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": { + "data": { + "authors": [], + "contents": [ + "Blog \u00bb API Glossary: Glossary of API Terms & Programming Acronyms \u00bb API \u2013 What is an API?", + " A |B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y ", + "API \u2013 What is an API?An API (Application Programming Interface) is a set of rules and specifications used to communicate between two applications. In simple terms, an API allows one program to interact with another program. For example, you can create an app that lets users send messages to each other through Facebook Messenger. Under the hood, you can use Facebook Messenger API to integrate this functionality into your application using automation to implement these API calls.What exactly is an API? What does an API Do? API Full FormWhat does API\u00a0Stand for?API stands for Application Programming Interface. An API (not to be confused with the American Petroleum Institute), an acronym for Application Programming Interface, is a set of definitions and protocols that allow technology products and services to communicate with each other via the internet of things (IoT). What are APIs used for?If you are a beginner programmer, you may be wondering what the definition of API is. An API (Application Programming Interface) allows your application to interact with an external service using a simple set of commands. To break down the name, the \u201cInterface\u201d is where different software components can interact. Using an API allows developers to add specific functionalities to their applications and can speed up the development process.\u00a0Most of the web applications you use every day rely on APIs in some capacity. There are APIs\u00a0for nearly every category imaginable, from data to travel and even sports. For example, rather than investing time and resources to create their own payment processing system, many applications use a payment processing API\u00a0like Stripe instead.APIs act like building blocks, allowing developers to build applications much faster. They also prevent developers from having to \u201creinvent the wheel\u201d and spend time creating functionality that already exists.\u00a0What does an API\u00a0do?In simplest terms, an API\u00a0acts as a middleman between two or more applications, accepting messages and returning a response. When developing a complex application, we write all of the data manipulation code on the server, which is not accessible to the user on the client side. It is primarily for security reasons. A server is a separate application that is hosted elsewhere.To obtain data from the server, we must use the server\u2019s API. The API will return a response to the client based on their authentication\u00a0level.An API isn\u2019t just for getting data. It can also be used to create, delete, or exchange data on the server.\u00a0What are APIs Used For? API Explanation For Beginners:Essentially, an API allows two software programs to communicate with each other. One program can call another program\u2019s API to get access to data or functionality of the other program.To understand exactly how an API works, consider this non-technical example. When you go to a restaurant, a waiter will take your order and report it to the kitchen. The kitchen makes your food, and the waiter brings it back to your table.In this example, one program is you (the person ordering food), and one program is the kitchen. The waiter represents the API that is used to receive requests and return something. In this case, the waiter returns your order, but an actual API would return data or other functionality.What are Some Examples of APIs? API Examples and Use CaseNow that we have a basic understanding of APIs, it should be easier to see why APIs are so essential in programming. For a slightly more technical example, consider how APIs might play out using a ride-share app as an example. First, you sign up for the ride-share application. Then, you can map your route, find your driver, and pay for the ride all without ever leaving the app.The ride-sharing app is likely using APIs to make all of this work. For example, an API like Telesign could verify that you own the phone number you provided at sign-up. Calculating the time and distance of the ride is probably done with a maps API. An SMS API like Nexmo could notify you that the driver has arrived at the pickup location. When it\u2019s time to pay, your payment is likely processed with an API like Stripe. Finally, when you get a receipt for your ride, an API like SendGrid sends it to your email.This is one example of how APIs can be used together to quickly add functionality to an application. To see other API examples, visit the RapidAPI Hub.What are microservices?Microservices are an architectural style that structures an application as a collection of small, independent, and loosely coupled services. Each microservice is designed to perform a specific business function and can communicate with other microservices through lightweight protocols, such as HTTP or messaging systems.Microservices are typically deployed independently and can be scaled horizontally, allowing for greater flexibility and resilience. They can also be developed and deployed using different technologies and programming languages as long as they adhere to common communication protocols.The benefits of using microservices architecture include faster development and deployment times, improved scalability, better fault isolation, and easier maintenance and updates. However, implementing a microservices architecture also requires careful design and management to ensure proper communication and coordination between the services.\u00a0What Different Types of APIs are there?In terms of architecture, there are five types of APIs:REST APIs: REST APIs allow you to perform CRUD (create, read, update, and delete) operations between a client and a server. It provides multiple API endpoints to manipulate data.GraphQL APIs: It is a query language that lets clients request the precise data they require from the server. Thus, eliminating the issues of under-fetching and over-fetching that occur in other operating systems.SOAP APIs: Any web service that complies with the SOAP web services API specification is a SOAP web service.Kafka APIs: Apache Kafka is an event streaming platform that combines three capabilities so that you can implement different use cases. The three capabilities are publishing and subscribing to the streams of events, storing streams of events durably and reliably, and processing streams of events as they occur.Async APIs: These APIs work on the principle of Event-Driven Architecture (EDA). In AsyncAPIs, multiple Subscribers can subscribe to a Publisher. When an event occurs, the Publisher (API provider) can notify all the Subscribers via the Message broker.In terms of access, there are four main types of APIs:Open APIs: Also known as Public APIs. These APIs are publicly available, and there are no restrictions to accessing them.Partner APIs: These APIs are not publicly available, so you need specific rights or licenses to access them; a good example is APIs shared by a business with business partners to leverage the API capabilities to provide business value.Internal APIs: Also known as Private APIs. These APIs are usually meant for use within a company and are only exposed by internal systems. A company can use this type of API across different internal teams to be able to improve its products and services.Composite APIs: These APIs combine different data and service APIs. It is a sequence of tasks that runs synchronously as a result of the execution and not at the request of a task. The main purpose of this type of API is to speed up the process of execution and improve the performance of the listeners in the web interfaces.What are Web Service APIs?Apart from the main web APIs, there are also web service APIs. A web service is a system or software that uses an address (ex: the URL on the World Wide Web) to provide access to its services. The most common types of web service APIs include:SOAP (Simple Object Access Protocol): This is a protocol that uses XML as a format to transfer data. Its main function is to define the structure of the messages and methods of communication. It also uses WSDL (Web Service Definition Language) in a machine-readable document to publish a definition of its interface.XML-RPC: This is a protocol that uses a specific XML format to transfer data, compared to SOAP which uses a proprietary XML format. It is also older than SOAP. XML-RPX uses minimum bandwidth and is much simpler than SOAP.JSON-RPC: This protocol is similar to XML-RPC, but instead of using an XML format to transfer the data, it uses JSON.REST (Representational State Transfer): REST is not a protocol like the other web services. Instead, it is a set of architectural principles. The REST service needs to have certain characteristics, like simple interfaces, which are resources easily identified within the request.Read to learn more about the difference between SOAP, REST, and JSON.What are Webhook APIs?There is another type of API called a webhook API. Webhook APIs function similarly to how a traditional REST API works, but it happens in the opposite direction. Typically, you write a program that will perform an API call and get a response from that API. In some cases, you don\u2019t want to call the API; you just want the API to notify you when something has occurred.An example of this would be a billing system. You wouldn\u2019t want to have to continuously make a request to an API to see if a payment has been made. Instead, you would use a webhook API to notify you every time a payment is made.SOA vs. Microservices ArchitectureSOA and microservices are two approaches used for developing distributed systems with remote APIs. SOA breaks down functions into loosely coupled components, while microservices create specialized, independent services that communicate using lightweight protocols. While SOA is simpler than a monolithic architecture, it can introduce additional complexity. Microservices support faster feature delivery and dynamic scalability but require careful management to avoid potential issues such as data inconsistency and performance problems. Both approaches have their strengths and weaknesses, and developers must choose the architecture that best suits their application requirements.\u00a0What is API Management?API management refers to the process of designing, publishing, securing, monitoring, and analyzing APIs (Application Programming Interfaces) to maximize their value and potential. It involves various tools, techniques, and processes that enable organizations to control and optimize the use of their APIs across multiple applications, platforms, and devices. Effective API management ensures that APIs are accessible, discoverable, and secure while also providing insights into API usage, performance, and behavior. API management is a critical aspect of modern software development and enables organizations to leverage their APIs to create new products, services, and revenue streams.\u00a0What is API documentation?API documentation is a crucial aspect of API management that involves creating a comprehensive guide for developers on how to use an API effectively. The documentation should be clear, concise, and up-to-date and include code samples and explanations in simple language to help beginners understand the API functionality. Good API documentation should also cover all of the problems that the API can solve for users and ensure that they have all the necessary information to work with the API. By following these best practices, developers can create effective API documentation that helps users integrate and use the API successfully.\u00a0SummaryAPIs are purpose-built to perform a specific function of allowing communication between applications. APIs have become an integral part of application development. They allow developers to quickly integrate specific functionality into their applications or website. There are thousands of Public APIs on RapidAPI; find the one that will help power your next project on the RapidAPI Hub.Related terms: API Gateways API Requests\u00a0TutorialsHow to use an APIWith JavaScriptWith ReactWith Node.jsWith PythonWith PHPWith JavaWith Ruby on RailisWith C#How to Build an APIWith PythonWith Node.js (& Express.js)Add Your APIBrowse APIsFor EnterprisesBring software to market more rapidly with a dedicated API marketplace:White-labeled internal marketplaceBreak development silosGovern API consumptionCreate an Enterprise API MarketplaceTry RapidAPI for Teams \u00ab Client \u2013 What is Client (in API Terms)?Query Parameters \u2013 What are Query Parameters? \u00bbCheck Out These APIs Telesign SMS Verify Delivers patented phone-based verification and two-factor authentication using a time-based, one-time passcode sent over SMS Connect to API SendGrid Welcome to SendGrid\u2019s Web API v3! This API is RESTful, fully featured, and easy to integrate with. Connect to API Restb.ai Watermark Detection Detect artificially added watermarks, texts and logos in images with an A.I. powered computer vision solution Connect to API Dark Sky The easiest, most advanced, weather API on the web. Connect to API Axesso - Walmart Data Service The Axesso Walmart Data Service API returns detailed Walmart product information including product title, manufacturer, reviews, price and more. Find further information in our documentation http://api-doc.axesso.de/. Please contact us to get full access to the API, to get a private plan or discuss your requirements relating to request amount and concurrency: support@axesso.de Connect to API Face Detection Use our Face Detection API to detect the location of human faces in your images with optional extra features like Age and Gender. Connect to API " + ], + "description": "Learn what an API is, see API examples and tutorial and explore the different types of APIs that are available to you", + "image": "https://rapidapi-prod-apis.s3.amazonaws.com/0f/6e4a73e9ca4402a2857f850097d8b1/b1041e5e7273d024c2b4e50ee1f8bad2.png", + "links": [ + "https://rapidapi.com/blog/api-glossary/api/", + "https://rapidapi.com/blog/api-glossary/api/amp/" + ], + "published": null, + "source": "rapidapi.com", + "title": "What is an API? | API Definition | RapidAPI", + "url": "https://rapidapi.com/blog/api-glossary/api/" + }, + "message": "Successful", + "status": true + }, + "statuscode": 200, + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "authors": { + "type": "array" + }, + "contents": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "image": { + "type": "string" + }, + "links": { + "type": "array", + "items": { + "type": "string" + } + }, + "published": { + "type": "null" + }, + "source": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "message": { + "type": "string" + }, + "status": { + "type": "boolean" + } + } + } + } + ], + "standardized_name": "article_content_extractor" +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/article_content_extractor/api.py b/toolbench/toolenv/tools/Data/article_content_extractor/api.py new file mode 100644 index 0000000000000000000000000000000000000000..01ec4b04abbeee8abec2b23016cfe504cefe355a --- /dev/null +++ b/toolbench/toolenv/tools/Data/article_content_extractor/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_content(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get main article content from news articles or blog" + + """ + url = f"https://article-content-extractor1.p.rapidapi.com/extract" + querystring = {'url': url, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "article-content-extractor1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/article_extractor.json b/toolbench/toolenv/tools/Data/article_extractor.json new file mode 100644 index 0000000000000000000000000000000000000000..623465f25009bee4ea3db27b8465fe49ab3b4e00 --- /dev/null +++ b/toolbench/toolenv/tools/Data/article_extractor.json @@ -0,0 +1,86 @@ +{ + "tool_name": "Article Extractor", + "tool_description": "Get main article content and meta data from news articles or blog entries.", + "title": "Article Extractor", + "pricing": "FREEMIUM", + "score": { + "avgServiceLevel": 100, + "avgLatency": 1221, + "avgSuccessRate": 99, + "popularityScore": 9.8, + "__typename": "Score" + }, + "home_url": "https://rapidapi.com/pwshub-pwshub-default/api/article-extractor2/", + "host": "article-extractor2.p.rapidapi.com", + "api_list": [ + { + "name": "POST /article/parse", + "url": "https://article-extractor2.p.rapidapi.com/article/parse", + "description": "Extract main article and meta data from a news entry or blog post.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://article-extractor2.p.rapidapi.com/article/parse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-extractor2.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "GET /article/parse", + "url": "https://article-extractor2.p.rapidapi.com/article/parse", + "description": "Extract main article and meta data from a news entry or blog post.", + "method": "GET", + "required_parameters": [ + { + "name": "url", + "type": "STRING", + "description": "", + "default": "https://css-tricks.com/empathetic-animation/" + } + ], + "optional_parameters": [ + { + "name": "word_per_minute", + "type": "NUMBER", + "description": "", + "default": "300" + }, + { + "name": "desc_truncate_len", + "type": "NUMBER", + "description": "", + "default": "210" + }, + { + "name": "desc_len_min", + "type": "NUMBER", + "description": "", + "default": "180" + }, + { + "name": "content_len_min", + "type": "NUMBER", + "description": "", + "default": "200" + } + ], + "code": "import requests\n\nurl = \"https://article-extractor2.p.rapidapi.com/article/parse\"\nquerystring = {\"word_per_minute\": word_per_minute, \"desc_truncate_len\": desc_truncate_len, \"desc_len_min\": desc_len_min, \"content_len_min\": content_len_min, \"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-extractor2.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode": 111, + "body": "", + "headers": "", + "schema": "" + }, + { + "name": "POST /article/parse", + "url": "https://article-extractor2.p.rapidapi.com/article/parse", + "description": "Extract main article and meta data from a news entry or blog post.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://article-extractor2.p.rapidapi.com/article/parse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-extractor2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://article-extractor2.p.rapidapi.com/article/parse\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"article-extractor2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/article_extractor/api.py b/toolbench/toolenv/tools/Data/article_extractor/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7dc65ae0230634dadaf2447ee9f73faf1e7b476b --- /dev/null +++ b/toolbench/toolenv/tools/Data/article_extractor/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_article_parse(url: str, word_per_minute: int=300, desc_truncate_len: int=210, desc_len_min: int=180, content_len_min: int=200, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Extract main article and meta data from a news entry or blog post." + + """ + url = f"https://article-extractor2.p.rapidapi.com/article/parse" + querystring = {'url': url, } + if word_per_minute: + querystring['word_per_minute'] = word_per_minute + if desc_truncate_len: + querystring['desc_truncate_len'] = desc_truncate_len + if desc_len_min: + querystring['desc_len_min'] = desc_len_min + if content_len_min: + querystring['content_len_min'] = content_len_min + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "article-extractor2.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/article_text/api.py b/toolbench/toolenv/tools/Data/article_text/api.py new file mode 100644 index 0000000000000000000000000000000000000000..d0729db3e46d5d336e277f9f859157ffb36a2cba --- /dev/null +++ b/toolbench/toolenv/tools/Data/article_text/api.py @@ -0,0 +1,33 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def article(type: str='text', url: str='https://www.bbc.co.uk/news/technology-65949412', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the text for the article found at a url" + + """ + url = f"https://article-text1.p.rapidapi.com/article" + querystring = {} + if type: + querystring['type'] = type + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "article-text1.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/asin_data.json b/toolbench/toolenv/tools/Data/asin_data.json new file mode 100644 index 0000000000000000000000000000000000000000..18a9b4bb22537e46d89173b833de64f52d8d8deb --- /dev/null +++ b/toolbench/toolenv/tools/Data/asin_data.json @@ -0,0 +1,6294 @@ +{ + "tool_name":"ASIN Data", + "tool_description":"", + "title":"ASIN Data", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":98, + "avgLatency":2625, + "avgSuccessRate":98, + "popularityScore":9.3, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/traject-data-traject-data-default/api/asin-data/", + "host":"asin-data.p.rapidapi.com", + "api_list":[ + { + "name":"Category", + "url":"https://asin-data.p.rapidapi.com/request", + "description":"The Category Parameters are applicable when making a request with `type=category` to retrieve category results for an Amazon category. Categories can be specified either via passing an Amazon category URL in to the url parameter, or by passing a Category ID in the `category_id` and an Amazon domain in the `amazon_domain` parameter. The parameters should be appended as querystring parameters to the Product Data API GET HTTP request.\n\nCategory results are retrieved from the category listing page on Amazon.", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"STRING", + "description":"", + "default":"category" + } + ], + "optional_parameters":[ + { + "name":"refinements", + "type":"STRING", + "description":"\nA comma-seperated list of refinement values to filter the category results by. These allow you to refine your category results by values such as \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Reviews rating 4 and over\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"price range\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" and \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"brand\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\".\n\nRefinement values are returned in the refinements array of each type=category result. Refinement values are dynamic and change by category area or search term used. If you wish to use refinements you should first issue a type=category request without specifying any refinements to retrieve a master list of the available refinements for the given category area/search term. You can then cache these refinement values for use on subsequent requests.\n\nFor example, to run a type=search request specifying two refinements with values `p_85/2470955011` and `p_36/2421886011` the value of the refinements parameter would be `refinements=p_85/2470955011,p_36/2421886011`\n\nNote that sometimes Amazon do not present a explicit refinement value and instead a link is returned. In this instance you should pass the link into the url request parameter of your type=category request to retrieve data from that refinement-filtered page.", + "default":"" + }, + { + "name":"amazon_domain", + "type":"STRING", + "description":"The Amazon domain to retrieve category results from. For a full list of supported Amazon domains see [Supported Amazon Domains](https://www.asindataapi.com/docs/product-data-api/reference/amazon-domains).", + "default":"" + }, + { + "name":"page", + "type":"NUMBER", + "description":"The current page of category results to retrieve. Inspect the pagination.total_pages property in the Category results to see how many pages of category results are available.\n\nupdate value of num to get additional pages", + "default":"" + }, + { + "name":"sort_by", + "type":"STRING", + "description":"Determines the sort order of category results to return. Valid values are:\n\n- most_recent\n- price_low_to_high\n- price_high_to_low\n- featured\n- average_review\n", + "default":"" + }, + { + "name":"category_id", + "type":"STRING", + "description":"A category ID to retrieve results from. You may supply any arbitary value in the category_id parameter.\n\nASIN Data API will use the category_id in the following form: `https://amazon_domain/s?node=category_id.`\n\nNote that pagination for top-level categories is not supported by the Amazon sites. If you wish to iterate the contents of a category the recommended approach is to pick the lowest level categories to perform your iteration / pagination on.", + "default":"" + }, + { + "name":"url", + "type":"STRING", + "description":"The Amazon category results page URL to retrieve category results from. Be sure to URL-encode the url parameter.\n\n**Note the url parameter is supplied, the category_id parameter cannot be used (as the url itself defines the category ID used).**", + "default":"https://www.amazon.com/s?bbn=16225009011&rh=n%3A%2116225009011%2Cn%3A502394%2Cn%3A281052" + } + ], + "code":"import requests\n\nurl = \"https://asin-data.p.rapidapi.com/request\"\nquerystring = {\"url\": url, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asin-data.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "pagination":{ + "total_results":1000, + "current_page":1, + "total_pages":58, + "next_page_link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052&page=2&qid=1673482228&ref=sr_pg_2" + }, + "refinements":{ + "zoom_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nine_browse-bin/23488166011", + "name":"Digital Zoom", + "refinement_display_name":"Zoom Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nine_browse-bin%3A23488166011&dc&qid=1673482228&rnid=23488165011&ref=sr_nr_p_n_feature_nine_browse-bin_1&ds=v1%3AWr0QRMtw3g0t%2F4h08ZeYR8ZQ2LP8EK9L91O%2B3xM69dg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nine_browse-bin/23488168011", + "name":"Optical Zoom", + "refinement_display_name":"Zoom Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nine_browse-bin%3A23488168011&dc&qid=1673482228&rnid=23488165011&ref=sr_nr_p_n_feature_nine_browse-bin_2&ds=v1%3Ao0g6bohqPytGR9vjB2DHe7U%2B%2BWdnnSnArVUoA4YdMj4" + } + ], + "feature":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_four_browse-bin/21608086011", + "name":"Live View", + "refinement_display_name":"Feature", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_four_browse-bin%3A21608086011&dc&qid=1673482228&rnid=21608083011&ref=sr_nr_p_n_feature_four_browse-bin_1&ds=v1%3AfC64YcANd5fngncyLCdDRR%2Bb%2BzLdvWNk1BHlcjTmFME" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_four_browse-bin/21608087011", + "name":"Orientation Sensor", + "refinement_display_name":"Feature", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_four_browse-bin%3A21608087011&dc&qid=1673482228&rnid=21608083011&ref=sr_nr_p_n_feature_four_browse-bin_2&ds=v1%3Afx64W6TKZD%2BMM7y7lxIZ8jEwB%2B4TBQyn%2Fk18UxhpRv0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_four_browse-bin/21608088011", + "name":"Time Lapse", + "refinement_display_name":"Feature", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_four_browse-bin%3A21608088011&dc&qid=1673482228&rnid=21608083011&ref=sr_nr_p_n_feature_four_browse-bin_3&ds=v1%3A1ETiHVExomKFtNxxzgWlEa8yaRrsHZT9jQOE6NnApVo" + } + ], + "autofocus_technology":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-six_browse-bin/23534165011", + "name":"Contrast Detection", + "refinement_display_name":"Autofocus Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-six_browse-bin%3A23534165011&dc&qid=1673482228&rnid=23534085011&ref=sr_nr_p_n_feature_twenty-six_browse-bin_1&ds=v1%3AG3RT46zSN3bQw82j%2Fayjpc09tYS2mWfNoG8X%2BFMmX6c" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-six_browse-bin/23534164011", + "name":"Hybrid", + "refinement_display_name":"Autofocus Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-six_browse-bin%3A23534164011&dc&qid=1673482228&rnid=23534085011&ref=sr_nr_p_n_feature_twenty-six_browse-bin_2&ds=v1%3AAhFQ6YOJ8MFrFenUz2GUldaWmM4I3ZNZ%2FDWwRKz8FI8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-six_browse-bin/23534163011", + "name":"Phase Detection", + "refinement_display_name":"Autofocus Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-six_browse-bin%3A23534163011&dc&qid=1673482228&rnid=23534085011&ref=sr_nr_p_n_feature_twenty-six_browse-bin_3&ds=v1%3AVE5d1Z1S2vEewapER4fFP5f4BGmD7mav6RLIhObmrUI" + } + ], + "lens_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty_browse-bin/24046633011", + "name":"Fisheye", + "refinement_display_name":"Lens Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty_browse-bin%3A24046633011&dc&qid=1673482228&rnid=24046601011&ref=sr_nr_p_n_feature_forty_browse-bin_1&ds=v1%3Av%2Fl2dvdDP9eWKz%2FRpsTRIazcyajh8P3F8ZNPm3qaghI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty_browse-bin/24046631011", + "name":"Macro", + "refinement_display_name":"Lens Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty_browse-bin%3A24046631011&dc&qid=1673482228&rnid=24046601011&ref=sr_nr_p_n_feature_forty_browse-bin_2&ds=v1%3AHI%2BN0I0utUcuYpMVufJ0xMlhmEEC5YhsAUkSRjH%2BGHk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty_browse-bin/24046632011", + "name":"Telephoto", + "refinement_display_name":"Lens Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty_browse-bin%3A24046632011&dc&qid=1673482228&rnid=24046601011&ref=sr_nr_p_n_feature_forty_browse-bin_3&ds=v1%3ANNeYFIvQ53%2BrEEIAvJBmzHOTIrwgTsbz8RTjyo9MgfI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty_browse-bin/24046630011", + "name":"Wide Angle", + "refinement_display_name":"Lens Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty_browse-bin%3A24046630011&dc&qid=1673482228&rnid=24046601011&ref=sr_nr_p_n_feature_forty_browse-bin_4&ds=v1%3Ag2WQsPqCVKWHHq6v%2BtDJJjLrCWJ9I7nhZUcQDlz%2BkQA" + } + ], + "compatible_mountings":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040141011", + "name":"Canon EF", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040141011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_1&ds=v1%3AggfSmBtva16oZArQ4a0wMh%2BAPZXaXPYOKCioZ53dJ8A" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040131011", + "name":"Canon EF-S", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040131011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_2&ds=v1%3ATNHtt%2FgxDBm4qP01qRICivouSFzFq9psCs2ShSzozmc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040125011", + "name":"Canon RF", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040125011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_3&ds=v1%3AxvK9tt0aaeQYhMO%2BXE6Etheex7UHjUvYTwcL35JIdTI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040127011", + "name":"Micro Four Thirds", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040127011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_4&ds=v1%3ASYDabNeR67cFVR1X51V03986XCRXPHZ1MQtZJ3wM7Ek" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040124011", + "name":"Nikon 1", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040124011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_5&ds=v1%3AK7yGPVIdrWFwPXw%2BrAdJ50LFnDWMMMDIaGsdGy2SmdE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040130011", + "name":"Nikon F", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040130011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_6&ds=v1%3Ar9VrkK5KkCbO9mbbaCVYa4eUinM%2FTxjTRpyHlPa99ic" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-eight_browse-bin/24040132011", + "name":"Sony E", + "refinement_display_name":"Compatible Mountings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-eight_browse-bin%3A24040132011&dc&qid=1673482228&rnid=24039743011&ref=sr_nr_p_n_feature_thirty-eight_browse-bin_7&ds=v1%3Ahl%2FD7XKuR81dnmhh%2FdX%2FyXDBqmrMyFo%2F0C5MQJx%2BYzY" + } + ], + "connection_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_browse-bin/23501409011", + "name":"Ethernet", + "refinement_display_name":"Connection Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_browse-bin%3A23501409011&dc&qid=1673482228&rnid=23501405011&ref=sr_nr_p_n_feature_browse-bin_1&ds=v1%3AMUaVSn3E79UCRYd1fsOfnvPuNeMxJFPVctf4uO9asfg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_browse-bin/23501406011", + "name":"HDMI", + "refinement_display_name":"Connection Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_browse-bin%3A23501406011&dc&qid=1673482228&rnid=23501405011&ref=sr_nr_p_n_feature_browse-bin_2&ds=v1%3Aryo%2FaDsTvMzaeislp3GW%2FAhIUsohTQZhg1zF4w84Zfc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_browse-bin/23555008011", + "name":"Micro HDMI", + "refinement_display_name":"Connection Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_browse-bin%3A23555008011&dc&qid=1673482228&rnid=23501405011&ref=sr_nr_p_n_feature_browse-bin_3&ds=v1%3AtSze%2F8eQ9N82chC4VJXg2qZA0kXZ5HbT%2F31GhgoFtgc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_browse-bin/23555007011", + "name":"Micro USB", + "refinement_display_name":"Connection Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_browse-bin%3A23555007011&dc&qid=1673482228&rnid=23501405011&ref=sr_nr_p_n_feature_browse-bin_4&ds=v1%3A9o1SCstfQH2DUe%2FlKpFy9Ke10o%2FUDb%2FHLGU0ZTHVS9o" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_browse-bin/23501407011", + "name":"USB", + "refinement_display_name":"Connection Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_browse-bin%3A23501407011&dc&qid=1673482228&rnid=23501405011&ref=sr_nr_p_n_feature_browse-bin_5&ds=v1%3AGOE1KrVuodcyf3kkKjiDFLSqn3o7ikN0i6sne7I403U" + } + ], + "new_and_upcoming":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_date/1249033011", + "name":"New Arrivals", + "refinement_display_name":"New & Upcoming", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_date%3A1249033011&dc&qid=1673482228&rnid=1249031011&ref=sr_nr_p_n_date_1&ds=v1%3AeqJO7F3NgU7SD8uPnL3YQ%2FtLXRtAJETVnj4WdLKzqGw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_date/1249034011", + "name":"Coming Soon", + "refinement_display_name":"New & Upcoming", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_date%3A1249034011&dc&qid=1673482228&rnid=1249031011&ref=sr_nr_p_n_date_2&ds=v1%3A6BPT2fo3Lec6HS03clJDhTFFFjxsx%2BKRiSUWSi4OoiQ" + } + ], + "expert_reviews":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twelve_browse-bin/9680308011", + "name":"DPReview Tested", + "refinement_display_name":"Expert Reviews", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twelve_browse-bin%3A9680308011&dc&qid=1673482228&rnid=9680305011&ref=sr_nr_p_n_feature_twelve_browse-bin_1&ds=v1%3AGuUeP%2FU2UyzJ3Oy9u%2FnD6tl6%2FC4XWeue8G2oUi0dr5M" + } + ], + "sensor_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_five_browse-bin/23630967011", + "name":"BSI CMOS", + "refinement_display_name":"Sensor Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_five_browse-bin%3A23630967011&dc&qid=1673482228&rnid=3136285011&ref=sr_nr_p_n_feature_five_browse-bin_1&ds=v1%3AlPsi4W%2Bd%2BTX7PeWV6UUPGhVbVojczxaCefShlkoMbbs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_five_browse-bin/3136286011", + "name":"CCD", + "refinement_display_name":"Sensor Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_five_browse-bin%3A3136286011&dc&qid=1673482228&rnid=3136285011&ref=sr_nr_p_n_feature_five_browse-bin_2&ds=v1%3Axp0itH0Kl0ZZqRVLtmuQlrFTpNu5qntcBeK1V547iFM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_five_browse-bin/3136287011", + "name":"CMOS", + "refinement_display_name":"Sensor Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_five_browse-bin%3A3136287011&dc&qid=1673482228&rnid=3136285011&ref=sr_nr_p_n_feature_five_browse-bin_3&ds=v1%3A4mDV8OW3aI7zGTe2GghDsO0lIv%2BdZtIsnRyO5u%2Ffi88" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_five_browse-bin/23630966011", + "name":"MOS", + "refinement_display_name":"Sensor Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_five_browse-bin%3A23630966011&dc&qid=1673482228&rnid=3136285011&ref=sr_nr_p_n_feature_five_browse-bin_4&ds=v1%3AHKbGxi9yYlQu8vgQaWSZjNuKT%2BvijJKYkgpVRZ7Nph0" + } + ], + "intended_user":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_two_browse-bin/23473534011", + "name":"Adult", + "refinement_display_name":"Intended User", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_two_browse-bin%3A23473534011&dc&qid=1673482228&rnid=23473532011&ref=sr_nr_p_n_feature_two_browse-bin_1&ds=v1%3AqcbRhlOzllXiRzRGZRKgSzwIrEw97sxnqA928jokZ20" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_two_browse-bin/23473533011", + "name":"Kid", + "refinement_display_name":"Intended User", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_two_browse-bin%3A23473533011&dc&qid=1673482228&rnid=23473532011&ref=sr_nr_p_n_feature_two_browse-bin_2&ds=v1%3AjelB4xTEviyOv00nJ1sE56wWkd3cCBpOf5wbaxN7qlo" + } + ], + "jpeg_quality_level":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-three_browse-bin/23883453011", + "name":"Basic", + "refinement_display_name":"JPEG Quality Level", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-three_browse-bin%3A23883453011&dc&qid=1673482228&rnid=23883412011&ref=sr_nr_p_n_feature_thirty-three_browse-bin_1&ds=v1%3AldmQRxkPjonqN0pHxOHVFTsFm8yQaPnh6ilF5r8DbAg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-three_browse-bin/23883452011", + "name":"Fine", + "refinement_display_name":"JPEG Quality Level", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-three_browse-bin%3A23883452011&dc&qid=1673482228&rnid=23883412011&ref=sr_nr_p_n_feature_thirty-three_browse-bin_2&ds=v1%3AYYSR1Z6%2FQTFrVSbN8AedcZxF8rXkdg8Bgv5v%2BVPCtQ0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-three_browse-bin/23883451011", + "name":"Normal", + "refinement_display_name":"JPEG Quality Level", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-three_browse-bin%3A23883451011&dc&qid=1673482228&rnid=23883412011&ref=sr_nr_p_n_feature_thirty-three_browse-bin_3&ds=v1%3AaEEk%2BYwaC2jA4740jnsJu3kQpSldo7G9gblhbqRAL%2Fs" + } + ], + "wireless_connectivity_technology":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-nine_browse-bin/23447648011", + "name":"Bluetooth", + "refinement_display_name":"Wireless Connectivity Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-nine_browse-bin%3A23447648011&dc&qid=1673482228&rnid=23447637011&ref=sr_nr_p_n_feature_twenty-nine_browse-bin_1&ds=v1%3AXSDbMBmTqPYDmD0I4RB6%2BNvPubOzm0DGNPl6d0FDOYM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-nine_browse-bin/23555287011", + "name":"Infrared", + "refinement_display_name":"Wireless Connectivity Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-nine_browse-bin%3A23555287011&dc&qid=1673482228&rnid=23447637011&ref=sr_nr_p_n_feature_twenty-nine_browse-bin_2&ds=v1%3AwJRLeGCigIZnLcoNRhRYKcikNsMfdIf%2BXOrIjJrmgUc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-nine_browse-bin/23490147011", + "name":"NFC", + "refinement_display_name":"Wireless Connectivity Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-nine_browse-bin%3A23490147011&dc&qid=1673482228&rnid=23447637011&ref=sr_nr_p_n_feature_twenty-nine_browse-bin_3&ds=v1%3AWQkwftJdTEfjn6KnN5LEpWjUBy%2Fn7zIkFTT6BSRr8X8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-nine_browse-bin/23447647011", + "name":"Wi-Fi", + "refinement_display_name":"Wireless Connectivity Technology", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-nine_browse-bin%3A23447647011&dc&qid=1673482228&rnid=23447637011&ref=sr_nr_p_n_feature_twenty-nine_browse-bin_4&ds=v1%3AANBq65hdvSH0Afw%2FBIQbukVyS1oYkqXpSk58IUH%2Bkac" + } + ], + "exposure_control_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty_browse-bin/23539928011", + "name":"Automatic", + "refinement_display_name":"Exposure Control Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty_browse-bin%3A23539928011&dc&qid=1673482228&rnid=23539923011&ref=sr_nr_p_n_feature_thirty_browse-bin_1&ds=v1%3AbXkIWdzrhgZROu95Tz6Th3bFxd%2Fcfr5puMwYpTapUGk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty_browse-bin/23539927011", + "name":"Manual", + "refinement_display_name":"Exposure Control Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty_browse-bin%3A23539927011&dc&qid=1673482228&rnid=23539923011&ref=sr_nr_p_n_feature_thirty_browse-bin_2&ds=v1%3AEkGYoS2%2FfchQQkg0nUOxaB9VVy2v17V7FG1GiJnLj4s" + } + ], + "reviews":[ + { + "value":"n:16225009011,n:502394,n:281052||p_72/1248879011", + "name":"4 Stars & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_72%3A1248879011&dc&qid=1673482228&rnid=1248877011&ref=sr_nr_p_72_1&ds=v1%3Au%2FQbV1qnTRZhk3A15%2FnO2VUEWuPJj00HzpBJo3G2bxg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_72/1248880011", + "name":"3 Stars & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_72%3A1248880011&dc&qid=1673482228&rnid=1248877011&ref=sr_nr_p_72_2&ds=v1%3AHK8pI0I8Hhm8Oe8WuOmzmuJ4NW3SsLaSNa7gyVfH%2Fb8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_72/1248881011", + "name":"2 Stars & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_72%3A1248881011&dc&qid=1673482228&rnid=1248877011&ref=sr_nr_p_72_3&ds=v1%3A6eLFrx3jOLa%2Bm3J4b%2Ffxxees87GHKzNd75RIWMQLoTM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_72/1248882011", + "name":"1 Star & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_72%3A1248882011&dc&qid=1673482228&rnid=1248877011&ref=sr_nr_p_72_4&ds=v1%3AzTfmbHYyikqsqEeaWwdXUw5p96678AkIYpLOS1Er%2BuQ" + } + ], + "effective_megapixels":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696557011", + "name":"Up to 9.9 MP", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696557011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_1&ds=v1%3AystfO3arlPp%2FV%2F%2BUNAbLA%2FI5t7XanEX%2F%2Fous3u9I6Eg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696558011", + "name":"10 to 14.9 MP", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696558011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_2&ds=v1%3A8W9z1uOR6n%2BSuVMd0LoJn%2FPm%2FfUleTEKpwK5I7oHih0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696559011", + "name":"15 to 19.9 MP", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696559011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_3&ds=v1%3ANgiT8bUONHGqD%2FB9nSbqyip2L4hZ8xNfPKy%2B2LIOJQ0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696560011", + "name":"20 to 24.9 MP", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696560011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_4&ds=v1%3AWhQpZ45xkij1G%2FgwWTI6RyOu4Rjw1Mw0D0vkT8eNtuQ" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696561011", + "name":"25 to 29.9 MP", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696561011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_5&ds=v1%3A6SroVZmDDgojk8rTlcNdVnz6%2F%2FcLjA00JFbKyOG56ns" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696562011", + "name":"30 to 39.9 MP", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696562011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_6&ds=v1%3AkTMw3nkRm5ljoUzW0%2F9vZdBA%2FbRU5XXuIGu48Y4iojs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-five_browse-bin/17696563011", + "name":"40 MP & Above", + "refinement_display_name":"Effective Megapixels", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-five_browse-bin%3A17696563011&dc&qid=1673482228&rnid=17696556011&ref=sr_nr_p_n_feature_twenty-five_browse-bin_7&ds=v1%3Ai1IPeLROrid2wQv%2BeQp%2FC9o%2F8%2BlMOcjd4yWdXnIr9Gs" + } + ], + "viewscreen_display_size":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_seven_browse-bin/6792434011", + "name":"Under 2 Inches", + "refinement_display_name":"Viewscreen Display Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_seven_browse-bin%3A6792434011&dc&qid=1673482228&rnid=6792433011&ref=sr_nr_p_n_feature_seven_browse-bin_1&ds=v1%3AGcnVi4aY0TsUkmynhz5j1nXeutF3arYZwMH31Qbjh18" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_seven_browse-bin/6792435011", + "name":"2 to 2.9 Inches", + "refinement_display_name":"Viewscreen Display Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_seven_browse-bin%3A6792435011&dc&qid=1673482228&rnid=6792433011&ref=sr_nr_p_n_feature_seven_browse-bin_2&ds=v1%3A40rwr44nXK%2FLuN4Xoj4EMOiUsYpw9IgCXkFrH85vW7w" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_seven_browse-bin/6792436011", + "name":"3 to 3.9 Inches", + "refinement_display_name":"Viewscreen Display Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_seven_browse-bin%3A6792436011&dc&qid=1673482228&rnid=6792433011&ref=sr_nr_p_n_feature_seven_browse-bin_3&ds=v1%3AgXsQdAMwTjxvWpA12Fy%2FRiLr5qM6MRlv3C0YEUZfljs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_seven_browse-bin/6792437011", + "name":"4 to 4.9 Inches", + "refinement_display_name":"Viewscreen Display Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_seven_browse-bin%3A6792437011&dc&qid=1673482228&rnid=6792433011&ref=sr_nr_p_n_feature_seven_browse-bin_4&ds=v1%3ApJMh2epVlaDOCM9RpvYnzENYiFQOm56A7KhbuJB%2FWv0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_seven_browse-bin/6792438011", + "name":"5 to 6.9 Inches", + "refinement_display_name":"Viewscreen Display Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_seven_browse-bin%3A6792438011&dc&qid=1673482228&rnid=6792433011&ref=sr_nr_p_n_feature_seven_browse-bin_5&ds=v1%3AdAzu9Bn9yrLXnYJdmEJtf8P3Qe8%2FvGo74y8AYN0Sp2o" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_seven_browse-bin/6792439011", + "name":"Over 7 Inches", + "refinement_display_name":"Viewscreen Display Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_seven_browse-bin%3A6792439011&dc&qid=1673482228&rnid=6792433011&ref=sr_nr_p_n_feature_seven_browse-bin_6&ds=v1%3ABC29XQhJNTu5P6I2gCUxyGIUUC6NUeoh7Acwc7gMVYI" + } + ], + "availability":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_availability/2661600011", + "name":"In Stock Only", + "refinement_display_name":"Availability", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_availability%3A2661601011&dc&qid=1673482228&rnid=2661599011&ref=sr_nr_p_n_availability_1&ds=v1%3AywuhokX6%2BwU8dnyHJd%2FwVXncpPQsEz94VotPpVXk8ZQ" + } + ], + "video_capture_format":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508975011", + "name":"ASF", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508975011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_1&ds=v1%3A89lNcxdNKu8z2tOHJF7IF0Np8hd5Wwd2jrwfLUac8hY" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508974011", + "name":"AVCHD", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508974011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_2&ds=v1%3A0esapn4Kzs98aO4%2FUzcKzutJTpNQSkx2wESTPgheE1E" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508973011", + "name":"AVI", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508973011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_3&ds=v1%3AMHlMhC8rOjHC5%2BCr2g5w9IEMdjdXSDGe9%2BegzvQqmSc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508972011", + "name":"MJPEG", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508972011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_4&ds=v1%3ApfgU3nWbg3AIBpQkEk2xdTlt3iHcJ%2FWe6JvhHzzm3ig" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508976011", + "name":"MOV", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508976011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_5&ds=v1%3AP5QJkNi5R%2BRijbr8zh4dwKPHBLPLJrjbiiIvoD10B0c" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508965011", + "name":"MPEG VX", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508965011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_6&ds=v1%3APNvWpHoV6OM5p3Gjn%2FLHvW5Szdeh%2BZgUQw3DuAOZi5A" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508966011", + "name":"MPEG-4", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508966011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_7&ds=v1%3A9OgaEJWzw4Fkdr1Iz9NUZ2m2ax7IWFJuwhdOF9Awg4U" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty_browse-bin/23508964011", + "name":"XAVC", + "refinement_display_name":"Video Capture Format", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty_browse-bin%3A23508964011&dc&qid=1673482228&rnid=23508953011&ref=sr_nr_p_n_feature_twenty_browse-bin_8&ds=v1%3Af7erGNmwHLAGFqwSGBMcYwliShwEFtLuMIBnMmFuoTg" + } + ], + "optical_zoom":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_three_browse-bin/10705322011", + "name":"50x & Above", + "refinement_display_name":"Optical Zoom", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_three_browse-bin%3A10705322011&dc&qid=1673482228&rnid=401881011&ref=sr_nr_p_n_feature_three_browse-bin_1&ds=v1%3AVmyof79BiAGHadulkmscVK3%2BL9fYEZQ1j71IU88Udqw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_three_browse-bin/10705321011", + "name":"20x to 49.9x", + "refinement_display_name":"Optical Zoom", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_three_browse-bin%3A10705321011&dc&qid=1673482228&rnid=401881011&ref=sr_nr_p_n_feature_three_browse-bin_2&ds=v1%3ASRRBbWVKvIYCvqYcNokrPRGviSgSOPHkgSrHdYzouE8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_three_browse-bin/10705320011", + "name":"10x to 19.9x", + "refinement_display_name":"Optical Zoom", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_three_browse-bin%3A10705320011&dc&qid=1673482228&rnid=401881011&ref=sr_nr_p_n_feature_three_browse-bin_3&ds=v1%3AGAx22DM9DlvUQpesRy0qSvdadGks3TGaJVbZR%2Fii0sE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_three_browse-bin/10705319011", + "name":"4x to 9.9x", + "refinement_display_name":"Optical Zoom", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_three_browse-bin%3A10705319011&dc&qid=1673482228&rnid=401881011&ref=sr_nr_p_n_feature_three_browse-bin_4&ds=v1%3A8asLYhx%2BhytbeRbT9orLbzsY6ZF%2FJvDx5nnm2k6fSTI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_three_browse-bin/10705318011", + "name":"3.9x & Under", + "refinement_display_name":"Optical Zoom", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_three_browse-bin%3A10705318011&dc&qid=1673482228&rnid=401881011&ref=sr_nr_p_n_feature_three_browse-bin_5&ds=v1%3ApTOZmchIbN%2BSKvu%2FFG0XECso%2BIJNEjHfHl61g7UAzVc" + } + ], + "camera_flash":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-nine_browse-bin/24040165011", + "name":"Built-In", + "refinement_display_name":"Camera Flash", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-nine_browse-bin%3A24040165011&dc&qid=1673482228&rnid=24039746011&ref=sr_nr_p_n_feature_thirty-nine_browse-bin_1&ds=v1%3AD%2FAi1kX%2BwQPFc%2FB7%2FOyLPmWJKIijEIiq%2FpBIYIg6Uzs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-nine_browse-bin/24040168011", + "name":"Hotshoe", + "refinement_display_name":"Camera Flash", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-nine_browse-bin%3A24040168011&dc&qid=1673482228&rnid=24039746011&ref=sr_nr_p_n_feature_thirty-nine_browse-bin_2&ds=v1%3AWY4E792B3df2uRaLDzh0WVCnxfyC4osD4dSh3qq9gOc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-nine_browse-bin/24040167011", + "name":"Studio", + "refinement_display_name":"Camera Flash", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-nine_browse-bin%3A24040167011&dc&qid=1673482228&rnid=24039746011&ref=sr_nr_p_n_feature_thirty-nine_browse-bin_3&ds=v1%3AwFh%2F9aa6L88EiOw98lAXjEUyvBPQgDeiprLmFMPbfbM" + } + ], + "brand":[ + { + "value":"n:16225009011,n:502394,n:281052||p_89/HelloBaby", + "name":"HelloBaby", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3AHelloBaby&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_1&ds=v1%3A%2B7Rvv5tHv4NJkyXgr5t2EeDMoqX%2BXcXuuJ6TADtt384" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_89/Zink", + "name":"Zink", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3AZink&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_2&ds=v1%3Abep1p4neXbX8G%2Bwr8cWpWBDYurrsIjHhmg9Sc3Pyc4U" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_89/iRobot", + "name":"iRobot", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3AiRobot&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_3&ds=v1%3AXShXQMQEIZdTl%2FrBLbuz9%2Bj%2F%2By3i7WdqhRrIplimQVA" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_89/VAHOIALD", + "name":"VAHOIALD", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3AVAHOIALD&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_4&ds=v1%3AT1KAXouk2ak4YeNPKAA7RcJsNPlkpC8%2BWuoE5z1vqvE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_89/Canon", + "name":"Canon", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3ACanon&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_5&ds=v1%3AWh1vglsot%2F3Nym61JExcw9A1REoQAN0wMQyNZqXfdCQ" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_89/Femivo", + "name":"Femivo", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3AFemivo&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_6&ds=v1%3A%2Fdu3%2BXcvla0uLVCvP2KyOQpNQIX0wmNs00Eh32sXwCk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_89/VJIANGER", + "name":"VJIANGER", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_89%3AVJIANGER&dc&qid=1673482228&rnid=2528832011&ref=sr_nr_p_89_7&ds=v1%3AZHYGbFCjcJUYB32l6PBzTLdWW9NO%2FqyHhb58NaUSHdk" + } + ], + "amazon_global_store":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_is-global-store-asin/16354393011", + "name":"Amazon Global Store", + "refinement_display_name":"Amazon Global Store", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_is-global-store-asin%3A16354393011&dc&qid=1673482228&rnid=16354392011&ref=sr_nr_p_n_is-global-store-asin_1&ds=v1%3A7OLn0hPX820spQC8a9fDNOSZAPZItomSrLuukSlEf6A" + } + ], + "focus_description":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_sixteen_browse-bin/23501428011", + "name":"Active", + "refinement_display_name":"Focus Description", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_sixteen_browse-bin%3A23501428011&dc&qid=1673482228&rnid=23501425011&ref=sr_nr_p_n_feature_sixteen_browse-bin_1&ds=v1%3A5uuergmVXmYzmNPHztrkq2W0Ko10n5R4STNgZx4%2BGxU" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_sixteen_browse-bin/23501426011", + "name":"Hybrid", + "refinement_display_name":"Focus Description", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_sixteen_browse-bin%3A23501426011&dc&qid=1673482228&rnid=23501425011&ref=sr_nr_p_n_feature_sixteen_browse-bin_2&ds=v1%3A0EeEwkLGjfPIhYdxkHtG8LhZhG299bfc7S79uNwmXCc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_sixteen_browse-bin/23501427011", + "name":"Passive", + "refinement_display_name":"Focus Description", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_sixteen_browse-bin%3A23501427011&dc&qid=1673482228&rnid=23501425011&ref=sr_nr_p_n_feature_sixteen_browse-bin_3&ds=v1%3AdbVLuYxbxWoVtVmXXdcTnD0nIC4%2Bln8V0xxxjJhcoBU" + } + ], + "viewfinder_magnification":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534160011", + "name":"0.59x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534160011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_1&ds=v1%3AG1NAwb8XwZDK7V1JwAtpqD4EmdY%2F6IxdfMPrDCrMYeI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534162011", + "name":"0.5x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534162011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_2&ds=v1%3AkvGoshAhwbvD2P3VChQZMS4%2FJMiF5JQw9IslwbJ%2BhH8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534158011", + "name":"0.62x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534158011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_3&ds=v1%3AWaRqiXJA%2BwMH0wJiKvk%2BMUlGSAUwK3Dlit0U9K7Exac" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534156011", + "name":"0.67x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534156011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_4&ds=v1%3AEqLaytXrUvh8O4uXS9F3SNEGDv%2BsqS1JhpkYV7xgf%2F8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534157011", + "name":"0.70x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534157011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_5&ds=v1%3AQOvGvK2QeULdYlaTvspM%2Bp9b0fvBwb0J7axJpvkxeu4" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534143011", + "name":"0.71x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534143011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_6&ds=v1%3AJ0e%2FqL%2BpF7sqO%2BFZbsowuAr1v0NXy0RUy2hd6ZKza6Y" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534142011", + "name":"0.72x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534142011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_7&ds=v1%3AzgEiHvAQyGXFMgejEYQ1Y7rN8GUIGJZK9LqbTEX16MU" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534139011", + "name":"0.74x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534139011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_8&ds=v1%3AxZVE3TAQGxaAjV66f86arKuIVr0ofBrOcOij9XcMSIk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534141011", + "name":"0.75x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534141011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_9&ds=v1%3AmDOZufUXWnf2vrJaa4orIdGoOjvV5EbTWdLluib36IA" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534138011", + "name":"0.76x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534138011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_10&ds=v1%3AIadNmqxqBxWiW2CLKCSxQgGICqf79kbu5yVwpWmdwC0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534137011", + "name":"0.78x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534137011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_11&ds=v1%3AtGnrPmRxEZE6NFfZ8%2FMHKe9BBcOZ18a%2BLtUXKHGrGNE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534140011", + "name":"0.82x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534140011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_12&ds=v1%3ADThFj%2BaF5hpw9aIJEGubBF9sdDkLTOLaSxuLo7NfQao" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534150011", + "name":"0.85x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534150011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_13&ds=v1%3AZcmSqedcwTkC9Ej7wh%2F%2BwA8R7hhueSSeCQZ6z3P5XnQ" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534145011", + "name":"0.87x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534145011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_14&ds=v1%3AAYN8RXfEvI1xcci8eT8CJtBYRAjs%2B0Th2IjruByEJEo" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534144011", + "name":"0.8x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534144011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_15&ds=v1%3AC0khOlOskwe%2BHHE%2Bf%2BYWz2%2FJy68MtKcGZV9pHX3a59M" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534146011", + "name":"0.94x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534146011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_16&ds=v1%3Alull67sPwwdjB7M8GxhhS5hUl2YUO2Gkxwvh66Rm4u0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534148011", + "name":"0.95x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534148011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_17&ds=v1%3AdX4MzeAGqtMBDFrGFRF4kRw6oMm%2BFQEkxTbPC6rnsOU" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534149011", + "name":"1.02x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534149011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_18&ds=v1%3A4jWKGFfMUHl06xakUqRQ0Du0NZI98MKU0wS4HfUAu70" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534161011", + "name":"1.07x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534161011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_19&ds=v1%3AEmltDSGG6Kwd0GZaNu7bloBBmrx10pafbZLb5XZ%2BDxs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534151011", + "name":"1.09x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534151011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_20&ds=v1%3Asl3e9w7F4BFbrYzJPI5DZA5KqQ%2B1GMQytuuDXOADPso" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534155011", + "name":"1.23x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534155011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_21&ds=v1%3ALmKostlrv3KF%2FDU4YPti%2BJu5JUtoiilShznaDeDDoWE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534153011", + "name":"1.48x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534153011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_22&ds=v1%3AyN6zNajDKAcH%2BMiSUOCEohglGFWWA42ZKd9y8jJ8wcg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-four_browse-bin/23534152011", + "name":"1.4x", + "refinement_display_name":"Viewfinder Magnification", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-four_browse-bin%3A23534152011&dc&qid=1673482228&rnid=23534084011&ref=sr_nr_p_n_feature_twenty-four_browse-bin_23&ds=v1%3AjDPwSXn5XOIouNyRiEbjXnNNBTLBcXxofBSyCAum6lk" + } + ], + "seller":[ + { + "value":"n:16225009011,n:502394,n:281052||p_6/ATVPDKIKX0DER", + "name":"Amazon.com", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AATVPDKIKX0DER&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_1&ds=v1%3AiTSkkeklEouwZhbSvuYnmoFiJJFP1etXKSnAY%2Bf0rzs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/AXCB29L39I26U", + "name":"Focus Camera LLC", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AAXCB29L39I26U&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_2&ds=v1%3A4%2FebGYomvsLtTfd5mfU0Nc8XHr3GTZSeWs9Ks1HPXtw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/AID74FB214CVU", + "name":"1st Web Deals", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AAID74FB214CVU&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_3&ds=v1%3AP6W2bKa9r1Gmh7m4DP8Twy70nX3IgwYhikoxjB8GxbY" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/AHANP7RK1NKEU", + "name":"Hunts Photo and Video", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AAHANP7RK1NKEU&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_4&ds=v1%3ARy3A%2B6B9m%2FT2RPSu%2FBgE0Q1gaNfyQ7i2aVgVnWmOvLA" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/AOZGXIJWHA4EB", + "name":"Bit-Of-Anything", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AAOZGXIJWHA4EB&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_5&ds=v1%3APIGS1piRQioZ18Ky9dqOOw%2BXt61VpokrCxB1zaEwiBw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/A24V26WEOS21S6", + "name":"BYDEALS", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AA24V26WEOS21S6&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_6&ds=v1%3AT0brSzzfjADYGrjmHLKmzDdMmfQu%2FQkMGJgeCaPVD5o" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/A2RBLF6BYVTVOU", + "name":"Passenger Supply", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AA2RBLF6BYVTVOU&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_7&ds=v1%3AAOABD55sjkiMeM5oqAm8WqymWQkJ0LIzDWS2gNgIAGk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/A1ME2LC00SG7OW", + "name":"Delight World Co.,Ltd.", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AA1ME2LC00SG7OW&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_8&ds=v1%3APRh2Qs16z8MJlz1KHJxGptVHTSnAoKy4nyyMuNbfBTI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/A14VBARRKX5XGM", + "name":"Digital Sales Consortium", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AA14VBARRKX5XGM&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_9&ds=v1%3A0WNGhoR5AQ%2Bk%2FDj46q6gBwzv8q2BjFQV12%2B%2BdKm7pqY" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_6/A13BNE3P7C8THK", + "name":"Beach Camera Same Day Shipping", + "refinement_display_name":"Seller", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_6%3AA13BNE3P7C8THK&dc&qid=1673482228&rnid=303116011&ref=sr_nr_p_6_10&ds=v1%3A45hUkhvWuqDBIs4kCPon%2FtHnIwDGev%2BjgyWhkhaNkso" + } + ], + "display_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-seven_browse-bin/24040112011", + "name":"AMOLED", + "refinement_display_name":"Display Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-seven_browse-bin%3A24040112011&dc&qid=1673482228&rnid=24039741011&ref=sr_nr_p_n_feature_thirty-seven_browse-bin_1&ds=v1%3AV7aCWacaxXGxqcOphe6fCZbNaFX0AfRLGBefSobIj7c" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-seven_browse-bin/24040113011", + "name":"LCD", + "refinement_display_name":"Display Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-seven_browse-bin%3A24040113011&dc&qid=1673482228&rnid=24039741011&ref=sr_nr_p_n_feature_thirty-seven_browse-bin_2&ds=v1%3AyEPfa5f4%2FUkxOANCkIp1cdLMXR4BhmOUu40N0lyQCEs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-seven_browse-bin/24040114011", + "name":"OLED", + "refinement_display_name":"Display Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-seven_browse-bin%3A24040114011&dc&qid=1673482228&rnid=24039741011&ref=sr_nr_p_n_feature_thirty-seven_browse-bin_3&ds=v1%3AQNtzrceNclk3KLNWmfG0V%2F0fdwM3h6DOqgzZWQLfw3Y" + } + ], + "price":[ + { + "value":"n:16225009011,n:502394,n:281052||p_36/1253503011", + "name":"Under $25", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_36%3A1253503011&dc&qid=1673482228&rnid=386442011&ref=sr_nr_p_36_1&ds=v1%3A8jIJUR5R90ulUgSFOMrg0SqTy9xfP0ZhR3deMuXl6dU" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_36/1253504011", + "name":"$25 to $50", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_36%3A1253504011&dc&qid=1673482228&rnid=386442011&ref=sr_nr_p_36_2&ds=v1%3A75KBFT1vTxhInwtmFhaRQxNvSCMu357lfWEAl6ZDJmc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_36/1253505011", + "name":"$50 to $100", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_36%3A1253505011&dc&qid=1673482228&rnid=386442011&ref=sr_nr_p_36_3&ds=v1%3AtUM92gDfuDjdC%2BhUV8HtocUm4i9ITlq8%2BHDl3BqeffA" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_36/1253506011", + "name":"$100 to $200", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_36%3A1253506011&dc&qid=1673482228&rnid=386442011&ref=sr_nr_p_36_4&ds=v1%3AR%2F2WqrZ6OcND2nuMjfsnlGAO3WkNMnbFrFfNm3YkKq0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_36/1253507011", + "name":"$200 & Above", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_36%3A1253507011&dc&qid=1673482228&rnid=386442011&ref=sr_nr_p_36_5&ds=v1%3AelBtetwE4iGYTrBSxbLdrNS4oYhYRmppuNFQsy8IJVA" + }, + { + "value":"p_36/price-range", + "name":"$ $ Go", + "refinement_display_name":"Price" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_deal_type/23566065011", + "name":"All Discounts", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_deal_type%3A23566065011&dc&qid=1673482228&rnid=23566063011&ref=sr_nr_p_n_deal_type_1&ds=v1%3AWgvltwmPm%2B5LPwdGx81QKUNdygfUPFQ%2BxOz2JuynjWU" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_deal_type/23566064011", + "name":"Today's Deals", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_deal_type%3A23566064011&dc&qid=1673482228&rnid=23566063011&ref=sr_nr_p_n_deal_type_2&ds=v1%3AfJxkc1vcMlk40uNFidHFFuXkJzy1mpmHR6oHkhx7nEc" + } + ], + "condition":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_condition-type/2224371011", + "name":"New", + "refinement_display_name":"Condition", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_condition-type%3A2224371011&dc&qid=1673482228&rnid=2224369011&ref=sr_nr_p_n_condition-type_1&ds=v1%3AaeQzTYsui3WyWATjpn3DF4d9FXyxilc14%2Bxi%2BbSAQB0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_condition-type/2224373011", + "name":"Used", + "refinement_display_name":"Condition", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_condition-type%3A2224373011&dc&qid=1673482228&rnid=2224369011&ref=sr_nr_p_n_condition-type_2&ds=v1%3ASvL6G3SISbqDRo3Gdu1pU6b63O7CWfE%2FQNXRHACTyb8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_condition-type/16907720011", + "name":"Renewed", + "refinement_display_name":"Condition", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_condition-type%3A16907720011&dc&qid=1673482228&rnid=2224369011&ref=sr_nr_p_n_condition-type_3&ds=v1%3Aowxm17odnyVF%2B0rGZKnT837hB1N1zlDQ5%2Bi6MHjex1c" + } + ], + "packaging_option":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_is_ffp/7252855011", + "name":"Frustration-Free Packaging", + "refinement_display_name":"Packaging Option", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_is_ffp%3A7252855011&dc&qid=1673482228&rnid=7252854011&ref=sr_nr_p_n_is_ffp_1&ds=v1%3Awy5eypCikQqYztBIUo8bG41lOQTdWJO%2BuR%2BoTUHI5QE" + } + ], + "amazon_certified":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_amazon_certified/16741513011", + "name":"Works with Alexa", + "refinement_display_name":"Amazon Certified", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_amazon_certified%3A16741513011&dc&qid=1673482228&rnid=16741512011&ref=sr_nr_p_n_amazon_certified_1&ds=v1%3As2ISdt%2BNAgOzh88tpCxwRNFiHYuwWppHwWGb2bCWUJc" + } + ], + "payment_plan":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_is_layaway_eligible/24003598011", + "name":"Layaway Eligible", + "refinement_display_name":"Payment Plan", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_is_layaway_eligible%3A24003598011&dc&qid=1673482228&rnid=24003597011&ref=sr_nr_p_n_is_layaway_eligible_1&ds=v1%3AkIgQije3zUGNGbNbOB7brMR3PUeasZOARreyt7LsCBM" + } + ], + "audio_output_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-one_browse-bin/23534132011", + "name":"Headphones", + "refinement_display_name":"Audio Output Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-one_browse-bin%3A23534132011&dc&qid=1673482228&rnid=23534082011&ref=sr_nr_p_n_feature_twenty-one_browse-bin_1&ds=v1%3Aejcwx%2F2Ul8oBjeEDaxCSfl8tbBZP2UZON4%2FDk2sehEg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-one_browse-bin/23534133011", + "name":"Speakers", + "refinement_display_name":"Audio Output Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-one_browse-bin%3A23534133011&dc&qid=1673482228&rnid=23534082011&ref=sr_nr_p_n_feature_twenty-one_browse-bin_2&ds=v1%3ATt8kmxboC%2BMmnsSSCXM7hLCLRF8EL2o8CO7q9Qf2VOc" + } + ], + "video_capture_resolution":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/21608136011", + "name":"8K UHD 4320p", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A21608136011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_1&ds=v1%3Aa%2FyUsfDfwIMcFf5XtuaxznXIGP20TbSiBm0hR3sh4Ng" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/21608131011", + "name":"4K 2160p", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A21608131011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_2&ds=v1%3AwC2U5xX9wsUTeHeUuBgmgCkAmKGIePGpx0odlD3%2BndM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/21608132011", + "name":"FHD 1520p", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A21608132011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_3&ds=v1%3A8QzhVvlEhkwKPEM54efb4rsOchlm93YiJ6B7MCVy9mI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/10705427011", + "name":"FHD 1080p", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A10705427011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_4&ds=v1%3A7EdXTqVdZw0vR%2BJyr3clLGVVkpT80pd8%2BCTTxU%2BA9kk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/21608133011", + "name":"FHD 1080i", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A21608133011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_5&ds=v1%3AQchEskoDcTSBtaPg0PirEH%2F24w7QOm9M2EGskhkF1r4" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/10705425011", + "name":"HD 720p", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A10705425011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_6&ds=v1%3Ac1xM8aNcIeOwYAmU82k7f5N5U3rcmUpXD2gmFjephCY" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_eleven_browse-bin/10705424011", + "name":"SD 480p", + "refinement_display_name":"Video Capture Resolution", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_eleven_browse-bin%3A10705424011&dc&qid=1673482228&rnid=10705423011&ref=sr_nr_p_n_feature_eleven_browse-bin_7&ds=v1%3AY3lVV0aoza0d17unVp%2BDpc6pW56rQ7U4VCa4nZwKP5I" + } + ], + "display_fixture_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-six_browse-bin/24040080011", + "name":"Articulating", + "refinement_display_name":"Display Fixture Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-six_browse-bin%3A24040080011&dc&qid=1673482228&rnid=24039739011&ref=sr_nr_p_n_feature_thirty-six_browse-bin_1&ds=v1%3AXuwkKqaau63CiEUc5W8Y4jn1oy6XUhHYUFal%2F3r10%2Fk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-six_browse-bin/24040079011", + "name":"Fixed", + "refinement_display_name":"Display Fixture Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-six_browse-bin%3A24040079011&dc&qid=1673482228&rnid=24039739011&ref=sr_nr_p_n_feature_thirty-six_browse-bin_2&ds=v1%3ApeB%2F1AtuSlnTTKuKWyyT3n719MURqXO3n%2BexkdYWyiU" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-six_browse-bin/24040081011", + "name":"Tilting", + "refinement_display_name":"Display Fixture Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-six_browse-bin%3A24040081011&dc&qid=1673482228&rnid=24039739011&ref=sr_nr_p_n_feature_thirty-six_browse-bin_3&ds=v1%3A22nEJf7%2FxC8BtkKSGRdfUJxwjIYGRSDN3dYzSMLypPg" + } + ], + "white_balance_settings":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883456011", + "name":"Auto", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883456011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_1&ds=v1%3AWqAwauMKBLy27BsxhOLMVWjVsfpj6xqcSjsU37yTkII" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883461011", + "name":"Cloudy", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883461011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_2&ds=v1%3Ah7y8L1l2kAD4I9w7%2FbrMbgyYzUYUUTquEkzrz9g1byI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883457011", + "name":"Custom", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883457011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_3&ds=v1%3AyX2fVwVszGMSS7yC9%2BC%2F7NPBvJBSo9WigNWw26AEbH0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883459011", + "name":"Daylight", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883459011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_4&ds=v1%3AzsOgJ9zqh6IsSHRAdkwYabkBbTuEMBBXGKOcF9hSYHE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883454011", + "name":"Flash Use", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883454011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_5&ds=v1%3AQDqSD72%2F3F%2FZi6SZW50L0fKE7J79CXoGdZsrEuH2gPw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883460011", + "name":"Shade", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883460011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_6&ds=v1%3AlmSbDNIpMbaNmJ9JQJS5jLx479TKUCJEK2UXiQm33L0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-four_browse-bin/23883455011", + "name":"White Fluorescent Light", + "refinement_display_name":"White Balance Settings", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-four_browse-bin%3A23883455011&dc&qid=1673482228&rnid=23883413011&ref=sr_nr_p_n_feature_thirty-four_browse-bin_7&ds=v1%3ASrIBvxQGkQUUqPyi0C7xQOpaOBVA%2FqFI4dOWn4i%2F1Wk" + } + ], + "departments":[ + { + "value":"n/502394", + "name":"Camera & Photo", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394&dc&qid=1673482228&ref=sr_ex_n_1&ds=v1%3APXg8tAewHtcqkGDcQrynCqSFlJ%2BW%2F9Xe3MAardjpr5Q" + }, + { + "value":"n/281052", + "name":"Digital Cameras", + "refinement_display_name":"Departments" + }, + { + "value":"n/3017941", + "name":"DSLR Cameras", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A3017941&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_1&ds=v1%3AGmWLMldjLtO5%2BXhtZSJU4G59T8uULFWJHDfSWFXThkI" + }, + { + "value":"n/21488767011", + "name":"Instant Cameras", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A21488767011&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_2&ds=v1%3AgE4Rr%2BdtRJM6liBLZoc9v7JOn2hBuJQlRtf28wXQie8" + }, + { + "value":"n/3109924011", + "name":"Mirrorless Cameras", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A3109924011&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_3&ds=v1%3AVmI3DHctFstgGgPuVXvVGf5s0XABLWA9UvYlsLWuTR8" + }, + { + "value":"n/330405011", + "name":"Point & Shoot Digital Cameras", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A330405011&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_4&ds=v1%3Axm3MZOZNNGfglvC3Yx%2Bg%2BCx%2BIY2WSwQdTDJOS2dwKHk" + } + ], + "viewfinder_type":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_six_browse-bin/2055878011", + "name":"Optical", + "refinement_display_name":"Viewfinder Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_six_browse-bin%3A2055878011&dc&qid=1673482228&rnid=2055876011&ref=sr_nr_p_n_feature_six_browse-bin_1&ds=v1%3ANjSCaACeWxAvIwgWjKxXhdqI4XWIRZmeP%2FB8eUXez6s" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_six_browse-bin/2055879011", + "name":"LCD", + "refinement_display_name":"Viewfinder Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_six_browse-bin%3A2055879011&dc&qid=1673482228&rnid=2055876011&ref=sr_nr_p_n_feature_six_browse-bin_2&ds=v1%3Az5lZrT9Kca1HQyaiHgqHybC1oGYRZYUbmvYFu3oQd5M" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_six_browse-bin/2055877011", + "name":"Both", + "refinement_display_name":"Viewfinder Type", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_six_browse-bin%3A2055877011&dc&qid=1673482228&rnid=2055876011&ref=sr_nr_p_n_feature_six_browse-bin_3&ds=v1%3Av3TvioZJwvWnUkO64qOng9t4eplIieZjuqOye387Fog" + } + ], + "skill_level":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-five_browse-bin/23883464011", + "name":"Amateur", + "refinement_display_name":"Skill Level", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-five_browse-bin%3A23883464011&dc&qid=1673482228&rnid=23883414011&ref=sr_nr_p_n_feature_thirty-five_browse-bin_1&ds=v1%3ADXQQ0bzqs3z6m0aMxqBMBSbJ1PmV%2BG8zniUE5r%2F6rkw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-five_browse-bin/23883465011", + "name":"Novice", + "refinement_display_name":"Skill Level", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-five_browse-bin%3A23883465011&dc&qid=1673482228&rnid=23883414011&ref=sr_nr_p_n_feature_thirty-five_browse-bin_2&ds=v1%3AQ%2BRrqBBUOtChnxxBiGDQN4E3q0QbvGQhKLi8tHBEPWM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-five_browse-bin/23883463011", + "name":"Professional", + "refinement_display_name":"Skill Level", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-five_browse-bin%3A23883463011&dc&qid=1673482228&rnid=23883414011&ref=sr_nr_p_n_feature_thirty-five_browse-bin_3&ds=v1%3APago5%2BuB9Ocblq551bY1TL2%2Fo0LJob6iU%2BPZmL%2Bm4ok" + } + ], + "shooting_modes":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634047011", + "name":"Aperture Priority", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634047011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_1&ds=v1%3AsWE1F9GL%2BqBRUjLTEG%2FsO2Mw2Oz5oiqyHXIygKtcnE4" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634048011", + "name":"Automatic", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634048011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_2&ds=v1%3A1L08mhtfcYdXXkOA8sGIt2MLGxHPhrOhV0kMt5jKb9U" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634049011", + "name":"Custom", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634049011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_3&ds=v1%3AL1J8AR2c66BqtXAhCWDLanB4cN1JqLdjGo59J%2F0PKdM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634041011", + "name":"Easy", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634041011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_4&ds=v1%3AcAUqtb6XNbc669XHuhKrzd0frRPphGOOZPqRSUMnFD8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634045011", + "name":"Landscape", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634045011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_5&ds=v1%3AMKQf%2BDbJGGcVwT%2FfbF2oXiD2UUb7ZNxqPj8K%2FHRJBpg" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634044011", + "name":"Macro", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634044011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_6&ds=v1%3Aed4ID15kEDshqohpoHdApSQHrAwBoGF2kauQdnzaFqE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634037011", + "name":"Manual", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634037011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_7&ds=v1%3AKUSTzCqHY25blCQlqUTLVvGqPrIjVh8T6Vq%2FABByLTs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634040011", + "name":"Movie", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634040011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_8&ds=v1%3A%2Bp6xlisBKwqCHyNLU65h29IUX6iVOcjr3DKC7AreFRo" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634039011", + "name":"Night Portrait", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634039011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_9&ds=v1%3AAjMxT%2BfnZWXs4vzvk8u0dQbg4F4VALYgyShtYjKqDL0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634042011", + "name":"Panorama", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634042011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_10&ds=v1%3Ai37MTLkdmS60xkEUsO%2BfXvkZvWt5B09ukPQ%2F12Wny80" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634038011", + "name":"Portrait", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634038011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_11&ds=v1%3ACmHB675XJydAaOEltvCHxskaPtHPDr2B2kS%2BQkrJQV8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634050011", + "name":"Program", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634050011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_12&ds=v1%3AoGYWFX%2FSWUWrVYCi1iZK%2BFdJSMZHwItLmk%2BeteyYNvI" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634043011", + "name":"Shutter Priority", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634043011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_13&ds=v1%3APnhzNLswtWb84hv2bpS17OX78lWC2GwUuWxLwbb2Dhw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634046011", + "name":"Sports", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634046011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_14&ds=v1%3Aq4SihDHa56hZ5ZZulVVX9kdhx3pcCAkEx2n5ucbQRxs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_thirty-two_browse-bin/23634036011", + "name":"Underwater", + "refinement_display_name":"Shooting Modes", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_thirty-two_browse-bin%3A23634036011&dc&qid=1673482228&rnid=23634035011&ref=sr_nr_p_n_feature_thirty-two_browse-bin_15&ds=v1%3A9ZmRmk0IUdCX0M%2FntGFAL7VDREV2J3Eut9dMt%2F7XPPs" + } + ], + "included_components":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty-one_browse-bin/24086356011", + "name":"Camera Body & Accessories", + "refinement_display_name":"Included Components", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty-one_browse-bin%3A24086356011&dc&qid=1673482228&rnid=24086302011&ref=sr_nr_p_n_feature_forty-one_browse-bin_1&ds=v1%3AAs%2Bj0iC0AyZkoL1w9%2B7FGSd%2FtZAsJ%2F03XqzCb2MnDcs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty-one_browse-bin/24086353011", + "name":"Camera Body & Lens", + "refinement_display_name":"Included Components", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty-one_browse-bin%3A24086353011&dc&qid=1673482228&rnid=24086302011&ref=sr_nr_p_n_feature_forty-one_browse-bin_2&ds=v1%3ALRSK8cwH3hjVKGglxgu1NMYDaI82VRLMdcOhijmYEok" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty-one_browse-bin/24086355011", + "name":"Camera Body Only", + "refinement_display_name":"Included Components", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty-one_browse-bin%3A24086355011&dc&qid=1673482228&rnid=24086302011&ref=sr_nr_p_n_feature_forty-one_browse-bin_3&ds=v1%3AWdejPonG6JRVS9GcRkv%2F5WNVGLCKa0gVaybM1rb5X%2BM" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_forty-one_browse-bin/24086354011", + "name":"Camera Kit", + "refinement_display_name":"Included Components", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_forty-one_browse-bin%3A24086354011&dc&qid=1673482228&rnid=24086302011&ref=sr_nr_p_n_feature_forty-one_browse-bin_4&ds=v1%3ApwfNm0CMdPtsQJmPlBCIhIq%2FxYDBTdcJijFrPixxrFY" + } + ], + "metering_mode":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-two_browse-bin/23534135011", + "name":"Center-Weighted", + "refinement_display_name":"Metering Mode", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-two_browse-bin%3A23534135011&dc&qid=1673482228&rnid=23534083011&ref=sr_nr_p_n_feature_twenty-two_browse-bin_1&ds=v1%3AyzD2tpWhQgf7uC%2BQmO39n1xUg5Inwi60f5tdqn5tVh0" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-two_browse-bin/23534134011", + "name":"Evaluative", + "refinement_display_name":"Metering Mode", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-two_browse-bin%3A23534134011&dc&qid=1673482228&rnid=23534083011&ref=sr_nr_p_n_feature_twenty-two_browse-bin_2&ds=v1%3AtemYwZLHx6beZX9yFeNfLAEabVEUpf43eW81LOjMrrs" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_twenty-two_browse-bin/23534136011", + "name":"Spot", + "refinement_display_name":"Metering Mode", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_twenty-two_browse-bin%3A23534136011&dc&qid=1673482228&rnid=23534083011&ref=sr_nr_p_n_feature_twenty-two_browse-bin_3&ds=v1%3AhGfTnHNfzGkXpHFXY38JilFeZKrlGxARd8YXhDI%2F8PM" + } + ], + "child_categories":[ + { + "value":"n/3017941", + "name":"DSLR Cameras", + "refinement_display_name":"Child Categories", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A3017941&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_1&ds=v1%3AGmWLMldjLtO5%2BXhtZSJU4G59T8uULFWJHDfSWFXThkI" + }, + { + "value":"n/21488767011", + "name":"Instant Cameras", + "refinement_display_name":"Child Categories", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A21488767011&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_2&ds=v1%3AgE4Rr%2BdtRJM6liBLZoc9v7JOn2hBuJQlRtf28wXQie8" + }, + { + "value":"n/3109924011", + "name":"Mirrorless Cameras", + "refinement_display_name":"Child Categories", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A3109924011&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_3&ds=v1%3AVmI3DHctFstgGgPuVXvVGf5s0XABLWA9UvYlsLWuTR8" + }, + { + "value":"n/330405011", + "name":"Point & Shoot Digital Cameras", + "refinement_display_name":"Child Categories", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A502394%2Cn%3A281052%2Cn%3A330405011&dc&qid=1673482228&rnid=281052&ref=sr_nr_n_4&ds=v1%3Axm3MZOZNNGfglvC3Yx%2Bg%2BCx%2BIY2WSwQdTDJOS2dwKHk" + } + ], + "photo_sensor_size":[ + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099178011", + "name":"Full Frame", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099178011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_1&ds=v1%3AO49qHOp0rMA%2FTrdbAvNqNsQzC4UGbyWhR%2FzgBNXL%2FuA" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099179011", + "name":"APS-H", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099179011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_2&ds=v1%3AIJeGjc9Gb6gGRH8Wj6VicsE%2BW6YzCUhXC9sDhxih3Mc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099180011", + "name":"APS-C", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099180011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_3&ds=v1%3AGPBKM4yU8YgoMKG8gxR8h1g7yEILdZc9qtMZ9IBhqqQ" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099185011", + "name":"1.5\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099185011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_4&ds=v1%3AvFJbmV7QkGK%2BU9yubJjgowwarFS7IvCG3GwjV%2FxRe48" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099182011", + "name":"Micro Four Thirds", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099182011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_5&ds=v1%3AGZNDcfXUv7ZuGnZLsRuNg7XJO3oVCtgRxf5LMgwLzRk" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099183011", + "name":"1\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099183011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_6&ds=v1%3A6qE1prwl6llBhtVQ8Qzm0fZjgEAyWyTXzzpCQl4%2FTEQ" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099186011", + "name":"1/1.2\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099186011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_7&ds=v1%3Aoclj29xfm%2Fv4GM6iw84OFFS0rc%2Fb7qrqRYz3DwvW0Sc" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099187011", + "name":"2/3\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099187011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_8&ds=v1%3A%2FkgAIrpstsT7I%2BibNrrnfJyIt%2FrTU7zKKlNdBrFjzjQ" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099189011", + "name":"1/1.7\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099189011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_9&ds=v1%3A2Zs1ANDW9mQJODmtzpeh6S%2FC5ecV4s70vsgFBuNrRNA" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/17696567011", + "name":"1/1.8\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A17696567011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_10&ds=v1%3Ak3E0ulU5u5boiJ3%2BwBfL7%2FLCr1qCeDac2Z9ogoHsbC8" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099190011", + "name":"1/2.3\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099190011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_11&ds=v1%3AtiQfG7qGUSiW4jCjzMf9zaSuYM17SlWlGbkuQIfn5GE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/17696569011", + "name":"1/2.5\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A17696569011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_12&ds=v1%3AsY4TnySfsp2HWkI4q2dax%2FDx5duzcK49pex0cZpkrFE" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/17696570011", + "name":"1/2.7\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A17696570011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_13&ds=v1%3AVQSjysf5D4XUCd0WVZu3g6Btm7kUXv9oAP4mepHwhlw" + }, + { + "value":"n:16225009011,n:502394,n:281052||p_n_feature_nineteen_browse-bin/10099191011", + "name":"1/3.2\"", + "refinement_display_name":"Photo Sensor Size", + "link":"https://www.amazon.com/s?i=electronics-intl-ship&bbn=16225009011&rh=n%3A16225009011%2Cn%3A502394%2Cn%3A281052%2Cp_n_feature_nineteen_browse-bin%3A10099191011&dc&qid=1673482228&rnid=10099176011&ref=sr_nr_p_n_feature_nineteen_browse-bin_14&ds=v1%3AheejTxUsqTiEXGCWLTJDBVW9HVfT6kZP2pleNRY%2FbHk" + } + ] + }, + "category_information":{ + "is_landing_page":false + }, + "category_results":[ + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0218155KA1DYODKFJWQ&qualifier=1673482228&id=8251097679197738&widgetName=sp_atf_browse&url=%2FDigital-Compact-Portable-Students-Seniors%2Fdp%2FB0B754K6Y8%2Fref%3Dsr_1_1_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-1-spons%26psc%3D1", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "is_prime":true, + "prices":[ + { + "value":41.64, + "raw":"$41.64", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$41.64" + }, + { + "value":78.99, + "raw":"$78.99", + "symbol":"$", + "currency":"USD", + "name":"$41.64", + "is_rrp":true + } + ], + "title":"Digital Camera, FHD 1080P Digital Camera for Kids Video Camera with 32GB SD Card 16X Digital Zoom, Compact Point and Shoot Camera Portable Small Camera for Teens Students Boys Girls Seniors(Black)", + "image":"https://m.media-amazon.com/images/I/71kOydESXRL._AC_UL320_.jpg", + "asin":"B0B754K6Y8", + "ratings_total":895, + "position":1, + "deal":{ + "link":"https://www.amazon.com/gp/goldbox/", + "badge_text":"Limited time deal" + }, + "price":{ + "value":41.64, + "raw":"$41.64", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$41.64" + } + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A092013239UA5PPKW85DV&qualifier=1673482228&id=8251097679197738&widgetName=sp_atf_browse&url=%2FNikon-24-2MP-Camera-18-55mm-70-300mm%2Fdp%2FB07QPVCR5G%2Fref%3Dsr_1_2_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-2-spons%26psc%3D1", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "title":"Nikon D3500 24.2MP DSLR Camera w/AF-P 18-55mm VR Lens & 70-300mm Dual Zoom Lens - (Renewed) + 16GB Bundle", + "ratings_total":294, + "asin":"B07QPVCR5G", + "position":2, + "image":"https://m.media-amazon.com/images/I/91tJfNj-v1L._AC_UL320_.jpg" + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0143341489YQU2MNS7X&qualifier=1673482228&id=8251097679197738&widgetName=sp_atf_browse&url=%2FCanon-18-135mm-3616C016-Software-External%2Fdp%2FB08XWM268M%2Fref%3Dsr_1_3_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-3-spons%26psc%3D1", + "rating":4.6, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "is_prime":true, + "title":"Canon EOS 90D DSLR Camera with 18-135mm Lens (3616C016) + 64GB Memory Card + Case + Corel Photo Software + 2 x LPE6 Battery + External Charger + Card Reader + LED Light + Filter Kit + More (Renewed)", + "image":"https://m.media-amazon.com/images/I/81E2fyCf02L._AC_UL320_.jpg", + "asin":"B08XWM268M", + "prices":[ + { + "value":1724.95, + "raw":"$1,724.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0143341489YQU2MNS7X&qualifier=1673482228&id=8251097679197738&widgetName=sp_atf_browse&url=%2FCanon-18-135mm-3616C016-Software-External%2Fdp%2FB08XWM268M%2Fref%3Dsr_1_3_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-3-spons%26psc%3D1", + "currency":"USD", + "asin":"B08XWM268M", + "name":"$1,724.95" + } + ], + "position":3, + "ratings_total":3, + "price":{ + "value":1724.95, + "raw":"$1,724.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_atf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0143341489YQU2MNS7X&qualifier=1673482228&id=8251097679197738&widgetName=sp_atf_browse&url=%2FCanon-18-135mm-3616C016-Software-External%2Fdp%2FB08XWM268M%2Fref%3Dsr_1_3_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-3-spons%26psc%3D1", + "currency":"USD", + "asin":"B08XWM268M", + "name":"$1,724.95" + } + }, + { + "link":"https://www.amazon.com/iRobot-Roomba-Self-Emptying-Robot-Vacuum/dp/B094NYHTMF/ref=sr_1_4?qid=1673482228&s=electronics&sr=1-4", + "rating":4.3, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":713.99, + "raw":"$713.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$713.99" + }, + { + "value":799.99, + "raw":"$799.99", + "symbol":"$", + "currency":"USD", + "name":"$713.99", + "is_rrp":true + } + ], + "title":"iRobot Roomba j7+ (7550) Self-Emptying Robot Vacuum – Identifies and avoids obstacles like pet waste & cords, Empties itself for 60 days, Smart Mapping, Works with Alexa, Ideal for Pet Hair, Graphite", + "image":"https://m.media-amazon.com/images/I/7100nUB3hjL._AC_UL320_.jpg", + "asin":"B094NYHTMF", + "is_prime":true, + "position":4, + "ratings_total":4625, + "price":{ + "value":713.99, + "raw":"$713.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$713.99" + } + }, + { + "link":"https://www.amazon.com/Monitor-5Display-Pan-Tilt-Zoom-Temperature-Lullabies/dp/B09GM8JZM9/ref=sr_1_5?qid=1673482228&s=electronics&sr=1-5", + "bestseller":{ + "link":"https://www.amazon.com/gp/bestsellers/electronics/3109924011/ref=sr_bs_4_3109924011_1", + "category":"Mirrorless Cameras" + }, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":59.9, + "raw":"$59.90", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$59.90" + }, + { + "value":129.99, + "raw":"$129.99", + "symbol":"$", + "currency":"USD", + "name":"$59.90", + "is_rrp":true + } + ], + "position":5, + "ratings_total":2220, + "title":"HelloBaby Monitor, 5''Display, Pan-Tilt-Zoom Video Baby Monitor with Camera and Audio, Night Vision, 2-Way Talk, Temperature, 8 Lullabies and 1000ft Range Baby Monitor No WiFi for Elderly", + "image":"https://m.media-amazon.com/images/I/51UfCCyrIbL._AC_UL320_.jpg", + "asin":"B09GM8JZM9", + "rating":4.4, + "deal":{ + "link":"https://www.amazon.com/gp/goldbox/", + "badge_text":"Limited time deal" + }, + "is_prime":true, + "price":{ + "value":59.9, + "raw":"$59.90", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$59.90" + } + }, + { + "link":"https://www.amazon.com/Rebel-EF18-55mm-75-300mm-Double-Zoom/dp/B0101RW3QK/ref=sr_1_6?qid=1673482228&s=electronics&sr=1-6", + "bestseller":{ + "link":"https://www.amazon.com/gp/bestsellers/electronics/3017941/ref=sr_bs_5_3017941_1", + "category":"DSLR Cameras" + }, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":599, + "raw":"$599.00", + "symbol":"$", + "link":"https://www.amazon.com/Rebel-EF18-55mm-75-300mm-Double-Zoom/dp/B0101RW3QK/ref=sr_1_6?qid=1673482228&s=electronics&sr=1-6", + "currency":"USD", + "asin":"B0101RW3QK", + "name":"$599.00" + } + ], + "is_prime":true, + "title":"Canon EOS Rebel T7 DSLR Camera|2 Lens Kit with EF18-55mm + EF 75-300mm Lens, Black", + "image":"https://m.media-amazon.com/images/I/71W1KvLH3sL._AC_UL320_.jpg", + "asin":"B0101RW3QK", + "ratings_total":1442, + "position":6, + "rating":4.8, + "price":{ + "value":599, + "raw":"$599.00", + "symbol":"$", + "link":"https://www.amazon.com/Rebel-EF18-55mm-75-300mm-Double-Zoom/dp/B0101RW3QK/ref=sr_1_6?qid=1673482228&s=electronics&sr=1-6", + "currency":"USD", + "asin":"B0101RW3QK", + "name":"$599.00" + } + }, + { + "link":"https://www.amazon.com/Canon-Rebel-T7-18-55mm-II/dp/B07C2Z21X5/ref=sr_1_7?qid=1673482228&s=electronics&sr=1-7", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":479, + "raw":"$479.00", + "symbol":"$", + "link":"https://www.amazon.com/Canon-Rebel-T7-18-55mm-II/dp/B07C2Z21X5/ref=sr_1_7?qid=1673482228&s=electronics&sr=1-7", + "currency":"USD", + "asin":"B07C2Z21X5", + "name":"$479.00" + } + ], + "title":"Canon EOS Rebel T7 DSLR Camera with 18-55mm Lens | Built-in Wi-Fi | 24.1 MP CMOS Sensor | DIGIC 4+ Image Processor and Full HD Videos", + "image":"https://m.media-amazon.com/images/I/71EWRyqzw0L._AC_UL320_.jpg", + "asin":"B07C2Z21X5", + "is_prime":true, + "position":7, + "ratings_total":2816, + "price":{ + "value":479, + "raw":"$479.00", + "symbol":"$", + "link":"https://www.amazon.com/Canon-Rebel-T7-18-55mm-II/dp/B07C2Z21X5/ref=sr_1_7?qid=1673482228&s=electronics&sr=1-7", + "currency":"USD", + "asin":"B07C2Z21X5", + "name":"$479.00" + } + }, + { + "link":"https://www.amazon.com/Kodak-PRINTOMATIC-Digital-Instant-Sticky-Backed/dp/B07BB5FDS2/ref=sr_1_8?qid=1673482228&s=electronics&sr=1-8", + "bestseller":{ + "link":"https://www.amazon.com/gp/bestsellers/electronics/21488767011/ref=sr_bs_7_21488767011_1", + "category":"Instant Digital Cameras" + }, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":49.99, + "raw":"$49.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$49.99" + }, + { + "value":79.99, + "raw":"$79.99", + "symbol":"$", + "currency":"USD", + "name":"$49.99", + "is_rrp":true + } + ], + "is_prime":true, + "title":"KODAK Printomatic Digital Instant Print Camera - Full Color Prints On ZINK 2x3\" Sticky-Backed Photo Paper (Blue) Print Memories Instantly", + "image":"https://m.media-amazon.com/images/I/61cJEZaFIAL._AC_UL320_.jpg", + "asin":"B07BB5FDS2", + "ratings_total":20149, + "position":8, + "rating":3.9, + "price":{ + "value":49.99, + "raw":"$49.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$49.99" + } + }, + { + "link":"https://www.amazon.com/Digital-Compact-Portable-Students-Seniors/dp/B0B754K6Y8/ref=sr_1_9?qid=1673482228&s=electronics&sr=1-9", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":41.64, + "raw":"$41.64", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$41.64" + }, + { + "value":78.99, + "raw":"$78.99", + "symbol":"$", + "currency":"USD", + "name":"$41.64", + "is_rrp":true + } + ], + "is_prime":true, + "title":"Digital Camera, FHD 1080P Digital Camera for Kids Video Camera with 32GB SD Card 16X Digital Zoom, Compact Point and Shoot Camera Portable Small Camera for Teens Students Boys Girls Seniors(Black)", + "image":"https://m.media-amazon.com/images/I/71kOydESXRL._AC_UL320_.jpg", + "asin":"B0B754K6Y8", + "ratings_total":895, + "position":9, + "deal":{ + "link":"https://www.amazon.com/gp/goldbox/", + "badge_text":"Limited time deal" + }, + "price":{ + "value":41.64, + "raw":"$41.64", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$41.64" + } + }, + { + "link":"https://www.amazon.com/GoPro-HERO10-Black-Accessory-Bundle/dp/B0BBJDF1TH/ref=sr_1_10?qid=1673482228&s=electronics&sr=1-10", + "rating":4.5, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":404.9, + "raw":"$404.90", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$404.90" + }, + { + "value":549.99, + "raw":"$549.99", + "symbol":"$", + "currency":"USD", + "name":"$404.90", + "is_rrp":true + } + ], + "is_prime":true, + "title":"GoPro HERO10 Black Accessory Bundle - Includes HERO10 Camera, Shorty (Mini Extension Pole + Grip), Magnetic Swivel Clip, Rechargeable Batteries (2 Total), and Camera Case", + "image":"https://m.media-amazon.com/images/I/71KdFdobdiL._AC_UL320_.jpg", + "asin":"B0BBJDF1TH", + "availability":{ + "raw":"Only 10 left in stock - order soon." + }, + "position":10, + "ratings_total":605, + "price":{ + "value":404.9, + "raw":"$404.90", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$404.90" + } + }, + { + "link":"https://www.amazon.com/Canon-Mark-EF-M-15-45mm-Black/dp/B08KSKV35C/ref=sr_1_11?qid=1673482228&s=electronics&sr=1-11", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "title":"Canon EOS M50 Mark II + EF-M 15-45mm is STM Kit Black", + "image":"https://m.media-amazon.com/images/I/71mTLn1iYML._AC_UL320_.jpg", + "asin":"B08KSKV35C", + "availability":{ + "raw":"Only 5 left in stock - order soon." + }, + "position":11, + "ratings_total":1304, + "is_prime":true + }, + { + "link":"https://www.amazon.com/PANASONIC-Megapixel-20-1200mm-Stabilization-DC-FZ80K/dp/B01MS16V42/ref=sr_1_12?qid=1673482228&s=electronics&sr=1-12", + "rating":4.5, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "title":"Panasonic LUMIX FZ80 4K Digital Camera, 18.1 Megapixel Video Camera, 60X Zoom DC VARIO 20-1200mm Lens, F2.8-5.9 Aperture, Power O.I.S. Stabilization, Touch Enabled 3-Inch LCD, Wi-Fi, DC-FZ80K (Black)", + "image":"https://m.media-amazon.com/images/I/917LEZ+it3L._AC_UL320_.jpg", + "asin":"B01MS16V42", + "position":12, + "ratings_total":3238, + "is_prime":true + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A062650921GB5L99R4MVG&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FCanon-1897C002-Software-Battery-Renewed%2Fdp%2FB09L3NN6FT%2Fref%3Dsr_1_13_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-13-spons%26psc%3D1", + "rating":4, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "is_prime":true, + "prices":[ + { + "value":1219.95, + "raw":"$1,219.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A062650921GB5L99R4MVG&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FCanon-1897C002-Software-Battery-Renewed%2Fdp%2FB09L3NN6FT%2Fref%3Dsr_1_13_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-13-spons%26psc%3D1", + "currency":"USD", + "asin":"B09L3NN6FT", + "name":"$1,219.95" + } + ], + "title":"Canon EOS 6D Mark II DSLR Camera (Body Only) (1897C002) + 64GB Memory Card + Case + Photo Software + LPE6 Battery + Card Reader + Flex Tripod + HDMI Cable + Hand Strap + More (Renewed)", + "image":"https://m.media-amazon.com/images/I/81TU4foenIL._AC_UL320_.jpg", + "asin":"B09L3NN6FT", + "availability":{ + "raw":"Only 16 left in stock - order soon." + }, + "position":13, + "ratings_total":1, + "price":{ + "value":1219.95, + "raw":"$1,219.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A062650921GB5L99R4MVG&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FCanon-1897C002-Software-Battery-Renewed%2Fdp%2FB09L3NN6FT%2Fref%3Dsr_1_13_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-13-spons%26psc%3D1", + "currency":"USD", + "asin":"B09L3NN6FT", + "name":"$1,219.95" + } + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A08722859106MURE12S8&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FNikon-18-55mm-70-300mm-Renewed-Accessory%2Fdp%2FB07RDGBV9M%2Fref%3Dsr_1_14_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-14-spons%26psc%3D1", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "title":"Nikon D3500 24.2MP DSLR Camera with AF-P 18-55mm VR Lens & 70-300mm Dual Zoom Lens Kit 1588 (Renewed) with 16GB Accessory Bundle", + "ratings_total":514, + "asin":"B07RDGBV9M", + "image":"https://m.media-amazon.com/images/I/71otOSzKcQL._AC_UL320_.jpg", + "position":14, + "prices":[ + { + "value":1099, + "raw":"$1,099.00", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A08722859106MURE12S8&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FNikon-18-55mm-70-300mm-Renewed-Accessory%2Fdp%2FB07RDGBV9M%2Fref%3Dsr_1_14_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-14-spons%26psc%3D1", + "currency":"USD", + "asin":"B07RDGBV9M", + "name":"$1,099.00" + } + ], + "price":{ + "value":1099, + "raw":"$1,099.00", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A08722859106MURE12S8&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FNikon-18-55mm-70-300mm-Renewed-Accessory%2Fdp%2FB07RDGBV9M%2Fref%3Dsr_1_14_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-14-spons%26psc%3D1", + "currency":"USD", + "asin":"B07RDGBV9M", + "name":"$1,099.00" + } + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A06258293HRJYLS2LZFMD&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FCanon-1897C002-Software-Battery-Renewed%2Fdp%2FB09L3CJBZJ%2Fref%3Dsr_1_15_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-15-spons%26psc%3D1", + "rating":4.5, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "is_prime":true, + "prices":[ + { + "value":1349.95, + "raw":"$1,349.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A06258293HRJYLS2LZFMD&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FCanon-1897C002-Software-Battery-Renewed%2Fdp%2FB09L3CJBZJ%2Fref%3Dsr_1_15_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-15-spons%26psc%3D1", + "currency":"USD", + "asin":"B09L3CJBZJ", + "name":"$1,349.95" + } + ], + "title":"Canon EOS 6D Mark II DSLR Camera (Body Only) (1897C002) + Canon EF 50mm Lens + 64GB Memory Card + Case + Filter Kit + Corel Photo Software + 2 x LPE6 Battery + LED Light + More (Renewed)", + "image":"https://m.media-amazon.com/images/I/81M2QA+rKAL._AC_UL320_.jpg", + "asin":"B09L3CJBZJ", + "availability":{ + "raw":"Only 16 left in stock - order soon." + }, + "position":15, + "ratings_total":2, + "price":{ + "value":1349.95, + "raw":"$1,349.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_mtf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A06258293HRJYLS2LZFMD&qualifier=1673482228&id=8251097679197738&widgetName=sp_mtf_browse&url=%2FCanon-1897C002-Software-Battery-Renewed%2Fdp%2FB09L3CJBZJ%2Fref%3Dsr_1_15_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-15-spons%26psc%3D1", + "currency":"USD", + "asin":"B09L3CJBZJ", + "name":"$1,349.95" + } + }, + { + "link":"https://www.amazon.com/Canon-Digital-18-55mm-Complete-Accessory/dp/B0B64F777H/ref=sr_1_16?qid=1673482228&s=electronics&sr=1-16", + "rating":4.6, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":399.95, + "raw":"$399.95", + "symbol":"$", + "link":"https://www.amazon.com/Canon-Digital-18-55mm-Complete-Accessory/dp/B0B64F777H/ref=sr_1_16?qid=1673482228&s=electronics&sr=1-16", + "currency":"USD", + "asin":"B0B64F777H", + "name":"$399.95" + } + ], + "title":"Canon EOS 4000D / Rebel T100 Digital SLR Camera Body w/Canon EF-S 18-55mm f/3.5-5.6 Lens 3 DSLR Kit Bundled with Complete Accessory Bundle + 64GB Flash & More - International Model (Renewed), Black", + "image":"https://m.media-amazon.com/images/I/71XReCRPC6L._AC_UL320_.jpg", + "asin":"B0B64F777H", + "is_prime":true, + "position":16, + "ratings_total":36, + "price":{ + "value":399.95, + "raw":"$399.95", + "symbol":"$", + "link":"https://www.amazon.com/Canon-Digital-18-55mm-Complete-Accessory/dp/B0B64F777H/ref=sr_1_16?qid=1673482228&s=electronics&sr=1-16", + "currency":"USD", + "asin":"B0B64F777H", + "name":"$399.95" + } + }, + { + "link":"https://www.amazon.com/SINEAU-Digital-Toddler-Birthday-Recorder/dp/B0BDN5H8JD/ref=sr_1_17?qid=1673482228&s=electronics&sr=1-17", + "bestseller":{ + "link":"https://www.amazon.com/gp/bestsellers/toys-and-games/7427928011/ref=sr_bs_16_7427928011_1", + "category":"Playground Equipment Parts & Hardware" + }, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":24.98, + "raw":"$24.98", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$24.98" + }, + { + "value":49.98, + "raw":"$49.98", + "symbol":"$", + "currency":"USD", + "name":"$24.98", + "is_rrp":true + } + ], + "position":17, + "ratings_total":452, + "title":"Kids Camera for Boys and Girls, SINEAU Digital Camera for Kids Toy Gift, Toddler Camera Birthday Gift for Age 3 4 5 6 7 8 9 10 with 32GB SD Card, Video Recorder 1080P IPS 2 Inch(Pink)", + "image":"https://m.media-amazon.com/images/I/71Xze8LDAoL._AC_UL320_.jpg", + "asin":"B0BDN5H8JD", + "rating":4.8, + "deal":{ + "link":"https://www.amazon.com/gp/goldbox/", + "badge_text":"Limited time deal" + }, + "is_prime":true, + "price":{ + "value":24.98, + "raw":"$24.98", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$24.98" + } + }, + { + "link":"https://www.amazon.com/VJIANGER-Autofocus-Vlogging-Photography-Batteries/dp/B09774BTKG/ref=sr_1_18?qid=1673482228&s=electronics&sr=1-18", + "rating":3.8, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":119.99, + "raw":"$119.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$119.99" + }, + { + "value":129.99, + "raw":"$129.99", + "symbol":"$", + "currency":"USD", + "name":"$119.99", + "is_rrp":true + } + ], + "title":"Digital Camera for Photography and Video VJIANGER 4K 48MP Vlogging Camera for YouTube with 180° Flip Screen,16X Digital Zoom,52mm Wide Angle & Macro Lens, 32GB TF Card, 2 Batteries (W01-Black)", + "ratings_total":777, + "asin":"B09774BTKG", + "position":18, + "image":"https://m.media-amazon.com/images/I/71Ye3WIiMQL._AC_UL320_.jpg", + "price":{ + "value":119.99, + "raw":"$119.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$119.99" + } + }, + { + "link":"https://www.amazon.com/Vlogging-Autofocus-Photography-Batteries-Charging/dp/B0BGLDXHGY/ref=sr_1_19?qid=1673482228&s=electronics&sr=1-19", + "rating":4.6, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":99.99, + "raw":"Join Prime to buy this item at $99.99", + "symbol":"$", + "link":"https://www.amazon.com/Vlogging-Autofocus-Photography-Batteries-Charging/dp/B0BGLDXHGY/ref=sr_1_19?qid=1673482228&s=electronics&sr=1-19", + "currency":"USD", + "asin":"B0BGLDXHGY", + "name":"$117.99" + }, + { + "value":117.99, + "raw":"$117.99", + "symbol":"$", + "currency":"USD", + "name":"$117.99" + } + ], + "title":"Vlogging Camera, 4K Digital Camera for YouTube Autofocus 16X Digital Zoom 48MP Video Cameras for Photography with 32GB SD Card, 180 Degree 3.0 inch Flip Screen, 2 Batteries and Charging Stand", + "image":"https://m.media-amazon.com/images/I/712T6VYeaWL._AC_UL320_.jpg", + "asin":"B0BGLDXHGY", + "is_prime":true, + "position":19, + "ratings_total":165, + "price":{ + "value":99.99, + "raw":"Join Prime to buy this item at $99.99", + "symbol":"$", + "link":"https://www.amazon.com/Vlogging-Autofocus-Photography-Batteries-Charging/dp/B0BGLDXHGY/ref=sr_1_19?qid=1673482228&s=electronics&sr=1-19", + "currency":"USD", + "asin":"B0BGLDXHGY", + "name":"$117.99" + } + }, + { + "link":"https://www.amazon.com/Photography-Autofocus-Anti-Shake-Vlogging-Batteries/dp/B0BCPCSTNB/ref=sr_1_20?qid=1673482228&s=electronics&sr=1-20", + "rating":4.2, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":89.99, + "raw":"Join Prime to buy this item at $89.99", + "symbol":"$", + "link":"https://www.amazon.com/Photography-Autofocus-Anti-Shake-Vlogging-Batteries/dp/B0BCPCSTNB/ref=sr_1_20?qid=1673482228&s=electronics&sr=1-20", + "currency":"USD", + "asin":"B0BCPCSTNB", + "name":"$119.99" + }, + { + "value":119.99, + "raw":"$119.99", + "symbol":"$", + "currency":"USD", + "name":"$119.99" + } + ], + "title":"4K Digital Camera for Photography and Video [Autofocus & Anti-Shake] 48MP Vlogging Camera with SD Card, 3'' 180° Flip Screen Compact Camera with Flash, 16X Digital Zoom Travel Camera (2 Batteries)", + "image":"https://m.media-amazon.com/images/I/819vw4Yp-zL._AC_UL320_.jpg", + "asin":"B0BCPCSTNB", + "is_prime":true, + "position":20, + "ratings_total":112, + "price":{ + "value":89.99, + "raw":"Join Prime to buy this item at $89.99", + "symbol":"$", + "link":"https://www.amazon.com/Photography-Autofocus-Anti-Shake-Vlogging-Batteries/dp/B0BCPCSTNB/ref=sr_1_20?qid=1673482228&s=electronics&sr=1-20", + "currency":"USD", + "asin":"B0BCPCSTNB", + "name":"$119.99" + } + }, + { + "link":"https://www.amazon.com/PANASONIC-Features-Megapixel-2-3-inch-Dustproof/dp/B011PKJI2Y/ref=sr_1_21?qid=1673482228&s=electronics&sr=1-21", + "rating":4.6, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":447.99, + "raw":"$447.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$447.99" + }, + { + "value":597.99, + "raw":"$597.99", + "symbol":"$", + "currency":"USD", + "name":"$447.99", + "is_rrp":true + } + ], + "title":"Panasonic LUMIX FZ300 Long Zoom Digital Camera Features 12.1 Megapixel, 1/2.3-Inch Sensor, 4K Video, WiFi, Splash & Dustproof Camera Body, LEICA DC 24X F2.8 Zoom Lens - DMC-FZ300K - (Black) USA", + "image":"https://m.media-amazon.com/images/I/81xVbbwlqlL._AC_UL320_.jpg", + "asin":"B011PKJI2Y", + "is_prime":true, + "position":21, + "ratings_total":2442, + "price":{ + "value":447.99, + "raw":"$447.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$447.99" + } + }, + { + "link":"https://www.amazon.com/Sony-Full-frame-Mirrorless-Interchangeable-Camera/dp/B09JZT6YK5/ref=sr_1_22?qid=1673482228&s=electronics&sr=1-22", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "title":"Sony Alpha 7 IV Full-frame Mirrorless Interchangeable Lens Camera,Body Only , Black", + "image":"https://m.media-amazon.com/images/I/71LPbU9sO5L._AC_UL320_.jpg", + "asin":"B09JZT6YK5", + "position":22, + "ratings_total":542, + "is_prime":true + }, + { + "link":"https://www.amazon.com/Sony-Full-Frame-Mirrorless-Interchangeable-Camera/dp/B0BKLQFFSF/ref=sr_1_23?qid=1673482228&s=electronics&sr=1-23", + "rating":5, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":3898, + "raw":"$3,898.00", + "symbol":"$", + "link":"https://www.amazon.com/Sony-Full-Frame-Mirrorless-Interchangeable-Camera/dp/B0BKLQFFSF/ref=sr_1_23?qid=1673482228&s=electronics&sr=1-23", + "currency":"USD", + "asin":"B0BKLQFFSF", + "name":"$3,898.00" + } + ], + "title":"Sony Alpha 7R V Full-Frame Mirrorless Interchangeable Lens Camera", + "image":"https://m.media-amazon.com/images/I/81TItbR10IL._AC_UL320_.jpg", + "asin":"B0BKLQFFSF", + "is_prime":true, + "position":23, + "ratings_total":9, + "price":{ + "value":3898, + "raw":"$3,898.00", + "symbol":"$", + "link":"https://www.amazon.com/Sony-Full-Frame-Mirrorless-Interchangeable-Camera/dp/B0BKLQFFSF/ref=sr_1_23?qid=1673482228&s=electronics&sr=1-23", + "currency":"USD", + "asin":"B0BKLQFFSF", + "name":"$3,898.00" + } + }, + { + "link":"https://www.amazon.com/Canon-Full-Frame-Mirrorless-Processor-Mechnical/dp/B08BVT9CK2/ref=sr_1_24?qid=1673482228&s=electronics&sr=1-24", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "title":"Canon EOS R6 Full-Frame Mirrorless Camera with 4K Video, Full-Frame CMOS Senor, DIGIC X Image Processor, Dual UHS-II SD Memory Card Slots, and Up to 12 fps with Mechnical Shutter, Body Only, Black", + "image":"https://m.media-amazon.com/images/I/81HwzslD2oL._AC_UL320_.jpg", + "asin":"B08BVT9CK2", + "position":24, + "ratings_total":1178, + "is_prime":true + }, + { + "link":"https://www.amazon.com/Canon-Cameras-Digital-Complete-Accessory/dp/B0B6D78M59/ref=sr_1_25?qid=1673482228&s=electronics&sr=1-25", + "rating":4.6, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":419.95, + "raw":"$419.95", + "symbol":"$", + "link":"https://www.amazon.com/Canon-Cameras-Digital-Complete-Accessory/dp/B0B6D78M59/ref=sr_1_25?qid=1673482228&s=electronics&sr=1-25", + "currency":"USD", + "asin":"B0B6D78M59", + "name":"$419.95" + } + ], + "title":"Canon Cameras EOS 2000D / Rebel T7 Digital SLR Camera Body w/Canon EF-S 18-55mm f/3.5-5.6 Lens 3 Lens DSLR Kit Bundled with Complete Accessory Bundle+ 64GB+ Flash+ More - International Model (Renewed)", + "image":"https://m.media-amazon.com/images/I/71fPSgwuPzL._AC_UL320_.jpg", + "asin":"B0B6D78M59", + "is_prime":true, + "position":25, + "ratings_total":36, + "price":{ + "value":419.95, + "raw":"$419.95", + "symbol":"$", + "link":"https://www.amazon.com/Canon-Cameras-Digital-Complete-Accessory/dp/B0B6D78M59/ref=sr_1_25?qid=1673482228&s=electronics&sr=1-25", + "currency":"USD", + "asin":"B0B6D78M59", + "name":"$419.95" + } + }, + { + "link":"https://www.amazon.com/Canon-Full-Frame-Mirrorless-Megapixel-Processor/dp/B08C68F2DX/ref=sr_1_26?qid=1673482228&s=electronics&sr=1-26", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "title":"Canon EOS R5 Full-Frame Mirrorless Camera - 8K Video, 45 Megapixel Full-Frame CMOS Sensor, DIGIC X Image Processor, Up to 12 fps Mechanical Shutter (Body Only)", + "image":"https://m.media-amazon.com/images/I/71hpUUcC5uL._AC_UL320_.jpg", + "asin":"B08C68F2DX", + "position":26, + "ratings_total":635, + "is_prime":true + }, + { + "link":"https://www.amazon.com/VETEK-Autofocus-Camcorder-Photography-Wide-Angle/dp/B097LKTW2W/ref=sr_1_27?qid=1673482228&s=electronics&sr=1-27", + "rating":3.8, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":119.99, + "raw":"$119.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$119.99" + }, + { + "value":139.99, + "raw":"$139.99", + "symbol":"$", + "currency":"USD", + "name":"$119.99", + "is_rrp":true + } + ], + "title":"Digital Cameras for Photography, 4K 48MP Vlogging Camera 16X Digital Zoom Manual Focus Rechargeable Students Compact Camera with 52mm Wide-Angle Lens & Macro Lens, 32G Micro Card and 2 Batteries", + "image":"https://m.media-amazon.com/images/I/71JfxR92onL._AC_UL320_.jpg", + "asin":"B097LKTW2W", + "is_prime":true, + "position":27, + "ratings_total":1225, + "price":{ + "value":119.99, + "raw":"$119.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$119.99" + } + }, + { + "link":"https://www.amazon.com/Canon-PowerShot-Digital-Camera-Screen/dp/B01BV14OXA/ref=sr_1_28?qid=1673482228&s=electronics&sr=1-28", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":629, + "raw":"$629.00", + "symbol":"$", + "link":"https://www.amazon.com/Canon-PowerShot-Digital-Camera-Screen/dp/B01BV14OXA/ref=sr_1_28?qid=1673482228&s=electronics&sr=1-28", + "currency":"USD", + "asin":"B01BV14OXA", + "name":"$629.00" + } + ], + "is_prime":true, + "title":"Canon PowerShot Digital Camera [G7 X Mark II] with Wi-Fi & NFC, LCD Screen, and 1-inch Sensor - Black, 100-1066C001", + "image":"https://m.media-amazon.com/images/I/416b8xNfDJL._AC_UL320_.jpg", + "asin":"B01BV14OXA", + "availability":{ + "raw":"Only 3 left in stock - order soon." + }, + "position":28, + "ratings_total":1658, + "price":{ + "value":629, + "raw":"$629.00", + "symbol":"$", + "link":"https://www.amazon.com/Canon-PowerShot-Digital-Camera-Screen/dp/B01BV14OXA/ref=sr_1_28?qid=1673482228&s=electronics&sr=1-28", + "currency":"USD", + "asin":"B01BV14OXA", + "name":"$629.00" + } + }, + { + "link":"https://www.amazon.com/Canon-Rebel-T8i-18-55mm-Black/dp/B084BKKX8T/ref=sr_1_29?qid=1673482228&s=electronics&sr=1-29", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "title":"Canon EOS Rebel T8i EF-S 18-55mm is STM Lens Kit, Black", + "image":"https://m.media-amazon.com/images/I/81AUQk0y5vL._AC_UL320_.jpg", + "asin":"B084BKKX8T", + "position":29, + "ratings_total":682, + "is_prime":true + }, + { + "link":"https://www.amazon.com/Olympus-Tough-TG-6-Waterproof-Camera/dp/B07RC8HPHL/ref=sr_1_30?qid=1673482228&s=electronics&sr=1-30", + "rating":4.5, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "prices":[ + { + "value":499.99, + "raw":"$499.99", + "symbol":"$", + "link":"https://www.amazon.com/Olympus-Tough-TG-6-Waterproof-Camera/dp/B07RC8HPHL/ref=sr_1_30?qid=1673482228&s=electronics&sr=1-30", + "currency":"USD", + "asin":"B07RC8HPHL", + "name":"$499.99" + } + ], + "title":"OLYMPUS Tough TG-6 Waterproof Camera, Red", + "image":"https://m.media-amazon.com/images/I/61J18Xn9bfS._AC_UL320_.jpg", + "asin":"B07RC8HPHL", + "is_prime":true, + "position":30, + "ratings_total":1961, + "price":{ + "value":499.99, + "raw":"$499.99", + "symbol":"$", + "link":"https://www.amazon.com/Olympus-Tough-TG-6-Waterproof-Camera/dp/B07RC8HPHL/ref=sr_1_30?qid=1673482228&s=electronics&sr=1-30", + "currency":"USD", + "asin":"B07RC8HPHL", + "name":"$499.99" + } + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0947120TD8Q8B02OQM0&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-Camera-International-1483C002-Cleaning%2Fdp%2FB07KVR1JVQ%2Fref%3Dsr_1_31_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-31-spons%26psc%3D1", + "rating":4.7, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "title":"Canon EOS 5D Mark IV DSLR Camera (1483C002) with 64GB Memory Card, Case, Cleaning Set and More - International Model - Starter Bundle", + "ratings_total":34, + "asin":"B07KVR1JVQ", + "image":"https://m.media-amazon.com/images/I/81ldObFEBvL._AC_UL320_.jpg", + "position":31, + "prices":[ + { + "value":1724.95, + "raw":"$1,724.95", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$1,724.95" + }, + { + "value":1814.95, + "raw":"$1,814.95", + "symbol":"$", + "currency":"USD", + "name":"$1,724.95", + "is_rrp":true + } + ], + "price":{ + "value":1724.95, + "raw":"$1,724.95", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"$1,724.95" + } + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A014321743Z1RFVTJKA&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-18-135mm-3616C016-Headphones-Software%2Fdp%2FB08XVVY5DC%2Fref%3Dsr_1_32_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-32-spons%26psc%3D1", + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "title":"Canon EOS 90D DSLR Camera with 18-135mm Lens (3616C016) + 4K Monitor + Pro Headphones + Pro Mic + 2 x 64GB Memory Card + Case + Corel Photo Software + Pro Tripod + 3 x LPE6 Battery + More (Renewed)", + "image":"https://m.media-amazon.com/images/I/81tuJ14JWvL._AC_UL320_.jpg", + "asin":"B08XVVY5DC", + "is_prime":true, + "position":32, + "prices":[ + { + "value":2099.95, + "raw":"$2,099.95", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A014321743Z1RFVTJKA&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-18-135mm-3616C016-Headphones-Software%2Fdp%2FB08XVVY5DC%2Fref%3Dsr_1_32_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-32-spons%26psc%3D1", + "asin":"B08XVVY5DC" + } + ], + "price":{ + "value":2099.95, + "raw":"$2,099.95", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A014321743Z1RFVTJKA&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-18-135mm-3616C016-Headphones-Software%2Fdp%2FB08XVVY5DC%2Fref%3Dsr_1_32_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-32-spons%26psc%3D1", + "asin":"B08XVVY5DC" + } + }, + { + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0638457231LHYWMYAYIH&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-24-105mm-1897C009-Software-Battery%2Fdp%2FB09L3BJ7JY%2Fref%3Dsr_1_33_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-33-spons%26psc%3D1", + "rating":4, + "categories":[ + { + "id":"281052", + "name":"Digital Cameras" + } + ], + "sponsored":true, + "is_prime":true, + "title":"Canon EOS 6D Mark II DSLR Camera with 24-105mm f/4L II Lens (1897C009) + 64GB Memory Card + Color Filter Kit + Case + Filter Kit + Corel Photo Software + LPE6 Battery + Card Reader + More (Renewed)", + "image":"https://m.media-amazon.com/images/I/81wWG65ObxL._AC_UL320_.jpg", + "asin":"B09L3BJ7JY", + "prices":[ + { + "value":2419.95, + "raw":"$2,419.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0638457231LHYWMYAYIH&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-24-105mm-1897C009-Software-Battery%2Fdp%2FB09L3BJ7JY%2Fref%3Dsr_1_33_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-33-spons%26psc%3D1", + "currency":"USD", + "asin":"B09L3BJ7JY", + "name":"$2,419.95" + } + ], + "position":33, + "ratings_total":1, + "price":{ + "value":2419.95, + "raw":"$2,419.95", + "symbol":"$", + "link":"https://www.amazon.com/gp/slredirect/picassoRedirect.html/ref=pa_sp_btf_browse_electronics-intl-ship_sr_pg1_1?ie=UTF8&adId=A0638457231LHYWMYAYIH&qualifier=1673482228&id=8251097679197738&widgetName=sp_btf_browse&url=%2FCanon-24-105mm-1897C009-Software-Battery%2Fdp%2FB09L3BJ7JY%2Fref%3Dsr_1_33_sspa%3Fqid%3D1673482228%26s%3Delectronics%26sr%3D1-33-spons%26psc%3D1", + "currency":"USD", + "asin":"B09L3BJ7JY", + "name":"$2,419.95" + } + } + ], + "request_parameters":{ + "url":"https://www.amazon.com/s?bbn=16225009011&rh=n%3A%2116225009011%2Cn%3A502394%2Cn%3A281052", + "type":"category" + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json; charset=utf-8", + "date":"Thu, 12 Jan 2023 00:10:37 GMT", + "etag":"W/\"1eacc-yonjJipY/C3Ehn8ME1qreydmlYM\"", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.8", + "x-serving-cluster":"apiserver" + }, + "schema":{} + }, + { + "name":"Offers", + "url":"https://asin-data.p.rapidapi.com/request", + "description":"The Offers Parameters are applicable when making a request with `type=offers` to retrieve seller Offers for a single product on Amazon - the product is specified using either the asin and `amazon_domain` parameters or the url parameter (where the url parameter contains a link to an Amazon product offers page). The parameters should be appended as querystring parameters to the Product Data API GET HTTP request.\n\nOffers are retrieved from the offers listing popup window for a single product on Amazon.", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"STRING", + "description":"", + "default":"offers" + } + ], + "optional_parameters":[ + { + "name":"offers_condition_used_acceptable", + "type":"BOOLEAN", + "description":"\nLimit the offers returned to just those that are of Used-Acceptable Condition. Valid values are:\ntrue\nOnly include offers that are Used-Acceptable Condition.\nfalse\nInclude all offers, regardless of their Condition.", + "default":"" + }, + { + "name":"offers_condition_used_good", + "type":"BOOLEAN", + "description":"\nLimit the offers returned to just those that are of Used-Good Condition. Valid values are:\ntrue\nOnly include offers that are Used-Good Condition.\nfalse\nInclude all offers, regardless of their Condition.", + "default":"" + }, + { + "name":"show_different_asins", + "type":"BOOLEAN", + "description":"\nSometimes Amazon will return Offers from ASINs other than the ASIN supplied in the asin request parameter (for example, when the original ASIN is out of stock). show_different_asins controls whether you want these other-ASIN offer results returned, or not. Can be set to true to include offers from other ASINs, or false (the default) to hide offers from ASINs other than the ASIN supplied in the asin parameter. Note that if you supply a url instead of asin in your request this parameter is ignored.", + "default":"" + }, + { + "name":"amazon_domain", + "type":"STRING", + "description":"The Amazon domain to retrieve Offers for the product specified in the asin parameter from. For a full list of supported Amazon domains see Supported Amazon Domains.\n\n**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.**", + "default":"amazon.com" + }, + { + "name":"offers_condition_used_like_new", + "type":"BOOLEAN", + "description":"\nLimit the offers returned to just those that are of Used-Like-New Condition. Valid values are:\ntrue\nOnly include offers that are Used-Like-New Condition.\nfalse\nInclude all offers, regardless of their Condition.", + "default":"" + }, + { + "name":"offers_free_shipping", + "type":"BOOLEAN", + "description":"\nLimit the offers returned to just those that have Free Shipping. Valid values are:\ntrue\nOnly include offers that have Free Shipping.\nfalse\nInclude all offers, regardless of whether they have Free Shipping or not.", + "default":"" + }, + { + "name":"offers_condition_new", + "type":"BOOLEAN", + "description":"l\nLimit the offers returned to just those that are of New Condition. Valid values are:\ntrue\nOnly include offers that are New Condition.\nfalse\nInclude all offers, regardless of their Condition.", + "default":"" + }, + { + "name":"page", + "type":"NUMBER", + "description":"The current page of reviews to retrieve. Inspect the pagination.total_pages property in the Reviews results to see how many pages of reviews are available.\n**Note that the maximum number of reviews pages served by Amazon is 500**\n\nupdate value of num to get additional pages", + "default":"" + }, + { + "name":"asin", + "type":"STRING", + "description":"The Amazon ASIN (product ID) to retrieve Offers for. Used in combination with the amazon_domain parameter.\n\n**Note: If the asin and amazon_domain parameters are supplied then the url parameter is ignored.**", + "default":"B073JYC4XM" + }, + { + "name":"url", + "type":"STRING", + "description":"The Amazon product-page URL to retrieve Offers from.\n\n**Note: If the url parameter is supplied then the amazon_domain and asin parameters are ignored.**", + "default":"" + }, + { + "name":"offers_prime", + "type":"BOOLEAN", + "description":"\nLimit the offers returned to just those that are Prime-eligible. Valid values are:\ntrue\nOnly include offers that are Prime-eligible.\nfalse\nInclude all offers, regardless of whether they are Prime-eligible or not.", + "default":"" + }, + { + "name":"offers_condition_used_very_good", + "type":"BOOLEAN", + "description":"\nLimit the offers returned to just those that are of Used-Very-Good Condition. Valid values are:\ntrue\nOnly include offers that are Used-Very-Good Condition.\nfalse\nInclude all offers, regardless of their Condition.", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://asin-data.p.rapidapi.com/request\"\nquerystring = {\"amazon_domain\": amazon_domain, \"asin\": asin, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asin-data.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "pagination":{ + "total_results":9, + "current_page":1, + "offers_count":9, + "total_pages":1 + }, + "offers":[ + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A30R1DDXV5VUEV&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=olp_merch_name_0", + "rating":5, + "ratings_total":362, + "id":"A30R1DDXV5VUEV", + "name":"Nityamaa", + "ratings_percentage_positive":100 + }, + "buybox_winner":true, + "offer_id":"tT%2B%2B82oUmQdnfRkra4yCW1FQ1VLpzvKUdE1z9tPdoz5oh2RDEotaRCj9O%2FMVTEAiAN%2F9Nvy1RJWQgRxOtoq955PU%2FlnC4hIrL9Id%2BbTMoM%2BqMODuJj601JhRZClacjo6a6eJ37axo0QSS6h9TqmXhnx0lNuZSADbrldAf%2FBFCp6xeH3m6cGgKex5lhoFfdW3", + "condition":{ + "is_new":true, + "title":"New" + }, + "offer_asin":"B073JYC4XM", + "maximum_order_quantity":{ + "value":100 + }, + "is_prime":true, + "position":1, + "delivery":{ + "fulfilled_by_amazon":true, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"Thursday, January 19" + }, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A35BKAA6VXTYCT&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=olp_merch_name_1", + "rating":5, + "ratings_total":58810, + "id":"A35BKAA6VXTYCT", + "name":"First Choice Online", + "ratings_percentage_positive":95 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"Y6hW9Vzpo4v4PFsOkP%2BW7itUuQql303b0Hd6UsRHZIlq1%2FPZvEtysXS40ET%2BZYOlG02%2FTvhzCYgV6nypHbmFUhvuXlEgLb56YoRmQj095PW0r4HXwvdyFhjVYZYIg788wxPoUZOEXVkUk7x2Ln84EYhutTlvj1g7HZFJyG8bAWrNF6gFw8pW%2FYfTIPcX6rdg", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":30 + }, + "is_prime":true, + "position":2, + "delivery":{ + "fulfilled_by_amazon":true, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"Friday, January 20", + "shipped_from_outside_country":false + }, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A2TWIRHLRS9O1T&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=olp_merch_name_2", + "rating":4, + "ratings_total":216, + "id":"A2TWIRHLRS9O1T", + "name":"Prime-Pros", + "ratings_percentage_positive":81 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"hNo3LSL6TA8HC4pQTSVVn8k00mgzQgbTE%2BjlPGXykGQh1izTLHAzaVdQQoIvDfT8QtgL%2Ffwg05PKYW3ecQsCmNX27xQO8jkkCCEj2LTDCexhzH7yWq88yzLXnTVzjm36R7OuiTK1oSAp8N0BWxAYf7tbTJQoSxA7N4vRxa9C06524QT6gaNESFvoAVM3ysoZ", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":30 + }, + "is_prime":true, + "position":3, + "delivery":{ + "fulfilled_by_amazon":true, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"Wednesday, January 18", + "shipped_from_outside_country":false + }, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A3QF16EH69HELL&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=olp_merch_name_3", + "rating":5, + "ratings_total":273990, + "id":"A3QF16EH69HELL", + "name":"eTECH", + "ratings_percentage_positive":100 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"IAE%2F6nhHOpKh7xGsOm8npB0Xsi99TABeFmXcMPt4ae1CJN%2BCwwRj8rAAvH0kEJeF1uZTlVBViZMrAKtva%2Bczbjyf%2FRCtz2CKAOT0jEyCdIjJ7%2FXKmwAY2fwnlN6NEtFEi3HgvoE4NCOLqo5Ol0M69h%2FVF44AebjdvtvM8bjW0rgHRa11%2BiJRHg%3D%3D", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":30 + }, + "is_prime":true, + "position":4, + "delivery":{ + "fulfilled_by_amazon":true, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"Wednesday, January 18", + "shipped_from_outside_country":false + }, + "price":{ + "value":15.9, + "currency":"USD", + "raw":"$15.90", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=AVQ0A48QMRQYM&isAmazonFulfilled=0&asin=B073JYC4XM&ref_=olp_merch_name_4", + "rating":4, + "ratings_total":350, + "id":"AVQ0A48QMRQYM", + "name":"Direct-Bargain", + "ratings_percentage_positive":81 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"A98CsHek3STn9ZCg0gf3UDDEGh4qDGsCMDSfapLhq4M45P5CgmtF7S80xcRfXeObUmTXblgvUbYbKNNDdyyoitqUNvecKb8%2F2V%2BMX6u%2Fo1m14d%2BEiFxcAGaVQMf5192FTM3IH8HMPhUjd3r6EZUQIFFTb1%2FdJl%2BpgH1DnLUqzwNEqlucFVJ%2BG6Rjtma%2BTADf", + "condition":{ + "title":"Used - Very Good", + "is_new":false, + "comments":"fully functional" + }, + "maximum_order_quantity":{ + "value":10 + }, + "is_prime":false, + "position":5, + "delivery":{ + "fulfilled_by_amazon":false, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"January 17 - 20", + "shipped_from_outside_country":false + }, + "price":{ + "value":15.99, + "currency":"USD", + "raw":"$15.99", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A3H8M2CQAAXZL9&isAmazonFulfilled=0&asin=B073JYC4XM&ref_=olp_merch_name_5", + "rating":5, + "ratings_total":542, + "id":"A3H8M2CQAAXZL9", + "name":"TERASHACK", + "ratings_percentage_positive":95 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"hU3eL1z%2BDesVplIxukSXuulKF545Ix64OGFk70LBWLmu9WSDJyvYPcU8nmgSxj5YP0mW1R4ReA267hhQeFUAXbuC2PBL0HREknXaPeN4uR0%2FCN8kqPhaT4lu9E1QVK5%2BNGqrZXmvJ6m0apgxrRtZQNVErdtdMZ3BLV1iOW%2Bj4Sg5iTKyY6TU06bHMpi%2FFszu", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":30 + }, + "is_prime":false, + "position":6, + "delivery":{ + "fulfilled_by_amazon":false, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"January 19 - 20", + "shipped_from_outside_country":false + }, + "price":{ + "value":16.42, + "currency":"USD", + "raw":"$16.42", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A2YLRJ3IT9MQBP&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=olp_merch_name_6", + "rating":4.5, + "ratings_total":15602, + "id":"A2YLRJ3IT9MQBP", + "name":"XOXO Mobile", + "ratings_percentage_positive":93 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"TBySu68tTDj4zj1cme7HNJ%2FLUwG8UftGWY4N5z5iu9OXTg5LojY9y%2BjpPI7bHU6K375eQ7sXSBb6FGEyyDDcwzq2ug%2FhkPSxWc%2B9LGMpqflf%2BKR5WTmbT5AwTNrI1L53Heetp6DUb3kaIHzn7W2aBE9Tclvs6zdLIHpMWt3Ai%2F5oNfJfPauqDCD8h3qW8UUY", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":30 + }, + "is_prime":true, + "position":7, + "delivery":{ + "fulfilled_by_amazon":true, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"Friday, January 20", + "shipped_from_outside_country":false + }, + "price":{ + "value":17.32, + "currency":"USD", + "raw":"$17.32", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=AIIAYKZQOBT02&isAmazonFulfilled=0&asin=B073JYC4XM&ref_=olp_merch_name_7", + "rating":4.5, + "ratings_total":10859, + "id":"AIIAYKZQOBT02", + "name":"OEMPCWorld", + "ratings_percentage_positive":92 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"U2LVcahFAwwBY3gb8pfLtlgdc3SG7i8grMf%2FKmpvK%2Fv%2B%2BDYyna60PM%2BYYFlFCtp9iJvQQlwjnIsVajVpHSp6I040Xg0dZF%2F%2F4xs9qfRPJUyc%2BuKYYfoyc8tqjzTJoGQZS2XNTKYh%2BaTPO75NOWlrAzGdghr91NYfmFkwUGIzxBsMUM%2BuLC5FyQ%3D%3D", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":14 + }, + "is_prime":false, + "position":8, + "delivery":{ + "fulfilled_by_amazon":false, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"Friday, January 20", + "shipped_from_outside_country":false + }, + "price":{ + "value":21.85, + "currency":"USD", + "raw":"$21.85", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A1PW9837098U4T&isAmazonFulfilled=0&asin=B073JYC4XM&ref_=olp_merch_name_8", + "rating":5, + "ratings_total":16151, + "id":"A1PW9837098U4T", + "name":"RS Enterprises", + "ratings_percentage_positive":100 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"cd1zI2ExsoZ4ZWXfz%2FZQf4NOBvramFJdMqxhzLvgEcBPDoMGgSfKpty3Is%2BuQVE%2FyMrncsa6K2LtyQluEmTvWI6UfZhdHSAq%2B0xwYux3cjBFUCv95PG2mW05hFjhez%2FyD3nFgKdPAYrFmOXN8eskH8ZKO8Bm5WAXet%2Bdruc6QOHnhyRZ4ifrhJcSwj%2BEzqCC", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":1 + }, + "is_prime":false, + "position":9, + "delivery":{ + "fulfilled_by_amazon":false, + "price":{ + "value":0, + "raw":"FREE", + "symbol":"$", + "currency":"USD", + "is_free":true + }, + "comments":"January 18 - 19", + "shipped_from_outside_country":false + }, + "price":{ + "value":22.95, + "currency":"USD", + "raw":"$22.95", + "symbol":"$" + } + }, + { + "minimum_order_quantity":{ + "value":1 + }, + "seller":{ + "link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A3QDNB2HOHJ1A1&isAmazonFulfilled=0&asin=B073JYC4XM&ref_=olp_merch_name_9", + "rating":5, + "ratings_total":92, + "id":"A3QDNB2HOHJ1A1", + "name":"Collectibles33", + "ratings_percentage_positive":100 + }, + "offer_asin":"B073JYC4XM", + "offer_id":"IAE%2F6nhHOpKh7xGsOm8npB0Xsi99TABe9qnFeuNAtZKgYs0JWEFEfFOXeFi7j4H2y9AsKpWCi4Ws1At8QF8uBL16zs8l2cDCbGW1s53vxlKW9iWh67OTSXaCXP5v3u6JYqkIdMRQLVv%2FyGnvJSuzjsc0kXa4QHBm4WdkxeMqgDv%2FxoW%2F%2BxTg0XcKnmix71rI", + "condition":{ + "is_new":true, + "title":"New" + }, + "maximum_order_quantity":{ + "value":1 + }, + "is_prime":false, + "position":10, + "delivery":{ + "fulfilled_by_amazon":false, + "countdown":"17 hrs 48 mins", + "price":{ + "value":5.01, + "raw":"$5.01", + "symbol":"$", + "currency":"USD", + "is_free":false + }, + "shipped_from_outside_country":false, + "comments":"January 20 - 26" + }, + "price":{ + "value":22.95, + "currency":"USD", + "raw":"$22.95", + "symbol":"$" + } + } + ], + "available_filters":{ + "offers_condition_new":true, + "offers_condition_used_like_new":true, + "offers_free_shipping":true, + "offers_prime":true, + "offers_condition_used_acceptable":true, + "offers_condition_used_good":true, + "offers_condition_used_very_good":true + }, + "request_parameters":{ + "asin":"B073JYC4XM", + "amazon_domain":"amazon.com", + "type":"offers" + }, + "product":{ + "link":"https://www.amazon.com/dp/B073JYC4XM", + "title":"SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA", + "image":"https://m.media-amazon.com/images/I/41tF51Ka9iL.jpg", + "asin":"B073JYC4XM", + "rating":4.5, + "reviews_total":215181 + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json; charset=utf-8", + "date":"Thu, 12 Jan 2023 00:11:11 GMT", + "etag":"W/\"2794-7YrGEQIo2ufSL/BXjMykgp/xzFw\"", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.8", + "x-serving-cluster":"apiserver" + }, + "schema":{} + }, + { + "name":"Reviews", + "url":"https://asin-data.p.rapidapi.com/request", + "description":"The Reviews Parameters are applicable when making a request with `type=reviews` to retrieve customer Reviews for a single product on Amazon - the product is specified using either the asin and `amazon_domain` parameters or the url parameter (where the url parameter contains a link to an Amazon reviews page). The parameters should be appended as querystring parameters to the Product Data API GET HTTP request.\n\nReviews are retrieved from the customer reviews page for a single product on Amazon.", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"STRING", + "description":"", + "default":"reviews" + } + ], + "optional_parameters":[ + { + "name":"review_stars", + "type":"STRING", + "description":"The star rating of reviews to retrieve. Valid values are:\n\n- all_stars \n- five_star\n- four_star\n- three_star\n- two_star\n- one_star\n- all_positive\n- all_critical", + "default":"" + }, + { + "name":"page", + "type":"NUMBER", + "description":"The current page of reviews to retrieve. Inspect the pagination.total_pages property in the Reviews results to see how many pages of reviews are available.\n\n**Note that the maximum number of reviews pages served by Amazon is 500.**\n\nupdate value of num to get additional pages", + "default":"" + }, + { + "name":"search_term", + "type":"STRING", + "description":"A search term to use to search reviews.", + "default":"" + }, + { + "name":"show_different_asins", + "type":"BOOLEAN", + "description":"Sometimes Amazon will return Reviews from ASINs other than the ASIN supplied in the asin request parameter (for example, when the original ASIN is out of stock). `show_different_asins `controls whether you want these other-ASIN review results returned, or not. Can be set to true (the default) to include reviews from other ASINs, or false to hide reviews from ASINs other than the ASIN supplied in the asin parameter. \n\nNote that if you supply a url instead of asin in your request this parameter is ignored.\n\nNote in the event of` show_different_asins=false` and the ASIN shown by Amazon being different from the requested ASIN, then all fields apart from product will be removed from the response.", + "default":"" + }, + { + "name":"review_media_type", + "type":"STRING", + "description":"Filter the reviews to those containing a specific media type. Valid values are:\n\n`all_reviews`\n- Include reviews with text, images or video.\n\n`media_reviews_only`\n- Include only reviews containing images or video.", + "default":"" + }, + { + "name":"sort_by", + "type":"STRING", + "description":"Determines the sort order of reviews to return. \n\nValid values are: `most_helpful` and `most_recent`\n", + "default":"" + }, + { + "name":"global_reviews", + "type":"BOOLEAN", + "description":"Determines whether Global Reviews are included, or not Global Reviews are reviews from other Amazon domains outside of the Amazon domain specified in the request. Valid values are:\n\n`true`\n- The default, Global Reviews are included in the results.\n\n`false`\n- Global reviews are excluded from the results.", + "default":"" + }, + { + "name":"review_id", + "type":"STRING", + "description":"\nA single Review ID, as returned by a prior `type=reviews` request, to retrieve. Useful if you wish to check for the presence of a single review. Use in combination with the amazon_domain parameter.", + "default":"" + }, + { + "name":"reviewer_type", + "type":"STRING", + "description":"The type of reviewer to retrieve reviews from. Valid values are:\n\n`verified_purchase`\n- include reviews by Amazon Verified Purchasers only\n\n`all`\n- include all reviews, regardless of whether they are from Amazon Verified Purchasers or not)", + "default":"" + }, + { + "name":"amazon_domain", + "type":"STRING", + "description":"The Amazon domain to retrieve Reviews for the product specified in the asin parameter from. For a full list of supported Amazon domains see Supported Amazon Domains.\n\n**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.**", + "default":"amazon.com" + }, + { + "name":"url", + "type":"STRING", + "description":"The Amazon product-page URL to retrieve Reviews from.\n\n**Note: If the url parameter is supplied then the amazon_domain and asin parameters are ignored.**", + "default":"" + }, + { + "name":"review_formats", + "type":"STRING", + "description":"The type of reviewer to retrieve reviews from. Valid values are:\n\n`all_formats`\n- Include reviews of any product format/variant.\n\n`current_format`\n- Include reviews relating specifically to the current format/variant.", + "default":"" + }, + { + "name":"asin", + "type":"STRING", + "description":"The Amazon ASIN (product ID) to retrieve Reviews for. Used in combination with the amazon_domain parameter.\n\n**Note: If the asin and amazon_domain parameters are supplied then the url parameter is ignored.**", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://asin-data.p.rapidapi.com/request\"\nquerystring = {\"amazon_domain\": amazon_domain, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asin-data.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "pagination":{ + "ratings_total_filtered":215181, + "total_pages":3158, + "message":"There are a high number of reviews for this product. It is likely Amazon will not allow pagination through all of the review pages. Please check the API response for presence of the 'reviews' array before continuing to the next page.", + "total_results":31576, + "reviews_total_filtered":31576, + "current_page":1, + "reviews_total":31576 + }, + "summary":{ + "ratings_total_filtered":215181, + "ratings_total":215181, + "rating_breakdown":{ + "five_star":{ + "count":180752, + "percentage":84 + }, + "two_star":{ + "count":2151, + "percentage":1 + }, + "one_star":{ + "count":4303, + "percentage":2 + }, + "four_star":{ + "count":21518, + "percentage":10 + }, + "three_star":{ + "count":6455, + "percentage":3 + } + }, + "reviews_total":31576, + "rating":4.7, + "reviews_total_filtered":31576 + }, + "request_parameters":{ + "asin":"B073JYC4XM", + "amazon_domain":"amazon.com", + "type":"reviews" + }, + "reviews":[ + { + "link":"https://www.amazon.com/gp/customer-reviews/ROPW8TWWT5D7Z/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-04T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 4, 2023" + }, + "id":"ROPW8TWWT5D7Z", + "review_country":"us", + "verified_purchase":true, + "vine_program":true, + "title":"Doesn't actually have 128gb available, but that's normal.", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AHVLYUIS452UDIMOYVJJZCKF5TJA/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Juls Neidermyer", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/de63cd44-0c60-4f24-9c59-d86b7a3d228e._CR0,0,375,375_SX48_.jpg", + "id":"AHVLYUIS452UDIMOYVJJZCKF5TJA" + }, + "is_global_review":false, + "vine_program_free_product":false, + "position":1, + "body":"It's super easy to install into my Moto G stylus and I'd say most phones if not all. There's a space for micro SD cards by my sim card on the tray and you just place it in and push the tray back into the phone. As I said in my title, it doesn't actually have 128gb of storage. Mine only has 119gb available. I suppose you could get super mad about that, but I really needed a larger SD card than a 32gb. So, I'm not complaining. Also, with regular shipping it got here faster than I expected, so I was pretty happy about that.", + "body_html":"It's super easy to install into my Moto G stylus and I'd say most phones if not all. There's a space for micro SD cards by my sim card on the tray and you just place it in and push the tray back into the phone.

As I said in my title, it doesn't actually have 128gb of storage. Mine only has 119gb available. I suppose you could get super mad about that, but I really needed a larger SD card than a 32gb. So, I'm not complaining.

Also, with regular shipping it got here faster than I expected, so I was pretty happy about that.
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R3MWUHST4K07D4/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2022-12-02T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on December 2, 2022" + }, + "id":"R3MWUHST4K07D4", + "review_country":"us", + "verified_purchase":true, + "title":"Fixed my GoPro Hero 7 battery drain!!!!", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AHAEHS7MWWKLISWGW6MNUQJBKC7Q/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Amazon Customer", + "id":"AHAEHS7MWWKLISWGW6MNUQJBKC7Q" + }, + "vine_program":false, + "is_global_review":false, + "position":2, + "body":"The GP Hero 7 Black still drains faster than it's predecessor, however it is no longer dead within two days. Previously I used a SanDisk Extreme 128, a card that my GP 5 Session and 6 Black have ZERO issue with, but the 7 has died in standby within 2-4 days the entire time I have owned it!! I followed the advice of LaneVids on Youtube and bought the exact model card the device shipped with originally. Lo and Behold it solved the problem. It is a shame that GP has had such poor compatibility when it comes to SD cards.", + "body_html":"The GP Hero 7 Black still drains faster than it's predecessor, however it is no longer dead within two days. Previously I used a SanDisk Extreme 128, a card that my GP 5 Session and 6 Black have ZERO issue with, but the 7 has died in standby within 2-4 days the entire time I have owned it!! I followed the advice of LaneVids on Youtube and bought the exact model card the device shipped with originally. Lo and Behold it solved the problem. It is a shame that GP has had such poor compatibility when it comes to SD cards." + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R2XELLHAGL0BZT/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-06T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 6, 2023" + }, + "id":"R2XELLHAGL0BZT", + "review_country":"us", + "verified_purchase":true, + "title":"Works great for 2ds xl extra storage!", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AGH5ZCKJNRAZ7L7TOHMV35GMF2SQ/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Smart Shopper", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/7ad2b77c-7627-455a-97bb-f2f4a78075dc._CR83,0,333,333_SX48_.jpg", + "id":"AGH5ZCKJNRAZ7L7TOHMV35GMF2SQ" + }, + "vine_program":false, + "is_global_review":false, + "position":3, + "body":"Bought this for my son's 2DS XL. Isn’t fake and all 128GB is usable storage with no corruption or disappearing data. Great SD card", + "body_html":"Bought this for my son's 2DS XL. Isn’t fake and all 128GB is usable storage with no corruption or disappearing data. Great SD card" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R16FG54VAWPXII/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-05T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 5, 2023" + }, + "id":"R16FG54VAWPXII", + "review_country":"us", + "verified_purchase":true, + "title":"Easy install", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AF4LXP4INTKU7EQVVPI7NYD64EVA/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Moni", + "id":"AF4LXP4INTKU7EQVVPI7NYD64EVA" + }, + "vine_program":false, + "is_global_review":false, + "position":4, + "body":"Recieved card quick. And was easy to install. You might have to reformat the card.", + "body_html":"Recieved card quick. And was easy to install. You might have to reformat the card." + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R1QWOCVJQHH6V0/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-03T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 3, 2023" + }, + "id":"R1QWOCVJQHH6V0", + "review_country":"us", + "verified_purchase":true, + "title":"Nintendo switch storage", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AGETN4XS72EJ74PHR6EKADG5OP2Q/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Esabeljones", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/d6966968-bd3e-4ae3-a567-bc9630b77506._CR0,26.0,281,281_SX48_.jpg", + "id":"AGETN4XS72EJ74PHR6EKADG5OP2Q" + }, + "vine_program":false, + "is_global_review":false, + "position":5, + "body":"Best thing ever I have enough space to add more games to my switch", + "body_html":"Best thing ever I have enough space to add more games to my switch" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R1YG3I0CHK7X1B/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-03T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 3, 2023" + }, + "id":"R1YG3I0CHK7X1B", + "review_country":"us", + "verified_purchase":true, + "title":"Works well in camera", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AFKVPPQ6X6MFFZUC6CFJFNGL27ZA/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Amazon Customer", + "id":"AFKVPPQ6X6MFFZUC6CFJFNGL27ZA" + }, + "vine_program":false, + "is_global_review":false, + "position":6, + "body":"I use in a security camera that rewrites when card is full. Works nicely.", + "body_html":"I use in a security camera that rewrites when card is full. Works nicely." + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R3OH827QQ5U0QL/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":4, + "date":{ + "utc":"2023-01-06T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 6, 2023" + }, + "id":"R3OH827QQ5U0QL", + "review_country":"us", + "verified_purchase":true, + "title":"Works!!", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AEQ5KJNPH6EDTIY7JF6SN7MN3WJA/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Cory", + "id":"AEQ5KJNPH6EDTIY7JF6SN7MN3WJA" + }, + "vine_program":false, + "is_global_review":false, + "position":7, + "body":"Does what it's supposed to do!", + "body_html":"Does what it's supposed to do!" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R3FEIKGE25GPZ4/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2022-12-11T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on December 11, 2022" + }, + "id":"R3FEIKGE25GPZ4", + "review_country":"us", + "verified_purchase":true, + "title":"Works great", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AG5J3KW2U3M6AARH5T2I7V53I3AA/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Alan", + "id":"AG5J3KW2U3M6AARH5T2I7V53I3AA" + }, + "vine_program":false, + "is_global_review":false, + "position":8, + "body":"I have an older phone and this will increase storage capacity quite a bit", + "body_html":"I have an older phone and this will increase storage capacity quite a bit" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R1U5CEC6TZVXGZ/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2022-12-10T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on December 10, 2022" + }, + "id":"R1U5CEC6TZVXGZ", + "review_country":"us", + "verified_purchase":true, + "title":"Great product great value", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AH2RFEULVT756UT5KJLEWJDFF66A/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"Jack Bailey", + "id":"AH2RFEULVT756UT5KJLEWJDFF66A" + }, + "vine_program":false, + "is_global_review":false, + "position":9, + "body":"Great delivery. I’ve not used the product but appears to be in perfect condition.", + "body_html":"Great delivery. I’ve not used the product but appears to be in perfect condition." + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/RMQNIE6EF172R/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":4, + "date":{ + "utc":"2022-08-20T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on August 20, 2022" + }, + "id":"RMQNIE6EF172R", + "review_country":"us", + "verified_purchase":true, + "vine_program":false, + "title":"Just like an elephant, it never forgets", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AG7WU5SIGHSZKOZFDXT7QCJQDGDQ/ref=cm_cr_arp_d_gw_btm?ie=UTF8", + "name":"HapCabbage", + "id":"AG7WU5SIGHSZKOZFDXT7QCJQDGDQ" + }, + "helpful_votes":12, + "is_global_review":false, + "position":10, + "body":"Hey, at my age, I'm no spring chicken anymore, and sometimes I forget things. Where did I leave my car keys? My wallet? My cellphone? Who was that I ran into at the store the other day who knew me, knew my name, knew what I did for a living... but I didn't remember who they were? It's a problem. That's why I like these SanDisk 128 GB microSD cards. Just pop one into my left ear, push it in till it clicks and locks, and download all my memories into it. I'll never lose my car keys again! The one little drawback to it is that, with all its memory capacity, the SanDisk 128 GB microSD card has room for not just the good memories, but the bad ones too. I would have just as soon forgotten the time when I was 4 years old and I peed my pants at pre-school. But no, there it is, faithfully recorded on my memory card along with all the other memories, bad ones and good ones. So SanDisk, if you could include a memory-filter in the next model of these memory cards, I'll up my rating from 4 stars to 5 stars.", + "body_html":"Hey, at my age, I'm no spring chicken anymore, and sometimes I forget things. Where did I leave my car keys? My wallet? My cellphone? Who was that I ran into at the store the other day who knew me, knew my name, knew what I did for a living... but I didn't remember who they were? It's a problem.

That's why I like these SanDisk 128 GB microSD cards. Just pop one into my left ear, push it in till it clicks and locks, and download all my memories into it. I'll never lose my car keys again!

The one little drawback to it is that, with all its memory capacity, the SanDisk 128 GB microSD card has room for not just the good memories, but the bad ones too. I would have just as soon forgotten the time when I was 4 years old and I peed my pants at pre-school. But no, there it is, faithfully recorded on my memory card along with all the other memories, bad ones and good ones. So SanDisk, if you could include a memory-filter in the next model of these memory cards, I'll up my rating from 4 stars to 5 stars.
" + } + ], + "top_critical":{ + "link":"https://www.amazon.com/gp/customer-reviews/RFLBPQWL9BKSX/ref=cm_cr_arp_d_viewpnt?ie=UTF8&ASIN=B073JYC4XM#RFLBPQWL9BKSX", + "rating":3, + "date":{ + "utc":"2022-12-27T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on December 27, 2022" + }, + "id":"RFLBPQWL9BKSX", + "review_country":"us", + "verified_purchase":false, + "title":"It's easy to install, but not so fast", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AE2Y6WYDN4WC3H4LNRF6LFSTLI5A/ref=cm_cr_arp_d_gw_rgt?ie=UTF8", + "name":"Mark", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/8755be8a-422b-4522-81fd-332e84e56250._CR90,0,320,320_SX48_.jpg", + "id":"AE2Y6WYDN4WC3H4LNRF6LFSTLI5A" + }, + "is_global_review":false, + "vine_program":false, + "body":"The memory card is easy to install, but it's not so fast as I was expected. After few seconds with full load (writing and reading) it gets hot. The size is standard so it fits perfectly the reader in the smartphone.", + "body_html":"The memory card is easy to install, but it's not so fast as I was expected. After few seconds with full load (writing and reading) it gets hot. The size is standard so it fits perfectly the reader in the smartphone." + }, + "top_positive":{ + "link":"https://www.amazon.com/gp/customer-reviews/ROPW8TWWT5D7Z/ref=cm_cr_arp_d_viewpnt?ie=UTF8&ASIN=B073JYC4XM#ROPW8TWWT5D7Z", + "rating":5, + "date":{ + "utc":"2023-01-04T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 4, 2023" + }, + "id":"ROPW8TWWT5D7Z", + "review_country":"us", + "verified_purchase":false, + "title":"Doesn't actually have 128gb available, but that's normal.", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AHVLYUIS452UDIMOYVJJZCKF5TJA/ref=cm_cr_arp_d_gw_lft?ie=UTF8", + "name":"Juls Neidermyer", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/de63cd44-0c60-4f24-9c59-d86b7a3d228e._CR0,0,375,375_SX48_.jpg", + "id":"AHVLYUIS452UDIMOYVJJZCKF5TJA" + }, + "is_global_review":false, + "vine_program_free_product":false, + "vine_program":true, + "body":"It's super easy to install into my Moto G stylus and I'd say most phones if not all. There's a space for micro SD cards by my sim card on the tray and you just place it in and push the tray back into the phone.As I said in my title, it doesn't actually have 128gb of storage. Mine only has 119gb available. I suppose you could get super mad about that, but I really needed a larger SD card than a 32gb. So, I'm not complaining.Also, with regular shipping it got here faster than I expected, so I was pretty happy about that.", + "body_html":"It's super easy to install into my Moto G stylus and I'd say most phones if not all. There's a space for micro SD cards by my sim card on the tray and you just place it in and push the tray back into the phone.

As I said in my title, it doesn't actually have 128gb of storage. Mine only has 119gb available. I suppose you could get super mad about that, but I really needed a larger SD card than a 32gb. So, I'm not complaining.

Also, with regular shipping it got here faster than I expected, so I was pretty happy about that.
" + }, + "product":{ + "link":"https://www.amazon.com/SanDisk-128GB-microSDXC-Memory-Adapter/dp/B073JYC4XM/ref=cm_cr_arp_d_product_top?ie=UTF8", + "title":"SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA", + "image":"https://m.media-amazon.com/images/I/41tF51Ka9iL._AC_US60_SCLZZZZZZZ__.jpg", + "sub_title":{ + "link":"https://www.amazon.com/stores/SanDisk/page/CD971F4B-EE23-4EA1-96E3-567678AC9C0A?ref_=ast_bln", + "text":"SanDisk" + }, + "asin":"B073JYC4XM" + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json; charset=utf-8", + "date":"Thu, 12 Jan 2023 00:14:42 GMT", + "etag":"W/\"41a9-87LQKfkCgCOCsVhwwwdsq6KxHpo\"", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.8", + "x-serving-cluster":"apiserver" + }, + "schema":{} + }, + { + "name":"Search", + "url":"https://asin-data.p.rapidapi.com/request", + "description":"The Search Parameters are applicable when making a request with `type=search` to retrieve search results for an Amazon domain - the Amazon domain is specified using the `amazon_domain` parameter and the search term is specified in the `search_term` parameter. The parameters should be appended as querystring parameters to the Product Data API GET HTTP request.\n\nSearch results are retrieved from the search results page on Amazon.", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"STRING", + "description":"", + "default":"search" + } + ], + "optional_parameters":[ + { + "name":"search_term", + "type":"STRING", + "description":"A search term to use to search products.", + "default":"memory cards" + }, + { + "name":"url", + "type":"STRING", + "description":"The Amazon search results page URL to retrieve search results from. Be sure to URL-encode the url parameter.\n\n**Note the url parameter is supplied, the search_term parameter cannot be used (as the url itself defines the search term used).**", + "default":"" + }, + { + "name":"direct_search", + "type":"STRING", + "description":"By default Amazon will, if a spelling mistake is suspected in the search_term, show search results for the corrected search term.\n\nTo disable this behaviour and search for the value in `search_term` directly, without auto-correcting it, set `direct_search=true`.", + "default":"" + }, + { + "name":"page", + "type":"NUMBER", + "description":"The current page of search results to retrieve. Inspect the pagination.total_pages property in the Search results to see how many pages of search results are available.\n\nupdate value of num to get additional pages", + "default":"" + }, + { + "name":"exclude_sponsored", + "type":"BOOLEAN", + "description":"Whether to exclude sponsored search results (when set to exclude_sponsored=true) from the search results returned, or not. Defaults to false.", + "default":"" + }, + { + "name":"sort_by", + "type":"STRING", + "description":"Determines the sort order of search results to return. Valid values are:\n\n- most_recent\n- price_low_to_high\n- price_high_to_low\n- featured\n- average_review", + "default":"" + }, + { + "name":"refinements", + "type":"STRING", + "description":"\nA comma-seperated list of refinement values to filter the search results by. These allow you to refine your search by values such as \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Reviews rating 4 and over\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"price range\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" and \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"brand\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\".\n\nRefinement values are returned in the refinements array of each type=search result. Refinement values are dynamic and change by category area or search term used. If you wish to use refinements you should first issue a type=search request without specifying any refinements to retrieve a master list of the avaialble refinements for the given category area/search term. You can then cache these refinement values for use on subsequent requests.\n\nFor example, to run a type=search request specifying two refinements with values `p_85/2470955011 `and` p_36/2421886011 `the value of the refinements parameter would be `refinements=p_85/2470955011,p_36/2421886011`", + "default":"" + }, + { + "name":"category_id", + "type":"STRING", + "description":"\nA category ID to limit search results to. ASIN Data API will use the category_id in the following form: https://amazon_domain/s?node=category_id.\n\nNote that pagination for top-level categories is not supported by the Amazon sites. If you wish to iterate the contents of a category the recommended approach is to pick the lowest level categories to perform your iteration / pagination on.", + "default":"" + }, + { + "name":"amazon_domain", + "type":"STRING", + "description":"The Amazon domain to retrieve search results from. For a full list of supported Amazon domains see Supported Amazon Domains.\n\n**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.**", + "default":"amazon.com" + } + ], + "code":"import requests\n\nurl = \"https://asin-data.p.rapidapi.com/request\"\nquerystring = {\"search_term\": search_term, \"amazon_domain\": amazon_domain, \"type\": type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asin-data.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "related_searches":[ + { + "link":"https://www.amazon.com/s/?k=memory+card+for+camera&ref=sugsr_0&pd_rd_w=vNVV6&content-id=amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d:amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_p=cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=RlbMe&pd_rd_r=75ce1648-3f61-4a95-91ab-53a1ecd39575&qid=1673482177", + "query":"memory card for camera" + }, + { + "link":"https://www.amazon.com/s/?k=memory+cards+for+funeral&ref=sugsr_3&pd_rd_w=vNVV6&content-id=amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d:amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_p=cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=RlbMe&pd_rd_r=75ce1648-3f61-4a95-91ab-53a1ecd39575&qid=1673482177", + "query":"memory cards for funeral" + }, + { + "link":"https://www.amazon.com/s/?k=memory+cards+for+celebration+of+life&ref=sugsr_1&pd_rd_w=vNVV6&content-id=amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d:amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_p=cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=RlbMe&pd_rd_r=75ce1648-3f61-4a95-91ab-53a1ecd39575&qid=1673482177", + "query":"memory cards for celebration of life" + }, + { + "link":"https://www.amazon.com/s/?k=micro+memory+card&ref=sugsr_4&pd_rd_w=vNVV6&content-id=amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d:amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_p=cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=RlbMe&pd_rd_r=75ce1648-3f61-4a95-91ab-53a1ecd39575&qid=1673482177", + "query":"micro memory card" + }, + { + "link":"https://www.amazon.com/s/?k=memory+card&ref=sugsr_2&pd_rd_w=vNVV6&content-id=amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d:amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_p=cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=RlbMe&pd_rd_r=75ce1648-3f61-4a95-91ab-53a1ecd39575&qid=1673482177", + "query":"memory card" + }, + { + "link":"https://www.amazon.com/s/?k=memory+card+case&ref=sugsr_5&pd_rd_w=vNVV6&content-id=amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d:amzn1.sym.cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_p=cdff5709-1ad3-49fb-b3a2-fd145c65c07d&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=RlbMe&pd_rd_r=75ce1648-3f61-4a95-91ab-53a1ecd39575&qid=1673482177", + "query":"memory card case" + } + ], + "search_results":[ + { + "link":"https://www.amazon.com/SanDisk-128GB-Extreme-UHS-I-Memory/dp/B09X7FXHVJ/ref=sr_1_1?keywords=memory+cards&qid=1673482177&sr=8-1", + "rating":4.8, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":23.75, + "raw":"$23.75", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":33.49, + "raw":"$33.49", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "is_prime":true, + "title":"SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN", + "image":"https://m.media-amazon.com/images/I/81wwLOgkLgL._AC_UY218_.jpg", + "asin":"B09X7FXHVJ", + "ratings_total":5572, + "position":1, + "amazons_choice":{ + "link":"https://www.amazon.com/SanDisk-128GB-Extreme-UHS-I-Memory/dp/B09X7FXHVJ/ref=ice_ac_b_dpb?keywords=memory+cards&qid=1673482177&sr=8-1", + "keywords":"memory cards" + }, + "price":{ + "value":23.75, + "raw":"$23.75", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=sr_1_2?keywords=memory+cards&qid=1673482177&sr=8-2", + "bestseller":{ + "link":"https://www.amazon.com/gp/bestsellers/photo/505110/ref=sr_bs_1_505110_1", + "category":"Digital Camera Accessories" + }, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":13.91, + "raw":"$13.91", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=sr_1_2?keywords=memory+cards&qid=1673482177&sr=8-2", + "asin":"B08TJRVWV1" + } + ], + "is_prime":true, + "is_amazon_brand":true, + "title":"Amazon Basics microSDXC Memory Card with Full Size Adapter, A2, U3, Read Speed up to 100 MB/s, 128 GB", + "image":"https://m.media-amazon.com/images/I/61DwejyTGkL._AC_UY218_.jpg", + "asin":"B08TJRVWV1", + "ratings_total":25508, + "position":2, + "rating":4.6, + "price":{ + "value":13.91, + "raw":"$13.91", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=sr_1_2?keywords=memory+cards&qid=1673482177&sr=8-2", + "asin":"B08TJRVWV1" + } + }, + { + "link":"https://www.amazon.com/SanDisk-128GB-Ultra-UHS-I-Memory/dp/B0B7NS71G2/ref=sr_1_3?keywords=memory+cards&qid=1673482177&sr=8-3", + "rating":4.8, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":17.96, + "raw":"$17.96", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":18.99, + "raw":"$18.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SanDisk 128GB Ultra SDXC UHS-I Memory Card - Up to 140MB/s, C10, U1, Full HD, SD Card - SDSDUNB-128G-GN6IN", + "image":"https://m.media-amazon.com/images/I/81SmwjoafSL._AC_UY218_.jpg", + "asin":"B0B7NS71G2", + "is_prime":true, + "position":3, + "ratings_total":280, + "price":{ + "value":17.96, + "raw":"$17.96", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=sxin_15_trfobq2a_0_B08TJRVWV1?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B08TJRVWV1&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-1-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "bestseller":{ + "link":"https://www.amazon.com/gp/bestsellers/photo/505110/ref=sr_bs_0_505110_1", + "category":"Digital Camera Accessories" + }, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":13.91, + "raw":"$13.91", + "symbol":"$", + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=sxin_15_trfobq2a_0_B08TJRVWV1?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B08TJRVWV1&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-1-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B08TJRVWV1", + "name":"$13.91" + } + ], + "is_carousel":true, + "is_prime":true, + "carousel":{ + "title":"Top rated from our brands", + "id":"loom-desktop-inline-slot_na-slds-pb-trfobq2a-fa", + "sub_title":"Amazon’s private brands and select brands" + }, + "title":"Amazon Basics microSDXC Memory Card with Full Size Adapter, A2, U3, Read Speed up to 100 MB/s, 128 GB", + "image":"https://m.media-amazon.com/images/I/61DwejyTGkL._AC_UL320_.jpg", + "asin":"B08TJRVWV1", + "ratings_total":25508, + "position":4, + "rating":4.6, + "price":{ + "value":13.91, + "raw":"$13.91", + "symbol":"$", + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=sxin_15_trfobq2a_0_B08TJRVWV1?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B08TJRVWV1&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-1-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B08TJRVWV1", + "name":"$13.91" + } + }, + { + "link":"https://www.amazon.com/TRIDENITE-MicroSDXC-Nintendo-Switch-Smartphone-Adapter/dp/B0BFW8GMD3/ref=sxin_15_trfobq2a_2_B0BFW8GMD3?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B0BFW8GMD3&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-2-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "rating":4.6, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":17.99, + "raw":"Join Prime to buy this item at $17.99", + "symbol":"$", + "link":"https://www.amazon.com/TRIDENITE-MicroSDXC-Nintendo-Switch-Smartphone-Adapter/dp/B0BFW8GMD3/ref=sxin_15_trfobq2a_2_B0BFW8GMD3?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B0BFW8GMD3&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-2-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B0BFW8GMD3", + "name":"$19.99" + }, + { + "value":19.99, + "raw":"$19.99", + "symbol":"$", + "currency":"USD", + "name":"$19.99" + } + ], + "is_carousel":true, + "is_prime":true, + "title":"TRIDENITE 128GB Micro SD Card, MicroSDXC Memory for Nintendo-Switch, GoPro, Drone, Smartphone, Tablet, 4K Ultra HD, A2 UHS-I U3 V30 C10, Up to 100MB/s Read, with SD Adapter", + "image":"https://m.media-amazon.com/images/I/51+6TiymmmL._AC_UL320_.jpg", + "asin":"B0BFW8GMD3", + "carousel":{ + "title":"Top rated from our brands", + "id":"loom-desktop-inline-slot_na-slds-pb-trfobq2a-fa", + "sub_title":"Amazon’s private brands and select brands" + }, + "position":5, + "ratings_total":1055, + "price":{ + "value":17.99, + "raw":"Join Prime to buy this item at $17.99", + "symbol":"$", + "link":"https://www.amazon.com/TRIDENITE-MicroSDXC-Nintendo-Switch-Smartphone-Adapter/dp/B0BFW8GMD3/ref=sxin_15_trfobq2a_2_B0BFW8GMD3?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B0BFW8GMD3&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-2-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B0BFW8GMD3", + "name":"$19.99" + } + }, + { + "link":"https://www.amazon.com/Vansuny-microSDXC-Performance-Recording-Security/dp/B0B3MLS224/ref=sxin_15_trfobq2a_3_B0B3MLS224?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B0B3MLS224&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-3-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "rating":4.4, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":7.19, + "raw":"Join Prime to buy this item at $7.19", + "symbol":"$", + "link":"https://www.amazon.com/Vansuny-microSDXC-Performance-Recording-Security/dp/B0B3MLS224/ref=sxin_15_trfobq2a_3_B0B3MLS224?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B0B3MLS224&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-3-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B0B3MLS224", + "name":"$8.99" + }, + { + "value":8.99, + "raw":"$8.99", + "symbol":"$", + "currency":"USD", + "name":"$8.99" + } + ], + "is_carousel":true, + "is_prime":true, + "title":"Vansuny Micro SD Card 64GB microSDXC Memory Card with SD Adapter A1 App Performance V30 4K Video Recording C10 U3 Micro SD for Phone, Security Camera, Dash Cam, Action Camera", + "image":"https://m.media-amazon.com/images/I/51SziK+ZIWL._AC_UL320_.jpg", + "asin":"B0B3MLS224", + "carousel":{ + "title":"Top rated from our brands", + "id":"loom-desktop-inline-slot_na-slds-pb-trfobq2a-fa", + "sub_title":"Amazon’s private brands and select brands" + }, + "position":6, + "ratings_total":145, + "price":{ + "value":7.19, + "raw":"Join Prime to buy this item at $7.19", + "symbol":"$", + "link":"https://www.amazon.com/Vansuny-microSDXC-Performance-Recording-Security/dp/B0B3MLS224/ref=sxin_15_trfobq2a_3_B0B3MLS224?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B0B3MLS224&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-3-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B0B3MLS224", + "name":"$8.99" + } + }, + { + "link":"https://www.amazon.com/MICROFROM-FAT32-Cards-Adapter-Memory/dp/B08VHZ11VZ/ref=sxin_15_trfobq2a_4_B08VHZ11VZ?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B08VHZ11VZ&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-4-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "rating":4.5, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":6.99, + "raw":"$6.99", + "symbol":"$", + "link":"https://www.amazon.com/MICROFROM-FAT32-Cards-Adapter-Memory/dp/B08VHZ11VZ/ref=sxin_15_trfobq2a_4_B08VHZ11VZ?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B08VHZ11VZ&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-4-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B08VHZ11VZ", + "name":"$6.99" + } + ], + "is_carousel":true, + "is_prime":true, + "title":"MICROFROM 32GB Memory Card FAT32 Memory Cards with Adapter, Flash Memory Card High Speed TF Card with 86MB/s, UHS-1, C10, V30, U1 FAT32(32GB 1 Pack)", + "image":"https://m.media-amazon.com/images/I/41gBJ+9w3rS._AC_UL320_.jpg", + "asin":"B08VHZ11VZ", + "carousel":{ + "title":"Top rated from our brands", + "id":"loom-desktop-inline-slot_na-slds-pb-trfobq2a-fa", + "sub_title":"Amazon’s private brands and select brands" + }, + "position":7, + "ratings_total":924, + "price":{ + "value":6.99, + "raw":"$6.99", + "symbol":"$", + "link":"https://www.amazon.com/MICROFROM-FAT32-Cards-Adapter-Memory/dp/B08VHZ11VZ/ref=sxin_15_trfobq2a_4_B08VHZ11VZ?content-id=amzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc%3Aamzn1.sym.d87bdde9-97f6-47ac-b339-55167deba1dc&cv_ct_cx=memory+cards&keywords=memory+cards&pd_rd_i=B08VHZ11VZ&pd_rd_r=6c4aca70-fd53-4515-8e05-809edd6f13ff&pd_rd_w=PqOLS&pd_rd_wg=JZe88&pf_rd_p=d87bdde9-97f6-47ac-b339-55167deba1dc&pf_rd_r=44BP7EP1KYPCER7TSJNH&qid=1673482177&sr=1-4-c944532c-3909-4a2a-84a2-570d2ee3cd13", + "currency":"USD", + "asin":"B08VHZ11VZ", + "name":"$6.99" + } + }, + { + "link":"https://www.amazon.com/SanDisk-128GB-MicroSDXC-Memory-Adapter/dp/B08GYKNCCP/ref=sr_1_4?keywords=memory+cards&qid=1673482177&sr=8-4", + "rating":4.7, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":15.94, + "raw":"$15.94", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":24.99, + "raw":"$24.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SanDisk 128GB Ultra microSDXC UHS-I Memory Card with Adapter - 120MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUA4-128G-GN6MA", + "image":"https://m.media-amazon.com/images/I/61jhzv9AQRL._AC_UY218_.jpg", + "asin":"B08GYKNCCP", + "is_prime":true, + "position":8, + "ratings_total":206793, + "price":{ + "value":15.94, + "raw":"$15.94", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/SanDisk-256GB-microSDXC-Memory-Adapter/dp/B0B7NV73PJ/ref=sr_1_5?keywords=memory+cards&qid=1673482177&sr=8-5", + "rating":4.7, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":21.99, + "raw":"$21.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":32.99, + "raw":"$32.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SanDisk 256GB Ultra microSDXC UHS-I Memory Card with Adapter - Up to 150MB/s, C10, U1, Full HD, A1, MicroSD Card - SDSQUAC-256G-GN6MA", + "image":"https://m.media-amazon.com/images/I/51G0OYpkCYL._AC_UY218_.jpg", + "asin":"B0B7NV73PJ", + "is_prime":true, + "position":9, + "ratings_total":97860, + "price":{ + "value":21.99, + "raw":"$21.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/SanDisk-Ultra-UHS-I-Memory-SDSDUN4-064G-GN6IN/dp/B08GY1QYXP/ref=sr_1_6?keywords=memory+cards&qid=1673482177&sr=8-6", + "rating":4.7, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":9.95, + "raw":"$9.95", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":13.49, + "raw":"$13.49", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SanDisk 64GB Ultra SDXC UHS-I Memory Card - 120MB/s, C10, U1, Full HD, SD Card - SDSDUN4-064G-GN6IN", + "image":"https://m.media-amazon.com/images/I/51SwCO1HlsL._AC_UY218_.jpg", + "asin":"B08GY1QYXP", + "is_prime":true, + "position":10, + "ratings_total":71762, + "price":{ + "value":9.95, + "raw":"$9.95", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/SAMSUNG-microSDXC-Expanded-MB-MD256KA-AM/dp/B09B1J3BK2/ref=sr_1_7?keywords=memory+cards&qid=1673482177&sr=8-7", + "rating":4.8, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":30.19, + "raw":"$30.19", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/SAMSUNG-microSDXC-Expanded-MB-MD256KA-AM/dp/B09B1J3BK2/ref=sr_1_7?keywords=memory+cards&qid=1673482177&sr=8-7", + "asin":"B09B1J3BK2" + } + ], + "title":"SAMSUNG PRO Plus + Adapter 256GB microSDXC Up to 160MB/s UHS-I, U3, A2, V30, Full HD & 4K UHD Memory Card for Android Smartphones, Tablets, Go Pro and DJI Drone (MB-MD256KA/AM)", + "image":"https://m.media-amazon.com/images/I/71TTHH-WyQL._AC_UY218_.jpg", + "asin":"B09B1J3BK2", + "availability":{ + "raw":"Only 4 left in stock - order soon." + }, + "position":11, + "ratings_total":6241, + "price":{ + "value":30.19, + "raw":"$30.19", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/SAMSUNG-microSDXC-Expanded-MB-MD256KA-AM/dp/B09B1J3BK2/ref=sr_1_7?keywords=memory+cards&qid=1673482177&sr=8-7", + "asin":"B09B1J3BK2" + } + }, + { + "link":"https://www.amazon.com/Security-Digital-Videographer-Vlogger-Compatible/dp/B0BJDPNJDL/ref=sr_1_8?keywords=memory+cards&qid=1673482177&sr=8-8", + "rating":5, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":25.99, + "raw":"$25.99", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Security-Digital-Videographer-Vlogger-Compatible/dp/B0BJDPNJDL/ref=sr_1_8?keywords=memory+cards&qid=1673482177&sr=8-8", + "asin":"B0BJDPNJDL" + } + ], + "title":"512GB SD Card High Speed Security Digital Memory Card Class 10 for Camera, Videographer&Vlogger and Other Compatible Devices", + "image":"https://m.media-amazon.com/images/I/41W9BVfGwkL._AC_UY218_.jpg", + "asin":"B0BJDPNJDL", + "is_prime":true, + "position":12, + "ratings_total":2, + "price":{ + "value":25.99, + "raw":"$25.99", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Security-Digital-Videographer-Vlogger-Compatible/dp/B0BJDPNJDL/ref=sr_1_8?keywords=memory+cards&qid=1673482177&sr=8-8", + "asin":"B0BJDPNJDL" + } + }, + { + "link":"https://www.amazon.com/Memory-Digital-Camera-Videographers-Vloggers/dp/B0BF48Q9SV/ref=sr_1_9?keywords=memory+cards&qid=1673482177&sr=8-9", + "rating":3.6, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":19.66, + "raw":"$19.66", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Memory-Digital-Camera-Videographers-Vloggers/dp/B0BF48Q9SV/ref=sr_1_9?keywords=memory+cards&qid=1673482177&sr=8-9", + "asin":"B0BF48Q9SV" + } + ], + "title":"SD Card 512GB Class 10 SD Memory Cards 512GB Memory Card 512GB High Speed for Digital Camera,Tablet and Drone Videographers,Vloggers", + "image":"https://m.media-amazon.com/images/I/61WAi1OgjML._AC_UY218_.jpg", + "asin":"B0BF48Q9SV", + "is_prime":true, + "position":13, + "ratings_total":7, + "price":{ + "value":19.66, + "raw":"$19.66", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Memory-Digital-Camera-Videographers-Vloggers/dp/B0BF48Q9SV/ref=sr_1_9?keywords=memory+cards&qid=1673482177&sr=8-9", + "asin":"B0BF48Q9SV" + } + }, + { + "link":"https://www.amazon.com/SAMSUNG-microSDXC-Expanded-MB-ME256KA-AM/dp/B09B1GXM16/ref=sr_1_10?keywords=memory+cards&qid=1673482177&sr=8-10", + "rating":4.7, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":26.99, + "raw":"$26.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":39.99, + "raw":"$39.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 256GB microSDXC 130MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, Expanded Storage for Android Smartphones, Tablets, Nintendo-Switch (MB-ME256KA/AM)", + "image":"https://m.media-amazon.com/images/I/71tK21fYkDL._AC_UY218_.jpg", + "asin":"B09B1GXM16", + "is_prime":true, + "position":14, + "ratings_total":42583, + "price":{ + "value":26.99, + "raw":"$26.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/TEAMGROUP-GO-Card-MicroSDXC-TGUSDX128GU303/dp/B08979ZLSP/ref=sr_1_11?keywords=memory+cards&qid=1673482177&sr=8-11", + "rating":4.6, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":9.99, + "raw":"$9.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":13.49, + "raw":"$13.49", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"TEAMGROUP GO Card 128GB Micro SDXC UHS-I U3 V30 4K for GoPro & Drone & Action Cameras High Speed Flash Memory Card with Adapter for Outdoor, Sports, 4K Shooting, Nintendo-Switch TGUSDX128GU303", + "image":"https://m.media-amazon.com/images/I/51W9mg8bFkS._AC_UY218_.jpg", + "asin":"B08979ZLSP", + "is_prime":true, + "position":15, + "ratings_total":4572, + "price":{ + "value":9.99, + "raw":"$9.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/SanDisk-Extreme-microSDXC-Memory-Adapter/dp/B09X7BK27V/ref=sr_1_12?keywords=memory+cards&qid=1673482177&sr=8-12", + "rating":4.8, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":16.46, + "raw":"$16.46", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":25.99, + "raw":"$25.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SanDisk 128GB Extreme microSDXC UHS-I Memory Card with Adapter - Up to 190MB/s, C10, U3, V30, 4K, 5K, A2, Micro SD Card - SDSQXAA-128G-GN6MA", + "ratings_total":35927, + "asin":"B09X7BK27V", + "position":16, + "image":"https://m.media-amazon.com/images/I/71etcRZF-JL._AC_UY218_.jpg", + "price":{ + "value":16.46, + "raw":"$16.46", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/SanDisk-128GB-microSDXC-Memory-Adapter/dp/B073JYC4XM/ref=sr_1_13?keywords=memory+cards&qid=1673482177&sr=8-13", + "rating":4.7, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":15.8, + "raw":"$15.80", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":49.99, + "raw":"$49.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA", + "image":"https://m.media-amazon.com/images/I/617NtexaW2L._AC_UY218_.jpg", + "asin":"B073JYC4XM", + "is_prime":true, + "position":17, + "ratings_total":215181, + "price":{ + "value":15.8, + "raw":"$15.80", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/Silicon-Power-Memory-Adapter-Drones/dp/B09TQS634Y/ref=sr_1_14?keywords=memory+cards&qid=1673482177&sr=8-14", + "rating":4.6, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":10.99, + "raw":"$10.99", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Silicon-Power-Memory-Adapter-Drones/dp/B09TQS634Y/ref=sr_1_14?keywords=memory+cards&qid=1673482177&sr=8-14", + "asin":"B09TQS634Y" + } + ], + "title":"Silicon Power 128GB Micro SD Card U3 SDXC Up to 100MB/s High Speed Memory Card with Adapter for Cams, Steam Deck, DJI Pocket 2 and Drones", + "image":"https://m.media-amazon.com/images/I/61vaZMzIx1L._AC_UY218_.jpg", + "asin":"B09TQS634Y", + "is_prime":true, + "position":18, + "ratings_total":5481, + "price":{ + "value":10.99, + "raw":"$10.99", + "symbol":"$", + "currency":"USD", + "link":"https://www.amazon.com/Silicon-Power-Memory-Adapter-Drones/dp/B09TQS634Y/ref=sr_1_14?keywords=memory+cards&qid=1673482177&sr=8-14", + "asin":"B09TQS634Y" + } + }, + { + "link":"https://www.amazon.com/PNY-Elite-microSDHC-Memory-P-SDU32GU185GW-GE/dp/B07R8GVGN9/ref=sr_1_15?keywords=memory+cards&qid=1673482177&sr=8-15", + "rating":4.7, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":5.99, + "raw":"$5.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + }, + { + "value":7.99, + "raw":"$7.99", + "symbol":"$", + "currency":"USD", + "name":"Original", + "is_rrp":true + } + ], + "title":"PNY 32GB Elite Class 10 U1 microSDHC Flash Memory Card - 100MB/s read, Class 10, U1, Full HD, UHS-I, micro SD", + "image":"https://m.media-amazon.com/images/I/71WisoVzycL._AC_UY218_.jpg", + "asin":"B07R8GVGN9", + "is_prime":true, + "position":19, + "ratings_total":2152, + "price":{ + "value":5.99, + "raw":"$5.99", + "symbol":"$", + "currency":"USD", + "is_primary":true, + "name":"Primary" + } + }, + { + "link":"https://www.amazon.com/Micro-Center-Class-Memory-Adapter/dp/B07K7Z8FJ1/ref=sr_1_16?keywords=memory+cards&qid=1673482177&sr=8-16", + "rating":4.6, + "categories":[ + { + "id":"aps", + "name":"All Departments" + } + ], + "prices":[ + { + "value":10.79, + "currency":"USD", + "raw":"Join Prime to buy this item at $10.79", + "symbol":"$" + }, + { + "value":11.99, + "currency":"USD", + "raw":"$11.99", + "symbol":"$" + } + ], + "title":"Micro Center 64GB Class 10 MicroSDXC Flash Memory Card with Adapter for Mobile Device Storage Phone, Tablet, Drone & Full HD Video Recording - 80MB/s UHS-I, C10, U1 (2 Pack)", + "image":"https://m.media-amazon.com/images/I/71ZN6XpXBAL._AC_UY218_.jpg", + "asin":"B07K7Z8FJ1", + "is_prime":true, + "position":20, + "ratings_total":81819, + "price":{ + "value":10.79, + "currency":"USD", + "raw":"Join Prime to buy this item at $10.79", + "symbol":"$" + } + } + ], + "request_parameters":{ + "search_term":"memory cards", + "amazon_domain":"amazon.com", + "type":"search" + }, + "related_brands":[ + { + "logo":"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/e302a74d-1423-44ac-bedc-64443bd8a4f3._CR0,0,400,400_AC_SX139_SY100_QL70_.png", + "title":"High-capacity, purpose-driven storageShop SanDisk", + "image":"https://m.media-amazon.com/images/I/51G0OYpkCYL._AC_SR139,139_QL70_.jpg", + "store_name":"SanDisk", + "store_link":"https://www.amazon.com/stores/page/6187A5D4-11BE-4006-8AFB-6EC233258034", + "store_id":"6187A5D4-11BE-4006-8AFB-6EC233258034", + "link":"https://aax-us-iad.amazon.com/x/c/RP0cDru_Bni-MgrfTdrLC70AAAGFo0-L4AEAAAH2AQBOL0EgICAgICAgICAgICBOL0EgICAgICAgICAgICCo3oLr/https://www.amazon.com/stores/page/6187A5D4-11BE-4006-8AFB-6EC233258034/?_encoding=UTF8&store_ref=SB_A07792783RW5TR8WZOPJO&pd_rd_plhdr=t&aaxitk=6e2ae82412598870a47b062cd8cc5c44&hsa_cr_id=6453101670501&lp_asins=B0B7NV73PJ%2CB09X7CRKRZ%2CB09X7CFXSX&lp_query=memory%20cards&lp_slot=desktop-hsa-3psl&ref_=sbx_be_s_3psl_mbd_cta&pd_rd_w=LJxV0&content-id=amzn1.sym.85014337-b4b1-4f3c-85f8-828d3b814280%3Aamzn1.sym.85014337-b4b1-4f3c-85f8-828d3b814280&pf_rd_p=85014337-b4b1-4f3c-85f8-828d3b814280&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=7K9t2&pd_rd_r=325982aa-db7d-4fe6-92eb-ae61cd785fe4" + }, + { + "logo":"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/6821261a-3122-499a-b647-740dc8ff0df3._CR0,0,4167,4167_AC_SX139_SY100_QL70_.png", + "title":"The Best Choice of 4K Memory CardsShop Gigastone", + "image":"https://m.media-amazon.com/images/I/5198oha8qrL._AC_SR139,139_QL70_.jpg", + "store_name":"Gigastone", + "store_link":"https://www.amazon.com/stores/page/622E59A6-5C89-4862-AF03-1C1CDAB1E969", + "store_id":"622E59A6-5C89-4862-AF03-1C1CDAB1E969", + "link":"https://aax-us-iad.amazon.com/x/c/RAxyIJjFY6jmx5p-HhSI_kAAAAGFo0-L4AEAAAH2AQBOL0EgICAgICAgICAgICBOL0EgICAgICAgICAgICA_0rUS/https://www.amazon.com/stores/page/622E59A6-5C89-4862-AF03-1C1CDAB1E969/?_encoding=UTF8&store_ref=SB_A00637102I5EW213I8X0R&pd_rd_plhdr=t&aaxitk=37541f8f2c92d7edf5edaaab31294cd5&hsa_cr_id=0&lp_asins=B093BRY83H%2CB093BTSZ55&lp_query=memory%20cards&lp_slot=desktop-hsa-3psl&ref_=sbx_be_s_3psl_mbd_cta&pd_rd_w=LJxV0&content-id=amzn1.sym.85014337-b4b1-4f3c-85f8-828d3b814280%3Aamzn1.sym.85014337-b4b1-4f3c-85f8-828d3b814280&pf_rd_p=85014337-b4b1-4f3c-85f8-828d3b814280&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=7K9t2&pd_rd_r=325982aa-db7d-4fe6-92eb-ae61cd785fe4" + }, + { + "link":"https://aax-us-iad.amazon.com/x/c/RDWSOkBOukjCNXUvKx1mkI4AAAGFo0-L4AEAAAH2AQBOL0EgICAgICAgICAgICBOL0EgICAgICAgICAgICAVR3fa/https://www.amazon.com/stores/page/04388447-5A69-4119-9875-531895361B91/?_encoding=UTF8&store_ref=SB_A0920486QRXFTVW2ZN9R&pd_rd_plhdr=t&aaxitk=9d4a5e891c1649bbfd7e2180bb8e1bcf&hsa_cr_id=6112341140701&lp_asins=B06ZYXR7DL%2CB06Y1G18KS&lp_query=memory%20cards&lp_slot=desktop-hsa-3psl&ref_=sbx_be_s_3psl_mbd_cta&pd_rd_w=LJxV0&content-id=amzn1.sym.85014337-b4b1-4f3c-85f8-828d3b814280%3Aamzn1.sym.85014337-b4b1-4f3c-85f8-828d3b814280&pf_rd_p=85014337-b4b1-4f3c-85f8-828d3b814280&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=7K9t2&pd_rd_r=325982aa-db7d-4fe6-92eb-ae61cd785fe4", + "title":"2 in 1 high speed SD memory card reader, micro SDShop SmartQ", + "image":"https://m.media-amazon.com/images/S/gladiator-image-upload-prod/2/ATVPDKIKX0DER/73b32a95eb7f382e32a720742e86670a._CR0,0,2520,2520_AC_SL139_QL70_.jpg", + "store_name":"SmartQ", + "store_id":"04388447-5A69-4119-9875-531895361B91", + "store_link":"https://www.amazon.com/stores/page/04388447-5A69-4119-9875-531895361B91" + } + ], + "video_blocks":[ + { + "products":[ + { + "link":"https://www.amazon.com/dp/B09QPLZC7G", + "title":"512GB CFexpress Type B Memory Card, Raw 8K Video Recording,up to 1700MB/s Read, 1600MB/s Write, Compatible with Nikon Z6/Z7/D6,Canon EOS-1DXMark III/EOS-R5,Panasonic S1/S1R,DJI Ronin 4D", + "image":"https://m.media-amazon.com/images/I/71Siyr3jyRL._AC_UL640_QL65_.jpg", + "asin":"B09QPLZC7G", + "is_prime":true, + "ratings_total":98, + "rating":4.5, + "price":{ + "value":299.99, + "currency":"USD", + "raw":"299.99", + "symbol":"$" + } + } + ], + "thumbnail_link":"https://d1f0esyb34c1g2.cloudfront.net/transcode/storyTeller/A3DOGAN0O9A8KM/1648088826969/6259a566-74b9-4c72-b2b3-f7c1fe0c1026/1648088909779.0000000.jpg", + "has_audio":true, + "video_link":"https://d1f0esyb34c1g2.cloudfront.net/transcode/storyTeller/A3DOGAN0O9A8KM/1648088826969/6259a566-74b9-4c72-b2b3-f7c1fe0c1026/1648088909779sbv.mp4", + "advertiser_id":"20683460402", + "campaign_id":"200056603637431" + }, + { + "products":[ + { + "link":"https://www.amazon.com/dp/B07XD1WCQP", + "title":"Gigastone 128GB 2-Pack SD Card UHS-I U1 Class 10 SDXC Memory Card High Speed Full HD Video Canon Nikon Sony Pentax Kodak Olympus Panasonic Digital Camera, with 2 Mini Cases", + "image":"https://m.media-amazon.com/images/I/51mhIMIQneL._AC_UL640_QL65_.jpg", + "asin":"B07XD1WCQP", + "is_prime":true, + "ratings_total":1875, + "rating":4.5, + "price":{ + "value":42.98, + "currency":"USD", + "raw":"42.98", + "symbol":"$" + } + } + ], + "thumbnail_link":"https://d1f0esyb34c1g2.cloudfront.net/transcode/storyTeller/A2SFGDK0SQGMP8/1650268991377/f8326695-adf8-40b5-9801-19dfda7788b3/1650269168966.0000000.jpg", + "has_audio":true, + "video_link":"https://d1f0esyb34c1g2.cloudfront.net/transcode/storyTeller/A2SFGDK0SQGMP8/1650268991377/f8326695-adf8-40b5-9801-19dfda7788b3/1650269168966sbv.mp4", + "advertiser_id":"28478593802", + "campaign_id":"200056489377181" + } + ], + "category_information":{ + "is_landing_page":false + }, + "ad_blocks":[ + { + "link":"https://aax-us-iad.amazon.com/x/c/RIQojwToCvKi44lUIlGqrNkAAAGFo0-K-QEAAAH2AQBOL0EgICAgICAgICAgICBOL0EgICAgICAgICAgICA9QTby/https://www.amazon.com/stores/page/6187A5D4-11BE-4006-8AFB-6EC233258034/?_encoding=UTF8&store_ref=SB_A07792783RW5TR8WZOPJO&pd_rd_plhdr=t&aaxitk=5288b902ddf0db4ee131e81e89e03de6&hsa_cr_id=8438103560601&lp_asins=B0B7NV73PJ%2CB09X7CRKRZ%2CB09X7CFXSX&lp_query=memory%20cards&lp_slot=auto-sparkle-hsa-tetris&ref_=sbx_be_s_sparkle_lsi4d_bkgd&pd_rd_w=P2niv&content-id=amzn1.sym.7e9cd8c2-888c-46c4-82d2-714b2b703021%3Aamzn1.sym.7e9cd8c2-888c-46c4-82d2-714b2b703021&pf_rd_p=7e9cd8c2-888c-46c4-82d2-714b2b703021&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=wSDtI&pd_rd_r=1bfdda07-c68f-43cc-b41e-b31287d4b928", + "background_image":"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/fc16b0ea-98cc-4464-bf5f-51e1e6e44a20._CR0,0,1200,628_SX507_QL70_.jpg", + "brand_logo":"https://m.media-amazon.com/images/S/al-na-9d5791cf-3faf/e302a74d-1423-44ac-bedc-64443bd8a4f3._CR0,0,400,400_AC_SX130_SY60_QL70_.png", + "store_link":"https://www.amazon.com/stores/page/6187A5D4-11BE-4006-8AFB-6EC233258034/?_encoding=UTF8&store_ref=SB_A07792783RW5TR8WZOPJO&pd_rd_plhdr=t&aaxitk=5288b902ddf0db4ee131e81e89e03de6&hsa_cr_id=8438103560601&lp_asins=B0B7NV73PJ%2CB09X7CRKRZ%2CB09X7CFXSX&lp_query=memory%20cards&lp_slot=auto-sparkle-hsa-tetris&ref_=sbx_be_s_sparkle_lsi4d_cta&pd_rd_w=P2niv&content-id=amzn1.sym.7e9cd8c2-888c-46c4-82d2-714b2b703021%3Aamzn1.sym.7e9cd8c2-888c-46c4-82d2-714b2b703021&pf_rd_p=7e9cd8c2-888c-46c4-82d2-714b2b703021&pf_rd_r=44BP7EP1KYPCER7TSJNH&pd_rd_wg=wSDtI&pd_rd_r=1bfdda07-c68f-43cc-b41e-b31287d4b928", + "title":"High-capacity, purpose-driven storage", + "campaign_id":"3387075190901", + "ad_id":"1880137360901", + "products":[ + { + "link":"https://www.amazon.com/dp/B0B7NV73PJ", + "title":"SanDisk 256GB Ultra microSDXC UHS-I Memory Card with Adapter - Up to 150MB/s, C10, U1, Full HD, A1, MicroSD Card - SDSQUAC-256G-GN6MA", + "image":"https://m.media-amazon.com/images/I/51G0OYpkCYL._AC_SR160,134_QL70_.jpg", + "asin":"B0B7NV73PJ", + "ratings_total":97860, + "rating":4.5, + "is_prime":true + }, + { + "link":"https://www.amazon.com/dp/B09X7CRKRZ", + "title":"SanDisk 256GB Extreme microSDXC UHS-I Memory Card with Adapter - Up to 190MB/s, C10, U3, V30, 4K, 5K, A2, Micro SD Card - SDSQXAV-256G-GN6MA", + "image":"https://m.media-amazon.com/images/I/719ZXZP+5LL._AC_SR160,134_QL70_.jpg", + "asin":"B09X7CRKRZ", + "ratings_total":35926, + "rating":5, + "is_prime":true + }, + { + "link":"https://www.amazon.com/dp/B09X7CFXSX", + "title":"SanDisk 256GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-256G-GN4IN", + "image":"https://m.media-amazon.com/images/I/811i6jCsqiL._AC_SR160,134_QL70_.jpg", + "asin":"B09X7CFXSX", + "ratings_total":5572, + "rating":5, + "is_prime":true + } + ], + "store_name":"SanDisk", + "advertiser_id":"1880137360901", + "store_id":"6187A5D4-11BE-4006-8AFB-6EC233258034" + } + ], + "refinements":{ + "departments":[ + { + "value":"n/516866", + "name":"Memory Cards", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866&dc&qid=1673482177&rnid=2941120011&ref=sr_nr_n_1&ds=v1%3AqoOqWN6ddfbZAVQPOxWMskWMlofpxPx8tczAXMYSmhk" + }, + { + "value":"n/1197396", + "name":"SecureDigital Memory Cards", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cn%3A1197396&dc&qid=1673482177&rnid=2941120011&ref=sr_nr_n_2&ds=v1%3AD62lOPuA1%2FRpwsD5GbhKb4NODG4SYk9x5k4l%2F51MLX4" + }, + { + "value":"n/3015433011", + "name":"Micro SD Memory Cards", + "refinement_display_name":"Departments", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cn%3A3015433011&dc&qid=1673482177&rnid=2941120011&ref=sr_nr_n_3&ds=v1%3AxYirCixg%2FbDQA%2Fo0Czs0zqjpnBlHTLbdswbVzuMf0No" + } + ], + "certification":[ + { + "value":"n:172282||p_n_special_merchandising_browse-bin/544495011", + "name":"Energy Star", + "refinement_display_name":"Certification", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_n_special_merchandising_browse-bin%3A544495011&dc&qid=1673482177&rnid=544494011&ref=sr_nr_p_n_special_merchandising_browse-bin_1&ds=v1%3AtZDk4Kj7iz00YZ7ZbX5YbqtKfJoDkPd3ees1MtgouPs" + } + ], + "prime":[ + { + "value":"n:172282||p_76/1249137011", + "name":"Free Shipping by Amazon", + "refinement_display_name":"Prime", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_76%3A1249137011&dc&qid=1673482177&rnid=1249135011&ref=sr_nr_p_76_1&ds=v1%3AK369VXfVqKoAXVRlm8MxJomfLFjo0iJDsiTKprUVxXM" + } + ], + "international_shipping":[ + { + "value":"p_n_shipping_option-bin/3242350011", + "name":"International Shipping Eligible", + "refinement_display_name":"International Shipping", + "link":"https://www.amazon.com/s?k=memory+cards&rh=p_n_shipping_option-bin%3A3242350011&dc&qid=1673482177&rnid=2944662011&ref=sr_nr_p_n_shipping_option-bin_1&ds=v1%3AHZbR9mpcbYz3cPAT%2Fuh6OX4BM4jczmTKPmSwQNHlQ1U" + } + ], + "new_arrivals":[ + { + "value":"n:172282||p_n_date/1249033011", + "name":"New Arrivals", + "refinement_display_name":"New Arrivals", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_n_date%3A1249033011&dc&qid=1673482177&rnid=1249031011&ref=sr_nr_p_n_date_1&ds=v1%3APijfPQsCK9mlrgJt0NZiAu0gc0eYGwwvR2soV032o7A" + } + ], + "flash_memory_special_features":[ + { + "value":"n:516866||p_n_feature_three_browse-bin/23943950011", + "name":"Drop Proof", + "refinement_display_name":"Flash Memory Special Features", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_three_browse-bin%3A23943950011&dc&qid=1673482177&rnid=23943946011&ref=sr_nr_p_n_feature_three_browse-bin_1&ds=v1%3ADFAWZSG9pOYlo0kofZRi6c6UdYc8KqezPkG9OrzFt6s" + }, + { + "value":"n:516866||p_n_feature_three_browse-bin/23943949011", + "name":"Magnetic Proof", + "refinement_display_name":"Flash Memory Special Features", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_three_browse-bin%3A23943949011&dc&qid=1673482177&rnid=23943946011&ref=sr_nr_p_n_feature_three_browse-bin_2&ds=v1%3AJ6XfeHdKW77DDoGHmo7GJyBfP6TDBBqS2OhIs%2FlwgoE" + }, + { + "value":"n:516866||p_n_feature_three_browse-bin/23943947011", + "name":"Temperature Proof", + "refinement_display_name":"Flash Memory Special Features", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_three_browse-bin%3A23943947011&dc&qid=1673482177&rnid=23943946011&ref=sr_nr_p_n_feature_three_browse-bin_3&ds=v1%3Ax3zDSTVjnkn9b2EXlNgchB4pG2Atez5r9cr0gRsr%2FU0" + }, + { + "value":"n:516866||p_n_feature_three_browse-bin/23943948011", + "name":"Water Proof", + "refinement_display_name":"Flash Memory Special Features", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_three_browse-bin%3A23943948011&dc&qid=1673482177&rnid=23943946011&ref=sr_nr_p_n_feature_three_browse-bin_4&ds=v1%3AyEgZmKrIhNNsTVib%2BOShffIgrKw%2BkQhlRtUY%2FPa4Ls4" + }, + { + "value":"n:516866||p_n_feature_three_browse-bin/23943952011", + "name":"Wearout Proof", + "refinement_display_name":"Flash Memory Special Features", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_three_browse-bin%3A23943952011&dc&qid=1673482177&rnid=23943946011&ref=sr_nr_p_n_feature_three_browse-bin_5&ds=v1%3ALHysuWOLQ3gdVEHOpttDjpK6T%2F%2BivTlAmb27zaS8Dig" + }, + { + "value":"n:516866||p_n_feature_three_browse-bin/23943951011", + "name":"X Ray Proof", + "refinement_display_name":"Flash Memory Special Features", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_three_browse-bin%3A23943951011&dc&qid=1673482177&rnid=23943946011&ref=sr_nr_p_n_feature_three_browse-bin_6&ds=v1%3AXQJ%2FEZneCpFOFcm5EWJ0FZB0R6QITBwRRbM4Y3QMjGM" + } + ], + "payment_plan":[ + { + "value":"p_n_is_layaway_eligible/24003598011", + "name":"Layaway Eligible", + "refinement_display_name":"Payment Plan", + "link":"https://www.amazon.com/s?k=memory+cards&rh=p_n_is_layaway_eligible%3A24003598011&dc&qid=1673482177&rnid=24003597011&ref=sr_nr_p_n_is_layaway_eligible_1&ds=v1%3AMcrScAjQtzPEK1i7wdLzkw0D%2FVIf%2Bwd681l3KFfsLEU" + } + ], + "reviews":[ + { + "value":"n:172282||p_72/1248879011", + "name":"4 Stars & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_72%3A1248879011&dc&qid=1673482177&rnid=1248877011&ref=sr_nr_p_72_1&ds=v1%3Am7G%2Fzmuo%2FZCqhKF5DC7%2FRH2ZSAjYiTJH9hXQKs6hAa0" + }, + { + "value":"n:172282||p_72/1248880011", + "name":"3 Stars & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_72%3A1248880011&dc&qid=1673482177&rnid=1248877011&ref=sr_nr_p_72_2&ds=v1%3AQ1NTxzsL1nV6dNODOjJz%2FECuAVu0uY4z0aAZm%2BNap%2Fo" + }, + { + "value":"n:172282||p_72/1248881011", + "name":"2 Stars & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_72%3A1248881011&dc&qid=1673482177&rnid=1248877011&ref=sr_nr_p_72_3&ds=v1%3AX6gO0RYCJ%2FsDZvrdSHMGY%2FF5t3sa7Lo8lWUMogwYRC0" + }, + { + "value":"n:172282||p_72/1248882011", + "name":"1 Star & Up", + "refinement_display_name":"Reviews", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_72%3A1248882011&dc&qid=1673482177&rnid=1248877011&ref=sr_nr_p_72_4&ds=v1%3AwVcpayaukcEVt9wUTD7UxjgW5yl34WkMBV1RiaUjT28" + } + ], + "brand":[ + { + "value":"n:172282||p_89/SanDisk", + "name":"SanDisk", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ASanDisk&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_1&ds=v1%3A617IP1mZGtEXBpcA%2FeN6uUvOEhl9Ny%2F4w63pmPHhlpo" + }, + { + "value":"n:172282||p_89/SAMSUNG", + "name":"SAMSUNG", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ASAMSUNG&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_2&ds=v1%3AKTHEUMQyAeWwIUdmjH9P5RQT1FavuUzb9zOmRNv%2FEBA" + }, + { + "value":"n:172282||p_89/PNY", + "name":"PNY", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3APNY&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_3&ds=v1%3AOO8TmVegSg8Y%2Fegt03Cq%2BpOTa80CMYhGmZQY%2BbfNBhM" + }, + { + "value":"n:172282||p_89/INLAND", + "name":"INLAND", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AINLAND&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_4&ds=v1%3A15cHG3JFRERXrAWTx3uzUpB%2FPzUx9vTyzkBq18WqLQ4" + }, + { + "value":"n:172282||p_89/Kingston", + "name":"Kingston", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AKingston&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_5&ds=v1%3AAi1iTZoKJtTO4kAzCvFJoO8QpwJ2jHvvIdSB1QF%2F3Ww" + }, + { + "value":"n:172282||p_89/Gigastone", + "name":"Gigastone", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AGigastone&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_6&ds=v1%3A1PSR1ONbl5xmGEeDlWnNFGHeZE2sz2KfDYixAS7DxIo" + }, + { + "value":"n:172282||p_89/Patriot Memory", + "name":"Patriot Memory", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3APatriot+Memory&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_7&ds=v1%3A%2FBTze70qyE%2F3e%2BdhP4%2FQ%2Fa5z%2FJ%2BrPUDh5iyjKcvCpkE" + }, + { + "value":"n:172282||undefined", + "name":"nuiflashVerbatimLexaralisinsenTEAMGROUPCAFUNHESP Silicon PowerMORICRitz GearKOOTIONHUNYEIZCloudiskSUPERDUODUO", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3Anuiflash&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_8&ds=v1%3AtPbaJOrx7RxXfm%2BXAqUMfn7WubCtwjGERnqtTaG9OuE" + }, + { + "value":"n:172282||p_89/nuiflash", + "name":"nuiflash", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3Anuiflash&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_8&ds=v1%3AtPbaJOrx7RxXfm%2BXAqUMfn7WubCtwjGERnqtTaG9OuE" + }, + { + "value":"n:172282||p_89/Verbatim", + "name":"Verbatim", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AVerbatim&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_9&ds=v1%3AiLaGyl7MUGqPswexI1%2BUouFXPdTwbsleWeG%2BuUYkX0k" + }, + { + "value":"n:172282||p_89/Lexar", + "name":"Lexar", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ALexar&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_10&ds=v1%3AFB8kDeDyqfDnZHo9pjIOnDumyu5q9mjw9sX7KM66sp0" + }, + { + "value":"n:172282||p_89/alisinsen", + "name":"alisinsen", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3Aalisinsen&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_11&ds=v1%3AqYG6Exj6UMWPxNEPcOUVzYRL3dGJXd4lIkdFiUnQdxI" + }, + { + "value":"n:172282||p_89/TEAMGROUP", + "name":"TEAMGROUP", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ATEAMGROUP&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_12&ds=v1%3A27rbT0%2BlLpHdx%2FGlyP0gwf9YcMWudWfgU90cVmstU74" + }, + { + "value":"n:172282||p_89/CAFUNHE", + "name":"CAFUNHE", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ACAFUNHE&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_13&ds=v1%3AGuIyi6fRWKt%2FAvJgq8dIGDDSBPrzurq75OY93NqbEd0" + }, + { + "value":"n:172282||p_89/SP Silicon Power", + "name":"SP Silicon Power", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ASP+Silicon+Power&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_14&ds=v1%3AhHW7pV47C4EZtps9kjrTNppVZ0KaM4lRhcO9WMbau7s" + }, + { + "value":"n:172282||p_89/MORIC", + "name":"MORIC", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AMORIC&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_15&ds=v1%3A5J%2BuOYM5GeNVGOzRs48LP1BIUw2BWtdo%2Bem6TvkowFg" + }, + { + "value":"n:172282||p_89/Ritz Gear", + "name":"Ritz Gear", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ARitz+Gear&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_16&ds=v1%3AlEZqTv%2Bb6H4HqRz67E1xj8X9Ikm1FlyHUho1FngxNZA" + }, + { + "value":"n:172282||p_89/KOOTION", + "name":"KOOTION", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AKOOTION&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_17&ds=v1%3A0sap7QWE7j2ufHD9BjbeRl0zoO8pp6BPfJIweQ4m5uI" + }, + { + "value":"n:172282||p_89/HUNYEIZ", + "name":"HUNYEIZ", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3AHUNYEIZ&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_18&ds=v1%3AJmPBEFfS%2BfaDkcQPvowDMaX2U3Pso4ecO%2FJZWQCPbdI" + }, + { + "value":"n:172282||p_89/Cloudisk", + "name":"Cloudisk", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ACloudisk&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_19&ds=v1%3AuLak83fsXHtUAvZW7m60mj09jGQvJq4djpymLOHZrLI" + }, + { + "value":"n:172282||p_89/SUPERDUODUO", + "name":"SUPERDUODUO", + "refinement_display_name":"Brand", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_89%3ASUPERDUODUO&dc&qid=1673482177&rnid=2528832011&ref=sr_nr_p_89_20&ds=v1%3Ai8pqnA%2BmKFZ9hq7RTFvofmF%2Fo5YjO8YlRC89tzzuEWA" + } + ], + "condition":[ + { + "value":"n:172282||p_n_condition-type/2224371011", + "name":"New", + "refinement_display_name":"Condition", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_n_condition-type%3A2224371011&dc&qid=1673482177&rnid=2224369011&ref=sr_nr_p_n_condition-type_1&ds=v1%3AfKfg4abhHpNYlSysLjEtZ9gkDHBdLwwGrP%2FbtEenZys" + }, + { + "value":"n:172282||p_n_condition-type/16907720011", + "name":"Renewed", + "refinement_display_name":"Condition", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_n_condition-type%3A16907720011&dc&qid=1673482177&rnid=2224369011&ref=sr_nr_p_n_condition-type_2&ds=v1%3Aqc3zV4SjahPj%2BbQ%2Fy3CzyR0z%2FlOtEhPnBTKM9YYF%2FQw" + }, + { + "value":"n:172282||p_n_condition-type/2224373011", + "name":"Used", + "refinement_display_name":"Condition", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_n_condition-type%3A2224373011&dc&qid=1673482177&rnid=2224369011&ref=sr_nr_p_n_condition-type_3&ds=v1%3Ar5UKa8utBHW3NKPv7NuC%2B9enPq%2B95JuJhtIpB6ZbUSg" + } + ], + "amazon_global_store":[ + { + "value":"p_n_is-global-store-asin/16354393011", + "name":"Amazon Global Store", + "refinement_display_name":"Amazon Global Store", + "link":"https://www.amazon.com/s?k=memory+cards&rh=p_n_is-global-store-asin%3A16354393011&dc&qid=1673482177&rnid=16354392011&ref=sr_nr_p_n_is-global-store-asin_1&ds=v1%3AOUxiZVeYKZVfYXsBd37nnHQt80nSBSp7OEx9J6iNq58" + } + ], + "availability":[ + { + "value":"p_n_availability/2661601011", + "name":"Include Out of Stock", + "refinement_display_name":"Availability", + "link":"https://www.amazon.com/s?k=memory+cards&rh=p_n_availability%3A2661601011&dc&qid=1673482177&rnid=2661599011&ref=sr_nr_p_n_availability_2&ds=v1%3AUbB5zu3LkaQG4fZ31RKK0kCXreiY5Jm2jjssUmfT33s" + } + ], + "high_capacity_memory_cards":[ + { + "value":"n:516866||p_n_feature_two_browse-bin/6518302011", + "name":"8 GB & Under", + "refinement_display_name":"High Capacity Memory Cards", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_two_browse-bin%3A6518302011&dc&qid=1673482177&rnid=6518301011&ref=sr_nr_p_n_feature_two_browse-bin_1&ds=v1%3AFtXF9l%2FV8ljbmT61rCws%2BobgOf9vdT5yiugzEBaOat8" + }, + { + "value":"n:516866||p_n_feature_two_browse-bin/6518303011", + "name":"16 GB", + "refinement_display_name":"High Capacity Memory Cards", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_two_browse-bin%3A6518303011&dc&qid=1673482177&rnid=6518301011&ref=sr_nr_p_n_feature_two_browse-bin_2&ds=v1%3A%2BGF0RA3rb0lQt1W0ei35479VeDXg5T450CCvxTlHJK4" + }, + { + "value":"n:516866||p_n_feature_two_browse-bin/6518304011", + "name":"32 GB", + "refinement_display_name":"High Capacity Memory Cards", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_two_browse-bin%3A6518304011&dc&qid=1673482177&rnid=6518301011&ref=sr_nr_p_n_feature_two_browse-bin_3&ds=v1%3AA1Ll2R4QUi618GrkF61iNjRWfuB9xsUZ5R6zTodr6tk" + }, + { + "value":"n:516866||p_n_feature_two_browse-bin/6518305011", + "name":"64 GB", + "refinement_display_name":"High Capacity Memory Cards", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_two_browse-bin%3A6518305011&dc&qid=1673482177&rnid=6518301011&ref=sr_nr_p_n_feature_two_browse-bin_4&ds=v1%3ApHfPBMpUZABvxb%2B%2By2S8hP87yqP0rSPhBGyehfwaOG0" + }, + { + "value":"n:516866||p_n_feature_two_browse-bin/13203834011", + "name":"128 GB", + "refinement_display_name":"High Capacity Memory Cards", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_two_browse-bin%3A13203834011&dc&qid=1673482177&rnid=6518301011&ref=sr_nr_p_n_feature_two_browse-bin_5&ds=v1%3ABzx0DczGhOKKV1%2BvwyIJG9xeIavqXiDGg3DyrXOQ8gM" + }, + { + "value":"n:516866||p_n_feature_two_browse-bin/13203835011", + "name":"200 GB & Up", + "refinement_display_name":"High Capacity Memory Cards", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_n_feature_two_browse-bin%3A13203835011&dc&qid=1673482177&rnid=6518301011&ref=sr_nr_p_n_feature_two_browse-bin_6&ds=v1%3Ao6fRhZohPcng5%2Bx7DwWQ7%2BL5Nv8Pg3NEpRxnvr9ZAzU" + } + ], + "packaging_option":[ + { + "value":"n:172282||p_n_is_ffp/7252855011", + "name":"Frustration-Free Packaging", + "refinement_display_name":"Packaging Option", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A172282%2Cp_n_is_ffp%3A7252855011&dc&qid=1673482177&rnid=7252854011&ref=sr_nr_p_n_is_ffp_1&ds=v1%3ABUiom2vdtr8bsCZYqMVHcwmUbcfpLRveXPwuG2%2BaPrQ" + } + ], + "price":[ + { + "value":"n:516866||p_36/1253503011", + "name":"Under $25", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_36%3A1253503011&dc&qid=1673482177&rnid=386442011&ref=sr_nr_p_36_1&ds=v1%3AD0WOgm0108ICepDl4x3%2B7eIURHTEQ%2FHfxHZBX8Oadwc" + }, + { + "value":"n:516866||p_36/1253504011", + "name":"$25 to $50", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_36%3A1253504011&dc&qid=1673482177&rnid=386442011&ref=sr_nr_p_36_2&ds=v1%3A88QmT254cyEhePr6XZLiJ2UJ8uIIOCO9nu6e%2BnLH1IY" + }, + { + "value":"n:516866||p_36/1253505011", + "name":"$50 to $100", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_36%3A1253505011&dc&qid=1673482177&rnid=386442011&ref=sr_nr_p_36_3&ds=v1%3AsLtp8Dx%2FBz%2FcJ%2Bsk7nUS96%2FmBkPv8QxO34ce%2FsdYAF4" + }, + { + "value":"n:516866||p_36/1253506011", + "name":"$100 to $200", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_36%3A1253506011&dc&qid=1673482177&rnid=386442011&ref=sr_nr_p_36_4&ds=v1%3Awzm6pTBh6fR%2B00%2F3JGmIfmESkogzLQdO42U8TXJ208c" + }, + { + "value":"n:516866||p_36/1253507011", + "name":"$200 & Above", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=n%3A516866%2Cp_36%3A1253507011&dc&qid=1673482177&rnid=386442011&ref=sr_nr_p_36_5&ds=v1%3ApmHNSbrRBokznJEu40HVD6Avoc77dj%2Bs4GRMc8feuzY" + }, + { + "value":"p_36/price-range", + "name":"$ $ Go", + "refinement_display_name":"Price" + }, + { + "value":"p_n_deal_type/23566065011", + "name":"All Discounts", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=p_n_deal_type%3A23566065011&dc&qid=1673482177&rnid=23566063011&ref=sr_nr_p_n_deal_type_1&ds=v1%3AxbVQrdj5HjT%2BjZ60uasPSsMPXpOxiE5gZqMlMlqiGpo" + }, + { + "value":"p_n_deal_type/23566064011", + "name":"Today's Deals", + "refinement_display_name":"Price", + "link":"https://www.amazon.com/s?k=memory+cards&rh=p_n_deal_type%3A23566064011&dc&qid=1673482177&rnid=23566063011&ref=sr_nr_p_n_deal_type_2&ds=v1%3AFE%2B%2BanCWSy3wx7oymgNXnen4sM2qEbWH7YrkvXOCOag" + } + ] + }, + "pagination":{ + "total_results":5000, + "current_page":1, + "total_pages":20, + "next_page_link":"https://www.amazon.com/s?k=memory+cards&page=2&qid=1673482177&ref=sr_pg_2" + } + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json; charset=utf-8", + "date":"Thu, 12 Jan 2023 00:09:45 GMT", + "etag":"W/\"cded-Hq65CY4yujhzfYRICCUh5P3q/IQ\"", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.8", + "x-serving-cluster":"apiserver" + }, + "schema":{} + }, + { + "name":"Product", + "url":"https://asin-data.p.rapidapi.com/request", + "description":"The Product Parameters are applicable when making a request with `type=product` to retrieve details of a single product on Amazon - the product is specified using either the asin and `amazon_domain` parameters or the url parameter (where the url parameter contains a link to an Amazon product page). The parameters should be appended as querystring parameters to the Product Data API GET HTTP request.\n\nProduct details are retrieved from the product page for a single product on Amazon.", + "method":"GET", + "required_parameters":[ + { + "name":"type", + "type":"STRING", + "description":"", + "default":"product" + } + ], + "optional_parameters":[ + { + "name":"gtin", + "type":"STRING", + "description":"A GTIN, ISBN, UPC or EAN code to retrieve results for. Internally ASIN Data API will first convert the GTIN/ISBN/UPC/EAN to an Amazon ASIN, then retrieve the results for that ASIN from Amazon. Used in combination with the amazon_domain parameter.\n\n**Note: If the gtin and amazon_domain parameters are supplied then the url parameter is ignored.**", + "default":"" + }, + { + "name":"url", + "type":"STRING", + "description":"The Amazon product-page URL to retrieve product details from.\n\n**Ensure that the url parameter is URL-encoded.**\n\nNote: If the url parameter is supplied then the amazon_domain and asin parameters are ignored.", + "default":"" + }, + { + "name":"amazon_domain", + "type":"STRING", + "description":"The Amazon domain to retrieve product details from for the product specified in the asin parameter. For a full list of supported Amazon domains see Supported Amazon Domains.\n\n**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.**", + "default":"amazon.com" + }, + { + "name":"asin", + "type":"STRING", + "description":"The Amazon ASIN (product ID) to retrieve product details for. Used in combination with the `amazon_domain` parameter.\n\n**Note: If the asin and `amazon_domain `parameters are supplied then the url parameter is ignored.**", + "default":"B073JYC4XM" + } + ], + "code":"import requests\n\nurl = \"https://asin-data.p.rapidapi.com/request\"\nquerystring = {\"type\": type, \"amazon_domain\": amazon_domain, \"asin\": asin}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asin-data.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "brand_store":{ + "link":"https://www.amazon.com/stores/SanDisk/page/CD971F4B-EE23-4EA1-96E3-567678AC9C0A", + "id":"CD971F4B-EE23-4EA1-96E3-567678AC9C0A" + }, + "frequently_bought_together":{ + "total_price":{ + "value":119.37, + "currency":"USD", + "raw":"$119.37", + "symbol":"$" + }, + "products":[ + { + "link":"https://www.amazon.com/dp/B073JYC4XM", + "title":"TRIDENITE 128GB Micro SD Card, MicroSDXC Memory for Nintendo-Switch, GoPro, Drone, Smartphone, Tablet, 4K Ultra HD, A1 UHS-I U3 V30 C10, Up to 95MB/s Read, with SD Adapter", + "image":"https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/grey-pixel.gif", + "asin":"B073JYC4XM", + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B08GXXKY6P", + "title":"SanDisk 512GB Ultra microSDXC UHS-I Memory Card with Adapter - 120MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUA4-512G-GN", + "image":"https://images-na.ssl-images-amazon.com/images/I/51jD-iXnkuL._AC_UL116_SR116,116_.jpg", + "asin":"B08GXXKY6P", + "price":{ + "value":53.58, + "currency":"USD", + "raw":"$53.58", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B07VCHVTCM", + "title":"Dash Cam for Cars 1080P FHD Car Dash Camera CHORTAU 2022 New Version Car Camera Recorder 3Inch Screen Dashboard Camera with 1", + "image":"https://images-na.ssl-images-amazon.com/images/I/71hdMHBMnyL._AC_UL116_SR116,116_.jpg", + "asin":"B07VCHVTCM", + "price":{ + "value":49.99, + "currency":"USD", + "raw":"$49.99", + "symbol":"$" + } + } + ] + }, + "request_parameters":{ + "asin":"B073JYC4XM", + "amazon_domain":"amazon.com", + "type":"product" + }, + "also_bought":[ + { + "link":"https://www.amazon.com/Espeon-128GB-MicroSDXC-UHS-I-Ultra/dp/B08RDRT54B/ref=d_pd_pb_int_sa_ss_sccl_2_1/140-3919052-8453159?pd_rd_w=pa3BE&content-id=amzn1.sym.f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_p=f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_r=57M5TF375J39NZMBGEBX&pd_rd_wg=5B2Ti&pd_rd_r=a9ab2a9e-1020-4c2f-803a-55652dfa57b6&pd_rd_i=B08RDRT54B&psc=1", + "title":"Espeon Micro SD Card 128GB with SD Adapter for Smartphone and Tablet MicroSDXC Memory Expansion, Nintendo-Switch, Portable Ga", + "image":"https://images-na.ssl-images-amazon.com/images/I/51T-ELH8L9S._AC_UL160_SR160,160_.jpg", + "asin":"B08RDRT54B", + "rating":4.3, + "ratings_total":616, + "price":{ + "value":17.99, + "currency":"USD", + "raw":"$17.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/Vansuny-microSDXC-Performance-Recording-Security/dp/B0B3MHCSQV/ref=d_pd_pb_int_sa_ss_sccl_2_2/140-3919052-8453159?pd_rd_w=pa3BE&content-id=amzn1.sym.f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_p=f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_r=57M5TF375J39NZMBGEBX&pd_rd_wg=5B2Ti&pd_rd_r=a9ab2a9e-1020-4c2f-803a-55652dfa57b6&pd_rd_i=B0B3MHCSQV&psc=1", + "title":"Vansuny Micro SD Card 128GB microSDXC Memory Card with SD Adapter A1 App Performance V30 4K Video Recording C10 U3 Micro SD f", + "image":"https://images-na.ssl-images-amazon.com/images/I/516P6Tbj8WL._AC_UL160_SR160,160_.jpg", + "asin":"B0B3MHCSQV", + "rating":4.4, + "ratings_total":145, + "price":{ + "value":12.99, + "currency":"USD", + "raw":"$12.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/TRIDENITE-MicroSDXC-Nintendo-Switch-Smartphone-Adapter/dp/B09RWWKM5D/ref=d_pd_pb_int_sa_ss_sccl_2_3/140-3919052-8453159?pd_rd_w=pa3BE&content-id=amzn1.sym.f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_p=f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_r=57M5TF375J39NZMBGEBX&pd_rd_wg=5B2Ti&pd_rd_r=a9ab2a9e-1020-4c2f-803a-55652dfa57b6&pd_rd_i=B09RWWKM5D&psc=1", + "title":"TRIDENITE 64GB Micro SD Card, MicroSDXC Memory for Nintendo-Switch, GoPro, Drone, Smartphone, Tablet, 4K Ultra HD, A1 UHS-I U", + "image":"https://images-na.ssl-images-amazon.com/images/I/51ji2nUCtQL._AC_UL160_SR160,160_.jpg", + "asin":"B09RWWKM5D", + "rating":4.6, + "ratings_total":1055, + "price":{ + "value":8.99, + "currency":"USD", + "raw":"$8.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/AXE-MEMORY-microSDXC-Adapter-Performance/dp/B07VLT55DM/ref=d_pd_pb_int_sa_ss_sccl_2_4/140-3919052-8453159?pd_rd_w=pa3BE&content-id=amzn1.sym.f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_p=f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_r=57M5TF375J39NZMBGEBX&pd_rd_wg=5B2Ti&pd_rd_r=a9ab2a9e-1020-4c2f-803a-55652dfa57b6&pd_rd_i=B07VLT55DM&psc=1", + "title":"AXE MEMORY 256GB microSDXC Memory Card + SD Adapter with A1 App Performance, V30 UHS-I U3 4K", + "image":"https://images-na.ssl-images-amazon.com/images/I/51k+SopuogL._AC_UL160_SR160,160_.jpg", + "asin":"B07VLT55DM", + "rating":4.6, + "ratings_total":10703, + "price":{ + "value":25.99, + "currency":"USD", + "raw":"$25.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/Amazon-Basics-microSDXC-Memory-Adapter/dp/B08TJRVWV1/ref=d_pd_pb_int_sa_ss_sccl_2_5/140-3919052-8453159?pd_rd_w=pa3BE&content-id=amzn1.sym.f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_p=f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_r=57M5TF375J39NZMBGEBX&pd_rd_wg=5B2Ti&pd_rd_r=a9ab2a9e-1020-4c2f-803a-55652dfa57b6&pd_rd_i=B08TJRVWV1&psc=1", + "title":"Amazon Basics microSDXC Memory Card with Full Size Adapter, A2, U3, Read Speed up to 100 MB/s, 128 GB", + "image":"https://images-na.ssl-images-amazon.com/images/I/61DwejyTGkL._AC_UL160_SR160,160_.jpg", + "asin":"B08TJRVWV1", + "rating":4.6, + "ratings_total":25508, + "price":{ + "value":13.91, + "currency":"USD", + "raw":"$13.91", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/SD-Card-Reader-Adapter-Compatible/dp/B09QG5NBB4/ref=d_pd_pb_int_sa_ss_sccl_2_6/140-3919052-8453159?pd_rd_w=pa3BE&content-id=amzn1.sym.f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_p=f98e0a8a-0140-4c3b-b6aa-bfaf05e6a755&pf_rd_r=57M5TF375J39NZMBGEBX&pd_rd_wg=5B2Ti&pd_rd_r=a9ab2a9e-1020-4c2f-803a-55652dfa57b6&pd_rd_i=B09QG5NBB4&psc=1", + "title":"SD Card Reader - QUUGE USB C Micro SD Memory Card Reader Adapter USB3.0 for SD/Micro SD/SDHC/SDXC/MMC/RS-MMC/UHS-I, Compatibl", + "image":"https://images-na.ssl-images-amazon.com/images/I/61GN--r+bAL._AC_UL160_SR160,160_.jpg", + "asin":"B09QG5NBB4", + "rating":4.5, + "ratings_total":155, + "price":{ + "value":17.99, + "currency":"USD", + "raw":"$17.99", + "symbol":"$" + } + } + ], + "compare_with_similar":[ + { + "link":"https://www.amazon.com/dp/B073JYC4XM", + "rating":4.5, + "image":"https://m.media-amazon.com/images/I/617NtexaW2L._AC_SS450_.jpg", + "asin":"B073JYC4XM", + "title":"SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA", + "ratings_total":215181, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B09RWX7175", + "rating":4.5, + "image":"https://m.media-amazon.com/images/I/51gb6sA4n2L._AC_SS450_.jpg", + "asin":"B09RWX7175", + "title":"TRIDENITE 128GB Micro SD Card, MicroSDXC Memory for Nintendo-Switch, GoPro, Drone, Smartphone, Tablet, 4K Ultra HD, A1 UHS-I U3 V30 C10, Up to 95MB/s Read, with SD Adapter", + "ratings_total":1055, + "price":{ + "value":17.99, + "currency":"USD", + "raw":"$17.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B09RWWKM5D", + "rating":4.5, + "image":"https://m.media-amazon.com/images/I/51ji2nUCtQL._AC_SS450_.jpg", + "asin":"B09RWWKM5D", + "title":"TRIDENITE 64GB Micro SD Card, MicroSDXC Memory for Nintendo-Switch, GoPro, Drone, Smartphone, Tablet, 4K Ultra HD, A1 UHS-I U3 V30 C10, Up to 95MB/s Read, with SD Adapter", + "ratings_total":1055, + "price":{ + "value":8.99, + "currency":"USD", + "raw":"$8.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B07VT3M4GM", + "rating":4.5, + "image":"https://m.media-amazon.com/images/I/51i4uTPMAiL._AC_SS450_.jpg", + "asin":"B07VT3M4GM", + "title":"AXE MEMORY 128GB microSDXC Memory Card + SD Adapter with A1 App Performance, V30 UHS-I U3 4K", + "ratings_total":10703, + "price":{ + "value":13.9, + "currency":"USD", + "raw":"$13.90", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B07VQ2B72D", + "rating":4.5, + "image":"https://m.media-amazon.com/images/I/511kSw750CL._AC_SS450_.jpg", + "asin":"B07VQ2B72D", + "title":"AXE MEMORY 64GB microSDXC Memory Card + SD Adapter with A2 App Performance, V30 UHS-I U3 4K", + "ratings_total":10703, + "price":{ + "value":10.99, + "currency":"USD", + "raw":"$10.99", + "symbol":"$" + } + }, + { + "link":"https://www.amazon.com/dp/B08TJRVWV1", + "rating":4.5, + "image":"https://m.media-amazon.com/images/I/61DwejyTGkL._AC_SS450_.jpg", + "asin":"B08TJRVWV1", + "title":"Amazon Basics microSDXC Memory Card with Full Size Adapter, A2, U3, Read Speed up to 100 MB/s, 128 GB", + "ratings_total":25508, + "price":{ + "value":13.91, + "currency":"USD", + "raw":"$13.91", + "symbol":"$" + } + } + ], + "product":{ + "feature_bullets_count":7, + "is_bundle":false, + "videos":[ + { + "link":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/5c1181fe-7c83-4436-a466-0021e84ef18e/default.jobtemplate.mp4.480.mp4", + "thumbnail":"https://m.media-amazon.com/images/I/51hoTKyxlxL.SX522_.jpg", + "group_type":"videos_for_this_product", + "title":"SanDisk Ultra microSD Memory Card", + "is_hero_video":false, + "height":480, + "duration_seconds":34, + "width":854, + "variant":"MAIN", + "group_id":"IB_G1" + }, + { + "link":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/12fbb4ec-2e93-42fa-b1d5-db97febf200d/default.jobtemplate.mp4.480.mp4", + "thumbnail":"https://m.media-amazon.com/images/I/B1svx8b87xL.SX522_.png", + "group_type":"related_videos", + "title":"SanDisk Ultra MicroSDXC Card - REVIEW", + "is_hero_video":false, + "height":480, + "duration_seconds":109, + "width":854, + "variant":"MAIN", + "group_id":"IB_G2" + }, + { + "link":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/a425c4c7-541d-4402-aad6-72a832e98d47/default.jobtemplate.mp4.480.mp4", + "thumbnail":"https://m.media-amazon.com/images/I/51aTW0KrjgL.SX522_.jpg", + "group_type":"related_videos", + "title":"Will it Work With a Nintendo Switch??", + "is_hero_video":false, + "height":480, + "duration_seconds":81, + "width":854, + "variant":"MAIN", + "group_id":"IB_G2" + } + ], + "specifications_flat":"Compatible Devices: Tablet, Smartphone. Memory Storage Capacity: 128 GB. Flash Memory Type: Micro SD. Series: SanDisk Ultra 128GB microSDXC UHS-I card with Adapter - SDSQUAR-128G-GN6MA. Brand: SanDisk. Best Sellers Rank: #24 in Micro SD Memory Cards. Customer Reviews: 4.7 out of 5 stars 215,181 ratings 4.7 out of 5 stars. Date First Available: ‎August 3, 2017. Is Discontinued By Manufacturer: ‎No. ASIN: ‎B073JYC4XM. Manufacturer: ‎Western Digital Technologies Inc. Department: ‎Memory. Item Dimensions LxWxH: ‎0.03 x 0.59 x 0.43 inches. Product Dimensions: ‎0.03 x 0.59 x 0.43 inches. Item Weight: ‎0.16 ounces. Item model number: ‎SDSQUAR-128G-GN6MA. Series: ‎SanDisk Ultra 128GB microSDXC UHS-I card with Adapter - SDSQUAR-128G-GN6MA. Brand: ‎SanDisk. Memory Speed: ‎100 Megabytes Per Second. RAM: ‎128 GB.", + "feature_bullets":[ + "Ideal for Android Smartphones and Tablets. Certified to work with Chromebooks. (This product has been certified to meet Google’s compatibility standards. Chromebook and the “Works with Chromebook” badge are trademarks of Google LLC.)", + "Capacities up to 512GB (1GB=1,000,000,000 bytes. Actual user storage less) to store even more hours of Full HD video (Approximations; results and Full HD (1920x1080) video support may vary based on host device, file attributes and other factors.)", + "Up to 100MB/s transfer read speed (Based on internal testing; Performance may be lower depending on host device, interface, usage conditions and other factors.) lets you move up to 1000 photos in a minute (Based on 4.1GB transfer of photos (Average file 3.5MB) with USB 3.0 reader. Results may vary based on host device, file attributes and other factors.)", + "Load apps faster with A1-rated performance (A1 performance is 1500 read IOPS, 500 write IOPS. Based on internal testing. Results may vary based on host device, app type and other factors.)", + "Class 10 for Full HD video recording and playback (Full HD (1920x1080) video support may vary based upon host device, file attributes, and other factors.)", + "SanDisk Memory Zone app for easy file management (Download and Installation Required)", + "Order with your Alexa enabled device. Just ask \"Alexa, order SanDisk microSD.\"" + ], + "weight":"‎0.16 ounces", + "marketplace_id":"ATVPDKIKX0DER", + "videos_flat":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/5c1181fe-7c83-4436-a466-0021e84ef18e/default.jobtemplate.mp4.480.mp4,https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/12fbb4ec-2e93-42fa-b1d5-db97febf200d/default.jobtemplate.mp4.480.mp4,https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/a425c4c7-541d-4402-aad6-72a832e98d47/default.jobtemplate.mp4.480.mp4", + "keywords":"SanDisk,128GB,Ultra,MicroSDXC,UHS-I,Memory,Card,with,Adapter,-,100MB/s,,C10,,U1,,Full,HD,,A1,,Micro,SD,Card,-,SDSQUAR-128G-GN6MA", + "images":[ + { + "link":"https://m.media-amazon.com/images/I/617NtexaW2L._AC_SL1500_.jpg", + "variant":"MAIN" + }, + { + "link":"https://m.media-amazon.com/images/I/71cs-unZZqL._AC_SL1500_.jpg", + "variant":"PT01" + }, + { + "link":"https://m.media-amazon.com/images/I/61P3Jhyw2DL._AC_SL1000_.jpg", + "variant":"PT02" + }, + { + "link":"https://m.media-amazon.com/images/I/61Cu4fF1MBL._AC_SL1000_.jpg", + "variant":"PT03" + }, + { + "link":"https://m.media-amazon.com/images/I/81ffX34OsAL._AC_SL1500_.jpg", + "variant":"PT04" + }, + { + "link":"https://m.media-amazon.com/images/I/61c0HMo4mhL._AC_SL1500_.jpg", + "variant":"PT05" + } + ], + "a_plus_content":{ + "third_party":false, + "has_a_plus_content":true, + "has_brand_story":false + }, + "main_image":{ + "link":"https://m.media-amazon.com/images/I/617NtexaW2L.jpg" + }, + "documents":[ + { + "link":"https://m.media-amazon.com/images/I/91NqBqLsumS.pdf", + "name":"Specification Sheet (PDF)" + } + ], + "attributes":[ + { + "value":"SanDisk", + "name":"Brand" + }, + { + "value":"SanDisk Ultra 128GB microSDXC UHS-I card with Adapter - SDSQUAR-128G-GN6MA", + "name":"Series" + }, + { + "value":"Micro SD", + "name":"Flash Memory Type" + }, + { + "value":"128 GB", + "name":"Memory Storage Capacity" + }, + { + "value":"Tablet, Smartphone", + "name":"Compatible Devices" + } + ], + "model_number":"‎SDSQUAR-128G-GN6MA", + "rating":4.7, + "feature_bullets_flat":"Order with your Alexa enabled device. Just ask \"Alexa, order SanDisk microSD.\". SanDisk Memory Zone app for easy file management (Download and Installation Required). Class 10 for Full HD video recording and playback (Full HD (1920x1080) video support may vary based upon host device, file attributes, and other factors.). Load apps faster with A1-rated performance (A1 performance is 1500 read IOPS, 500 write IOPS. Based on internal testing. Results may vary based on host device, app type and other factors.). Up to 100MB/s transfer read speed (Based on internal testing; Performance may be lower depending on host device, interface, usage conditions and other factors.) lets you move up to 1000 photos in a minute (Based on 4.1GB transfer of photos (Average file 3.5MB) with USB 3.0 reader. Results may vary based on host device, file attributes and other factors.). Capacities up to 512GB (1GB=1,000,000,000 bytes. Actual user storage less) to store even more hours of Full HD video (Approximations; results and Full HD (1920x1080) video support may vary based on host device, file attributes and other factors.). Ideal for Android Smartphones and Tablets. Certified to work with Chromebooks. (This product has been certified to meet Google’s compatibility standards. Chromebook and the “Works with Chromebook” badge are trademarks of Google LLC.).", + "bestsellers_rank":[ + { + "link":"https://www.amazon.com/gp/bestsellers/pc/3015433011/ref=pd_zg_hrsr_pc", + "category":"Micro SD Memory Cards", + "rank":24 + } + ], + "dimensions":"‎0.03 x 0.59 x 0.43 inches", + "whats_in_the_box":[ + "SanDisk Ultra microSDXC UHS-I Card", + "SD adapter" + ], + "search_alias":{ + "value":"electronics", + "title":"Electronics" + }, + "brand":"SanDisk", + "keywords_list":[ + "SanDisk", + "128GB", + "Ultra", + "MicroSDXC", + "UHS-I", + "Memory", + "Card", + "with", + "Adapter", + "100MB/s", + "Full", + "Micro", + "Card", + "SDSQUAR-128G-GN6MA" + ], + "sub_title":{ + "link":"https://www.amazon.com/stores/SanDisk/page/CD971F4B-EE23-4EA1-96E3-567678AC9C0A?ref_=ast_bln", + "text":"Visit the SanDisk Store" + }, + "bestsellers_rank_flat":"Category: Micro SD Memory Cards | Rank: 24", + "ratings_total":215181, + "images_count":6, + "categories_flat":"Electronics > Computers & Accessories > Computer Accessories & Peripherals > Memory Cards > Micro SD Cards", + "link":"https://www.amazon.com/SanDisk-128GB-microSDXC-Memory-Adapter/dp/B073JYC4XM", + "manufacturer":"‎Western Digital Technologies Inc.", + "rating_breakdown":{ + "five_star":{ + "count":180752, + "percentage":84 + }, + "two_star":{ + "count":2151, + "percentage":1 + }, + "one_star":{ + "count":4303, + "percentage":2 + }, + "four_star":{ + "count":21518, + "percentage":10 + }, + "three_star":{ + "count":6455, + "percentage":3 + } + }, + "specifications":[ + { + "value":"‎128 GB", + "name":"RAM" + }, + { + "value":"‎100 Megabytes Per Second", + "name":"Memory Speed" + }, + { + "value":"‎SanDisk", + "name":"Brand" + }, + { + "value":"‎SanDisk Ultra 128GB microSDXC UHS-I card with Adapter - SDSQUAR-128G-GN6MA", + "name":"Series" + }, + { + "value":"‎SDSQUAR-128G-GN6MA", + "name":"Item model number" + }, + { + "value":"‎0.16 ounces", + "name":"Item Weight" + }, + { + "value":"‎0.03 x 0.59 x 0.43 inches", + "name":"Product Dimensions" + }, + { + "value":"‎0.03 x 0.59 x 0.43 inches", + "name":"Item Dimensions LxWxH" + }, + { + "value":"‎Memory", + "name":"Department" + }, + { + "value":"‎Western Digital Technologies Inc.", + "name":"Manufacturer" + }, + { + "value":"‎B073JYC4XM", + "name":"ASIN" + }, + { + "value":"‎No", + "name":"Is Discontinued By Manufacturer" + }, + { + "value":"‎August 3, 2017", + "name":"Date First Available" + }, + { + "value":"4.7 out of 5 stars 215,181 ratings 4.7 out of 5 stars", + "name":"Customer Reviews" + }, + { + "value":"#24 in Micro SD Memory Cards", + "name":"Best Sellers Rank" + }, + { + "value":"SanDisk", + "name":"Brand" + }, + { + "value":"SanDisk Ultra 128GB microSDXC UHS-I card with Adapter - SDSQUAR-128G-GN6MA", + "name":"Series" + }, + { + "value":"Micro SD", + "name":"Flash Memory Type" + }, + { + "value":"128 GB", + "name":"Memory Storage Capacity" + }, + { + "value":"Tablet, Smartphone", + "name":"Compatible Devices" + } + ], + "videos_additional":[ + { + "video_image_height":"360", + "profile_link":"/shop/authoralyssaclay", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Alyssa", + "video_image_extension":"jpg", + "video_image_url":"https://m.media-amazon.com/images/I/51aTW0KrjgL._CR1,0,638,360_SR342,193_.jpg", + "related_products":"B0BFJWCYTL, B08CLNX58K, B07XLGBYM3", + "video_image_width":"640", + "vendor_tracking_id":"onamzalys0081-20", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/a425c4c7-541d-4402-aad6-72a832e98d47/default.jobtemplate.hls.m3u8", + "type":"videos_for_this_product", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/24019e63-b842-4b10-a622-a7af05a8bc1e.vtt", + "id":"amzn1.vse.video.02e54e2ca11b47c9af18aa37a11c81ed", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/76d950cc-967a-43d9-8611-df39c52e2372/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://m.media-amazon.com/images/I/C1m5zLDiv6L._CR328,538,1715,1716_._FMjpg_.jpg", + "vendor_name":"Alyssa", + "title":"Will it Work With a Nintendo Switch??", + "sponsor_products":"true", + "video_image_id":"51aTW0KrjgL", + "creator_type":"Influencer", + "duration":"1:21", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/51aTW0KrjgL.jpg", + "vendor_code":"authoralyssaclay:shop" + }, + { + "video_image_height":"1080", + "profile_link":"/shop/evolvingrealest", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"See it. Buy it. Love it!", + "video_image_extension":"png", + "video_image_url":"https://m.media-amazon.com/images/I/B1svx8b87xL._CR3,0,1914,1080_SR684,386_.png", + "related_products":"B08GYKNCCP, B08CLNX58K, B08KB38516", + "video_image_width":"1920", + "vendor_tracking_id":"kjvilleneuve-20", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/12fbb4ec-2e93-42fa-b1d5-db97febf200d/default.jobtemplate.hls.m3u8", + "type":"videos_for_this_product", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/75d1ac13-ed83-4013-abbf-ef3a135a5c66.vtt", + "id":"amzn1.vse.video.04a2995e89e54b1ba47c781ae5b2f52b", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/26722837-852c-407a-a758-d22447285fba/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://images-na.ssl-images-amazon.com/images/S/influencer-profile-image-prod/logo/evolvingrealest_1605845351956_original._CR0,0,333,333_._FMjpg_.jpeg", + "vendor_name":"See it. Buy it. Love it!", + "title":"SanDisk Ultra MicroSDXC Card - REVIEW", + "sponsor_products":"true", + "video_image_id":"B1svx8b87xL", + "creator_type":"Influencer", + "duration":"1:49", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/B1svx8b87xL.png", + "vendor_code":"evolvingrealest:shop" + }, + { + "video_image_height":"1920", + "profile_link":"/gp/profile/amzn1.account.AHUVLVJCCVRN4BLRMDYZJN3CKGLA", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"LOON3YDG", + "video_image_extension":"jpg", + "video_image_url":"https://m.media-amazon.com/images/I/61sUrmhJ4+L._CR0,0,1080,609_SR684,386_.jpg", + "sponsor_products":"true", + "video_image_width":"1080", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/d3c4b745-c1f2-4834-a8fe-60e9008bae33/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/bf1232b6-4f4f-4bfb-af80-2b093e402f2e/default.jobtemplate.hls.m3u8", + "type":"videos_for_this_product", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/d01323e1-6e1a-4943-8116-c987dbea2ee3.vtt", + "id":"amzn1.vse.video.e8be75113656497fa6ddf8c2b6c178f2", + "video_mime_type":"application/x-mpegURL", + "profile_image_url":"https://www.amazon.com/avatar/default/amzn1.account.AHUVLVJCCVRN4BLRMDYZJN3CKGLA?max_width=110&square=true", + "title":"Unboxing SanDisk Ultra 128GB ", + "vendor_name":"LOON3YDG", + "video_image_id":"61sUrmhJ4+L", + "creator_type":"Customer", + "duration":"0:11", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/61sUrmhJ4+L.jpg", + "vendor_code":"UGCPR" + }, + { + "video_image_height":"1080", + "profile_link":"/gp/profile/amzn1.account.AFG7HC3O335W6RLIRQW5RCQXTGUA", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Danilo R.", + "video_image_extension":"png", + "video_image_url":"https://m.media-amazon.com/images/I/91tYJTabe6L._CR3,0,1914,1080_SR684,386_.png", + "sponsor_products":"true", + "video_image_width":"1920", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/222710e4-1aab-4761-89f1-2680a5a2810a/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/v2/54907185-6217-5f34-acf3-fbdcc1366f93/ShortForm-Generic-480p-16-9-1409173089793-rpcbe5.mp4", + "type":"videos_for_this_product", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/2de1a3dc-ab0d-42b1-ac3e-733d3ed2b478.vtt", + "id":"amzn1.vse.video.dc8437a03dca4111bf9bb4b629d238f1", + "video_mime_type":"video/mp4", + "profile_image_url":"https://www.amazon.com/avatar/default/amzn1.account.AFG7HC3O335W6RLIRQW5RCQXTGUA?max_width=50&square=true", + "title":"Bought 2 but got one defective", + "vendor_name":"Danilo R.", + "video_image_id":"91tYJTabe6L", + "creator_type":"Customer", + "duration":"0:46", + "video_image_url_unchanged":"https://images-na.ssl-images-amazon.com/images/I/91tYJTabe6L.png", + "vendor_code":"AOD60" + }, + { + "video_image_height":"1080", + "profile_link":"/gp/profile/amzn1.account.AHEFBJSTUBLB4ACJSQX5PUNBZPVQ", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"PD Rubi", + "video_image_extension":"png", + "video_image_url":"https://m.media-amazon.com/images/I/A1tY5IwAqML._CR3,0,1914,1080_SR684,386_.png", + "sponsor_products":"true", + "video_image_width":"1920", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/46d20853-bf07-4944-9f1b-538d54f46d59/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/v2/b93c11e1-7255-5570-bbd1-ef26768ddcb3/ShortForm-Generic-480p-16-9-1409173089793-rpcbe5.mp4", + "type":"videos_for_this_product", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/4c1bc796-0cb0-4b59-b758-f83c8edb2ab1.vtt", + "id":"amzn1.vse.video.765f9cbc6f9c451d9c655c108c68c3b6", + "video_mime_type":"video/mp4", + "profile_image_url":"https://www.amazon.com/avatar/default/amzn1.account.AHEFBJSTUBLB4ACJSQX5PUNBZPVQ?max_width=50&square=true", + "title":"Works fine for my fire 10.....", + "vendor_name":"PD Rubi", + "video_image_id":"A1tY5IwAqML", + "creator_type":"Customer", + "duration":"2:43", + "video_image_url_unchanged":"https://images-na.ssl-images-amazon.com/images/I/A1tY5IwAqML.png", + "vendor_code":"AOD60" + }, + { + "video_image_height":"675", + "profile_link":"/shop/markdraper", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Mark J Draper", + "video_image_extension":"jpg", + "video_image_url":"https://m.media-amazon.com/images/I/81BFpuhrvjL._CR2,0,1196,675_SR684,386_.jpg", + "sponsor_products":"true", + "video_image_width":"1200", + "vendor_tracking_id":"amzvid-20 ", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/6c2e0f0d-8b64-4853-9c0a-c66d582a7fe1/default.jobtemplate.hls.m3u8", + "type":"videos_for_related_products", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/66cc81ba-613b-48be-a40b-cab3d65ff9e2.vtt", + "id":"amzn1.vse.video.6281a8545e3547e2b5dfd73cd93dbb0e", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/086c90c7-a717-49c5-8f2b-788ea28572fb/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://images-na.ssl-images-amazon.com/images/S/influencer-profile-image-prod/logo/markdraper_1667551226117_original._FMjpg_.jpeg", + "title":"MicroSD and SD Memory card buying guide", + "vendor_name":"Mark J Draper", + "video_image_id":"81BFpuhrvjL", + "creator_type":"Influencer", + "duration":"2:17", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/81BFpuhrvjL.jpg", + "vendor_code":"markdraper:shop" + }, + { + "video_image_height":"1080", + "profile_link":"/shop/knowledgesharingtech", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Knowledge Sharing Tech", + "video_image_extension":"png", + "video_image_url":"https://m.media-amazon.com/images/I/91dTvFjcjsL._CR3,0,1914,1080_SR684,386_.png", + "related_products":"B08GYKNCCP, B074RNRM2B, B00M55C0NS, B015IYWJWO, B07B98GXQT", + "video_image_width":"1920", + "vendor_tracking_id":"onamzknowle03-20", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/ae1a6e92-9ac5-4fa4-97c0-1b68275e17b7/default.jobtemplate.hls.m3u8", + "type":"videos_for_related_products", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/392a0010-f75c-49cd-bdf4-12a3ee696096.vtt", + "id":"amzn1.vse.video.0d90aeb405d04be7a35474e530480109", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/ed32ae2d-6a07-4e1f-93f3-8bb7d9d201ae/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://images-na.ssl-images-amazon.com/images/S/influencer-profile-image-prod/logo/knowledgesharingtech_1648734401746_original._CR0,0,949,949_._FMjpg_.png", + "vendor_name":"Knowledge Sharing Tech", + "title":"Sandisk Ultra vs Samsung Pro Endurance Full Benchmark", + "sponsor_products":"true", + "video_image_id":"91dTvFjcjsL", + "creator_type":"Influencer", + "duration":"2:19", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/91dTvFjcjsL.png", + "vendor_code":"knowledgesharingtech:shop" + }, + { + "video_image_height":"360", + "profile_link":"/shop/midwestgardener", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Midwest Gardener", + "video_image_extension":"jpg", + "video_image_url":"https://m.media-amazon.com/images/I/61N9XCe1IiL._CR1,0,638,360_SR342,193_.jpg", + "related_products":"B073JWXGNT, B08CLNX58K", + "video_image_width":"640", + "vendor_tracking_id":"onamzreptgems-20", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/d44dc4e0-558d-4a6e-81fa-9b365b6bf128/default.jobtemplate.hls.m3u8", + "type":"videos_for_related_products", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/34039046-c3fe-4024-8db6-d5a29dd9cb70.vtt", + "id":"amzn1.vse.video.0f9f71082c77417c9fb5468f1d3214db", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/a8f012c1-6621-495a-8d3a-7202f4e2d77c/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://images-na.ssl-images-amazon.com/images/S/influencer-profile-image-prod/midwestgardener_fa9671c9-59c4-424f-8747-f3105737475b.jpeg", + "vendor_name":"Midwest Gardener", + "title":"SanDisk Ultra micro SDHC UHS-I Memory Card with Adapter", + "sponsor_products":"true", + "video_image_id":"61N9XCe1IiL", + "creator_type":"Influencer", + "duration":"0:45", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/61N9XCe1IiL.jpg", + "vendor_code":"midwestgardener:shop" + }, + { + "video_image_height":"1038", + "profile_link":"/shop/zulfphotography", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Zulf - TrustedCreators", + "video_image_extension":"jpg", + "video_image_url":"https://m.media-amazon.com/images/I/71QMBYuT9RL._CR53,0,1839,1038_SR684,386_.jpg", + "related_products":"B0758NHWS8, B08CLNX58K", + "video_image_width":"1946", + "vendor_tracking_id":"zulfphotogr07-20", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/64497fd0-44be-4447-935d-0b3b6ab30074/default.jobtemplate.hls.m3u8", + "type":"videos_for_related_products", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/3e3cfc87-f921-4d83-8b5d-bd54f078759e.vtt", + "id":"amzn1.vse.video.0ea7d6eb1754445ca19f0fe77fd78b7a", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/3b579ed4-86bc-47be-8cdd-2e9e45d9ba48/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://images-na.ssl-images-amazon.com/images/S/influencer-profile-image-prod/logo/zulfphotography_1628065176720_original._CR0,0,1000,1000_._FMjpg_.png", + "vendor_name":"Zulf - TrustedCreators", + "title":"Which Memory card for DSLR cameras", + "sponsor_products":"true", + "video_image_id":"71QMBYuT9RL", + "creator_type":"Influencer", + "duration":"0:33", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/71QMBYuT9RL.jpg", + "vendor_code":"zulfphotography:shop" + }, + { + "video_image_height":"360", + "profile_link":"/shop/influencer-b67ed546", + "product_asin":"B073JYC4XM", + "parent_asin":"B073JYC4XM", + "public_name":"Aaron SXS FURY", + "video_image_extension":"jpg", + "video_image_url":"https://m.media-amazon.com/images/I/51KjqKwWurL._CR1,0,638,360_SR342,193_.jpg", + "related_products":"B07FCMKK5X, B09V1FT19S", + "video_image_width":"640", + "vendor_tracking_id":"onamzsxsfury-20", + "video_url":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/f150f7a2-ab5e-4a11-819a-283754588667/default.jobtemplate.hls.m3u8", + "type":"videos_for_related_products", + "closed_captions":"en,https://m.media-amazon.com/images/S/vse-vms-closed-captions-artifact-us-east-1-prod/closedCaptions/73f6de6d-cdf5-4199-a2b0-2a988d994c44.vtt", + "id":"amzn1.vse.video.059a04228b384857a8edc3e60d3171c1", + "video_mime_type":"application/x-mpegURL", + "video_previews":"https://m.media-amazon.com/images/S/vse-vms-transcoding-artifact-us-east-1-prod/db0339b3-a0d7-4ebc-914a-7d0eb03ff56e/videopreview.jobtemplate.mp4.342X192P_20HZ_350KBPS_VER_1_0.mp4,342X192P_20HZ_350KBPS_VER_1_0,video/mp4", + "profile_image_url":"https://images-na.ssl-images-amazon.com/images/S/influencer-profile-image-prod/logo/influencer-b67ed546_1641652826852_original._CR0,0,1536,1536_._FMjpg_.jpeg", + "vendor_name":"Aaron SXS FURY", + "title":"SanDisk SD Card Review. Watch Before You Buy It!!", + "sponsor_products":"true", + "video_image_id":"51KjqKwWurL", + "creator_type":"Influencer", + "duration":"1:25", + "video_image_url_unchanged":"https://m.media-amazon.com/images/I/51KjqKwWurL.jpg", + "vendor_code":"influencer-b67ed546:shop" + } + ], + "more_buying_choices":[ + { + "seller_link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A2TWIRHLRS9O1T&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=dp_mbc_seller", + "seller_name":"Prime-Pros", + "position":1, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + }, + "free_shipping":true + }, + { + "seller_link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A35BKAA6VXTYCT&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=dp_mbc_seller", + "seller_name":"First Choice Online", + "position":2, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + }, + "free_shipping":true + }, + { + "seller_link":"https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A3QF16EH69HELL&isAmazonFulfilled=1&asin=B073JYC4XM&ref_=dp_mbc_seller", + "seller_name":"eTECH", + "position":3, + "price":{ + "value":15.9, + "currency":"USD", + "raw":"$15.90", + "symbol":"$" + }, + "free_shipping":true + } + ], + "sell_on_amazon":true, + "buybox_winner":{ + "maximum_order_quantity":{ + "value":100, + "hard_maximum":true + }, + "is_amazon_fresh":false, + "mixed_offers_from":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + }, + "offer_id":"xdZx6aUzprvQRaLQ6BiSHBSLDjoBlyaYGaru2l1ZShkzPilFy6vVPBqnZUGhHZk82TrJKWG136eKcbIF4UVAmqCmD9pVqrLSeiXLFcW+J4fSs/4DQL6uo8wJLT0SOdFzUfDgU7ta/mtACiZGPOXmn7fYP2BzwUP8jvtPRBszwQltZwoDlUW2N0AbTZyJViys", + "shipping":{ + "raw":"FREE" + }, + "is_prime":true, + "mixed_offers_count":10, + "rrp":{ + "value":49.99, + "currency":"USD", + "raw":"$49.99", + "symbol":"$" + }, + "availability":{ + "raw":"In Stock.", + "dispatch_days":1, + "type":"in_stock" + }, + "condition":{ + "is_new":true + }, + "fulfillment":{ + "fastest_delivery":{ + "date":"Tuesday, January 17", + "name":"Or fastest delivery Tuesday, January 17. Order within 5 hrs 51 mins" + }, + "is_fulfilled_by_amazon":true, + "standard_delivery":{ + "date":"Thursday, January 19", + "name":"FREE" + }, + "third_party_seller":{ + "link":"https://www.amazon.com/gp/help/seller/at-a-glance.html/ref=dp_merchant_link?ie=UTF8&seller=A30R1DDXV5VUEV&asin=B073JYC4XM&ref_=dp_merchant_link&isAmazonFulfilled=1", + "name":"Nityamaa", + "id":"A30R1DDXV5VUEV" + }, + "is_sold_by_third_party":true, + "is_fulfilled_by_third_party":false, + "is_sold_by_amazon":false, + "type":"2p" + }, + "price":{ + "value":15.8, + "currency":"USD", + "raw":"$15.80", + "symbol":"$" + } + }, + "description":"SanDisk Ultra microSDXC and microSDHC cards are fast for better pictures, app performance, and Full HD video. Ideal for Android smartphones and tablets, these A1-rated cards load apps faster for a better smartphone experience. Available in capacities up to 400GB, you have the capacity to take more pictures and Full HD video and capture life at its fullest. Built to perform in harsh conditions, SanDisk Ultra microSD cards are waterproof, temperature proof, shockproof, and X-ray proof. 1GB=1,000,000,000 bytes. Actual user storage less. (For 64GB-256GB): Up to 100MB/s read speed; write speed lower. (For 16GB-32GB): Up to 98MB/s read speed; write speed lower. Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes. (1) Full HD (1920x1080) video support may vary based upon host device, file attributes, and other factors. (2) Card only. (3) Results may vary based on host device, app type and other factors. (4) Download and installation required. (5) Based on 4.1GB transfer of photos (Average file 3.5MB) with USB 3.0 reader. Results may vary based on host device, file attributes and other factors. 6) Approximations; Results and Full HD (1920x1080) video support may vary based on host device, file attributes and other factors.", + "title":"SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA", + "top_reviews":[ + { + "link":"https://www.amazon.com/gp/customer-reviews/ROPW8TWWT5D7Z/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-04T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 4, 2023" + }, + "id":"ROPW8TWWT5D7Z", + "review_country":"us", + "verified_purchase":true, + "title":"Doesn't actually have 128gb available, but that's normal.", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AHVLYUIS452UDIMOYVJJZCKF5TJA/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Juls Neidermyer", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/de63cd44-0c60-4f24-9c59-d86b7a3d228e._CR0,0,375,375_SX48_.jpg", + "id":"AHVLYUIS452UDIMOYVJJZCKF5TJA" + }, + "is_global_review":false, + "vine_program_free_product":false, + "vine_program":true, + "body":"It's super easy to install into my Moto G stylus and I'd say most phones if not all. There's a space for micro SD cards by my sim card on the tray and you just place it in and push the tray back into the phone. As I said in my title, it doesn't actually have 128gb of storage. Mine only has 119gb available. I suppose you could get super mad about that, but I really needed a larger SD card than a 32gb. So, I'm not complaining. Also, with regular shipping it got here faster than I expected, so I was pretty happy about that.Read more", + "body_html":"
It's super easy to install into my Moto G stylus and I'd say most phones if not all. There's a space for micro SD cards by my sim card on the tray and you just place it in and push the tray back into the phone.

As I said in my title, it doesn't actually have 128gb of storage. Mine only has 119gb available. I suppose you could get super mad about that, but I really needed a larger SD card than a 32gb. So, I'm not complaining.

Also, with regular shipping it got here faster than I expected, so I was pretty happy about that.
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R3MWUHST4K07D4/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2022-12-02T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on December 2, 2022" + }, + "id":"R3MWUHST4K07D4", + "review_country":"us", + "verified_purchase":true, + "title":"Fixed my GoPro Hero 7 battery drain!!!!", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AHAEHS7MWWKLISWGW6MNUQJBKC7Q/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Amazon Customer", + "id":"AHAEHS7MWWKLISWGW6MNUQJBKC7Q" + }, + "is_global_review":false, + "vine_program":false, + "body":"The GP Hero 7 Black still drains faster than it's predecessor, however it is no longer dead within two days. Previously I used a SanDisk Extreme 128, a card that my GP 5 Session and 6 Black have ZERO issue with, but the 7 has died in standby within 2-4 days the entire time I have owned it!! I followed the advice of LaneVids on Youtube and bought the exact model card the device shipped with originally. Lo and Behold it solved the problem. It is a shame that GP has had such poor compatibility when it comes to SD cards.Read more", + "body_html":"
The GP Hero 7 Black still drains faster than it's predecessor, however it is no longer dead within two days. Previously I used a SanDisk Extreme 128, a card that my GP 5 Session and 6 Black have ZERO issue with, but the 7 has died in standby within 2-4 days the entire time I have owned it!! I followed the advice of LaneVids on Youtube and bought the exact model card the device shipped with originally. Lo and Behold it solved the problem. It is a shame that GP has had such poor compatibility when it comes to SD cards.
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R2XELLHAGL0BZT/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-06T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 6, 2023" + }, + "id":"R2XELLHAGL0BZT", + "review_country":"us", + "verified_purchase":true, + "title":"Works great for 2ds xl extra storage!", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AGH5ZCKJNRAZ7L7TOHMV35GMF2SQ/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Smart Shopper", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/7ad2b77c-7627-455a-97bb-f2f4a78075dc._CR83,0,333,333_SX48_.jpg", + "id":"AGH5ZCKJNRAZ7L7TOHMV35GMF2SQ" + }, + "is_global_review":false, + "vine_program":false, + "body":"Bought this for my son's 2DS XL. Isn’t fake and all 128GB is usable storage with no corruption or disappearing data. Great SD cardRead more", + "body_html":"
Bought this for my son's 2DS XL. Isn’t fake and all 128GB is usable storage with no corruption or disappearing data. Great SD card
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R16FG54VAWPXII/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-05T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 5, 2023" + }, + "id":"R16FG54VAWPXII", + "review_country":"us", + "verified_purchase":true, + "title":"Easy install", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AF4LXP4INTKU7EQVVPI7NYD64EVA/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Moni", + "id":"AF4LXP4INTKU7EQVVPI7NYD64EVA" + }, + "is_global_review":false, + "vine_program":false, + "body":"Recieved card quick. And was easy to install. You might have to reformat the card.Read more", + "body_html":"
Recieved card quick. And was easy to install. You might have to reformat the card.
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R1QWOCVJQHH6V0/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-03T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 3, 2023" + }, + "id":"R1QWOCVJQHH6V0", + "review_country":"us", + "verified_purchase":true, + "title":"Nintendo switch storage", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AGETN4XS72EJ74PHR6EKADG5OP2Q/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Esabeljones", + "image":"https://images-na.ssl-images-amazon.com/images/S/amazon-avatars-global/d6966968-bd3e-4ae3-a567-bc9630b77506._CR0,26.0,281,281_SX48_.jpg", + "id":"AGETN4XS72EJ74PHR6EKADG5OP2Q" + }, + "is_global_review":false, + "vine_program":false, + "body":"Best thing ever I have enough space to add more games to my switchRead more", + "body_html":"
Best thing ever I have enough space to add more games to my switch
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R1YG3I0CHK7X1B/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2023-01-03T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 3, 2023" + }, + "id":"R1YG3I0CHK7X1B", + "review_country":"us", + "verified_purchase":true, + "title":"Works well in camera", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AFKVPPQ6X6MFFZUC6CFJFNGL27ZA/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Amazon Customer", + "id":"AFKVPPQ6X6MFFZUC6CFJFNGL27ZA" + }, + "is_global_review":false, + "vine_program":false, + "body":"I use in a security camera that rewrites when card is full. Works nicely.Read more", + "body_html":"
I use in a security camera that rewrites when card is full. Works nicely.
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R3OH827QQ5U0QL/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":4, + "date":{ + "utc":"2023-01-06T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on January 6, 2023" + }, + "id":"R3OH827QQ5U0QL", + "review_country":"us", + "verified_purchase":true, + "title":"Works!!", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AEQ5KJNPH6EDTIY7JF6SN7MN3WJA/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Cory", + "id":"AEQ5KJNPH6EDTIY7JF6SN7MN3WJA" + }, + "is_global_review":false, + "vine_program":false, + "body":"Does what it's supposed to do!Read more", + "body_html":"
Does what it's supposed to do!
" + }, + { + "link":"https://www.amazon.com/gp/customer-reviews/R3FEIKGE25GPZ4/ref=cm_cr_dp_d_rvw_ttl?ie=UTF8&ASIN=B073JYC4XM", + "rating":5, + "date":{ + "utc":"2022-12-11T00:00:00.000Z", + "raw":"Reviewed in the United States 🇺🇸 on December 11, 2022" + }, + "id":"R3FEIKGE25GPZ4", + "review_country":"us", + "verified_purchase":true, + "title":"Works great", + "profile":{ + "link":"https://www.amazon.com/gp/profile/amzn1.account.AG5J3KW2U3M6AARH5T2I7V53I3AA/ref=cm_cr_dp_d_gw_tr?ie=UTF8", + "name":"Alan", + "id":"AG5J3KW2U3M6AARH5T2I7V53I3AA" + }, + "is_global_review":false, + "vine_program":false, + "body":"I have an older phone and this will increase storage capacity quite a bitRead more", + "body_html":"
I have an older phone and this will increase storage capacity quite a bit
" + }, + { + "rating":1, + "date":{ + "utc":"2018-11-13T00:00:00.000Z", + "raw":"Reviewed in Canada 🇨🇦 on November 13, 2018" + }, + "id":"R3KD6D4JFPT331", + "review_country":"ca", + "verified_purchase":true, + "title":"I was sold a fake. I chose amazon as the retailer and I was still sold a fake.", + "vine_program":false, + "helpful_votes":1009, + "is_global_review":true, + "profile":{ + "name":"brandon marino" + }, + "body":"You can see from the screenshot I linked. The sd card starts corrupting data at 32gbs. This card is clearly a rebranded 32gb card with a false reporting controller. Be careful, test your cards.Read more", + "body_html":"
You can see from the screenshot I linked. The sd card starts corrupting data at 32gbs. This card is clearly a rebranded 32gb card with a false reporting controller. Be careful, test your cards.
" + }, + { + "rating":1, + "date":{ + "utc":"2018-10-12T00:00:00.000Z", + "raw":"Reviewed in France 🇫🇷 on October 12, 2018" + }, + "id":"R6DMMX3SY57AK", + "review_country":"fr", + "verified_purchase":true, + "title":"Fake microSD apparemment", + "vine_program":false, + "helpful_votes":657, + "is_global_review":true, + "profile":{ + "name":"MH" + }, + "body":"Class A1 pour une lecture rapide et ouverture des apps plus réactive sur smartphone. Le problème est que j'ai reçue une copie (fake) au lieu de l'originale. Sur l'original, l'opercule de sécurité est blanc, pas transparent et l'adaptateur SD n'a pas de relief (comme montré sur la page de l'article). En copie, les deux photos prises du produit reçu ainsi que la capture de l'adaptateur SD sur la page produit. Le SC Amazon m'envoie une nouvelle Micro SD et devrait investiguer le problème (merci à eux).Read more", + "body_html":"
Class A1 pour une lecture rapide et ouverture des apps plus réactive sur smartphone. Le problème est que j'ai reçue une copie (fake) au lieu de l'originale. Sur l'original, l'opercule de sécurité est blanc, pas transparent et l'adaptateur SD n'a pas de relief (comme montré sur la page de l'article). En copie, les deux photos prises du produit reçu ainsi que la capture de l'adaptateur SD sur la page produit. Le SC Amazon m'envoie une nouvelle Micro SD et devrait investiguer le problème (merci à eux).
" + }, + { + "rating":2, + "date":{ + "utc":"2018-06-09T00:00:00.000Z", + "raw":"Reviewed in the United Kingdom 🇬🇧 on June 9, 2018" + }, + "id":"R1PVB2T00PS154", + "review_country":"gb", + "verified_purchase":true, + "title":"UPDATED-", + "vine_program":false, + "helpful_votes":395, + "is_global_review":true, + "profile":{ + "name":"ZM~" + }, + "body":"*Orig review* Bought to use in my Android phone to increase storage space; have successfully transferred all my data across and couldn't be happier. The actual transfer process was fast for memory card standards imo. The SD card reader is a bonus, though slightly useless for me as I have a few already. SanDisk is always my go to for SD cards and I don't think they'll have disappointed this time either. If you're undecided on what size to get- definitely go for the larger one as I did. *UPDATE* Previously 5 stars but have decreased as this SD card failed on me after about 8 months. Annoying as I can't retrieve the files I had stored on there , though luckily I had backups elsewhere too. Will see if there is a warranty as it wasn't the cheapest.Read more", + "body_html":"
*Orig review*
Bought to use in my Android phone to increase storage space; have successfully transferred all my data across and couldn't be happier. The actual transfer process was fast for memory card standards imo. The SD card reader is a bonus, though slightly useless for me as I have a few already. SanDisk is always my go to for SD cards and I don't think they'll have disappointed this time either. If you're undecided on what size to get- definitely go for the larger one as I did.

*UPDATE* Previously 5 stars but have decreased as this SD card failed on me after about 8 months. Annoying as I can't retrieve the files I had stored on there , though luckily I had backups elsewhere too. Will see if there is a warranty as it wasn't the cheapest.
" + }, + { + "rating":5, + "date":{ + "utc":"2018-12-11T00:00:00.000Z", + "raw":"Reviewed in Spain 🇪🇸 on December 11, 2018" + }, + "id":"R8S78HXYK4D6E", + "review_country":"es", + "verified_purchase":true, + "title":"Ideal para la Switch.", + "vine_program":false, + "helpful_votes":388, + "is_global_review":true, + "profile":{ + "name":"jedeitor" + }, + "body":"Una tarjeta de gran capacidad y muy fiable. Suele estar muy bien de precio. Compré la de 200 gigas a finales de 2017 para usarla en la Switch, y un año después he comprado la de 128. La tarjeta viene en formato exFat, aunque para usar en la Switch conviene formatearla en Fat32, no porque sea mejor sistema (que no lo es), sino porque la implementación del exFat en la Switch es bastante malo, y es más habitual que se produzca corrupción de datos que en Fat32, sobre todo si usas homebrew. La corrupción de datos no es nada grave, pero sí muy molesta, y puede obligarte a reinstalar un juego, o puede hacerte perder las partidas salvadas. Esto, repito, en caso de usar homebrew. Con un uso normal y apagando la consola antes de insertar o retirar la tarjeta, no hay problemas. Por si estáis interesados en formatear la tarjeta en Fat32, Windows no permite hacerlo en tarjetas tan grandes, así que tendréis que usar la aplicación \"guiformat\". Espero que os sirva de ayuda.Read more", + "body_html":"
Una tarjeta de gran capacidad y muy fiable.

Suele estar muy bien de precio. Compré la de 200 gigas a finales de 2017 para usarla en la Switch, y un año después he comprado la de 128.

La tarjeta viene en formato exFat, aunque para usar en la Switch conviene formatearla en Fat32, no porque sea mejor sistema (que no lo es), sino porque la implementación del exFat en la Switch es bastante malo, y es más habitual que se produzca corrupción de datos que en Fat32, sobre todo si usas homebrew.

La corrupción de datos no es nada grave, pero sí muy molesta, y puede obligarte a reinstalar un juego, o puede hacerte perder las partidas salvadas. Esto, repito, en caso de usar homebrew. Con un uso normal y apagando la consola antes de insertar o retirar la tarjeta, no hay problemas.

Por si estáis interesados en formatear la tarjeta en Fat32, Windows no permite hacerlo en tarjetas tan grandes, así que tendréis que usar la aplicación \"guiformat\".

Espero que os sirva de ayuda.
" + }, + { + "rating":5, + "date":{ + "utc":"2018-03-12T00:00:00.000Z", + "raw":"Reviewed in the United Kingdom 🇬🇧 on March 12, 2018" + }, + "id":"R3LAQM574R3YFM", + "review_country":"gb", + "verified_purchase":true, + "title":"perfect for my Nintendo switch (also doesn’t affect the games ...", + "vine_program":false, + "helpful_votes":257, + "is_global_review":true, + "profile":{ + "image":"https://images-eu.ssl-images-amazon.com/images/S/amazon-avatars-global/e88d71db-fc15-48eb-ba05-d9bf04d775f9._CR0,26.0,281,281_SX48_.jpg", + "name":"Dionne Hampson" + }, + "body":"Read a lot of reviews saying they’re second hand and had stuff on them already, but I can confirm mine was in brand new packaging and had no scratches and no data on it, perfect for my Nintendo switch (also doesn’t affect the games play speed either, definitely recommend purchasing instead of the overpriced Nintendo one)Read more", + "body_html":"
Read a lot of reviews saying they’re second hand and had stuff on them already, but I can confirm mine was in brand new packaging and had no scratches and no data on it, perfect for my Nintendo switch (also doesn’t affect the games play speed either, definitely recommend purchasing instead of the overpriced Nintendo one)
" + } + ], + "videos_count":3, + "categories":[ + { + "link":"https://www.amazon.com/electronics-store/b/ref=dp_bc_aui_C_1?ie=UTF8&node=172282", + "name":"Electronics", + "category_id":"172282" + }, + { + "link":"https://www.amazon.com/computer-pc-hardware-accessories-add-ons/b/ref=dp_bc_aui_C_2?ie=UTF8&node=541966", + "name":"Computers & Accessories", + "category_id":"541966" + }, + { + "link":"https://www.amazon.com/Computer-Accessories-Supplies/b/ref=dp_bc_aui_C_3?ie=UTF8&node=172456", + "name":"Computer Accessories & Peripherals", + "category_id":"172456" + }, + { + "link":"https://www.amazon.com/Memory-Cards-Computer-Add-Ons-Computers/b/ref=dp_bc_aui_C_4?ie=UTF8&node=516866", + "name":"Memory Cards", + "category_id":"516866" + }, + { + "link":"https://www.amazon.com/Micro-SD-Memory-Cards/b/ref=dp_bc_aui_C_5?ie=UTF8&node=3015433011", + "name":"Micro SD Cards", + "category_id":"3015433011" + } + ], + "images_flat":"https://m.media-amazon.com/images/I/617NtexaW2L._AC_SL1500_.jpg,https://m.media-amazon.com/images/I/71cs-unZZqL._AC_SL1500_.jpg,https://m.media-amazon.com/images/I/61P3Jhyw2DL._AC_SL1000_.jpg,https://m.media-amazon.com/images/I/61Cu4fF1MBL._AC_SL1000_.jpg,https://m.media-amazon.com/images/I/81ffX34OsAL._AC_SL1500_.jpg,https://m.media-amazon.com/images/I/61c0HMo4mhL._AC_SL1500_.jpg", + "asin":"B073JYC4XM", + "first_available":"‎August 3, 2017" + }, + "newer_model":{ + "link":"https://www.amazon.com/SanDisk-128GB-microSDXC-Memory-Adapter-dp-B0B7NTY2S6/dp/B0B7NTY2S6/ref=dp_ob_image_ce", + "title":"SanDisk 128GB Ultra microSDXC UHS-I Memory Card with Adapter - Up to 140MB/s, C10, U1, Full HD, A1, MicroSD Card - SDSQUAB-128G-GN6MA", + "image":"https://m.media-amazon.com/images/I/51h4FuIul3L._SR75,75_.jpg", + "asin":"B0B7NTY2S6", + "rating":4.5, + "ratings_total":97860, + "price":{ + "value":15.29, + "currency":"USD", + "raw":"$15.29", + "symbol":"$" + } + }, + "user_guide":"https://m.media-amazon.com/images/I/91NqBqLsumS.pdf" + }, + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "content-type":"application/json; charset=utf-8", + "date":"Thu, 12 Jan 2023 00:09:04 GMT", + "etag":"W/\"10ec8-ANzOI8sYNjX/VKJq3HROLUoMxiE\"", + "server":"RapidAPI-1.2.8", + "vary":"Accept-Encoding", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.8", + "x-serving-cluster":"apiserver" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/asin_data/api.py b/toolbench/toolenv/tools/Data/asin_data/api.py new file mode 100644 index 0000000000000000000000000000000000000000..f5b9c5c7811998118fd0bb6f3c032abd86da5a8c --- /dev/null +++ b/toolbench/toolenv/tools/Data/asin_data/api.py @@ -0,0 +1,405 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def category(type: str, refinements: str=None, amazon_domain: str=None, page: int=None, sort_by: str=None, category_id: str=None, url: str='https://www.amazon.com/s?bbn=16225009011&rh=n%3A%2116225009011%2Cn%3A502394%2Cn%3A281052', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Category Parameters are applicable when making a request with `type=category` to retrieve category results for an Amazon category. Categories can be specified either via passing an Amazon category URL in to the url parameter, or by passing a Category ID in the `category_id` and an Amazon domain in the `amazon_domain` parameter. The parameters should be appended as querystring parameters to the Product Data API GET HTTP request. + + Category results are retrieved from the category listing page on Amazon." + refinements: +A comma-seperated list of refinement values to filter the category results by. These allow you to refine your category results by values such as \\\\\\\\\\\\\\\"Reviews rating 4 and over\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"price range\\\\\\\\\\\\\\\" and \\\\\\\\\\\\\\\"brand\\\\\\\\\\\\\\\". + +Refinement values are returned in the refinements array of each type=category result. Refinement values are dynamic and change by category area or search term used. If you wish to use refinements you should first issue a type=category request without specifying any refinements to retrieve a master list of the available refinements for the given category area/search term. You can then cache these refinement values for use on subsequent requests. + +For example, to run a type=search request specifying two refinements with values `p_85/2470955011` and `p_36/2421886011` the value of the refinements parameter would be `refinements=p_85/2470955011,p_36/2421886011` + +Note that sometimes Amazon do not present a explicit refinement value and instead a link is returned. In this instance you should pass the link into the url request parameter of your type=category request to retrieve data from that refinement-filtered page. + amazon_domain: The Amazon domain to retrieve category results from. For a full list of supported Amazon domains see [Supported Amazon Domains](https://www.asindataapi.com/docs/product-data-api/reference/amazon-domains). + page: The current page of category results to retrieve. Inspect the pagination.total_pages property in the Category results to see how many pages of category results are available. + +update value of num to get additional pages + sort_by: Determines the sort order of category results to return. Valid values are: + +- most_recent +- price_low_to_high +- price_high_to_low +- featured +- average_review + + category_id: A category ID to retrieve results from. You may supply any arbitary value in the category_id parameter. + +ASIN Data API will use the category_id in the following form: `https://amazon_domain/s?node=category_id.` + +Note that pagination for top-level categories is not supported by the Amazon sites. If you wish to iterate the contents of a category the recommended approach is to pick the lowest level categories to perform your iteration / pagination on. + url: The Amazon category results page URL to retrieve category results from. Be sure to URL-encode the url parameter. + +**Note the url parameter is supplied, the category_id parameter cannot be used (as the url itself defines the category ID used).** + + """ + url = f"https://asin-data.p.rapidapi.com/request" + querystring = {'type': type, } + if refinements: + querystring['refinements'] = refinements + if amazon_domain: + querystring['amazon_domain'] = amazon_domain + if page: + querystring['page'] = page + if sort_by: + querystring['sort_by'] = sort_by + if category_id: + querystring['category_id'] = category_id + if url: + querystring['url'] = url + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asin-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def offers(type: str, offers_condition_used_acceptable: bool=None, offers_condition_used_good: bool=None, show_different_asins: bool=None, amazon_domain: str='amazon.com', offers_condition_used_like_new: bool=None, offers_free_shipping: bool=None, offers_condition_new: bool=None, page: int=None, asin: str='B073JYC4XM', url: str=None, offers_prime: bool=None, offers_condition_used_very_good: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Offers Parameters are applicable when making a request with `type=offers` to retrieve seller Offers for a single product on Amazon - the product is specified using either the asin and `amazon_domain` parameters or the url parameter (where the url parameter contains a link to an Amazon product offers page). The parameters should be appended as querystring parameters to the Product Data API GET HTTP request. + + Offers are retrieved from the offers listing popup window for a single product on Amazon." + offers_condition_used_acceptable: +Limit the offers returned to just those that are of Used-Acceptable Condition. Valid values are: +true +Only include offers that are Used-Acceptable Condition. +false +Include all offers, regardless of their Condition. + offers_condition_used_good: +Limit the offers returned to just those that are of Used-Good Condition. Valid values are: +true +Only include offers that are Used-Good Condition. +false +Include all offers, regardless of their Condition. + show_different_asins: +Sometimes Amazon will return Offers from ASINs other than the ASIN supplied in the asin request parameter (for example, when the original ASIN is out of stock). show_different_asins controls whether you want these other-ASIN offer results returned, or not. Can be set to true to include offers from other ASINs, or false (the default) to hide offers from ASINs other than the ASIN supplied in the asin parameter. Note that if you supply a url instead of asin in your request this parameter is ignored. + amazon_domain: The Amazon domain to retrieve Offers for the product specified in the asin parameter from. For a full list of supported Amazon domains see Supported Amazon Domains. + +**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.** + offers_condition_used_like_new: +Limit the offers returned to just those that are of Used-Like-New Condition. Valid values are: +true +Only include offers that are Used-Like-New Condition. +false +Include all offers, regardless of their Condition. + offers_free_shipping: +Limit the offers returned to just those that have Free Shipping. Valid values are: +true +Only include offers that have Free Shipping. +false +Include all offers, regardless of whether they have Free Shipping or not. + offers_condition_new: l +Limit the offers returned to just those that are of New Condition. Valid values are: +true +Only include offers that are New Condition. +false +Include all offers, regardless of their Condition. + page: The current page of reviews to retrieve. Inspect the pagination.total_pages property in the Reviews results to see how many pages of reviews are available. +**Note that the maximum number of reviews pages served by Amazon is 500** + +update value of num to get additional pages + asin: The Amazon ASIN (product ID) to retrieve Offers for. Used in combination with the amazon_domain parameter. + +**Note: If the asin and amazon_domain parameters are supplied then the url parameter is ignored.** + url: The Amazon product-page URL to retrieve Offers from. + +**Note: If the url parameter is supplied then the amazon_domain and asin parameters are ignored.** + offers_prime: +Limit the offers returned to just those that are Prime-eligible. Valid values are: +true +Only include offers that are Prime-eligible. +false +Include all offers, regardless of whether they are Prime-eligible or not. + offers_condition_used_very_good: +Limit the offers returned to just those that are of Used-Very-Good Condition. Valid values are: +true +Only include offers that are Used-Very-Good Condition. +false +Include all offers, regardless of their Condition. + + """ + url = f"https://asin-data.p.rapidapi.com/request" + querystring = {'type': type, } + if offers_condition_used_acceptable: + querystring['offers_condition_used_acceptable'] = offers_condition_used_acceptable + if offers_condition_used_good: + querystring['offers_condition_used_good'] = offers_condition_used_good + if show_different_asins: + querystring['show_different_asins'] = show_different_asins + if amazon_domain: + querystring['amazon_domain'] = amazon_domain + if offers_condition_used_like_new: + querystring['offers_condition_used_like_new'] = offers_condition_used_like_new + if offers_free_shipping: + querystring['offers_free_shipping'] = offers_free_shipping + if offers_condition_new: + querystring['offers_condition_new'] = offers_condition_new + if page: + querystring['page'] = page + if asin: + querystring['asin'] = asin + if url: + querystring['url'] = url + if offers_prime: + querystring['offers_prime'] = offers_prime + if offers_condition_used_very_good: + querystring['offers_condition_used_very_good'] = offers_condition_used_very_good + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asin-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def reviews(type: str, review_stars: str=None, page: int=None, search_term: str=None, show_different_asins: bool=None, review_media_type: str=None, sort_by: str=None, global_reviews: bool=None, review_id: str=None, reviewer_type: str=None, amazon_domain: str='amazon.com', url: str=None, review_formats: str=None, asin: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Reviews Parameters are applicable when making a request with `type=reviews` to retrieve customer Reviews for a single product on Amazon - the product is specified using either the asin and `amazon_domain` parameters or the url parameter (where the url parameter contains a link to an Amazon reviews page). The parameters should be appended as querystring parameters to the Product Data API GET HTTP request. + + Reviews are retrieved from the customer reviews page for a single product on Amazon." + review_stars: The star rating of reviews to retrieve. Valid values are: + +- all_stars +- five_star +- four_star +- three_star +- two_star +- one_star +- all_positive +- all_critical + page: The current page of reviews to retrieve. Inspect the pagination.total_pages property in the Reviews results to see how many pages of reviews are available. + +**Note that the maximum number of reviews pages served by Amazon is 500.** + +update value of num to get additional pages + search_term: A search term to use to search reviews. + show_different_asins: Sometimes Amazon will return Reviews from ASINs other than the ASIN supplied in the asin request parameter (for example, when the original ASIN is out of stock). `show_different_asins `controls whether you want these other-ASIN review results returned, or not. Can be set to true (the default) to include reviews from other ASINs, or false to hide reviews from ASINs other than the ASIN supplied in the asin parameter. + +Note that if you supply a url instead of asin in your request this parameter is ignored. + +Note in the event of` show_different_asins=false` and the ASIN shown by Amazon being different from the requested ASIN, then all fields apart from product will be removed from the response. + review_media_type: Filter the reviews to those containing a specific media type. Valid values are: + +`all_reviews` +- Include reviews with text, images or video. + +`media_reviews_only` +- Include only reviews containing images or video. + sort_by: Determines the sort order of reviews to return. + +Valid values are: `most_helpful` and `most_recent` + + global_reviews: Determines whether Global Reviews are included, or not Global Reviews are reviews from other Amazon domains outside of the Amazon domain specified in the request. Valid values are: + +`true` +- The default, Global Reviews are included in the results. + +`false` +- Global reviews are excluded from the results. + review_id: +A single Review ID, as returned by a prior `type=reviews` request, to retrieve. Useful if you wish to check for the presence of a single review. Use in combination with the amazon_domain parameter. + reviewer_type: The type of reviewer to retrieve reviews from. Valid values are: + +`verified_purchase` +- include reviews by Amazon Verified Purchasers only + +`all` +- include all reviews, regardless of whether they are from Amazon Verified Purchasers or not) + amazon_domain: The Amazon domain to retrieve Reviews for the product specified in the asin parameter from. For a full list of supported Amazon domains see Supported Amazon Domains. + +**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.** + url: The Amazon product-page URL to retrieve Reviews from. + +**Note: If the url parameter is supplied then the amazon_domain and asin parameters are ignored.** + review_formats: The type of reviewer to retrieve reviews from. Valid values are: + +`all_formats` +- Include reviews of any product format/variant. + +`current_format` +- Include reviews relating specifically to the current format/variant. + asin: The Amazon ASIN (product ID) to retrieve Reviews for. Used in combination with the amazon_domain parameter. + +**Note: If the asin and amazon_domain parameters are supplied then the url parameter is ignored.** + + """ + url = f"https://asin-data.p.rapidapi.com/request" + querystring = {'type': type, } + if review_stars: + querystring['review_stars'] = review_stars + if page: + querystring['page'] = page + if search_term: + querystring['search_term'] = search_term + if show_different_asins: + querystring['show_different_asins'] = show_different_asins + if review_media_type: + querystring['review_media_type'] = review_media_type + if sort_by: + querystring['sort_by'] = sort_by + if global_reviews: + querystring['global_reviews'] = global_reviews + if review_id: + querystring['review_id'] = review_id + if reviewer_type: + querystring['reviewer_type'] = reviewer_type + if amazon_domain: + querystring['amazon_domain'] = amazon_domain + if url: + querystring['url'] = url + if review_formats: + querystring['review_formats'] = review_formats + if asin: + querystring['asin'] = asin + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asin-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def search(type: str, search_term: str='memory cards', url: str=None, direct_search: str=None, page: int=None, exclude_sponsored: bool=None, sort_by: str=None, refinements: str=None, category_id: str=None, amazon_domain: str='amazon.com', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Search Parameters are applicable when making a request with `type=search` to retrieve search results for an Amazon domain - the Amazon domain is specified using the `amazon_domain` parameter and the search term is specified in the `search_term` parameter. The parameters should be appended as querystring parameters to the Product Data API GET HTTP request. + + Search results are retrieved from the search results page on Amazon." + search_term: A search term to use to search products. + url: The Amazon search results page URL to retrieve search results from. Be sure to URL-encode the url parameter. + +**Note the url parameter is supplied, the search_term parameter cannot be used (as the url itself defines the search term used).** + direct_search: By default Amazon will, if a spelling mistake is suspected in the search_term, show search results for the corrected search term. + +To disable this behaviour and search for the value in `search_term` directly, without auto-correcting it, set `direct_search=true`. + page: The current page of search results to retrieve. Inspect the pagination.total_pages property in the Search results to see how many pages of search results are available. + +update value of num to get additional pages + exclude_sponsored: Whether to exclude sponsored search results (when set to exclude_sponsored=true) from the search results returned, or not. Defaults to false. + sort_by: Determines the sort order of search results to return. Valid values are: + +- most_recent +- price_low_to_high +- price_high_to_low +- featured +- average_review + refinements: +A comma-seperated list of refinement values to filter the search results by. These allow you to refine your search by values such as \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Reviews rating 4 and over\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"price range\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" and \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"brand\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\". + +Refinement values are returned in the refinements array of each type=search result. Refinement values are dynamic and change by category area or search term used. If you wish to use refinements you should first issue a type=search request without specifying any refinements to retrieve a master list of the avaialble refinements for the given category area/search term. You can then cache these refinement values for use on subsequent requests. + +For example, to run a type=search request specifying two refinements with values `p_85/2470955011 `and` p_36/2421886011 `the value of the refinements parameter would be `refinements=p_85/2470955011,p_36/2421886011` + category_id: +A category ID to limit search results to. ASIN Data API will use the category_id in the following form: https://amazon_domain/s?node=category_id. + +Note that pagination for top-level categories is not supported by the Amazon sites. If you wish to iterate the contents of a category the recommended approach is to pick the lowest level categories to perform your iteration / pagination on. + amazon_domain: The Amazon domain to retrieve search results from. For a full list of supported Amazon domains see Supported Amazon Domains. + +**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.** + + """ + url = f"https://asin-data.p.rapidapi.com/request" + querystring = {'type': type, } + if search_term: + querystring['search_term'] = search_term + if url: + querystring['url'] = url + if direct_search: + querystring['direct_search'] = direct_search + if page: + querystring['page'] = page + if exclude_sponsored: + querystring['exclude_sponsored'] = exclude_sponsored + if sort_by: + querystring['sort_by'] = sort_by + if refinements: + querystring['refinements'] = refinements + if category_id: + querystring['category_id'] = category_id + if amazon_domain: + querystring['amazon_domain'] = amazon_domain + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asin-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def product(type: str, gtin: str=None, url: str=None, amazon_domain: str='amazon.com', asin: str='B073JYC4XM', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "The Product Parameters are applicable when making a request with `type=product` to retrieve details of a single product on Amazon - the product is specified using either the asin and `amazon_domain` parameters or the url parameter (where the url parameter contains a link to an Amazon product page). The parameters should be appended as querystring parameters to the Product Data API GET HTTP request. + + Product details are retrieved from the product page for a single product on Amazon." + gtin: A GTIN, ISBN, UPC or EAN code to retrieve results for. Internally ASIN Data API will first convert the GTIN/ISBN/UPC/EAN to an Amazon ASIN, then retrieve the results for that ASIN from Amazon. Used in combination with the amazon_domain parameter. + +**Note: If the gtin and amazon_domain parameters are supplied then the url parameter is ignored.** + url: The Amazon product-page URL to retrieve product details from. + +**Ensure that the url parameter is URL-encoded.** + +Note: If the url parameter is supplied then the amazon_domain and asin parameters are ignored. + amazon_domain: The Amazon domain to retrieve product details from for the product specified in the asin parameter. For a full list of supported Amazon domains see Supported Amazon Domains. + +**Note: If the amazon_domain and asin parameters are supplied then the url parameter is ignored.** + asin: The Amazon ASIN (product ID) to retrieve product details for. Used in combination with the `amazon_domain` parameter. + +**Note: If the asin and `amazon_domain `parameters are supplied then the url parameter is ignored.** + + """ + url = f"https://asin-data.p.rapidapi.com/request" + querystring = {'type': type, } + if gtin: + querystring['gtin'] = gtin + if url: + querystring['url'] = url + if amazon_domain: + querystring['amazon_domain'] = amazon_domain + if asin: + querystring['asin'] = asin + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asin-data.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/askpdf.json b/toolbench/toolenv/tools/Data/askpdf.json new file mode 100644 index 0000000000000000000000000000000000000000..bb1aa07153fb83122ea88a1106810c433fbee103 --- /dev/null +++ b/toolbench/toolenv/tools/Data/askpdf.json @@ -0,0 +1,112 @@ +{ + "product_id": "api_17966138-b0a1-483c-a825-8356ef2d18b9", + "tool_description": "Chat with your content/documents via an AI chatbot, which currently supports PDF files, and more file types are coming soon (e.g. CSV, ePUB, docx, pptx, URL) \ud83d\ude04.", + "home_url": "https://rapidapi.com/MrMed/api/askpdf1/", + "name": "AskPDF", + "title": "AskPDF", + "pricing": "FREEMIUM", + "tool_name": "AskPDF", + "score": { + "avgServiceLevel": 100, + "avgLatency": 972, + "avgSuccessRate": 92, + "popularityScore": 9, + "__typename": "Score" + }, + "host": "askpdf1.p.rapidapi.com", + "api_list": [ + { + "name": "Stop Chat Room Agent (cancel the prompt)", + "url": "https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}/stop", + "description": "Stop Chat Room Agent (cancel the prompt)", + "method": "POST", + "required_parameters": [ + { + "name": "uuid", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}/stop\"\nquerystring = {\"uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}/stop\"\nquerystring = {\"uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Clear chat room conversation history", + "url": "https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}/clear-history", + "description": "Clear the chat room conversation history.", + "method": "POST", + "required_parameters": [ + { + "name": "uuid", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}/clear-history\"\nquerystring = {\"uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}/clear-history\"\nquerystring = {\"uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Upload document (e.g PDF)", + "url": "https://askpdf1.p.rapidapi.com/api/v1/upload", + "description": "Upload your document like a PDF, a chat room will be create / returned identified by a UUID", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/upload\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/upload\"\nquerystring = {\"file\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Register your OpenAI api key", + "url": "https://askpdf1.p.rapidapi.com/api/v1/openai-key/update", + "description": "Register your OpenAI API key to be used with chat room in the back-end,\n\n**Important Note:**\nRegister it only once, or when your OpenAI key changed.", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/openai-key/update\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/openai-key/update\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 1, + "schema": "" + }, + { + "name": "Chat room", + "url": "https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}", + "description": "Send your / client question and you'll get an AI reply as a response", + "method": "POST", + "required_parameters": [ + { + "name": "uuid", + "type": "string", + "description": "", + "default": "" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}\"\nquerystring = {\"uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://askpdf1.p.rapidapi.com/api/v1/chat/{uuid}\"\nquerystring = {\"uuid\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"askpdf1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "", + "statuscode": 200, + "schema": {} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/asn.json b/toolbench/toolenv/tools/Data/asn.json new file mode 100644 index 0000000000000000000000000000000000000000..d55f854236efd837308ff4c90218968d3e7f20ae --- /dev/null +++ b/toolbench/toolenv/tools/Data/asn.json @@ -0,0 +1,441 @@ +{ + "tool_name":"ASN", + "tool_description":"Get ASN information, BGP announcements, IP announcement history, block lists.", + "title":"ASN", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":145, + "avgSuccessRate":100, + "popularityScore":9.2, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/CMunroe/api/asn/", + "host":"asn.p.rapidapi.com", + "api_list":[ + { + "name":"AS Details", + "url":"https://asn.p.rapidapi.com/json/details/{as_number}", + "description":"This includes information such as the AS Size, Number of records, time of cache, and name,\n\nData is cached and can be up to 1 day old.", + "method":"GET", + "required_parameters":[ + { + "name":"as-number", + "type":"string", + "description":"", + "default":"AS1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/details/{as_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{} + }, + { + "name":"AS Archive", + "url":"https://asn.p.rapidapi.com/json/archive/{as_timestamp}", + "description":"Using AS Snapshot, you can get the requested {as-timestamp}. This will give you a look back in time at the announced IPs of an ASN at that timestamp.\n\ndups field indicates timestamps with the same data.", + "method":"GET", + "required_parameters":[ + { + "name":"as-timestamp", + "type":"string", + "description":"", + "default":"1-1440541473" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/archive/{as_timestamp}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "asn":{ + "type":"integer" + }, + "time":{ + "type":"integer" + }, + "name":{ + "type":"string" + }, + "iprec":{ + "type":"integer" + }, + "v4size":{ + "type":"integer" + }, + "v6size":{ + "type":"integer" + }, + "dupcount":{ + "type":"integer" + }, + "dupmax":{ + "type":"null" + }, + "dupmin":{ + "type":"null" + }, + "smaskv4":{ + "type":"object", + "properties":{ + "22":{ + "type":"integer" + }, + "24":{ + "type":"integer" + } + } + }, + "smaskv6":{ + "type":"array" + }, + "ips":{ + "type":"array", + "items":{ + "type":"string" + } + }, + "dups":{ + "type":"array" + } + } + } + }, + { + "name":"AS Snapshots", + "url":"https://asn.p.rapidapi.com/json/snapshots/{as_number}", + "description":"A list of AS Details over time.", + "method":"GET", + "required_parameters":[ + { + "name":"as-number", + "type":"string", + "description":"", + "default":"AS1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/snapshots/{as_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "asn":{ + "type":"integer" + }, + "time":{ + "type":"integer" + }, + "name":{ + "type":"string" + }, + "iprec":{ + "type":"integer" + }, + "v4size":{ + "type":"integer" + }, + "v6size":{ + "type":"integer" + }, + "smaskv4":{ + "type":"object" + }, + "smaskv6":{ + "type":"object" + }, + "dups":{ + "type":"array" + }, + "requestURL":{ + "type":"string" + } + } + } + } + }, + { + "name":"AS Details + IP List", + "url":"https://asn.p.rapidapi.com/json/detailsList/{as_number}", + "description":"This is a combination lookup that includes AS Details, and a short and sweet IP List of announced IP subnets.\n\nData is cached up to 1 day before being updated.", + "method":"GET", + "required_parameters":[ + { + "name":"as-number", + "type":"string", + "description":"", + "default":"AS1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/detailsList/{as_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "asn":{ + "type":"integer" + }, + "time":{ + "type":"integer" + }, + "name":{ + "type":"string" + }, + "iprec":{ + "type":"integer" + }, + "v4size":{ + "type":"integer" + }, + "v6size":{ + "type":"integer" + }, + "smaskv4":{ + "type":"object", + "properties":{ + "21":{ + "type":"integer" + }, + "22":{ + "type":"integer" + }, + "23":{ + "type":"integer" + }, + "24":{ + "type":"integer" + } + } + }, + "smaskv6":{ + "type":"object", + "properties":{ + "32":{ + "type":"integer" + } + } + }, + "type":{ + "type":"string" + }, + "list":{ + "type":"array", + "items":{ + "type":"string" + } + } + } + } + }, + { + "name":"IPs", + "url":"https://asn.p.rapidapi.com/json/raw/{as_number}", + "description":"Get a list of the current announced IPs of a subnet in a detailed form.\n\nData is cached up to 1 day before being updated.", + "method":"GET", + "required_parameters":[ + { + "name":"as-number", + "type":"string", + "description":"", + "default":"AS1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/raw/{as_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "name":{ + "type":"string" + }, + "type":{ + "type":"string" + }, + "list":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "ip":{ + "type":"string" + }, + "subnetMask":{ + "type":"string" + }, + "cidr":{ + "type":"string" + }, + "type":{ + "type":"integer" + } + } + } + } + } + } + }, + { + "name":"AS Details + IPs", + "url":"https://asn.p.rapidapi.com/json/detailsRaw/{as_number}", + "description":"A combination lookup that includes details on the AS, and the annouced IPs fully broken out. \n\nData is cached for a day before being updated.", + "method":"GET", + "required_parameters":[ + { + "name":"as-number", + "type":"string", + "description":"", + "default":"AS1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/detailsRaw/{as_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "asn":{ + "type":"integer" + }, + "time":{ + "type":"integer" + }, + "name":{ + "type":"string" + }, + "iprec":{ + "type":"integer" + }, + "v4size":{ + "type":"integer" + }, + "v6size":{ + "type":"integer" + }, + "smaskv4":{ + "type":"object", + "properties":{ + "21":{ + "type":"integer" + }, + "22":{ + "type":"integer" + }, + "23":{ + "type":"integer" + }, + "24":{ + "type":"integer" + } + } + }, + "smaskv6":{ + "type":"object", + "properties":{ + "32":{ + "type":"integer" + } + } + }, + "type":{ + "type":"string" + }, + "list":{ + "type":"array", + "items":{ + "type":"object", + "properties":{ + "ip":{ + "type":"string" + }, + "subnetMask":{ + "type":"string" + }, + "cidr":{ + "type":"string" + }, + "type":{ + "type":"integer" + } + } + } + } + } + } + }, + { + "name":"IP List", + "url":"https://asn.p.rapidapi.com/json/list/{as_number}", + "description":"Get a list of all IPs that an ASN annouces. \n\nResults can be up to 1 day old.", + "method":"GET", + "required_parameters":[ + { + "name":"as-number", + "type":"string", + "description":"", + "default":"AS1" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn.p.rapidapi.com/json/list/{as_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "key1":"value", + "key2":"value" + }, + "headers":{}, + "schema":{ + "type":"object", + "properties":{ + "name":{ + "type":"string" + }, + "type":{ + "type":"string" + }, + "list":{ + "type":"array", + "items":{ + "type":"string" + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/asn/api.py b/toolbench/toolenv/tools/Data/asn/api.py new file mode 100644 index 0000000000000000000000000000000000000000..7dc23e53d8b1acfb13324d0452ec489bd640ba0c --- /dev/null +++ b/toolbench/toolenv/tools/Data/asn/api.py @@ -0,0 +1,167 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def as_details(as_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This includes information such as the AS Size, Number of records, time of cache, and name, + + Data is cached and can be up to 1 day old." + + """ + url = f"https://asn.p.rapidapi.com/json/details/{as_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def as_archive(as_timestamp: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Using AS Snapshot, you can get the requested {as-timestamp}. This will give you a look back in time at the announced IPs of an ASN at that timestamp. + + dups field indicates timestamps with the same data." + + """ + url = f"https://asn.p.rapidapi.com/json/archive/{as_timestamp}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def as_snapshots(as_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "A list of AS Details over time." + + """ + url = f"https://asn.p.rapidapi.com/json/snapshots/{as_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def as_details_ip_list(as_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "This is a combination lookup that includes AS Details, and a short and sweet IP List of announced IP subnets. + + Data is cached up to 1 day before being updated." + + """ + url = f"https://asn.p.rapidapi.com/json/detailslist/{as_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ips(as_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of the current announced IPs of a subnet in a detailed form. + + Data is cached up to 1 day before being updated." + + """ + url = f"https://asn.p.rapidapi.com/json/raw/{as_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def as_details_ips(as_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "A combination lookup that includes details on the AS, and the annouced IPs fully broken out. + + Data is cached for a day before being updated." + + """ + url = f"https://asn.p.rapidapi.com/json/detailsraw/{as_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def ip_list(as_number: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Get a list of all IPs that an ASN annouces. + + Results can be up to 1 day old." + + """ + url = f"https://asn.p.rapidapi.com/json/list/{as_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/asn_details.json b/toolbench/toolenv/tools/Data/asn_details.json new file mode 100644 index 0000000000000000000000000000000000000000..7b1b1fdec9ab754916847b0f57a87ef9fc2a0286 --- /dev/null +++ b/toolbench/toolenv/tools/Data/asn_details.json @@ -0,0 +1,226 @@ +{ + "tool_name":"ASN Details", + "tool_description":"Get details about Autonomous System Numbers (ASN), find ASN of IPs/CIDRs, find ASNs of each country etc", + "title":"ASN Details", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":100, + "avgLatency":665, + "avgSuccessRate":56, + "popularityScore":8.9, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/web21services/api/asn-details/", + "host":"asn-details.p.rapidapi.com", + "api_list":[ + { + "name":"get_details_by_asn_number", + "url":"https://asn-details.p.rapidapi.com/asn-details/{asn_number}", + "description":"Enter an ASN Number (Integer) to get all of its details such as IP ranges, Country, Organization, CIDR.", + "method":"GET", + "required_parameters":[ + { + "name":"asn_number", + "type":"NUMBER", + "description":"ASN Number to retrieve its details", + "default":"100" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn-details.p.rapidapi.com/asn-details/{asn_number}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "message":"Data Found", + "data":{ + "0":{ + "Start_IP_Range":"12.30.153.0", + "End_IP_Range":"12.30.153.255", + "AS_Number":100, + "Country_Code":"US", + "AS_Description":"FMC-CTC", + "Network_CIDR":"12.30.153.0/24" + }, + "1":{ + "Start_IP_Range":"199.36.118.0", + "End_IP_Range":"199.36.118.255", + "AS_Number":100, + "Country_Code":"US", + "AS_Description":"FMC-CTC", + "Network_CIDR":"199.36.118.0/24" + }, + "2":{ + "Start_IP_Range":"216.225.27.0", + "End_IP_Range":"216.225.27.255", + "AS_Number":100, + "Country_Code":"US", + "AS_Description":"FMC-CTC", + "Network_CIDR":"216.225.27.0/24" + } + } + }, + "headers":{}, + "schema":{} + }, + { + "name":"get_asn_by_country", + "url":"https://asn-details.p.rapidapi.com/country2asn/{country_code}", + "description":"Enter country code (ISO 2 letter code such as US, GB etc) to get all the ASNs associated with that country.", + "method":"GET", + "required_parameters":[ + { + "name":"country_code", + "type":"STRING", + "description":"Country Code (e.g US, UK etc) to retrieve all of its ASN numbers", + "default":"sm" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn-details.p.rapidapi.com/country2asn/{country_code}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "message":"Data Found", + "data":{ + "0":{ + "Start_IP_Range":"31.193.32.0", + "End_IP_Range":"31.193.39.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"31.193.32.0/21" + }, + "1":{ + "Start_IP_Range":"77.242.208.0", + "End_IP_Range":"77.242.223.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"77.242.208.0/20" + }, + "2":{ + "Start_IP_Range":"89.186.32.0", + "End_IP_Range":"89.186.63.255", + "AS_Number":39759, + "Country_Code":"SM", + "AS_Description":"PASSEPARTOUT Passepartout", + "Network_CIDR":"89.186.32.0/19" + }, + "3":{ + "Start_IP_Range":"109.233.80.0", + "End_IP_Range":"109.233.87.255", + "AS_Number":196874, + "Country_Code":"SM", + "AS_Description":"TELENETSRLAS", + "Network_CIDR":"109.233.80.0/21" + }, + "4":{ + "Start_IP_Range":"109.235.104.0", + "End_IP_Range":"109.235.111.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"109.235.104.0/21" + }, + "5":{ + "Start_IP_Range":"130.117.239.0", + "End_IP_Range":"130.117.239.255", + "AS_Number":199325, + "Country_Code":"SM", + "AS_Description":"SEMPLIFY", + "Network_CIDR":"130.117.239.0/24" + }, + "6":{ + "Start_IP_Range":"185.21.116.0", + "End_IP_Range":"185.21.119.255", + "AS_Number":199325, + "Country_Code":"SM", + "AS_Description":"SEMPLIFY", + "Network_CIDR":"185.21.116.0/22" + }, + "7":{ + "Start_IP_Range":"185.21.132.0", + "End_IP_Range":"185.21.132.255", + "AS_Number":212841, + "Country_Code":"SM", + "AS_Description":"SM-AASS", + "Network_CIDR":"185.21.132.0/24" + }, + "8":{ + "Start_IP_Range":"185.45.40.0", + "End_IP_Range":"185.45.43.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"185.45.40.0/22" + }, + "9":{ + "Start_IP_Range":"185.45.68.0", + "End_IP_Range":"185.45.71.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"185.45.68.0/22" + }, + "10":{ + "Start_IP_Range":"185.62.32.0", + "End_IP_Range":"185.62.35.255", + "AS_Number":201852, + "Country_Code":"SM", + "AS_Description":"BLUINDACO-AS", + "Network_CIDR":"185.62.32.0/22" + }, + "11":{ + "Start_IP_Range":"185.86.61.0", + "End_IP_Range":"185.86.63.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"185.86.61.0/24" + }, + "12":{ + "Start_IP_Range":"192.145.48.0", + "End_IP_Range":"192.145.51.255", + "AS_Number":196874, + "Country_Code":"SM", + "AS_Description":"TELENETSRLAS", + "Network_CIDR":"192.145.48.0/22" + }, + "13":{ + "Start_IP_Range":"194.183.64.0", + "End_IP_Range":"194.183.95.255", + "AS_Number":15433, + "Country_Code":"SM", + "AS_Description":"TISM Telecom Italia San Marino.", + "Network_CIDR":"194.183.64.0/19" + } + } + }, + "headers":{}, + "schema":{} + }, + { + "name":"get_asn_by_ip", + "url":"https://asn-details.p.rapidapi.com/ip2asn/{ip_address}", + "description":"Enter an IP Address (Both IPv4 or IPv6 Addresses allowed) to get its ASN number, Organization, Country etc.", + "method":"GET", + "required_parameters":[ + { + "name":"ip_address", + "type":"STRING", + "description":"IP Address to retrieve its ASN details", + "default":"8.8.8.8" + } + ], + "optional_parameters":[], + "code":"import requests\n\nurl = \"https://asn-details.p.rapidapi.com/ip2asn/{ip_address}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn-details.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n", + "statuscode":200, + "body":{ + "ASN Number":"15169", + "ASN Owner":"GOOGLE, US", + "Network":"8.8.8.0/24", + "Country":"US" + }, + "headers":{}, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/asn_details/api.py b/toolbench/toolenv/tools/Data/asn_details/api.py new file mode 100644 index 0000000000000000000000000000000000000000..eb8b86f0e0852f33f37e5620a0c93c38b7465e48 --- /dev/null +++ b/toolbench/toolenv/tools/Data/asn_details/api.py @@ -0,0 +1,74 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def get_details_by_asn_number(asn_number: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Enter an ASN Number (Integer) to get all of its details such as IP ranges, Country, Organization, CIDR." + asn_number: ASN Number to retrieve its details + + """ + url = f"https://asn-details.p.rapidapi.com/asn-details/{asn_number}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn-details.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_asn_by_country(country_code: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Enter country code (ISO 2 letter code such as US, GB etc) to get all the ASNs associated with that country." + country_code: Country Code (e.g US, UK etc) to retrieve all of its ASN numbers + + """ + url = f"https://asn-details.p.rapidapi.com/country2asn/{country_code}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn-details.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + +def get_asn_by_ip(ip_address: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Enter an IP Address (Both IPv4 or IPv6 Addresses allowed) to get its ASN number, Organization, Country etc." + ip_address: IP Address to retrieve its ASN details + + """ + url = f"https://asn-details.p.rapidapi.com/ip2asn/{ip_address}" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn-details.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/asn_lookup.json b/toolbench/toolenv/tools/Data/asn_lookup.json new file mode 100644 index 0000000000000000000000000000000000000000..01cfe25d9166e5b7e0ec46f9f2d6e91f62870a2b --- /dev/null +++ b/toolbench/toolenv/tools/Data/asn_lookup.json @@ -0,0 +1,115 @@ +{ + "tool_name":"ASN Lookup", + "tool_description":"Autonomous System Numbers (ASN) internet search engine to quickly lookup updated information about specific ASN, Organization, CIDR, or registered IP addresses (IPv4 and IPv6) among other relevant data.", + "title":"ASN Lookup", + "pricing":"FREEMIUM", + "score":{ + "avgServiceLevel":99, + "avgLatency":524, + "avgSuccessRate":92, + "popularityScore":9.8, + "__typename":"Score" + }, + "home_url":"https://rapidapi.com/yaaboukir/api/asn-lookup/", + "host":"asn-lookup.p.rapidapi.com", + "api_list":[ + { + "name":"Fetch information", + "url":"https://asn-lookup.p.rapidapi.com/api", + "description":"Retrieve information based on AS number, CIDR (IPV4 & IPV6) or organization name.", + "method":"GET", + "required_parameters":[], + "optional_parameters":[ + { + "name":"ip", + "type":"STRING", + "description":"", + "default":"" + }, + { + "name":"asn", + "type":"STRING", + "description":"", + "default":"AS32934" + }, + { + "name":"cidr", + "type":"STRING", + "description":"", + "default":"" + }, + { + "name":"orgname", + "type":"STRING", + "description":"", + "default":"" + } + ], + "code":"import requests\n\nurl = \"https://asn-lookup.p.rapidapi.com/api\"\nquerystring = {\"asn\": asn}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"asn-lookup.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n", + "statuscode":200, + "body":[ + { + "asnHandle":32934, + "asnName":"FACEBOOK", + "orgID":"THEFA-3-ARIN", + "orgName":"FACEBOOK", + "orgCountry":"US", + "ipv4_prefix":[ + "31.13.24.0/21", + "31.13.64.0/18", + "45.64.40.0/22", + "66.220.144.0/20", + "69.63.176.0/20", + "69.171.224.0/19", + "74.119.76.0/22", + "102.132.96.0/20", + "103.4.96.0/22", + "129.134.0.0/17", + "129.134.160.0/24", + "157.240.0.0/17", + "157.240.192.0/18", + "173.252.64.0/18", + "179.60.192.0/22", + "185.60.216.0/22", + "185.89.218.0/23", + "204.15.20.0/22" + ], + "ipv6_prefix":[ + "2620:0:1c00::/40", + "2a03:2880::/32" + ] + } + ], + "headers":{ + "access-control-allow-credentials":"true", + "access-control-allow-origin":"*", + "allow":"GET, HEAD, OPTIONS", + "cache-control":"max-age=7200", + "content-length":"485", + "content-type":"application/json", + "cross-origin-opener-policy":"same-origin", + "date":"Thu, 22 Dec 2022 15:18:56 GMT", + "expires":"Thu, 22 Dec 2022 17:18:56 GMT", + "referrer-policy":"same-origin", + "server":"RapidAPI-1.2.8", + "vary":"Cookie", + "via":"1.1 5c35539543902c678280929df206948c.cloudfront.net (CloudFront)", + "x-amz-apigw-id":"djdHIE83IAMFoxQ=", + "x-amz-cf-id":"uCna5BNImeQ7fD5A6sM28MbsG7cTpFSX0tdWLggNELkgVzY8TNnM4w==", + "x-amz-cf-pop":"SEA19-C3", + "x-amzn-remapped-content-length":"485", + "x-amzn-requestid":"1f0496f8-4fa7-49ce-bbca-bd78a78889ef", + "x-amzn-trace-id":"Root=1-63a47560-71a9b5af563d33d859769d4b;Sampled=0", + "x-cache":"Miss from cloudfront", + "x-content-type-options":"nosniff", + "x-frame-options":"DENY", + "x-rapidapi-region":"AWS - us-west-2", + "x-rapidapi-version":"1.2.8", + "x-ratelimit-requests-limit":"100", + "x-ratelimit-requests-remaining":"99", + "x-ratelimit-requests-reset":"2280654" + }, + "schema":{} + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/asn_lookup/api.py b/toolbench/toolenv/tools/Data/asn_lookup/api.py new file mode 100644 index 0000000000000000000000000000000000000000..9024b5591f0e49c21044f86f84427e9034663f8d --- /dev/null +++ b/toolbench/toolenv/tools/Data/asn_lookup/api.py @@ -0,0 +1,37 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def fetch_information(ip: str=None, asn: str='AS32934', cidr: str=None, orgname: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Retrieve information based on AS number, CIDR (IPV4 & IPV6) or organization name." + + """ + url = f"https://asn-lookup.p.rapidapi.com/api" + querystring = {} + if ip: + querystring['ip'] = ip + if asn: + querystring['asn'] = asn + if cidr: + querystring['cidr'] = cidr + if orgname: + querystring['orgname'] = orgname + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "asn-lookup.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/audiovideo_converter.json b/toolbench/toolenv/tools/Data/audiovideo_converter.json new file mode 100644 index 0000000000000000000000000000000000000000..d115bb07efe19264327e163dc3708504a1b964ca --- /dev/null +++ b/toolbench/toolenv/tools/Data/audiovideo_converter.json @@ -0,0 +1,54 @@ +{ + "product_id": "api_e8759401-e7ab-4028-9147-a80873ad8114", + "tool_description": "Simple API to convert audio/video file formats", + "home_url": "https://rapidapi.com/fablau/api/audio-video-converter/", + "name": "Audio/Video Converter", + "title": "Audio/Video Converter", + "pricing": "FREEMIUM", + "tool_name": "Audio/Video Converter", + "score": { + "avgServiceLevel": 100, + "avgLatency": 645, + "avgSuccessRate": 100, + "popularityScore": 8.4, + "__typename": "Score" + }, + "host": "audio-video-converter.p.rapidapi.com", + "api_list": [ + { + "name": "uploadConvertFile", + "url": "https://audio-video-converter.p.rapidapi.com/av/convert/upload/", + "description": "This endpoint allows the conversion of a file from an uploaded file (source). \n\nThe source must be a file in any of the formats listed below, and the defined destination format must be defined as follows:\n\nAudio:\n\naac\nac3\naiff\nau\nmp3\nogg\nwav\n\n\nVideo:\n\nasf\navi\ndrc\nf4v\nflv\ngif\nmkv\nm2ts\nm2v\nm4v\nmov\nmp2\nmp4\nmpeg\nmpg\nmts\nogv\nvob\nwebm\nwvm\nyuv", + "method": "POST", + "required_parameters": [ + { + "name": "file", + "type": "BINARY", + "description": "", + "default": "" + }, + { + "name": "format", + "type": "STRING", + "description": "", + "default": "aiff" + } + ], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://audio-video-converter.p.rapidapi.com/av/convert/upload/\"\nquerystring = {\"file\": \"\", \"format\": \"aiff\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"audio-video-converter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://audio-video-converter.p.rapidapi.com/av/convert/upload/\"\nquerystring = {\"file\": \"\", \"format\": \"aiff\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"audio-video-converter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n", + "test_endpoint": "" + }, + { + "name": "convertFile", + "url": "https://audio-video-converter.p.rapidapi.com/av/convert/", + "description": "This endpoint allows the conversion of a file from a source URL. \n\nThe source URL must point to a file in any of the formats listed below, and the defined destination format must be defined as follows:\n\nAudio:\n\naac\nac3\naiff\nau\nmp3\nogg\nwav\n\n\nVideo:\n\nasf\navi\ndrc\nf4v\nflv\ngif\nmkv\nm2ts\nm2v\nm4v\nmov\nmp2\nmp4\nmpeg\nmpg\nmts\nogv\nvob\nwebm\nwvm\nyuv", + "method": "POST", + "required_parameters": [], + "optional_parameters": [], + "code": "import requests\n\nurl = \"https://audio-video-converter.p.rapidapi.com/av/convert/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"audio-video-converter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "convert_code": "import requests\n\nurl = \"https://audio-video-converter.p.rapidapi.com/av/convert/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"audio-video-converter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n", + "test_endpoint": "" + } + ] +} \ No newline at end of file diff --git a/toolbench/toolenv/tools/Data/audiovideo_converter/api.py b/toolbench/toolenv/tools/Data/audiovideo_converter/api.py new file mode 100644 index 0000000000000000000000000000000000000000..e81033833741a89d4fe2717559ba8de738fc6181 --- /dev/null +++ b/toolbench/toolenv/tools/Data/audiovideo_converter/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def checkstatusbyid(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Returns the status and download link of a previously initiated conversion." + + """ + url = f"https://audio-video-converter.p.rapidapi.com/av/status/{is_id}/" + querystring = {} + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "audio-video-converter.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation + diff --git a/toolbench/toolenv/tools/Data/australia_vehicle_rego_check/api.py b/toolbench/toolenv/tools/Data/australia_vehicle_rego_check/api.py new file mode 100644 index 0000000000000000000000000000000000000000..68e8f0993fb4581c7102a9805f5b47e2c42a96cc --- /dev/null +++ b/toolbench/toolenv/tools/Data/australia_vehicle_rego_check/api.py @@ -0,0 +1,29 @@ +import requests +import json +from datetime import date, datetime, timedelta +import os + +from typing import Optional, Dict, Union, List + + +def check(state: str, rego: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'): + """ + "Query vehicle information through rego and state" + + """ + url = f"https://australia-vehicle-rego-check.p.rapidapi.com/spec/check" + querystring = {'state': state, 'rego': rego, } + + headers = { + "X-RapidAPI-Key": toolbench_rapidapi_key, + "X-RapidAPI-Host": "australia-vehicle-rego-check.p.rapidapi.com" + } + + + response = requests.get(url, headers=headers, params=querystring) + try: + observation = response.json() + except: + observation = response.text + return observation +