Upload folder using huggingface_hub (part 9)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- toolbench/toolenv/tools/Communication/amazechatzones.json +24 -0
- toolbench/toolenv/tools/Communication/android_push_notification_service.json +57 -0
- toolbench/toolenv/tools/Communication/another_rapid_test.json +24 -0
- toolbench/toolenv/tools/Communication/another_rapid_test/api.py +29 -0
- toolbench/toolenv/tools/Communication/anton_whatsapp_wrapper/api.py +29 -0
- toolbench/toolenv/tools/Communication/anyemail.json +75 -0
- toolbench/toolenv/tools/Communication/api2_ninja_network_utils.json +73 -0
- toolbench/toolenv/tools/Communication/api_whatsapp.json +1133 -0
- toolbench/toolenv/tools/Communication/api_whatsapp/api.py +232 -0
- toolbench/toolenv/tools/Communication/approves_2_0.json +24 -0
- toolbench/toolenv/tools/Communication/approves_2_0/api.py +29 -0
- toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator.json +155 -0
- toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator/api.py +91 -0
- toolbench/toolenv/tools/Communication/ardic_speech_to_text_service.json +55 -0
- toolbench/toolenv/tools/Communication/automatic_custom_response_creator.json +49 -0
- toolbench/toolenv/tools/Communication/automatic_custom_response_creator/api.py +33 -0
- toolbench/toolenv/tools/Communication/automationtest_prod.json +24 -0
- toolbench/toolenv/tools/Communication/automationtest_prod/api.py +29 -0
- toolbench/toolenv/tools/Communication/aweber.json +354 -0
- toolbench/toolenv/tools/Communication/aweber/api.py +1391 -0
- toolbench/toolenv/tools/Communication/barbaraaa.json +30 -0
- toolbench/toolenv/tools/Communication/barbaraaa/api.py +29 -0
- toolbench/toolenv/tools/Communication/bcolimited.json +24 -0
- toolbench/toolenv/tools/Communication/bcolimited/api.py +29 -0
- toolbench/toolenv/tools/Communication/bermainapi_whatsapp_gateway.json +49 -0
- toolbench/toolenv/tools/Communication/bitikas1.json +37 -0
- toolbench/toolenv/tools/Communication/bitikas1/api.py +33 -0
- toolbench/toolenv/tools/Communication/blanq.json +26 -0
- toolbench/toolenv/tools/Communication/blanq/api.py +73 -0
- toolbench/toolenv/tools/Communication/bombsaway.json +24 -0
- toolbench/toolenv/tools/Communication/bombsaway/api.py +29 -0
- toolbench/toolenv/tools/Communication/botlibre.json +197 -0
- toolbench/toolenv/tools/Communication/botlibre/api.py +131 -0
- toolbench/toolenv/tools/Communication/brcd.json +37 -0
- toolbench/toolenv/tools/Communication/brcd/api.py +50 -0
- toolbench/toolenv/tools/Communication/bulksmsapi.json +29 -0
- toolbench/toolenv/tools/Communication/bulksmsapi/api.py +29 -0
- toolbench/toolenv/tools/Communication/cakemail.json +40 -0
- toolbench/toolenv/tools/Communication/cakemail/api.py +30 -0
- toolbench/toolenv/tools/Communication/callbackfy.json +24 -0
- toolbench/toolenv/tools/Communication/caller_id.json +67 -0
- toolbench/toolenv/tools/Communication/caller_id/api.py +29 -0
- toolbench/toolenv/tools/Communication/canitobot_webhook.json +30 -0
- toolbench/toolenv/tools/Communication/capitalizer/api.py +32 -0
- toolbench/toolenv/tools/Communication/celitech_bee_wireless_esim.json +52 -0
- toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists.json +31 -0
- toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists/api.py +29 -0
- toolbench/toolenv/tools/Communication/chat_rooms.json +46 -0
- toolbench/toolenv/tools/Communication/chat_rooms/api.py +32 -0
- toolbench/toolenv/tools/Communication/checky_verify_phone_number.json +165 -0
toolbench/toolenv/tools/Communication/amazechatzones.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Amazechatzones",
|
| 3 |
+
"tool_description":"Social Networking api",
|
| 4 |
+
"title":"Amazechatzones",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/khanabdulrehman406/api/amazechatzones/",
|
| 8 |
+
"host":"amazechatzones.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"None",
|
| 12 |
+
"url":"https://amazechatzones.p.rapidapi.comhttps://amazechatzone.com",
|
| 13 |
+
"description":"nakxnakas",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/android_push_notification_service.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "53aa4934e4b0a9b1348da037",
|
| 3 |
+
"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.",
|
| 4 |
+
"home_url": "https://rapidapi.com/apns/api/android-push-notification-service/",
|
| 5 |
+
"name": "Android Push Notification Service",
|
| 6 |
+
"title": "Android Push Notification Service",
|
| 7 |
+
"pricing": "PAID",
|
| 8 |
+
"tool_name": "Android Push Notification Service",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "apns.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "APNS",
|
| 14 |
+
"url": "https://apns.p.rapidapi.com/pushto/test/dev0/hellooo/123/fe7f220ef8a208acab7e290d19b44c06",
|
| 15 |
+
"description": "Android Push Notification Service",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [
|
| 18 |
+
{
|
| 19 |
+
"name": "ch",
|
| 20 |
+
"type": "STRING",
|
| 21 |
+
"description": "the channel id ( go to http://push-notification.org to require one)",
|
| 22 |
+
"default": "test"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "devid",
|
| 26 |
+
"type": "STRING",
|
| 27 |
+
"description": "the id of device which should receive the message",
|
| 28 |
+
"default": "dev0"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"name": "msg",
|
| 32 |
+
"type": "STRING",
|
| 33 |
+
"description": "the message will be sent",
|
| 34 |
+
"default": "hellooo"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "random",
|
| 38 |
+
"type": "STRING",
|
| 39 |
+
"description": "random number",
|
| 40 |
+
"default": "123"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name": "hash",
|
| 44 |
+
"type": "STRING",
|
| 45 |
+
"description": "md5(ch + devId + msg + random + apiKey), go to http://push-notification.org to get the apiKey",
|
| 46 |
+
"default": "fe7f220ef8a208acab7e290d19b44c06"
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"optional_parameters": [],
|
| 50 |
+
"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",
|
| 51 |
+
"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",
|
| 52 |
+
"test_endpoint": "",
|
| 53 |
+
"statuscode": 1,
|
| 54 |
+
"schema": ""
|
| 55 |
+
}
|
| 56 |
+
]
|
| 57 |
+
}
|
toolbench/toolenv/tools/Communication/another_rapid_test.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Another Rapid Test",
|
| 3 |
+
"tool_description":"Is it my name?",
|
| 4 |
+
"title":"Another Rapid Test",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/pavel-DFy8si8AW/api/another-rapid-test/",
|
| 8 |
+
"host":"another-rapid-test.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Demo Max",
|
| 12 |
+
"url":"https://another-rapid-test.p.rapidapi.com/yo",
|
| 13 |
+
"description":"hello",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/another_rapid_test/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def demo_max(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"hello"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://another-rapid-test.p.rapidapi.com/yo"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "another-rapid-test.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/anton_whatsapp_wrapper/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def hello(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"hello"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://anton_whatsapp_wrapper.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "anton_whatsapp_wrapper.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/anyemail.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_d15bcfc4-06bd-4ecf-b985-12a7b2d3af35",
|
| 3 |
+
"tool_description": "Any Email, Send Email anywhere",
|
| 4 |
+
"home_url": "https://rapidapi.com/codingeraasia-codingeraasia-default/api/anyemail/",
|
| 5 |
+
"name": "AnyEmail",
|
| 6 |
+
"title": "AnyEmail",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "AnyEmail",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "anyemail.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Send Email",
|
| 14 |
+
"url": "https://anyemail.p.rapidapi.com/",
|
| 15 |
+
"description": "Send Email",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"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",
|
| 20 |
+
"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",
|
| 21 |
+
"test_endpoint": "",
|
| 22 |
+
"statuscode": 200,
|
| 23 |
+
"schema": {
|
| 24 |
+
"type": "object",
|
| 25 |
+
"properties": {
|
| 26 |
+
"statusCode": {
|
| 27 |
+
"type": "integer"
|
| 28 |
+
},
|
| 29 |
+
"body": {
|
| 30 |
+
"type": "object",
|
| 31 |
+
"properties": {
|
| 32 |
+
"MessageId": {
|
| 33 |
+
"type": "string"
|
| 34 |
+
},
|
| 35 |
+
"ResponseMetadata": {
|
| 36 |
+
"type": "object",
|
| 37 |
+
"properties": {
|
| 38 |
+
"RequestId": {
|
| 39 |
+
"type": "string"
|
| 40 |
+
},
|
| 41 |
+
"HTTPStatusCode": {
|
| 42 |
+
"type": "integer"
|
| 43 |
+
},
|
| 44 |
+
"HTTPHeaders": {
|
| 45 |
+
"type": "object",
|
| 46 |
+
"properties": {
|
| 47 |
+
"date": {
|
| 48 |
+
"type": "string"
|
| 49 |
+
},
|
| 50 |
+
"content-type": {
|
| 51 |
+
"type": "string"
|
| 52 |
+
},
|
| 53 |
+
"content-length": {
|
| 54 |
+
"type": "string"
|
| 55 |
+
},
|
| 56 |
+
"connection": {
|
| 57 |
+
"type": "string"
|
| 58 |
+
},
|
| 59 |
+
"x-amzn-requestid": {
|
| 60 |
+
"type": "string"
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"RetryAttempts": {
|
| 65 |
+
"type": "integer"
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|
toolbench/toolenv/tools/Communication/api2_ninja_network_utils.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "58ac91eee4b02c01e6ec7774",
|
| 3 |
+
"tool_description": "Network utils: ip geo, reverse ip, nslookup,",
|
| 4 |
+
"home_url": "https://rapidapi.com/faceplusplus/api/api2-ninja-network-utils/",
|
| 5 |
+
"name": "API2.NINJA - Network Utils",
|
| 6 |
+
"title": "API2.NINJA - Network Utils",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "API2.NINJA - Network Utils",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "reverse ip",
|
| 14 |
+
"url": "https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/reverse",
|
| 15 |
+
"description": "reverse IP api",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [
|
| 18 |
+
{
|
| 19 |
+
"name": "q",
|
| 20 |
+
"type": "STRING",
|
| 21 |
+
"description": "",
|
| 22 |
+
"default": "8.8.8.8"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"optional_parameters": [],
|
| 26 |
+
"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",
|
| 27 |
+
"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",
|
| 28 |
+
"test_endpoint": "",
|
| 29 |
+
"statuscode": 1,
|
| 30 |
+
"schema": ""
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "nslookup",
|
| 34 |
+
"url": "https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/nslookup",
|
| 35 |
+
"description": "Get nslookup",
|
| 36 |
+
"method": "POST",
|
| 37 |
+
"required_parameters": [
|
| 38 |
+
{
|
| 39 |
+
"name": "q",
|
| 40 |
+
"type": "STRING",
|
| 41 |
+
"description": "",
|
| 42 |
+
"default": "yahoo.com"
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"optional_parameters": [],
|
| 46 |
+
"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",
|
| 47 |
+
"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",
|
| 48 |
+
"test_endpoint": "",
|
| 49 |
+
"statuscode": 1,
|
| 50 |
+
"schema": ""
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"name": "IP geo",
|
| 54 |
+
"url": "https://garrylachman-api2-ninja-network-utils-v1.p.rapidapi.com/api2ninja/network/geo",
|
| 55 |
+
"description": "Get IP geo infomations like country, city, region & more",
|
| 56 |
+
"method": "POST",
|
| 57 |
+
"required_parameters": [
|
| 58 |
+
{
|
| 59 |
+
"name": "q",
|
| 60 |
+
"type": "STRING",
|
| 61 |
+
"description": "",
|
| 62 |
+
"default": "8.8.8.8"
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"optional_parameters": [],
|
| 66 |
+
"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",
|
| 67 |
+
"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",
|
| 68 |
+
"test_endpoint": "",
|
| 69 |
+
"statuscode": 1,
|
| 70 |
+
"schema": ""
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
}
|
toolbench/toolenv/tools/Communication/api_whatsapp.json
ADDED
|
@@ -0,0 +1,1133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_c07ea490-578c-417c-bda5-5c6a026d7cf2",
|
| 3 |
+
"tool_description": "Demo access for 3 days",
|
| 4 |
+
"home_url": "https://rapidapi.com/apimessengercom/api/api-whatsapp1/",
|
| 5 |
+
"name": "API WhatsApp",
|
| 6 |
+
"title": "API WhatsApp",
|
| 7 |
+
"pricing": "PAID",
|
| 8 |
+
"tool_name": "API WhatsApp",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "api-whatsapp1.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "/muteChat",
|
| 14 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/muteChat",
|
| 15 |
+
"description": " ",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"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",
|
| 20 |
+
"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",
|
| 21 |
+
"test_endpoint": "",
|
| 22 |
+
"statuscode": 200,
|
| 23 |
+
"schema": {
|
| 24 |
+
"type": "object",
|
| 25 |
+
"properties": {
|
| 26 |
+
"get": {
|
| 27 |
+
"type": "string"
|
| 28 |
+
},
|
| 29 |
+
"parameters": {
|
| 30 |
+
"type": "array"
|
| 31 |
+
},
|
| 32 |
+
"errors": {
|
| 33 |
+
"type": "array"
|
| 34 |
+
},
|
| 35 |
+
"results": {
|
| 36 |
+
"type": "integer"
|
| 37 |
+
},
|
| 38 |
+
"response": {
|
| 39 |
+
"type": "array",
|
| 40 |
+
"items": {
|
| 41 |
+
"type": "object"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name": "/unmuteChat",
|
| 49 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/unmuteChat",
|
| 50 |
+
"description": " ",
|
| 51 |
+
"method": "POST",
|
| 52 |
+
"required_parameters": [],
|
| 53 |
+
"optional_parameters": [],
|
| 54 |
+
"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",
|
| 55 |
+
"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",
|
| 56 |
+
"test_endpoint": "",
|
| 57 |
+
"statuscode": 200,
|
| 58 |
+
"schema": {
|
| 59 |
+
"type": "object",
|
| 60 |
+
"properties": {
|
| 61 |
+
"get": {
|
| 62 |
+
"type": "string"
|
| 63 |
+
},
|
| 64 |
+
"parameters": {
|
| 65 |
+
"type": "array"
|
| 66 |
+
},
|
| 67 |
+
"errors": {
|
| 68 |
+
"type": "array"
|
| 69 |
+
},
|
| 70 |
+
"results": {
|
| 71 |
+
"type": "integer"
|
| 72 |
+
},
|
| 73 |
+
"response": {
|
| 74 |
+
"type": "array",
|
| 75 |
+
"items": {
|
| 76 |
+
"type": "object"
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"name": "/markChatUnread",
|
| 84 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/markChatUnread",
|
| 85 |
+
"description": " ",
|
| 86 |
+
"method": "POST",
|
| 87 |
+
"required_parameters": [],
|
| 88 |
+
"optional_parameters": [],
|
| 89 |
+
"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",
|
| 90 |
+
"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",
|
| 91 |
+
"test_endpoint": "",
|
| 92 |
+
"statuscode": 200,
|
| 93 |
+
"schema": {
|
| 94 |
+
"type": "object",
|
| 95 |
+
"properties": {
|
| 96 |
+
"get": {
|
| 97 |
+
"type": "string"
|
| 98 |
+
},
|
| 99 |
+
"parameters": {
|
| 100 |
+
"type": "array"
|
| 101 |
+
},
|
| 102 |
+
"errors": {
|
| 103 |
+
"type": "array"
|
| 104 |
+
},
|
| 105 |
+
"results": {
|
| 106 |
+
"type": "integer"
|
| 107 |
+
},
|
| 108 |
+
"response": {
|
| 109 |
+
"type": "array",
|
| 110 |
+
"items": {
|
| 111 |
+
"type": "object"
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "/readChat",
|
| 119 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/readchat",
|
| 120 |
+
"description": " ",
|
| 121 |
+
"method": "POST",
|
| 122 |
+
"required_parameters": [],
|
| 123 |
+
"optional_parameters": [],
|
| 124 |
+
"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",
|
| 125 |
+
"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",
|
| 126 |
+
"test_endpoint": "",
|
| 127 |
+
"statuscode": 200,
|
| 128 |
+
"schema": {
|
| 129 |
+
"type": "object",
|
| 130 |
+
"properties": {
|
| 131 |
+
"get": {
|
| 132 |
+
"type": "string"
|
| 133 |
+
},
|
| 134 |
+
"parameters": {
|
| 135 |
+
"type": "array"
|
| 136 |
+
},
|
| 137 |
+
"errors": {
|
| 138 |
+
"type": "array"
|
| 139 |
+
},
|
| 140 |
+
"results": {
|
| 141 |
+
"type": "integer"
|
| 142 |
+
},
|
| 143 |
+
"response": {
|
| 144 |
+
"type": "array",
|
| 145 |
+
"items": {
|
| 146 |
+
"type": "object"
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"name": "/unarchiveChat",
|
| 154 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/unarchiveChat",
|
| 155 |
+
"description": " ",
|
| 156 |
+
"method": "POST",
|
| 157 |
+
"required_parameters": [],
|
| 158 |
+
"optional_parameters": [],
|
| 159 |
+
"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",
|
| 160 |
+
"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",
|
| 161 |
+
"test_endpoint": "",
|
| 162 |
+
"statuscode": 200,
|
| 163 |
+
"schema": {
|
| 164 |
+
"type": "object",
|
| 165 |
+
"properties": {
|
| 166 |
+
"get": {
|
| 167 |
+
"type": "string"
|
| 168 |
+
},
|
| 169 |
+
"parameters": {
|
| 170 |
+
"type": "array"
|
| 171 |
+
},
|
| 172 |
+
"errors": {
|
| 173 |
+
"type": "array"
|
| 174 |
+
},
|
| 175 |
+
"results": {
|
| 176 |
+
"type": "integer"
|
| 177 |
+
},
|
| 178 |
+
"response": {
|
| 179 |
+
"type": "array",
|
| 180 |
+
"items": {
|
| 181 |
+
"type": "object"
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"name": "/unpinChat",
|
| 189 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/unpinChat",
|
| 190 |
+
"description": " ",
|
| 191 |
+
"method": "POST",
|
| 192 |
+
"required_parameters": [],
|
| 193 |
+
"optional_parameters": [],
|
| 194 |
+
"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",
|
| 195 |
+
"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",
|
| 196 |
+
"test_endpoint": "",
|
| 197 |
+
"statuscode": 200,
|
| 198 |
+
"schema": {
|
| 199 |
+
"type": "object",
|
| 200 |
+
"properties": {
|
| 201 |
+
"get": {
|
| 202 |
+
"type": "string"
|
| 203 |
+
},
|
| 204 |
+
"parameters": {
|
| 205 |
+
"type": "array"
|
| 206 |
+
},
|
| 207 |
+
"errors": {
|
| 208 |
+
"type": "array"
|
| 209 |
+
},
|
| 210 |
+
"results": {
|
| 211 |
+
"type": "integer"
|
| 212 |
+
},
|
| 213 |
+
"response": {
|
| 214 |
+
"type": "array",
|
| 215 |
+
"items": {
|
| 216 |
+
"type": "object"
|
| 217 |
+
}
|
| 218 |
+
}
|
| 219 |
+
}
|
| 220 |
+
}
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"name": "/archiveChat",
|
| 224 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/archiveChat",
|
| 225 |
+
"description": " ",
|
| 226 |
+
"method": "POST",
|
| 227 |
+
"required_parameters": [],
|
| 228 |
+
"optional_parameters": [],
|
| 229 |
+
"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",
|
| 230 |
+
"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",
|
| 231 |
+
"test_endpoint": "",
|
| 232 |
+
"statuscode": 200,
|
| 233 |
+
"schema": {
|
| 234 |
+
"type": "object",
|
| 235 |
+
"properties": {
|
| 236 |
+
"get": {
|
| 237 |
+
"type": "string"
|
| 238 |
+
},
|
| 239 |
+
"parameters": {
|
| 240 |
+
"type": "array"
|
| 241 |
+
},
|
| 242 |
+
"errors": {
|
| 243 |
+
"type": "array"
|
| 244 |
+
},
|
| 245 |
+
"results": {
|
| 246 |
+
"type": "integer"
|
| 247 |
+
},
|
| 248 |
+
"response": {
|
| 249 |
+
"type": "array",
|
| 250 |
+
"items": {
|
| 251 |
+
"type": "object"
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"name": "/pinChat",
|
| 259 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/pinChat",
|
| 260 |
+
"description": " ",
|
| 261 |
+
"method": "POST",
|
| 262 |
+
"required_parameters": [],
|
| 263 |
+
"optional_parameters": [],
|
| 264 |
+
"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",
|
| 265 |
+
"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",
|
| 266 |
+
"test_endpoint": "",
|
| 267 |
+
"statuscode": 200,
|
| 268 |
+
"schema": {
|
| 269 |
+
"type": "object",
|
| 270 |
+
"properties": {
|
| 271 |
+
"get": {
|
| 272 |
+
"type": "string"
|
| 273 |
+
},
|
| 274 |
+
"parameters": {
|
| 275 |
+
"type": "array"
|
| 276 |
+
},
|
| 277 |
+
"errors": {
|
| 278 |
+
"type": "array"
|
| 279 |
+
},
|
| 280 |
+
"results": {
|
| 281 |
+
"type": "integer"
|
| 282 |
+
},
|
| 283 |
+
"response": {
|
| 284 |
+
"type": "array",
|
| 285 |
+
"items": {
|
| 286 |
+
"type": "object"
|
| 287 |
+
}
|
| 288 |
+
}
|
| 289 |
+
}
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"name": "/setWebhook",
|
| 294 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/setwebhook",
|
| 295 |
+
"description": " ",
|
| 296 |
+
"method": "POST",
|
| 297 |
+
"required_parameters": [],
|
| 298 |
+
"optional_parameters": [],
|
| 299 |
+
"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",
|
| 300 |
+
"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",
|
| 301 |
+
"test_endpoint": "",
|
| 302 |
+
"statuscode": 200,
|
| 303 |
+
"schema": {
|
| 304 |
+
"type": "object",
|
| 305 |
+
"properties": {
|
| 306 |
+
"get": {
|
| 307 |
+
"type": "string"
|
| 308 |
+
},
|
| 309 |
+
"parameters": {
|
| 310 |
+
"type": "array"
|
| 311 |
+
},
|
| 312 |
+
"errors": {
|
| 313 |
+
"type": "array"
|
| 314 |
+
},
|
| 315 |
+
"results": {
|
| 316 |
+
"type": "integer"
|
| 317 |
+
},
|
| 318 |
+
"response": {
|
| 319 |
+
"type": "array",
|
| 320 |
+
"items": {
|
| 321 |
+
"type": "object"
|
| 322 |
+
}
|
| 323 |
+
}
|
| 324 |
+
}
|
| 325 |
+
}
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"name": "/sendStateTyping",
|
| 329 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendStateTyping",
|
| 330 |
+
"description": " ",
|
| 331 |
+
"method": "POST",
|
| 332 |
+
"required_parameters": [],
|
| 333 |
+
"optional_parameters": [],
|
| 334 |
+
"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",
|
| 335 |
+
"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",
|
| 336 |
+
"test_endpoint": "",
|
| 337 |
+
"statuscode": 200,
|
| 338 |
+
"schema": {
|
| 339 |
+
"type": "object",
|
| 340 |
+
"properties": {
|
| 341 |
+
"get": {
|
| 342 |
+
"type": "string"
|
| 343 |
+
},
|
| 344 |
+
"parameters": {
|
| 345 |
+
"type": "array"
|
| 346 |
+
},
|
| 347 |
+
"errors": {
|
| 348 |
+
"type": "array"
|
| 349 |
+
},
|
| 350 |
+
"results": {
|
| 351 |
+
"type": "integer"
|
| 352 |
+
},
|
| 353 |
+
"response": {
|
| 354 |
+
"type": "array",
|
| 355 |
+
"items": {
|
| 356 |
+
"type": "object"
|
| 357 |
+
}
|
| 358 |
+
}
|
| 359 |
+
}
|
| 360 |
+
}
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"name": "/cancelPresence",
|
| 364 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/cancelpresence",
|
| 365 |
+
"description": " ",
|
| 366 |
+
"method": "POST",
|
| 367 |
+
"required_parameters": [],
|
| 368 |
+
"optional_parameters": [],
|
| 369 |
+
"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",
|
| 370 |
+
"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",
|
| 371 |
+
"test_endpoint": "",
|
| 372 |
+
"statuscode": 200,
|
| 373 |
+
"schema": {
|
| 374 |
+
"type": "object",
|
| 375 |
+
"properties": {
|
| 376 |
+
"get": {
|
| 377 |
+
"type": "string"
|
| 378 |
+
},
|
| 379 |
+
"parameters": {
|
| 380 |
+
"type": "array"
|
| 381 |
+
},
|
| 382 |
+
"errors": {
|
| 383 |
+
"type": "array"
|
| 384 |
+
},
|
| 385 |
+
"results": {
|
| 386 |
+
"type": "integer"
|
| 387 |
+
},
|
| 388 |
+
"response": {
|
| 389 |
+
"type": "array",
|
| 390 |
+
"items": {
|
| 391 |
+
"type": "object"
|
| 392 |
+
}
|
| 393 |
+
}
|
| 394 |
+
}
|
| 395 |
+
}
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"name": "/clearState",
|
| 399 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/clearState",
|
| 400 |
+
"description": " ",
|
| 401 |
+
"method": "POST",
|
| 402 |
+
"required_parameters": [],
|
| 403 |
+
"optional_parameters": [],
|
| 404 |
+
"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",
|
| 405 |
+
"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",
|
| 406 |
+
"test_endpoint": "",
|
| 407 |
+
"statuscode": 200,
|
| 408 |
+
"schema": {
|
| 409 |
+
"type": "object",
|
| 410 |
+
"properties": {
|
| 411 |
+
"get": {
|
| 412 |
+
"type": "string"
|
| 413 |
+
},
|
| 414 |
+
"parameters": {
|
| 415 |
+
"type": "array"
|
| 416 |
+
},
|
| 417 |
+
"errors": {
|
| 418 |
+
"type": "array"
|
| 419 |
+
},
|
| 420 |
+
"results": {
|
| 421 |
+
"type": "integer"
|
| 422 |
+
},
|
| 423 |
+
"response": {
|
| 424 |
+
"type": "array",
|
| 425 |
+
"items": {
|
| 426 |
+
"type": "object"
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"name": "/sendStateRecording",
|
| 434 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendStateRecording",
|
| 435 |
+
"description": " ",
|
| 436 |
+
"method": "POST",
|
| 437 |
+
"required_parameters": [],
|
| 438 |
+
"optional_parameters": [],
|
| 439 |
+
"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",
|
| 440 |
+
"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",
|
| 441 |
+
"test_endpoint": "",
|
| 442 |
+
"statuscode": 200,
|
| 443 |
+
"schema": {
|
| 444 |
+
"type": "object",
|
| 445 |
+
"properties": {
|
| 446 |
+
"get": {
|
| 447 |
+
"type": "string"
|
| 448 |
+
},
|
| 449 |
+
"parameters": {
|
| 450 |
+
"type": "array"
|
| 451 |
+
},
|
| 452 |
+
"errors": {
|
| 453 |
+
"type": "array"
|
| 454 |
+
},
|
| 455 |
+
"results": {
|
| 456 |
+
"type": "integer"
|
| 457 |
+
},
|
| 458 |
+
"response": {
|
| 459 |
+
"type": "array",
|
| 460 |
+
"items": {
|
| 461 |
+
"type": "object"
|
| 462 |
+
}
|
| 463 |
+
}
|
| 464 |
+
}
|
| 465 |
+
}
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"name": "/setSubjectGroup",
|
| 469 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/setSubjectGroup",
|
| 470 |
+
"description": " ",
|
| 471 |
+
"method": "POST",
|
| 472 |
+
"required_parameters": [],
|
| 473 |
+
"optional_parameters": [],
|
| 474 |
+
"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",
|
| 475 |
+
"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",
|
| 476 |
+
"test_endpoint": "",
|
| 477 |
+
"statuscode": 200,
|
| 478 |
+
"schema": {
|
| 479 |
+
"type": "object",
|
| 480 |
+
"properties": {
|
| 481 |
+
"get": {
|
| 482 |
+
"type": "string"
|
| 483 |
+
},
|
| 484 |
+
"parameters": {
|
| 485 |
+
"type": "array"
|
| 486 |
+
},
|
| 487 |
+
"errors": {
|
| 488 |
+
"type": "array"
|
| 489 |
+
},
|
| 490 |
+
"results": {
|
| 491 |
+
"type": "integer"
|
| 492 |
+
},
|
| 493 |
+
"response": {
|
| 494 |
+
"type": "array",
|
| 495 |
+
"items": {
|
| 496 |
+
"type": "object"
|
| 497 |
+
}
|
| 498 |
+
}
|
| 499 |
+
}
|
| 500 |
+
}
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"name": "/addGroupParticipant",
|
| 504 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/addgroupparticipant",
|
| 505 |
+
"description": " ",
|
| 506 |
+
"method": "POST",
|
| 507 |
+
"required_parameters": [],
|
| 508 |
+
"optional_parameters": [],
|
| 509 |
+
"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",
|
| 510 |
+
"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",
|
| 511 |
+
"test_endpoint": "",
|
| 512 |
+
"statuscode": 200,
|
| 513 |
+
"schema": {
|
| 514 |
+
"type": "object",
|
| 515 |
+
"properties": {
|
| 516 |
+
"get": {
|
| 517 |
+
"type": "string"
|
| 518 |
+
},
|
| 519 |
+
"parameters": {
|
| 520 |
+
"type": "array"
|
| 521 |
+
},
|
| 522 |
+
"errors": {
|
| 523 |
+
"type": "array"
|
| 524 |
+
},
|
| 525 |
+
"results": {
|
| 526 |
+
"type": "integer"
|
| 527 |
+
},
|
| 528 |
+
"response": {
|
| 529 |
+
"type": "array",
|
| 530 |
+
"items": {
|
| 531 |
+
"type": "object"
|
| 532 |
+
}
|
| 533 |
+
}
|
| 534 |
+
}
|
| 535 |
+
}
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"name": "/setDescriptionGroup",
|
| 539 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/setDescriptionGroup",
|
| 540 |
+
"description": " ",
|
| 541 |
+
"method": "POST",
|
| 542 |
+
"required_parameters": [],
|
| 543 |
+
"optional_parameters": [],
|
| 544 |
+
"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",
|
| 545 |
+
"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",
|
| 546 |
+
"test_endpoint": "",
|
| 547 |
+
"statuscode": 200,
|
| 548 |
+
"schema": {
|
| 549 |
+
"type": "object",
|
| 550 |
+
"properties": {
|
| 551 |
+
"get": {
|
| 552 |
+
"type": "string"
|
| 553 |
+
},
|
| 554 |
+
"parameters": {
|
| 555 |
+
"type": "array"
|
| 556 |
+
},
|
| 557 |
+
"errors": {
|
| 558 |
+
"type": "array"
|
| 559 |
+
},
|
| 560 |
+
"results": {
|
| 561 |
+
"type": "integer"
|
| 562 |
+
},
|
| 563 |
+
"response": {
|
| 564 |
+
"type": "array",
|
| 565 |
+
"items": {
|
| 566 |
+
"type": "object"
|
| 567 |
+
}
|
| 568 |
+
}
|
| 569 |
+
}
|
| 570 |
+
}
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"name": "/leaveGroup",
|
| 574 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/leavegroup",
|
| 575 |
+
"description": " ",
|
| 576 |
+
"method": "POST",
|
| 577 |
+
"required_parameters": [],
|
| 578 |
+
"optional_parameters": [],
|
| 579 |
+
"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",
|
| 580 |
+
"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",
|
| 581 |
+
"test_endpoint": "",
|
| 582 |
+
"statuscode": 200,
|
| 583 |
+
"schema": {
|
| 584 |
+
"type": "object",
|
| 585 |
+
"properties": {
|
| 586 |
+
"get": {
|
| 587 |
+
"type": "string"
|
| 588 |
+
},
|
| 589 |
+
"parameters": {
|
| 590 |
+
"type": "array"
|
| 591 |
+
},
|
| 592 |
+
"errors": {
|
| 593 |
+
"type": "array"
|
| 594 |
+
},
|
| 595 |
+
"results": {
|
| 596 |
+
"type": "integer"
|
| 597 |
+
},
|
| 598 |
+
"response": {
|
| 599 |
+
"type": "array",
|
| 600 |
+
"items": {
|
| 601 |
+
"type": "object"
|
| 602 |
+
}
|
| 603 |
+
}
|
| 604 |
+
}
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"name": "/sendFile",
|
| 609 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendfile",
|
| 610 |
+
"description": " ",
|
| 611 |
+
"method": "POST",
|
| 612 |
+
"required_parameters": [],
|
| 613 |
+
"optional_parameters": [],
|
| 614 |
+
"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",
|
| 615 |
+
"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",
|
| 616 |
+
"test_endpoint": "",
|
| 617 |
+
"statuscode": 200,
|
| 618 |
+
"schema": {
|
| 619 |
+
"type": "object",
|
| 620 |
+
"properties": {
|
| 621 |
+
"get": {
|
| 622 |
+
"type": "string"
|
| 623 |
+
},
|
| 624 |
+
"parameters": {
|
| 625 |
+
"type": "array"
|
| 626 |
+
},
|
| 627 |
+
"errors": {
|
| 628 |
+
"type": "array"
|
| 629 |
+
},
|
| 630 |
+
"results": {
|
| 631 |
+
"type": "integer"
|
| 632 |
+
},
|
| 633 |
+
"response": {
|
| 634 |
+
"type": "array",
|
| 635 |
+
"items": {
|
| 636 |
+
"type": "object"
|
| 637 |
+
}
|
| 638 |
+
}
|
| 639 |
+
}
|
| 640 |
+
}
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"name": "/promoteGroupParticipant",
|
| 644 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/promotegroupparticipant",
|
| 645 |
+
"description": " ",
|
| 646 |
+
"method": "POST",
|
| 647 |
+
"required_parameters": [],
|
| 648 |
+
"optional_parameters": [],
|
| 649 |
+
"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",
|
| 650 |
+
"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",
|
| 651 |
+
"test_endpoint": "",
|
| 652 |
+
"statuscode": 200,
|
| 653 |
+
"schema": {
|
| 654 |
+
"type": "object",
|
| 655 |
+
"properties": {
|
| 656 |
+
"get": {
|
| 657 |
+
"type": "string"
|
| 658 |
+
},
|
| 659 |
+
"parameters": {
|
| 660 |
+
"type": "array"
|
| 661 |
+
},
|
| 662 |
+
"errors": {
|
| 663 |
+
"type": "array"
|
| 664 |
+
},
|
| 665 |
+
"results": {
|
| 666 |
+
"type": "integer"
|
| 667 |
+
},
|
| 668 |
+
"response": {
|
| 669 |
+
"type": "array",
|
| 670 |
+
"items": {
|
| 671 |
+
"type": "object"
|
| 672 |
+
}
|
| 673 |
+
}
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"name": "/sendFileUrl",
|
| 679 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendfileurl",
|
| 680 |
+
"description": " ",
|
| 681 |
+
"method": "POST",
|
| 682 |
+
"required_parameters": [],
|
| 683 |
+
"optional_parameters": [],
|
| 684 |
+
"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",
|
| 685 |
+
"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",
|
| 686 |
+
"test_endpoint": "",
|
| 687 |
+
"statuscode": 200,
|
| 688 |
+
"schema": {
|
| 689 |
+
"type": "object",
|
| 690 |
+
"properties": {
|
| 691 |
+
"get": {
|
| 692 |
+
"type": "string"
|
| 693 |
+
},
|
| 694 |
+
"parameters": {
|
| 695 |
+
"type": "array"
|
| 696 |
+
},
|
| 697 |
+
"errors": {
|
| 698 |
+
"type": "array"
|
| 699 |
+
},
|
| 700 |
+
"results": {
|
| 701 |
+
"type": "integer"
|
| 702 |
+
},
|
| 703 |
+
"response": {
|
| 704 |
+
"type": "array",
|
| 705 |
+
"items": {
|
| 706 |
+
"type": "object"
|
| 707 |
+
}
|
| 708 |
+
}
|
| 709 |
+
}
|
| 710 |
+
}
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"name": "/sendContact",
|
| 714 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendcontact",
|
| 715 |
+
"description": " ",
|
| 716 |
+
"method": "POST",
|
| 717 |
+
"required_parameters": [],
|
| 718 |
+
"optional_parameters": [],
|
| 719 |
+
"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",
|
| 720 |
+
"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",
|
| 721 |
+
"test_endpoint": "",
|
| 722 |
+
"statuscode": 200,
|
| 723 |
+
"schema": {
|
| 724 |
+
"type": "object",
|
| 725 |
+
"properties": {
|
| 726 |
+
"get": {
|
| 727 |
+
"type": "string"
|
| 728 |
+
},
|
| 729 |
+
"parameters": {
|
| 730 |
+
"type": "array"
|
| 731 |
+
},
|
| 732 |
+
"errors": {
|
| 733 |
+
"type": "array"
|
| 734 |
+
},
|
| 735 |
+
"results": {
|
| 736 |
+
"type": "integer"
|
| 737 |
+
},
|
| 738 |
+
"response": {
|
| 739 |
+
"type": "array",
|
| 740 |
+
"items": {
|
| 741 |
+
"type": "object"
|
| 742 |
+
}
|
| 743 |
+
}
|
| 744 |
+
}
|
| 745 |
+
}
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"name": "/sendMessage",
|
| 749 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendmessage",
|
| 750 |
+
"description": " ",
|
| 751 |
+
"method": "POST",
|
| 752 |
+
"required_parameters": [],
|
| 753 |
+
"optional_parameters": [],
|
| 754 |
+
"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",
|
| 755 |
+
"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",
|
| 756 |
+
"test_endpoint": "",
|
| 757 |
+
"statuscode": 200,
|
| 758 |
+
"schema": {
|
| 759 |
+
"type": "object",
|
| 760 |
+
"properties": {
|
| 761 |
+
"get": {
|
| 762 |
+
"type": "string"
|
| 763 |
+
},
|
| 764 |
+
"parameters": {
|
| 765 |
+
"type": "array"
|
| 766 |
+
},
|
| 767 |
+
"errors": {
|
| 768 |
+
"type": "array"
|
| 769 |
+
},
|
| 770 |
+
"results": {
|
| 771 |
+
"type": "integer"
|
| 772 |
+
},
|
| 773 |
+
"response": {
|
| 774 |
+
"type": "array",
|
| 775 |
+
"items": {
|
| 776 |
+
"type": "object"
|
| 777 |
+
}
|
| 778 |
+
}
|
| 779 |
+
}
|
| 780 |
+
}
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"name": "/sendButton",
|
| 784 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendbutton",
|
| 785 |
+
"description": " ",
|
| 786 |
+
"method": "POST",
|
| 787 |
+
"required_parameters": [],
|
| 788 |
+
"optional_parameters": [],
|
| 789 |
+
"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",
|
| 790 |
+
"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",
|
| 791 |
+
"test_endpoint": "",
|
| 792 |
+
"statuscode": 200,
|
| 793 |
+
"schema": {
|
| 794 |
+
"type": "object",
|
| 795 |
+
"properties": {
|
| 796 |
+
"get": {
|
| 797 |
+
"type": "string"
|
| 798 |
+
},
|
| 799 |
+
"parameters": {
|
| 800 |
+
"type": "array"
|
| 801 |
+
},
|
| 802 |
+
"errors": {
|
| 803 |
+
"type": "array"
|
| 804 |
+
},
|
| 805 |
+
"results": {
|
| 806 |
+
"type": "integer"
|
| 807 |
+
},
|
| 808 |
+
"response": {
|
| 809 |
+
"type": "array",
|
| 810 |
+
"items": {
|
| 811 |
+
"type": "object"
|
| 812 |
+
}
|
| 813 |
+
}
|
| 814 |
+
}
|
| 815 |
+
}
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"name": "/demoteGroupParticipant",
|
| 819 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/demotegroupparticipant",
|
| 820 |
+
"description": " ",
|
| 821 |
+
"method": "POST",
|
| 822 |
+
"required_parameters": [],
|
| 823 |
+
"optional_parameters": [],
|
| 824 |
+
"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",
|
| 825 |
+
"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",
|
| 826 |
+
"test_endpoint": "",
|
| 827 |
+
"statuscode": 200,
|
| 828 |
+
"schema": {
|
| 829 |
+
"type": "object",
|
| 830 |
+
"properties": {
|
| 831 |
+
"get": {
|
| 832 |
+
"type": "string"
|
| 833 |
+
},
|
| 834 |
+
"parameters": {
|
| 835 |
+
"type": "array"
|
| 836 |
+
},
|
| 837 |
+
"errors": {
|
| 838 |
+
"type": "array"
|
| 839 |
+
},
|
| 840 |
+
"results": {
|
| 841 |
+
"type": "integer"
|
| 842 |
+
},
|
| 843 |
+
"response": {
|
| 844 |
+
"type": "array",
|
| 845 |
+
"items": {
|
| 846 |
+
"type": "object"
|
| 847 |
+
}
|
| 848 |
+
}
|
| 849 |
+
}
|
| 850 |
+
}
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"name": "/setPresence",
|
| 854 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/setpresence",
|
| 855 |
+
"description": " ",
|
| 856 |
+
"method": "POST",
|
| 857 |
+
"required_parameters": [],
|
| 858 |
+
"optional_parameters": [],
|
| 859 |
+
"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",
|
| 860 |
+
"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",
|
| 861 |
+
"test_endpoint": "",
|
| 862 |
+
"statuscode": 200,
|
| 863 |
+
"schema": {
|
| 864 |
+
"type": "object",
|
| 865 |
+
"properties": {
|
| 866 |
+
"get": {
|
| 867 |
+
"type": "string"
|
| 868 |
+
},
|
| 869 |
+
"parameters": {
|
| 870 |
+
"type": "array"
|
| 871 |
+
},
|
| 872 |
+
"errors": {
|
| 873 |
+
"type": "array"
|
| 874 |
+
},
|
| 875 |
+
"results": {
|
| 876 |
+
"type": "integer"
|
| 877 |
+
},
|
| 878 |
+
"response": {
|
| 879 |
+
"type": "array",
|
| 880 |
+
"items": {
|
| 881 |
+
"type": "object"
|
| 882 |
+
}
|
| 883 |
+
}
|
| 884 |
+
}
|
| 885 |
+
}
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"name": "/group",
|
| 889 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/group",
|
| 890 |
+
"description": " ",
|
| 891 |
+
"method": "POST",
|
| 892 |
+
"required_parameters": [],
|
| 893 |
+
"optional_parameters": [],
|
| 894 |
+
"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",
|
| 895 |
+
"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",
|
| 896 |
+
"test_endpoint": "",
|
| 897 |
+
"statuscode": 200,
|
| 898 |
+
"schema": {
|
| 899 |
+
"type": "object",
|
| 900 |
+
"properties": {
|
| 901 |
+
"get": {
|
| 902 |
+
"type": "string"
|
| 903 |
+
},
|
| 904 |
+
"parameters": {
|
| 905 |
+
"type": "array"
|
| 906 |
+
},
|
| 907 |
+
"errors": {
|
| 908 |
+
"type": "array"
|
| 909 |
+
},
|
| 910 |
+
"results": {
|
| 911 |
+
"type": "integer"
|
| 912 |
+
},
|
| 913 |
+
"response": {
|
| 914 |
+
"type": "array",
|
| 915 |
+
"items": {
|
| 916 |
+
"type": "object"
|
| 917 |
+
}
|
| 918 |
+
}
|
| 919 |
+
}
|
| 920 |
+
}
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"name": "/sendLocation",
|
| 924 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendlocation",
|
| 925 |
+
"description": " ",
|
| 926 |
+
"method": "POST",
|
| 927 |
+
"required_parameters": [],
|
| 928 |
+
"optional_parameters": [],
|
| 929 |
+
"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",
|
| 930 |
+
"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",
|
| 931 |
+
"test_endpoint": "",
|
| 932 |
+
"statuscode": 200,
|
| 933 |
+
"schema": {
|
| 934 |
+
"type": "object",
|
| 935 |
+
"properties": {
|
| 936 |
+
"get": {
|
| 937 |
+
"type": "string"
|
| 938 |
+
},
|
| 939 |
+
"parameters": {
|
| 940 |
+
"type": "array"
|
| 941 |
+
},
|
| 942 |
+
"errors": {
|
| 943 |
+
"type": "array"
|
| 944 |
+
},
|
| 945 |
+
"results": {
|
| 946 |
+
"type": "integer"
|
| 947 |
+
},
|
| 948 |
+
"response": {
|
| 949 |
+
"type": "array",
|
| 950 |
+
"items": {
|
| 951 |
+
"type": "object"
|
| 952 |
+
}
|
| 953 |
+
}
|
| 954 |
+
}
|
| 955 |
+
}
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"name": "/setSettingsGroup",
|
| 959 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/setSettingsGroup",
|
| 960 |
+
"description": " ",
|
| 961 |
+
"method": "POST",
|
| 962 |
+
"required_parameters": [],
|
| 963 |
+
"optional_parameters": [],
|
| 964 |
+
"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",
|
| 965 |
+
"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",
|
| 966 |
+
"test_endpoint": "",
|
| 967 |
+
"statuscode": 200,
|
| 968 |
+
"schema": {
|
| 969 |
+
"type": "object",
|
| 970 |
+
"properties": {
|
| 971 |
+
"get": {
|
| 972 |
+
"type": "string"
|
| 973 |
+
},
|
| 974 |
+
"parameters": {
|
| 975 |
+
"type": "array"
|
| 976 |
+
},
|
| 977 |
+
"errors": {
|
| 978 |
+
"type": "array"
|
| 979 |
+
},
|
| 980 |
+
"results": {
|
| 981 |
+
"type": "integer"
|
| 982 |
+
},
|
| 983 |
+
"response": {
|
| 984 |
+
"type": "array",
|
| 985 |
+
"items": {
|
| 986 |
+
"type": "object"
|
| 987 |
+
}
|
| 988 |
+
}
|
| 989 |
+
}
|
| 990 |
+
}
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"name": "/setPictureUrl",
|
| 994 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/setPictureUrl",
|
| 995 |
+
"description": " ",
|
| 996 |
+
"method": "POST",
|
| 997 |
+
"required_parameters": [],
|
| 998 |
+
"optional_parameters": [],
|
| 999 |
+
"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",
|
| 1000 |
+
"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",
|
| 1001 |
+
"test_endpoint": "",
|
| 1002 |
+
"statuscode": 200,
|
| 1003 |
+
"schema": {
|
| 1004 |
+
"type": "object",
|
| 1005 |
+
"properties": {
|
| 1006 |
+
"get": {
|
| 1007 |
+
"type": "string"
|
| 1008 |
+
},
|
| 1009 |
+
"parameters": {
|
| 1010 |
+
"type": "array"
|
| 1011 |
+
},
|
| 1012 |
+
"errors": {
|
| 1013 |
+
"type": "array"
|
| 1014 |
+
},
|
| 1015 |
+
"results": {
|
| 1016 |
+
"type": "integer"
|
| 1017 |
+
},
|
| 1018 |
+
"response": {
|
| 1019 |
+
"type": "array",
|
| 1020 |
+
"items": {
|
| 1021 |
+
"type": "object"
|
| 1022 |
+
}
|
| 1023 |
+
}
|
| 1024 |
+
}
|
| 1025 |
+
}
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"name": "/sendList",
|
| 1029 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/sendlist",
|
| 1030 |
+
"description": " ",
|
| 1031 |
+
"method": "POST",
|
| 1032 |
+
"required_parameters": [],
|
| 1033 |
+
"optional_parameters": [],
|
| 1034 |
+
"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",
|
| 1035 |
+
"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",
|
| 1036 |
+
"test_endpoint": "",
|
| 1037 |
+
"statuscode": 200,
|
| 1038 |
+
"schema": {
|
| 1039 |
+
"type": "object",
|
| 1040 |
+
"properties": {
|
| 1041 |
+
"get": {
|
| 1042 |
+
"type": "string"
|
| 1043 |
+
},
|
| 1044 |
+
"parameters": {
|
| 1045 |
+
"type": "array"
|
| 1046 |
+
},
|
| 1047 |
+
"errors": {
|
| 1048 |
+
"type": "array"
|
| 1049 |
+
},
|
| 1050 |
+
"results": {
|
| 1051 |
+
"type": "integer"
|
| 1052 |
+
},
|
| 1053 |
+
"response": {
|
| 1054 |
+
"type": "array",
|
| 1055 |
+
"items": {
|
| 1056 |
+
"type": "object"
|
| 1057 |
+
}
|
| 1058 |
+
}
|
| 1059 |
+
}
|
| 1060 |
+
}
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"name": "/reboot",
|
| 1064 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/reboot",
|
| 1065 |
+
"description": " ",
|
| 1066 |
+
"method": "POST",
|
| 1067 |
+
"required_parameters": [],
|
| 1068 |
+
"optional_parameters": [],
|
| 1069 |
+
"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",
|
| 1070 |
+
"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",
|
| 1071 |
+
"test_endpoint": "",
|
| 1072 |
+
"statuscode": 200,
|
| 1073 |
+
"schema": {
|
| 1074 |
+
"type": "object",
|
| 1075 |
+
"properties": {
|
| 1076 |
+
"get": {
|
| 1077 |
+
"type": "string"
|
| 1078 |
+
},
|
| 1079 |
+
"parameters": {
|
| 1080 |
+
"type": "array"
|
| 1081 |
+
},
|
| 1082 |
+
"errors": {
|
| 1083 |
+
"type": "array"
|
| 1084 |
+
},
|
| 1085 |
+
"results": {
|
| 1086 |
+
"type": "integer"
|
| 1087 |
+
},
|
| 1088 |
+
"response": {
|
| 1089 |
+
"type": "array",
|
| 1090 |
+
"items": {
|
| 1091 |
+
"type": "object"
|
| 1092 |
+
}
|
| 1093 |
+
}
|
| 1094 |
+
}
|
| 1095 |
+
}
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"name": "/removeGroupParticipant",
|
| 1099 |
+
"url": "https://api-whatsapp1.p.rapidapi.com/removegroupparticipant",
|
| 1100 |
+
"description": " ",
|
| 1101 |
+
"method": "POST",
|
| 1102 |
+
"required_parameters": [],
|
| 1103 |
+
"optional_parameters": [],
|
| 1104 |
+
"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",
|
| 1105 |
+
"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",
|
| 1106 |
+
"test_endpoint": "",
|
| 1107 |
+
"statuscode": 200,
|
| 1108 |
+
"schema": {
|
| 1109 |
+
"type": "object",
|
| 1110 |
+
"properties": {
|
| 1111 |
+
"get": {
|
| 1112 |
+
"type": "string"
|
| 1113 |
+
},
|
| 1114 |
+
"parameters": {
|
| 1115 |
+
"type": "array"
|
| 1116 |
+
},
|
| 1117 |
+
"errors": {
|
| 1118 |
+
"type": "array"
|
| 1119 |
+
},
|
| 1120 |
+
"results": {
|
| 1121 |
+
"type": "integer"
|
| 1122 |
+
},
|
| 1123 |
+
"response": {
|
| 1124 |
+
"type": "array",
|
| 1125 |
+
"items": {
|
| 1126 |
+
"type": "object"
|
| 1127 |
+
}
|
| 1128 |
+
}
|
| 1129 |
+
}
|
| 1130 |
+
}
|
| 1131 |
+
}
|
| 1132 |
+
]
|
| 1133 |
+
}
|
toolbench/toolenv/tools/Communication/api_whatsapp/api.py
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def chats(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
" "
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/chats"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def webhook(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
" "
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/webhook"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def status(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
" "
|
| 54 |
+
|
| 55 |
+
"""
|
| 56 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/status"
|
| 57 |
+
querystring = {}
|
| 58 |
+
|
| 59 |
+
headers = {
|
| 60 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 61 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 66 |
+
try:
|
| 67 |
+
observation = response.json()
|
| 68 |
+
except:
|
| 69 |
+
observation = response.text
|
| 70 |
+
return observation
|
| 71 |
+
|
| 72 |
+
def checknumber(is_id: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 73 |
+
"""
|
| 74 |
+
" "
|
| 75 |
+
|
| 76 |
+
"""
|
| 77 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/checknumber"
|
| 78 |
+
querystring = {'id': is_id, }
|
| 79 |
+
|
| 80 |
+
headers = {
|
| 81 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 82 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 87 |
+
try:
|
| 88 |
+
observation = response.json()
|
| 89 |
+
except:
|
| 90 |
+
observation = response.text
|
| 91 |
+
return observation
|
| 92 |
+
|
| 93 |
+
def messages(new: str='true', page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 94 |
+
"""
|
| 95 |
+
" "
|
| 96 |
+
|
| 97 |
+
"""
|
| 98 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/messages"
|
| 99 |
+
querystring = {}
|
| 100 |
+
if new:
|
| 101 |
+
querystring['new'] = new
|
| 102 |
+
if page:
|
| 103 |
+
querystring['page'] = page
|
| 104 |
+
|
| 105 |
+
headers = {
|
| 106 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 107 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 112 |
+
try:
|
| 113 |
+
observation = response.json()
|
| 114 |
+
except:
|
| 115 |
+
observation = response.text
|
| 116 |
+
return observation
|
| 117 |
+
|
| 118 |
+
def contacts(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 119 |
+
"""
|
| 120 |
+
" "
|
| 121 |
+
|
| 122 |
+
"""
|
| 123 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/contacts"
|
| 124 |
+
querystring = {}
|
| 125 |
+
|
| 126 |
+
headers = {
|
| 127 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 128 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 133 |
+
try:
|
| 134 |
+
observation = response.json()
|
| 135 |
+
except:
|
| 136 |
+
observation = response.text
|
| 137 |
+
return observation
|
| 138 |
+
|
| 139 |
+
def info(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 140 |
+
"""
|
| 141 |
+
" "
|
| 142 |
+
|
| 143 |
+
"""
|
| 144 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/info"
|
| 145 |
+
querystring = {}
|
| 146 |
+
|
| 147 |
+
headers = {
|
| 148 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 149 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 154 |
+
try:
|
| 155 |
+
observation = response.json()
|
| 156 |
+
except:
|
| 157 |
+
observation = response.text
|
| 158 |
+
return observation
|
| 159 |
+
|
| 160 |
+
def messagesqueue(page: int=1, filter: str='message,contact,file,fileurl,list,location,button', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 161 |
+
"""
|
| 162 |
+
" "
|
| 163 |
+
|
| 164 |
+
"""
|
| 165 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/messagesqueue"
|
| 166 |
+
querystring = {}
|
| 167 |
+
if page:
|
| 168 |
+
querystring['page'] = page
|
| 169 |
+
if filter:
|
| 170 |
+
querystring['filter'] = filter
|
| 171 |
+
|
| 172 |
+
headers = {
|
| 173 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 174 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 179 |
+
try:
|
| 180 |
+
observation = response.json()
|
| 181 |
+
except:
|
| 182 |
+
observation = response.text
|
| 183 |
+
return observation
|
| 184 |
+
|
| 185 |
+
def go(img: str='true', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 186 |
+
"""
|
| 187 |
+
" "
|
| 188 |
+
|
| 189 |
+
"""
|
| 190 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/go"
|
| 191 |
+
querystring = {}
|
| 192 |
+
if img:
|
| 193 |
+
querystring['img'] = img
|
| 194 |
+
|
| 195 |
+
headers = {
|
| 196 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 197 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 202 |
+
try:
|
| 203 |
+
observation = response.json()
|
| 204 |
+
except:
|
| 205 |
+
observation = response.text
|
| 206 |
+
return observation
|
| 207 |
+
|
| 208 |
+
def messagesinchat(new: str='true', page: int=1, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 209 |
+
"""
|
| 210 |
+
" "
|
| 211 |
+
|
| 212 |
+
"""
|
| 213 |
+
url = f"https://api-whatsapp1.p.rapidapi.com/messagesinchat"
|
| 214 |
+
querystring = {}
|
| 215 |
+
if new:
|
| 216 |
+
querystring['new'] = new
|
| 217 |
+
if page:
|
| 218 |
+
querystring['page'] = page
|
| 219 |
+
|
| 220 |
+
headers = {
|
| 221 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 222 |
+
"X-RapidAPI-Host": "api-whatsapp1.p.rapidapi.com"
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 227 |
+
try:
|
| 228 |
+
observation = response.json()
|
| 229 |
+
except:
|
| 230 |
+
observation = response.text
|
| 231 |
+
return observation
|
| 232 |
+
|
toolbench/toolenv/tools/Communication/approves_2_0.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Approves 2.0",
|
| 3 |
+
"tool_description":"sdfsdfsd",
|
| 4 |
+
"title":"Approves 2.0",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/delete-my-org-4-delete-my-org-4-default/api/approves-2-0/",
|
| 8 |
+
"host":"approves-2-0.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"dsf",
|
| 12 |
+
"url":"https://approves-2-0.p.rapidapi.com/posts",
|
| 13 |
+
"description":"ewrferf",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/approves_2_0/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def dsf(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"ewrferf"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://approves-2-0.p.rapidapi.com/posts"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "approves-2-0.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator.json
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"AR Code, Augmented Reality Codes generator",
|
| 3 |
+
"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.",
|
| 4 |
+
"title":"AR Code, Augmented Reality Codes generator",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/ar-code-ar-code-default/api/ar-code-augmented-reality-codes-generator/",
|
| 8 |
+
"host":"ar-code-augmented-reality-codes-generator.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Create an AR Code",
|
| 12 |
+
"url":"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_api",
|
| 13 |
+
"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.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"text",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"Text to display",
|
| 20 |
+
"default":"AR Code"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name":"backgroundheight",
|
| 24 |
+
"type":"NUMBER",
|
| 25 |
+
"description":"Plane behind the text height (Example: 2)",
|
| 26 |
+
"default":"2"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"backgroundcolor",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"Plane behind the text Hex color (Example: FFFFFF)",
|
| 32 |
+
"default":"FFFFFF"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name":"backgroundwidth",
|
| 36 |
+
"type":"NUMBER",
|
| 37 |
+
"description":"Plane behind the text width (Example: 4)",
|
| 38 |
+
"default":"4"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name":"api_key",
|
| 42 |
+
"type":"STRING",
|
| 43 |
+
"description":"Get your API key for FREE on : https://ar-code.com/",
|
| 44 |
+
"default":""
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name":"textcolor",
|
| 48 |
+
"type":"STRING",
|
| 49 |
+
"description":"Hex text color (Example: ff0000)",
|
| 50 |
+
"default":"000000"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"name":"textsize",
|
| 54 |
+
"type":"NUMBER",
|
| 55 |
+
"description":"Text size (Example: 8)",
|
| 56 |
+
"default":"6"
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"optional_parameters":[],
|
| 60 |
+
"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",
|
| 61 |
+
"statuscode":111,
|
| 62 |
+
"body":"",
|
| 63 |
+
"headers":"",
|
| 64 |
+
"schema":""
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name":"Scans statistics",
|
| 68 |
+
"url":"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_stats_api",
|
| 69 |
+
"description":"Scans number for an AR Code with its referenceID and password.",
|
| 70 |
+
"method":"GET",
|
| 71 |
+
"required_parameters":[
|
| 72 |
+
{
|
| 73 |
+
"name":"api_key",
|
| 74 |
+
"type":"STRING",
|
| 75 |
+
"description":"Get your API key for FREE on : https://ar-code.com/",
|
| 76 |
+
"default":""
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name":"referenceid",
|
| 80 |
+
"type":"STRING",
|
| 81 |
+
"description":"",
|
| 82 |
+
"default":""
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"optional_parameters":[],
|
| 86 |
+
"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",
|
| 87 |
+
"statuscode":111,
|
| 88 |
+
"body":"",
|
| 89 |
+
"headers":"",
|
| 90 |
+
"schema":""
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"name":"Edit an AR Code",
|
| 94 |
+
"url":"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_edit_api",
|
| 95 |
+
"description":"To edit an AR Code please indicate its referenceID.\n\nEditable data: text, textcolor, textsize, backgroundwidth, backgroundheight, backgroundcolor",
|
| 96 |
+
"method":"GET",
|
| 97 |
+
"required_parameters":[
|
| 98 |
+
{
|
| 99 |
+
"name":"textcolor",
|
| 100 |
+
"type":"STRING",
|
| 101 |
+
"description":"Hex text color (Example: ff0000)",
|
| 102 |
+
"default":"000000"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"name":"text",
|
| 106 |
+
"type":"STRING",
|
| 107 |
+
"description":"Text to display",
|
| 108 |
+
"default":""
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"name":"backgroundwidth",
|
| 112 |
+
"type":"NUMBER",
|
| 113 |
+
"description":"Plane behind the text width (Example: 4)",
|
| 114 |
+
"default":"4"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"name":"backgroundheight",
|
| 118 |
+
"type":"NUMBER",
|
| 119 |
+
"description":"Plane behind the text height (Example: 2)",
|
| 120 |
+
"default":"2"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"name":"referenceid",
|
| 124 |
+
"type":"STRING",
|
| 125 |
+
"description":"To edit an AR Code please indicate its referenceid.",
|
| 126 |
+
"default":""
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name":"api_key",
|
| 130 |
+
"type":"STRING",
|
| 131 |
+
"description":"Get your API key for FREE on : https://ar-code.com/",
|
| 132 |
+
"default":""
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"name":"textsize",
|
| 136 |
+
"type":"NUMBER",
|
| 137 |
+
"description":"Text size (Example: 8)",
|
| 138 |
+
"default":"6"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"name":"backgroundcolor",
|
| 142 |
+
"type":"STRING",
|
| 143 |
+
"description":"Plane behind the text Hex color (Example: FFFFFF)",
|
| 144 |
+
"default":"FFFFFF"
|
| 145 |
+
}
|
| 146 |
+
],
|
| 147 |
+
"optional_parameters":[],
|
| 148 |
+
"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",
|
| 149 |
+
"statuscode":111,
|
| 150 |
+
"body":"",
|
| 151 |
+
"headers":"",
|
| 152 |
+
"schema":""
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
}
|
toolbench/toolenv/tools/Communication/ar_code_augmented_reality_codes_generator/api.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def create_an_ar_code(text: str, backgroundheight: int, backgroundcolor: str, backgroundwidth: int, api_key: str, textcolor: str, textsize: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"To create an AR Code please fill all the parameters.
|
| 12 |
+
|
| 13 |
+
To edit this AR Code later with a premium plan keep its referenceID."
|
| 14 |
+
text: Text to display
|
| 15 |
+
backgroundheight: Plane behind the text height (Example: 2)
|
| 16 |
+
backgroundcolor: Plane behind the text Hex color (Example: FFFFFF)
|
| 17 |
+
backgroundwidth: Plane behind the text width (Example: 4)
|
| 18 |
+
api_key: Get your API key for FREE on : https://ar-code.com/
|
| 19 |
+
textcolor: Hex text color (Example: ff0000)
|
| 20 |
+
textsize: Text size (Example: 8)
|
| 21 |
+
|
| 22 |
+
"""
|
| 23 |
+
url = f"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_api"
|
| 24 |
+
querystring = {'text': text, 'backgroundheight': backgroundheight, 'backgroundcolor': backgroundcolor, 'backgroundwidth': backgroundwidth, 'api_key': api_key, 'textcolor': textcolor, 'textsize': textsize, }
|
| 25 |
+
|
| 26 |
+
headers = {
|
| 27 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 28 |
+
"X-RapidAPI-Host": "ar-code-augmented-reality-codes-generator.p.rapidapi.com"
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 33 |
+
try:
|
| 34 |
+
observation = response.json()
|
| 35 |
+
except:
|
| 36 |
+
observation = response.text
|
| 37 |
+
return observation
|
| 38 |
+
|
| 39 |
+
def scans_statistics(api_key: str, referenceid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 40 |
+
"""
|
| 41 |
+
"Scans number for an AR Code with its referenceID and password."
|
| 42 |
+
api_key: Get your API key for FREE on : https://ar-code.com/
|
| 43 |
+
|
| 44 |
+
"""
|
| 45 |
+
url = f"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_stats_api"
|
| 46 |
+
querystring = {'api_key': api_key, 'referenceid': referenceid, }
|
| 47 |
+
|
| 48 |
+
headers = {
|
| 49 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 50 |
+
"X-RapidAPI-Host": "ar-code-augmented-reality-codes-generator.p.rapidapi.com"
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 55 |
+
try:
|
| 56 |
+
observation = response.json()
|
| 57 |
+
except:
|
| 58 |
+
observation = response.text
|
| 59 |
+
return observation
|
| 60 |
+
|
| 61 |
+
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'):
|
| 62 |
+
"""
|
| 63 |
+
"To edit an AR Code please indicate its referenceID.
|
| 64 |
+
|
| 65 |
+
Editable data: text, textcolor, textsize, backgroundwidth, backgroundheight, backgroundcolor"
|
| 66 |
+
textcolor: Hex text color (Example: ff0000)
|
| 67 |
+
text: Text to display
|
| 68 |
+
backgroundwidth: Plane behind the text width (Example: 4)
|
| 69 |
+
backgroundheight: Plane behind the text height (Example: 2)
|
| 70 |
+
referenceid: To edit an AR Code please indicate its referenceid.
|
| 71 |
+
api_key: Get your API key for FREE on : https://ar-code.com/
|
| 72 |
+
textsize: Text size (Example: 8)
|
| 73 |
+
backgroundcolor: Plane behind the text Hex color (Example: FFFFFF)
|
| 74 |
+
|
| 75 |
+
"""
|
| 76 |
+
url = f"https://ar-code-augmented-reality-codes-generator.p.rapidapi.com/arcode_edit_api"
|
| 77 |
+
querystring = {'textcolor': textcolor, 'text': text, 'backgroundwidth': backgroundwidth, 'backgroundheight': backgroundheight, 'referenceid': referenceid, 'api_key': api_key, 'textsize': textsize, 'backgroundcolor': backgroundcolor, }
|
| 78 |
+
|
| 79 |
+
headers = {
|
| 80 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 81 |
+
"X-RapidAPI-Host": "ar-code-augmented-reality-codes-generator.p.rapidapi.com"
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 86 |
+
try:
|
| 87 |
+
observation = response.json()
|
| 88 |
+
except:
|
| 89 |
+
observation = response.text
|
| 90 |
+
return observation
|
| 91 |
+
|
toolbench/toolenv/tools/Communication/ardic_speech_to_text_service.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_55f0ecfd-a1db-4dce-85f8-648fc9f5ea50",
|
| 3 |
+
"tool_description": "Transcription API for converting audio files to text. Includes confidence scores and timestamps for given words.",
|
| 4 |
+
"home_url": "https://rapidapi.com/ArdicAITeam/api/ardic-speech-to-text-service/",
|
| 5 |
+
"name": "Ardic Speech to Text Service",
|
| 6 |
+
"title": "Ardic Speech to Text Service",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Ardic Speech to Text Service",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 97,
|
| 11 |
+
"avgLatency": 6677,
|
| 12 |
+
"avgSuccessRate": 91,
|
| 13 |
+
"popularityScore": 9.7,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "ardic-speech-to-text-service.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Speech To Text File",
|
| 20 |
+
"url": "https://ardic-speech-to-text-service.p.rapidapi.com/stt",
|
| 21 |
+
"description": "Speech to Text service using binary file payload instead of Base64 encoded JSON payload",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "file",
|
| 26 |
+
"type": "BINARY",
|
| 27 |
+
"description": "",
|
| 28 |
+
"default": ""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [
|
| 32 |
+
{
|
| 33 |
+
"name": "args",
|
| 34 |
+
"type": "STRING",
|
| 35 |
+
"description": "",
|
| 36 |
+
"default": "{\"stt_engine\": \"whisper\"}"
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"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",
|
| 40 |
+
"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",
|
| 41 |
+
"test_endpoint": ""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "Speech to Text Base64",
|
| 45 |
+
"url": "https://ardic-speech-to-text-service.p.rapidapi.com/stt_json_payload",
|
| 46 |
+
"description": "Transcribes audio files.",
|
| 47 |
+
"method": "POST",
|
| 48 |
+
"required_parameters": [],
|
| 49 |
+
"optional_parameters": [],
|
| 50 |
+
"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",
|
| 51 |
+
"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",
|
| 52 |
+
"test_endpoint": ""
|
| 53 |
+
}
|
| 54 |
+
]
|
| 55 |
+
}
|
toolbench/toolenv/tools/Communication/automatic_custom_response_creator.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Automatic-custom-response-creator",
|
| 3 |
+
"tool_description":"send a customer review, you will receive a personalized response proposal automatically",
|
| 4 |
+
"title":"Automatic-custom-response-creator",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":5562,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/lespagnolrobin/api/automatic-custom-response-creator/",
|
| 14 |
+
"host":"automatic-custom-response-creator.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"get_response",
|
| 18 |
+
"url":"https://automatic-custom-response-creator.p.rapidapi.com/get_response",
|
| 19 |
+
"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\")",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"business_type",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"Restaurant"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"business_brand",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"",
|
| 32 |
+
"default":"Fuzi"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name":"avis",
|
| 36 |
+
"type":"STRING",
|
| 37 |
+
"description":"",
|
| 38 |
+
"default":"C'était excellent"
|
| 39 |
+
}
|
| 40 |
+
],
|
| 41 |
+
"optional_parameters":[],
|
| 42 |
+
"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",
|
| 43 |
+
"statuscode":111,
|
| 44 |
+
"body":"",
|
| 45 |
+
"headers":"",
|
| 46 |
+
"schema":""
|
| 47 |
+
}
|
| 48 |
+
]
|
| 49 |
+
}
|
toolbench/toolenv/tools/Communication/automatic_custom_response_creator/api.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def get_response(business_type: str, business_brand: str, avis: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"There are 3 params necessary :
|
| 12 |
+
|
| 13 |
+
- First - Add a review "avis" (ex. "Merci pour votre accueil, c'était parfait")
|
| 14 |
+
- Then - Add a "business_type" (ex. "Restaurant")
|
| 15 |
+
- Finaly - Add a "business_brand" (ex. "Fuzi")"
|
| 16 |
+
|
| 17 |
+
"""
|
| 18 |
+
url = f"https://automatic-custom-response-creator.p.rapidapi.com/get_response"
|
| 19 |
+
querystring = {'business_type': business_type, 'business_brand': business_brand, 'avis': avis, }
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "automatic-custom-response-creator.p.rapidapi.com"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 28 |
+
try:
|
| 29 |
+
observation = response.json()
|
| 30 |
+
except:
|
| 31 |
+
observation = response.text
|
| 32 |
+
return observation
|
| 33 |
+
|
toolbench/toolenv/tools/Communication/automationtest_prod.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"AutomationTest_PROD",
|
| 3 |
+
"tool_description":"API for automation run prod",
|
| 4 |
+
"title":"AutomationTest_PROD",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/Production test 9/api/automationtest_prod/",
|
| 8 |
+
"host":"automationtest_prod.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"testtt",
|
| 12 |
+
"url":"https://automationtest_prod.p.rapidapi.com/posts",
|
| 13 |
+
"description":"gijojg",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/automationtest_prod/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def testtt(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"gijojg"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://automationtest_prod.p.rapidapi.com/posts"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "automationtest_prod.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/aweber.json
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_11e9a6f4-6db7-4b6d-b52a-6f1bafbc7d3f",
|
| 3 |
+
"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.",
|
| 4 |
+
"home_url": "https://rapidapi.com/zacg/api/aweber2/",
|
| 5 |
+
"name": "AWeber",
|
| 6 |
+
"title": "AWeber",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "AWeber",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "aweber2.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Create broadcast",
|
| 14 |
+
"url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts",
|
| 15 |
+
"description": "Create a broadcast within a list",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [
|
| 18 |
+
{
|
| 19 |
+
"name": "body_html",
|
| 20 |
+
"type": "STRING",
|
| 21 |
+
"description": "Specify the html of a broadcast",
|
| 22 |
+
"default": ""
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "body_text",
|
| 26 |
+
"type": "STRING",
|
| 27 |
+
"description": "Specify the plain text of a broadcast",
|
| 28 |
+
"default": ""
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"name": "subject",
|
| 32 |
+
"type": "STRING",
|
| 33 |
+
"description": "Specify the subject of the broadcast",
|
| 34 |
+
"default": ""
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "accountId",
|
| 38 |
+
"type": "NUMBER",
|
| 39 |
+
"description": "Account ID",
|
| 40 |
+
"default": []
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name": "listId",
|
| 44 |
+
"type": "NUMBER",
|
| 45 |
+
"description": "List ID",
|
| 46 |
+
"default": []
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"optional_parameters": [
|
| 50 |
+
{
|
| 51 |
+
"name": "body_amp",
|
| 52 |
+
"type": "STRING",
|
| 53 |
+
"description": "Specify the AMP html",
|
| 54 |
+
"default": ""
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "facebook_integration",
|
| 58 |
+
"type": "STRING",
|
| 59 |
+
"description": "Specify the Facebook broadcast integration",
|
| 60 |
+
"default": ""
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "is_archived",
|
| 64 |
+
"type": "BOOLEAN",
|
| 65 |
+
"description": "Specify if the broadcast should be included in the archive",
|
| 66 |
+
"default": ""
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name": "notify_on_send",
|
| 70 |
+
"type": "BOOLEAN",
|
| 71 |
+
"description": "Specify if the sender should be notified when stats are available after sending a broadcast",
|
| 72 |
+
"default": ""
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "include_lists",
|
| 76 |
+
"type": "STRING",
|
| 77 |
+
"description": "Specify a group of lists to include in a broadcast",
|
| 78 |
+
"default": ""
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"name": "exclude_lists",
|
| 82 |
+
"type": "STRING",
|
| 83 |
+
"description": "Specify a group of lists to exclude from the broadcast",
|
| 84 |
+
"default": ""
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"name": "twitter_integration",
|
| 88 |
+
"type": "STRING",
|
| 89 |
+
"description": "Specify the Twitter broadcast integration",
|
| 90 |
+
"default": ""
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"name": "click_tracking_enabled",
|
| 94 |
+
"type": "BOOLEAN",
|
| 95 |
+
"description": "Enable or disable the click tracking of an email",
|
| 96 |
+
"default": ""
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"name": "segment_link",
|
| 100 |
+
"type": "STRING",
|
| 101 |
+
"description": "Specify the URL of the desired segment",
|
| 102 |
+
"default": [
|
| 103 |
+
""
|
| 104 |
+
]
|
| 105 |
+
}
|
| 106 |
+
],
|
| 107 |
+
"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",
|
| 108 |
+
"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",
|
| 109 |
+
"test_endpoint": ""
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"name": "Move subscriber",
|
| 113 |
+
"url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers/{subscriberId}",
|
| 114 |
+
"description": "Move a subscriber from one list to another within an account",
|
| 115 |
+
"method": "POST",
|
| 116 |
+
"required_parameters": [
|
| 117 |
+
{
|
| 118 |
+
"name": "list_link",
|
| 119 |
+
"type": "STRING",
|
| 120 |
+
"description": "Specify the link to the destination list",
|
| 121 |
+
"default": ""
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"name": "ws.op",
|
| 125 |
+
"type": "STRING",
|
| 126 |
+
"description": "Specify that you want to perform a move operation",
|
| 127 |
+
"default": "move"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"name": "accountId",
|
| 131 |
+
"type": "NUMBER",
|
| 132 |
+
"description": "Account ID",
|
| 133 |
+
"default": ""
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"name": "listId",
|
| 137 |
+
"type": "NUMBER",
|
| 138 |
+
"description": "List ID",
|
| 139 |
+
"default": ""
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"name": "subscriberId",
|
| 143 |
+
"type": "NUMBER",
|
| 144 |
+
"description": "Subscriber ID",
|
| 145 |
+
"default": ""
|
| 146 |
+
}
|
| 147 |
+
],
|
| 148 |
+
"optional_parameters": [
|
| 149 |
+
{
|
| 150 |
+
"name": "enforce_custom_field_mapping",
|
| 151 |
+
"type": "BOOLEAN",
|
| 152 |
+
"description": "Specify whether custom fields should be mapped or not",
|
| 153 |
+
"default": ""
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"name": "last_followup_message_number_sent",
|
| 157 |
+
"type": "NUMBER",
|
| 158 |
+
"description": "Specify the last follow up message number sent when moving the subscriber",
|
| 159 |
+
"default": ""
|
| 160 |
+
}
|
| 161 |
+
],
|
| 162 |
+
"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",
|
| 163 |
+
"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",
|
| 164 |
+
"test_endpoint": ""
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "Cancel scheduled broadcast",
|
| 168 |
+
"url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/cancel",
|
| 169 |
+
"description": "Cancel a previously scheduled broadcast within a list",
|
| 170 |
+
"method": "POST",
|
| 171 |
+
"required_parameters": [
|
| 172 |
+
{
|
| 173 |
+
"name": "accountId",
|
| 174 |
+
"type": "NUMBER",
|
| 175 |
+
"description": "Account ID",
|
| 176 |
+
"default": ""
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"name": "listId",
|
| 180 |
+
"type": "NUMBER",
|
| 181 |
+
"description": "List ID",
|
| 182 |
+
"default": ""
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "broadcastId",
|
| 186 |
+
"type": "NUMBER",
|
| 187 |
+
"description": "Broadcast ID",
|
| 188 |
+
"default": ""
|
| 189 |
+
}
|
| 190 |
+
],
|
| 191 |
+
"optional_parameters": [],
|
| 192 |
+
"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",
|
| 193 |
+
"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",
|
| 194 |
+
"test_endpoint": ""
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "Schedule broadcast",
|
| 198 |
+
"url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/broadcasts/{broadcastId}/schedule",
|
| 199 |
+
"description": "Schedule a specific broadcast within a list",
|
| 200 |
+
"method": "POST",
|
| 201 |
+
"required_parameters": [
|
| 202 |
+
{
|
| 203 |
+
"name": "scheduled_for",
|
| 204 |
+
"type": "STRING",
|
| 205 |
+
"description": "Specify the date and time to send the broadcast in ISO-8601 format",
|
| 206 |
+
"default": ""
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"name": "accountId",
|
| 210 |
+
"type": "NUMBER",
|
| 211 |
+
"description": "Account ID",
|
| 212 |
+
"default": ""
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"name": "listId",
|
| 216 |
+
"type": "NUMBER",
|
| 217 |
+
"description": "List ID",
|
| 218 |
+
"default": ""
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"name": "broadcastId",
|
| 222 |
+
"type": "NUMBER",
|
| 223 |
+
"description": "Broadcast ID",
|
| 224 |
+
"default": ""
|
| 225 |
+
}
|
| 226 |
+
],
|
| 227 |
+
"optional_parameters": [],
|
| 228 |
+
"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",
|
| 229 |
+
"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",
|
| 230 |
+
"test_endpoint": ""
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "Add custom field",
|
| 234 |
+
"url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/custom_fields",
|
| 235 |
+
"description": "Add a custom field to an account",
|
| 236 |
+
"method": "POST",
|
| 237 |
+
"required_parameters": [
|
| 238 |
+
{
|
| 239 |
+
"name": "name",
|
| 240 |
+
"type": "STRING",
|
| 241 |
+
"description": "Name of the custom field",
|
| 242 |
+
"default": ""
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "ws.op",
|
| 246 |
+
"type": "STRING",
|
| 247 |
+
"description": "Request to create a record",
|
| 248 |
+
"default": "create"
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"name": "accountId",
|
| 252 |
+
"type": "NUMBER",
|
| 253 |
+
"description": "Account ID",
|
| 254 |
+
"default": ""
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"name": "listId",
|
| 258 |
+
"type": "STRING",
|
| 259 |
+
"description": "List ID",
|
| 260 |
+
"default": ""
|
| 261 |
+
}
|
| 262 |
+
],
|
| 263 |
+
"optional_parameters": [],
|
| 264 |
+
"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",
|
| 265 |
+
"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",
|
| 266 |
+
"test_endpoint": ""
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"name": "Add subscriber",
|
| 270 |
+
"url": "https://aweber2.p.rapidapi.com/1.0/accounts/{accountId}/lists/{listId}/subscribers",
|
| 271 |
+
"description": "Add a subscriber to a list",
|
| 272 |
+
"method": "POST",
|
| 273 |
+
"required_parameters": [
|
| 274 |
+
{
|
| 275 |
+
"name": "email",
|
| 276 |
+
"type": "STRING",
|
| 277 |
+
"description": "Specify the subscriber's email address",
|
| 278 |
+
"default": ""
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"name": "ws.op",
|
| 282 |
+
"type": "STRING",
|
| 283 |
+
"description": "Specify that you want to create a subscriber",
|
| 284 |
+
"default": "create"
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"name": "listId",
|
| 288 |
+
"type": "NUMBER",
|
| 289 |
+
"description": "List ID",
|
| 290 |
+
"default": ""
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"name": "accountId",
|
| 294 |
+
"type": "NUMBER",
|
| 295 |
+
"description": "Account ID",
|
| 296 |
+
"default": ""
|
| 297 |
+
}
|
| 298 |
+
],
|
| 299 |
+
"optional_parameters": [
|
| 300 |
+
{
|
| 301 |
+
"name": "ad_tracking",
|
| 302 |
+
"type": "STRING",
|
| 303 |
+
"description": "Specify an ad tracking value",
|
| 304 |
+
"default": ""
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"name": "ip_address",
|
| 308 |
+
"type": "STRING",
|
| 309 |
+
"description": "Specify the IP address",
|
| 310 |
+
"default": ""
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"name": "last_followup_message_number_sent",
|
| 314 |
+
"type": "NUMBER",
|
| 315 |
+
"description": "Set the last follow up message number sent",
|
| 316 |
+
"default": ""
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"name": "misc_notes",
|
| 320 |
+
"type": "STRING",
|
| 321 |
+
"description": "Specify any miscellenous notes",
|
| 322 |
+
"default": ""
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"name": "custom_fields",
|
| 326 |
+
"type": "STRING",
|
| 327 |
+
"description": "Specify the custom fields and values",
|
| 328 |
+
"default": ""
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"name": "strict_custom_fields",
|
| 332 |
+
"type": "BOOLEAN",
|
| 333 |
+
"description": "Specify if you want the system to explicitly validate custom field names",
|
| 334 |
+
"default": ""
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"name": "tags",
|
| 338 |
+
"type": "STRING",
|
| 339 |
+
"description": "Specify the tags",
|
| 340 |
+
"default": ""
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name": "name",
|
| 344 |
+
"type": "STRING",
|
| 345 |
+
"description": "Specify the subscriber's name",
|
| 346 |
+
"default": ""
|
| 347 |
+
}
|
| 348 |
+
],
|
| 349 |
+
"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",
|
| 350 |
+
"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",
|
| 351 |
+
"test_endpoint": ""
|
| 352 |
+
}
|
| 353 |
+
]
|
| 354 |
+
}
|
toolbench/toolenv/tools/Communication/aweber/api.py
ADDED
|
@@ -0,0 +1,1391 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def find_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'):
|
| 10 |
+
"""
|
| 11 |
+
"Find a list within an account"
|
| 12 |
+
ws_op: Search
|
| 13 |
+
accountid: Account ID
|
| 14 |
+
ws_size: Number of items to retreive from pagination
|
| 15 |
+
name: Name or unique list id
|
| 16 |
+
ws_show: Return the total size of the collection only
|
| 17 |
+
ws_start: Starting position for pagination
|
| 18 |
+
|
| 19 |
+
"""
|
| 20 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists"
|
| 21 |
+
querystring = {'ws.op': ws_op, }
|
| 22 |
+
if ws_size:
|
| 23 |
+
querystring['ws.size'] = ws_size
|
| 24 |
+
if name:
|
| 25 |
+
querystring['name'] = name
|
| 26 |
+
if ws_show:
|
| 27 |
+
querystring['ws.show'] = ws_show
|
| 28 |
+
if ws_start:
|
| 29 |
+
querystring['ws.start'] = ws_start
|
| 30 |
+
|
| 31 |
+
headers = {
|
| 32 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 33 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 38 |
+
try:
|
| 39 |
+
observation = response.json()
|
| 40 |
+
except:
|
| 41 |
+
observation = response.text
|
| 42 |
+
return observation
|
| 43 |
+
|
| 44 |
+
def get_links(listid: int, campaigntype: str, accountid: int, campaignid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 45 |
+
"""
|
| 46 |
+
"Get the links for a broadcast or follow up within a list"
|
| 47 |
+
listid: List ID
|
| 48 |
+
campaigntype: Campaign Type
|
| 49 |
+
accountid: Account ID
|
| 50 |
+
campaignid: Campaign ID
|
| 51 |
+
ws_start: Starting position for pagination
|
| 52 |
+
ws_size: Number of items to retrieve from pagination
|
| 53 |
+
|
| 54 |
+
"""
|
| 55 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links"
|
| 56 |
+
querystring = {}
|
| 57 |
+
if ws_start:
|
| 58 |
+
querystring['ws.start'] = ws_start
|
| 59 |
+
if ws_size:
|
| 60 |
+
querystring['ws.size'] = ws_size
|
| 61 |
+
|
| 62 |
+
headers = {
|
| 63 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 64 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 69 |
+
try:
|
| 70 |
+
observation = response.json()
|
| 71 |
+
except:
|
| 72 |
+
observation = response.text
|
| 73 |
+
return observation
|
| 74 |
+
|
| 75 |
+
def get_link(campaigntype: str, listid: int, campaignid: int, linkid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 76 |
+
"""
|
| 77 |
+
"Get a specific link from a broadcast or follow up within a list"
|
| 78 |
+
campaigntype: Campaing Type
|
| 79 |
+
listid: List ID
|
| 80 |
+
campaignid: Campaign ID
|
| 81 |
+
linkid: Link ID
|
| 82 |
+
accountid: Account ID
|
| 83 |
+
|
| 84 |
+
"""
|
| 85 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links/{linkid}"
|
| 86 |
+
querystring = {}
|
| 87 |
+
|
| 88 |
+
headers = {
|
| 89 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 90 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 95 |
+
try:
|
| 96 |
+
observation = response.json()
|
| 97 |
+
except:
|
| 98 |
+
observation = response.text
|
| 99 |
+
return observation
|
| 100 |
+
|
| 101 |
+
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'):
|
| 102 |
+
"""
|
| 103 |
+
"Get the tracked events associated with a message for a broadcast or follow up within a list"
|
| 104 |
+
accountid: Account ID
|
| 105 |
+
campaignid: Campaign ID
|
| 106 |
+
listid: List ID
|
| 107 |
+
campaigntype: Campaign Type
|
| 108 |
+
messageentryid: Message Entry ID
|
| 109 |
+
ws_start: Starting position for pagination
|
| 110 |
+
ws_size: Number of items to retrieve from pagination
|
| 111 |
+
|
| 112 |
+
"""
|
| 113 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/tracked_events"
|
| 114 |
+
querystring = {}
|
| 115 |
+
if ws_start:
|
| 116 |
+
querystring['ws.start'] = ws_start
|
| 117 |
+
if ws_size:
|
| 118 |
+
querystring['ws.size'] = ws_size
|
| 119 |
+
|
| 120 |
+
headers = {
|
| 121 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 122 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 127 |
+
try:
|
| 128 |
+
observation = response.json()
|
| 129 |
+
except:
|
| 130 |
+
observation = response.text
|
| 131 |
+
return observation
|
| 132 |
+
|
| 133 |
+
def get_broadcast_statistic(accountid: int, statsid: str, listid: int, campaignid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 134 |
+
"""
|
| 135 |
+
"Get a specific statistic for a broadcast within a list"
|
| 136 |
+
accountid: Account ID
|
| 137 |
+
statsid: Stats ID
|
| 138 |
+
listid: List ID
|
| 139 |
+
campaignid: Campaign ID
|
| 140 |
+
|
| 141 |
+
"""
|
| 142 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/b{campaignid}/stats/{statsid}"
|
| 143 |
+
querystring = {}
|
| 144 |
+
|
| 145 |
+
headers = {
|
| 146 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 147 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 152 |
+
try:
|
| 153 |
+
observation = response.json()
|
| 154 |
+
except:
|
| 155 |
+
observation = response.text
|
| 156 |
+
return observation
|
| 157 |
+
|
| 158 |
+
def get_webform_for_list(accountid: int, listid: int, webformid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 159 |
+
"""
|
| 160 |
+
"Get a specific webform within a list"
|
| 161 |
+
accountid: Account ID
|
| 162 |
+
listid: List ID
|
| 163 |
+
webformid: Web Form ID
|
| 164 |
+
|
| 165 |
+
"""
|
| 166 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_forms/{webformid}"
|
| 167 |
+
querystring = {}
|
| 168 |
+
|
| 169 |
+
headers = {
|
| 170 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 171 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 176 |
+
try:
|
| 177 |
+
observation = response.json()
|
| 178 |
+
except:
|
| 179 |
+
observation = response.text
|
| 180 |
+
return observation
|
| 181 |
+
|
| 182 |
+
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'):
|
| 183 |
+
"""
|
| 184 |
+
"Get the opens related to a specific message for a broadcast or follow up within a list"
|
| 185 |
+
accountid: Account ID
|
| 186 |
+
listid: List ID
|
| 187 |
+
campaignid: Campaign ID
|
| 188 |
+
campaigntype: Campaign Type
|
| 189 |
+
messageentryid: Message Entry ID
|
| 190 |
+
ws_start: Starting position for pagination
|
| 191 |
+
ws_size: Number of items to retrieve from pagination
|
| 192 |
+
|
| 193 |
+
"""
|
| 194 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/opens"
|
| 195 |
+
querystring = {}
|
| 196 |
+
if ws_start:
|
| 197 |
+
querystring['ws.start'] = ws_start
|
| 198 |
+
if ws_size:
|
| 199 |
+
querystring['ws.size'] = ws_size
|
| 200 |
+
|
| 201 |
+
headers = {
|
| 202 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 203 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 208 |
+
try:
|
| 209 |
+
observation = response.json()
|
| 210 |
+
except:
|
| 211 |
+
observation = response.text
|
| 212 |
+
return observation
|
| 213 |
+
|
| 214 |
+
def get_message_tracked_event(campaignid: int, accountid: int, listid: int, trackedeventid: int, messageentryid: int, campaigntype: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 215 |
+
"""
|
| 216 |
+
"Get a specific tracked event associated with a message for a broadcast or follow up within a list"
|
| 217 |
+
campaignid: Campaign ID
|
| 218 |
+
accountid: Account ID
|
| 219 |
+
listid: List ID
|
| 220 |
+
trackedeventid: Tracked Event ID
|
| 221 |
+
messageentryid: Message Entry ID
|
| 222 |
+
campaigntype: Campaign Type
|
| 223 |
+
|
| 224 |
+
"""
|
| 225 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/tracked_events/{trackedeventid}"
|
| 226 |
+
querystring = {}
|
| 227 |
+
|
| 228 |
+
headers = {
|
| 229 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 230 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 235 |
+
try:
|
| 236 |
+
observation = response.json()
|
| 237 |
+
except:
|
| 238 |
+
observation = response.text
|
| 239 |
+
return observation
|
| 240 |
+
|
| 241 |
+
def get_split_test_components(accountid: int, listid: int, splittestid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 242 |
+
"""
|
| 243 |
+
"Get the components of a web form split test"
|
| 244 |
+
accountid: Account ID
|
| 245 |
+
listid: List ID
|
| 246 |
+
splittestid: Split Test ID
|
| 247 |
+
ws_start: Starting position for pagination
|
| 248 |
+
ws_size: Number of items to retrieve from pagination
|
| 249 |
+
|
| 250 |
+
"""
|
| 251 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests/{splittestid}/components"
|
| 252 |
+
querystring = {}
|
| 253 |
+
if ws_start:
|
| 254 |
+
querystring['ws.start'] = ws_start
|
| 255 |
+
if ws_size:
|
| 256 |
+
querystring['ws.size'] = ws_size
|
| 257 |
+
|
| 258 |
+
headers = {
|
| 259 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 260 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 265 |
+
try:
|
| 266 |
+
observation = response.json()
|
| 267 |
+
except:
|
| 268 |
+
observation = response.text
|
| 269 |
+
return observation
|
| 270 |
+
|
| 271 |
+
def get_list(listid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 272 |
+
"""
|
| 273 |
+
"Get a specific list for an account"
|
| 274 |
+
listid: List ID
|
| 275 |
+
accountid: Account ID
|
| 276 |
+
|
| 277 |
+
"""
|
| 278 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}"
|
| 279 |
+
querystring = {}
|
| 280 |
+
|
| 281 |
+
headers = {
|
| 282 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 283 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 288 |
+
try:
|
| 289 |
+
observation = response.json()
|
| 290 |
+
except:
|
| 291 |
+
observation = response.text
|
| 292 |
+
return observation
|
| 293 |
+
|
| 294 |
+
def get_split_test_component(splittestid: int, listid: int, accountid: int, splittestcomponentid: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 295 |
+
"""
|
| 296 |
+
"Get a specific component of a web form split test"
|
| 297 |
+
splittestid: Split Test ID
|
| 298 |
+
listid: List ID
|
| 299 |
+
accountid: Account ID
|
| 300 |
+
splittestcomponentid: Split Test Component ID
|
| 301 |
+
|
| 302 |
+
"""
|
| 303 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests/{splittestid}/components/{splittestcomponentid}"
|
| 304 |
+
querystring = {}
|
| 305 |
+
|
| 306 |
+
headers = {
|
| 307 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 308 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 313 |
+
try:
|
| 314 |
+
observation = response.json()
|
| 315 |
+
except:
|
| 316 |
+
observation = response.text
|
| 317 |
+
return observation
|
| 318 |
+
|
| 319 |
+
def get_segments(accountid: int, listid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 320 |
+
"""
|
| 321 |
+
"Get the segments within a list"
|
| 322 |
+
accountid: Account ID
|
| 323 |
+
listid: List ID
|
| 324 |
+
ws_start: Starting position for pagination
|
| 325 |
+
ws_size: Number of items to retrieve from pagination
|
| 326 |
+
|
| 327 |
+
"""
|
| 328 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/segments"
|
| 329 |
+
querystring = {}
|
| 330 |
+
if ws_start:
|
| 331 |
+
querystring['ws.start'] = ws_start
|
| 332 |
+
if ws_size:
|
| 333 |
+
querystring['ws.size'] = ws_size
|
| 334 |
+
|
| 335 |
+
headers = {
|
| 336 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 337 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 342 |
+
try:
|
| 343 |
+
observation = response.json()
|
| 344 |
+
except:
|
| 345 |
+
observation = response.text
|
| 346 |
+
return observation
|
| 347 |
+
|
| 348 |
+
def get_subscriber(accountid: int, subscriberid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 349 |
+
"""
|
| 350 |
+
"Get a specific subscriber within a list"
|
| 351 |
+
accountid: Account ID
|
| 352 |
+
subscriberid: Subscriber ID
|
| 353 |
+
listid: List ID
|
| 354 |
+
|
| 355 |
+
"""
|
| 356 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers/{subscriberid}"
|
| 357 |
+
querystring = {}
|
| 358 |
+
|
| 359 |
+
headers = {
|
| 360 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 361 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 366 |
+
try:
|
| 367 |
+
observation = response.json()
|
| 368 |
+
except:
|
| 369 |
+
observation = response.text
|
| 370 |
+
return observation
|
| 371 |
+
|
| 372 |
+
def get_split_tests_for_account(ws_op: str, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 373 |
+
"""
|
| 374 |
+
"Get the web form split tests for an account"
|
| 375 |
+
ws_op: Specify you want web form split tests
|
| 376 |
+
accountid: Account ID
|
| 377 |
+
|
| 378 |
+
"""
|
| 379 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}"
|
| 380 |
+
querystring = {'ws.op': ws_op, }
|
| 381 |
+
|
| 382 |
+
headers = {
|
| 383 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 384 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 389 |
+
try:
|
| 390 |
+
observation = response.json()
|
| 391 |
+
except:
|
| 392 |
+
observation = response.text
|
| 393 |
+
return observation
|
| 394 |
+
|
| 395 |
+
def get_subscribers(listid: int, accountid: int, ws_start: int=None, ws_size: int=None, sort_order: str='asc', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 396 |
+
"""
|
| 397 |
+
"Get the subscribers witihin a list"
|
| 398 |
+
listid: List ID
|
| 399 |
+
accountid: Account ID
|
| 400 |
+
ws_start: Starting position for pagination
|
| 401 |
+
ws_size: Number of items to retrieve from pagination
|
| 402 |
+
sort_order: Specify the sort order of the data
|
| 403 |
+
|
| 404 |
+
"""
|
| 405 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers"
|
| 406 |
+
querystring = {}
|
| 407 |
+
if ws_start:
|
| 408 |
+
querystring['ws.start'] = ws_start
|
| 409 |
+
if ws_size:
|
| 410 |
+
querystring['ws.size'] = ws_size
|
| 411 |
+
if sort_order:
|
| 412 |
+
querystring['sort_order'] = sort_order
|
| 413 |
+
|
| 414 |
+
headers = {
|
| 415 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 416 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 421 |
+
try:
|
| 422 |
+
observation = response.json()
|
| 423 |
+
except:
|
| 424 |
+
observation = response.text
|
| 425 |
+
return observation
|
| 426 |
+
|
| 427 |
+
def get_integration(integrationid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 428 |
+
"""
|
| 429 |
+
"Get an integration within an account"
|
| 430 |
+
integrationid: Integration ID
|
| 431 |
+
accountid: Account ID
|
| 432 |
+
|
| 433 |
+
"""
|
| 434 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/integrations/{integrationid}"
|
| 435 |
+
querystring = {}
|
| 436 |
+
|
| 437 |
+
headers = {
|
| 438 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 439 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 444 |
+
try:
|
| 445 |
+
observation = response.json()
|
| 446 |
+
except:
|
| 447 |
+
observation = response.text
|
| 448 |
+
return observation
|
| 449 |
+
|
| 450 |
+
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'):
|
| 451 |
+
"""
|
| 452 |
+
"Find a follow up or broadcast within a list"
|
| 453 |
+
ws_op: Specify the desire to search
|
| 454 |
+
campaign_type: Specify a follow up ("f") or a broadcast ("b")
|
| 455 |
+
listid: List ID
|
| 456 |
+
accountid: Account ID
|
| 457 |
+
ws_start: Starting position for pagination
|
| 458 |
+
ws_show: Return only the total number of rows
|
| 459 |
+
ws_size: Number of items to retrieve from pagination
|
| 460 |
+
|
| 461 |
+
"""
|
| 462 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns"
|
| 463 |
+
querystring = {'ws.op': ws_op, 'campaign_type': campaign_type, }
|
| 464 |
+
if ws_start:
|
| 465 |
+
querystring['ws.start'] = ws_start
|
| 466 |
+
if ws_show:
|
| 467 |
+
querystring['ws.show'] = ws_show
|
| 468 |
+
if ws_size:
|
| 469 |
+
querystring['ws.size'] = ws_size
|
| 470 |
+
|
| 471 |
+
headers = {
|
| 472 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 473 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 474 |
+
}
|
| 475 |
+
|
| 476 |
+
|
| 477 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 478 |
+
try:
|
| 479 |
+
observation = response.json()
|
| 480 |
+
except:
|
| 481 |
+
observation = response.text
|
| 482 |
+
return observation
|
| 483 |
+
|
| 484 |
+
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'):
|
| 485 |
+
"""
|
| 486 |
+
"Search for subscribers within a list"
|
| 487 |
+
ws_op: Specify that you want to search
|
| 488 |
+
listid: Lists ID
|
| 489 |
+
accountid: Account ID
|
| 490 |
+
ws_size: Number of items to retrieve from pagination
|
| 491 |
+
sort_order: The direction of the sort order
|
| 492 |
+
ws_show: Return just the total number of rows
|
| 493 |
+
ad_tracking: Search for an ad_tracking value
|
| 494 |
+
city: Search for a city
|
| 495 |
+
country: Search for a country
|
| 496 |
+
sort_key: The field to be sorted
|
| 497 |
+
area_code: Search for an area code
|
| 498 |
+
ws_start: Starting position for pagination
|
| 499 |
+
email: Search for an email address
|
| 500 |
+
last_followup_message_sent_at: Search the date of the last follow-up message sent
|
| 501 |
+
dma_code: Search for a dma code
|
| 502 |
+
longitude: Search for a specific longitude
|
| 503 |
+
latitude: Search for a specific latitude
|
| 504 |
+
misc_notes: Search for miscellenous notes
|
| 505 |
+
name: Search the subscriber's name
|
| 506 |
+
custom_fields: Search custom field values
|
| 507 |
+
status: Search the subscriber's status
|
| 508 |
+
region: Search the region
|
| 509 |
+
subscribed_after: Search all subscriber who subscribed after a date
|
| 510 |
+
subscribed_at: Search all subscribers who subscribed on a date
|
| 511 |
+
postal_code: Search the postal code
|
| 512 |
+
last_followup_message_number_sent: Search for the last following message number sent
|
| 513 |
+
subscription_method: Search for the subscription method
|
| 514 |
+
unsubscribe_method: Search for the unsubscribe method
|
| 515 |
+
subscribed_before: Search all subscribers who subscribed before a date
|
| 516 |
+
unsubscribed_after: Search for subscribers who unsubscribed after a date
|
| 517 |
+
verified_at: Search for subscribers who verified their email on a date
|
| 518 |
+
unsubscribed_before: Search for subscribers who unsubscribed before a date
|
| 519 |
+
unsubscribed_at: Search for subscribers who unsubscribed on a date
|
| 520 |
+
tags: Search for a subscriber's tags
|
| 521 |
+
|
| 522 |
+
"""
|
| 523 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers"
|
| 524 |
+
querystring = {'ws.op': ws_op, }
|
| 525 |
+
if ws_size:
|
| 526 |
+
querystring['ws.size'] = ws_size
|
| 527 |
+
if sort_order:
|
| 528 |
+
querystring['sort_order'] = sort_order
|
| 529 |
+
if ws_show:
|
| 530 |
+
querystring['ws.show'] = ws_show
|
| 531 |
+
if ad_tracking:
|
| 532 |
+
querystring['ad_tracking'] = ad_tracking
|
| 533 |
+
if city:
|
| 534 |
+
querystring['city'] = city
|
| 535 |
+
if country:
|
| 536 |
+
querystring['country'] = country
|
| 537 |
+
if sort_key:
|
| 538 |
+
querystring['sort_key'] = sort_key
|
| 539 |
+
if area_code:
|
| 540 |
+
querystring['area_code'] = area_code
|
| 541 |
+
if ws_start:
|
| 542 |
+
querystring['ws.start'] = ws_start
|
| 543 |
+
if email:
|
| 544 |
+
querystring['email'] = email
|
| 545 |
+
if last_followup_message_sent_at:
|
| 546 |
+
querystring['last_followup_message_sent_at'] = last_followup_message_sent_at
|
| 547 |
+
if dma_code:
|
| 548 |
+
querystring['dma_code'] = dma_code
|
| 549 |
+
if longitude:
|
| 550 |
+
querystring['longitude'] = longitude
|
| 551 |
+
if latitude:
|
| 552 |
+
querystring['latitude'] = latitude
|
| 553 |
+
if misc_notes:
|
| 554 |
+
querystring['misc_notes'] = misc_notes
|
| 555 |
+
if name:
|
| 556 |
+
querystring['name'] = name
|
| 557 |
+
if custom_fields:
|
| 558 |
+
querystring['custom_fields'] = custom_fields
|
| 559 |
+
if status:
|
| 560 |
+
querystring['status'] = status
|
| 561 |
+
if region:
|
| 562 |
+
querystring['region'] = region
|
| 563 |
+
if subscribed_after:
|
| 564 |
+
querystring['subscribed_after'] = subscribed_after
|
| 565 |
+
if subscribed_at:
|
| 566 |
+
querystring['subscribed_at'] = subscribed_at
|
| 567 |
+
if postal_code:
|
| 568 |
+
querystring['postal_code'] = postal_code
|
| 569 |
+
if last_followup_message_number_sent:
|
| 570 |
+
querystring['last_followup_message_number_sent'] = last_followup_message_number_sent
|
| 571 |
+
if subscription_method:
|
| 572 |
+
querystring['subscription_method'] = subscription_method
|
| 573 |
+
if unsubscribe_method:
|
| 574 |
+
querystring['unsubscribe_method'] = unsubscribe_method
|
| 575 |
+
if subscribed_before:
|
| 576 |
+
querystring['subscribed_before'] = subscribed_before
|
| 577 |
+
if unsubscribed_after:
|
| 578 |
+
querystring['unsubscribed_after'] = unsubscribed_after
|
| 579 |
+
if verified_at:
|
| 580 |
+
querystring['verified_at'] = verified_at
|
| 581 |
+
if unsubscribed_before:
|
| 582 |
+
querystring['unsubscribed_before'] = unsubscribed_before
|
| 583 |
+
if unsubscribed_at:
|
| 584 |
+
querystring['unsubscribed_at'] = unsubscribed_at
|
| 585 |
+
if tags:
|
| 586 |
+
querystring['tags'] = tags
|
| 587 |
+
|
| 588 |
+
headers = {
|
| 589 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 590 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
|
| 594 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 595 |
+
try:
|
| 596 |
+
observation = response.json()
|
| 597 |
+
except:
|
| 598 |
+
observation = response.text
|
| 599 |
+
return observation
|
| 600 |
+
|
| 601 |
+
def get_integrations(accountid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 602 |
+
"""
|
| 603 |
+
"Get the social integrations in an account"
|
| 604 |
+
accountid: Account ID
|
| 605 |
+
ws_size: Number of items to retrieve from pagination
|
| 606 |
+
ws_start: Starting position for pagination
|
| 607 |
+
|
| 608 |
+
"""
|
| 609 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/integrations"
|
| 610 |
+
querystring = {}
|
| 611 |
+
if ws_size:
|
| 612 |
+
querystring['ws.size'] = ws_size
|
| 613 |
+
if ws_start:
|
| 614 |
+
querystring['ws.start'] = ws_start
|
| 615 |
+
|
| 616 |
+
headers = {
|
| 617 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 618 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 619 |
+
}
|
| 620 |
+
|
| 621 |
+
|
| 622 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 623 |
+
try:
|
| 624 |
+
observation = response.json()
|
| 625 |
+
except:
|
| 626 |
+
observation = response.text
|
| 627 |
+
return observation
|
| 628 |
+
|
| 629 |
+
def get_click(linkid: int, listid: int, accountid: int, campaignid: int, campaigntype: str, clickid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 630 |
+
"""
|
| 631 |
+
"Get a specifc click for a broadcast or follow up within a list"
|
| 632 |
+
linkid: Link ID
|
| 633 |
+
listid: List ID
|
| 634 |
+
accountid: Account ID
|
| 635 |
+
campaignid: Campaign ID
|
| 636 |
+
campaigntype: Campaign Type
|
| 637 |
+
clickid: Click ID
|
| 638 |
+
|
| 639 |
+
"""
|
| 640 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links/{linkid}/clicks/{clickid}"
|
| 641 |
+
querystring = {}
|
| 642 |
+
|
| 643 |
+
headers = {
|
| 644 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 645 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 646 |
+
}
|
| 647 |
+
|
| 648 |
+
|
| 649 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 650 |
+
try:
|
| 651 |
+
observation = response.json()
|
| 652 |
+
except:
|
| 653 |
+
observation = response.text
|
| 654 |
+
return observation
|
| 655 |
+
|
| 656 |
+
def get_custom_field(listid: int, customfieldid: int, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 657 |
+
"""
|
| 658 |
+
"Get a specific custom field within an account"
|
| 659 |
+
listid: List ID
|
| 660 |
+
customfieldid: Custom Field ID
|
| 661 |
+
accountid: Account ID
|
| 662 |
+
|
| 663 |
+
"""
|
| 664 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/custom_fields/{customfieldid}"
|
| 665 |
+
querystring = {}
|
| 666 |
+
|
| 667 |
+
headers = {
|
| 668 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 669 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 670 |
+
}
|
| 671 |
+
|
| 672 |
+
|
| 673 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 674 |
+
try:
|
| 675 |
+
observation = response.json()
|
| 676 |
+
except:
|
| 677 |
+
observation = response.text
|
| 678 |
+
return observation
|
| 679 |
+
|
| 680 |
+
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'):
|
| 681 |
+
"""
|
| 682 |
+
"Find the subscribers across all lists within an account"
|
| 683 |
+
ws_op: Specify that you want to search
|
| 684 |
+
accountid: Account ID
|
| 685 |
+
country: Search for a country
|
| 686 |
+
city: Search for a city
|
| 687 |
+
email: Search for a subscriber's email address
|
| 688 |
+
area_code: Search for an area code
|
| 689 |
+
ad_tracking: Search for an ad tracking value
|
| 690 |
+
custom_fields: Search for values of custom fields
|
| 691 |
+
latitude: Search the latitude
|
| 692 |
+
last_followup_message_sent_at: Search the date of the last follow up message
|
| 693 |
+
longitude: Search the longitude
|
| 694 |
+
name: Search the subscriber's name
|
| 695 |
+
last_followup_message_number_sent: Search the last follow up message number sent
|
| 696 |
+
dma_code: Search for a dma code
|
| 697 |
+
postal_code: Search the postal code
|
| 698 |
+
misc_notes: Search the miscellenous notes
|
| 699 |
+
subscribed_before: Search subscribers who subscribed before a date
|
| 700 |
+
subscribed_after: Search subscribers who subscriberd after a date
|
| 701 |
+
region: Search the region
|
| 702 |
+
subscribed_at: Search subscribers who subscribed on a date
|
| 703 |
+
subscription_method: Search for subscription methods
|
| 704 |
+
unsubscribed_before: Search subscribers who unsubscribed before a date
|
| 705 |
+
tags: Search for a subscriber's tags
|
| 706 |
+
status: Search the subscriber's status
|
| 707 |
+
unsubscribe_method: Search for subscribe methods
|
| 708 |
+
verified_at: Search subscribers who verified their email on a date
|
| 709 |
+
ws_show: Return only the total number of rows
|
| 710 |
+
ws_size: Number of items to retrieve from pagination
|
| 711 |
+
unsubscribed_after: Search subscribers who unsubscribed after a date
|
| 712 |
+
unsubscribed_at: Search subscribers who unsubscribed on a date
|
| 713 |
+
ws_start: Starting position for pagination
|
| 714 |
+
|
| 715 |
+
"""
|
| 716 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}"
|
| 717 |
+
querystring = {'ws.op': ws_op, }
|
| 718 |
+
if country:
|
| 719 |
+
querystring['country'] = country
|
| 720 |
+
if city:
|
| 721 |
+
querystring['city'] = city
|
| 722 |
+
if email:
|
| 723 |
+
querystring['email'] = email
|
| 724 |
+
if area_code:
|
| 725 |
+
querystring['area_code'] = area_code
|
| 726 |
+
if ad_tracking:
|
| 727 |
+
querystring['ad_tracking'] = ad_tracking
|
| 728 |
+
if custom_fields:
|
| 729 |
+
querystring['custom_fields'] = custom_fields
|
| 730 |
+
if latitude:
|
| 731 |
+
querystring['latitude'] = latitude
|
| 732 |
+
if last_followup_message_sent_at:
|
| 733 |
+
querystring['last_followup_message_sent_at'] = last_followup_message_sent_at
|
| 734 |
+
if longitude:
|
| 735 |
+
querystring['longitude'] = longitude
|
| 736 |
+
if name:
|
| 737 |
+
querystring['name'] = name
|
| 738 |
+
if last_followup_message_number_sent:
|
| 739 |
+
querystring['last_followup_message_number_sent'] = last_followup_message_number_sent
|
| 740 |
+
if dma_code:
|
| 741 |
+
querystring['dma_code'] = dma_code
|
| 742 |
+
if postal_code:
|
| 743 |
+
querystring['postal_code'] = postal_code
|
| 744 |
+
if misc_notes:
|
| 745 |
+
querystring['misc_notes'] = misc_notes
|
| 746 |
+
if subscribed_before:
|
| 747 |
+
querystring['subscribed_before'] = subscribed_before
|
| 748 |
+
if subscribed_after:
|
| 749 |
+
querystring['subscribed_after'] = subscribed_after
|
| 750 |
+
if region:
|
| 751 |
+
querystring['region'] = region
|
| 752 |
+
if subscribed_at:
|
| 753 |
+
querystring['subscribed_at'] = subscribed_at
|
| 754 |
+
if subscription_method:
|
| 755 |
+
querystring['subscription_method'] = subscription_method
|
| 756 |
+
if unsubscribed_before:
|
| 757 |
+
querystring['unsubscribed_before'] = unsubscribed_before
|
| 758 |
+
if tags:
|
| 759 |
+
querystring['tags'] = tags
|
| 760 |
+
if status:
|
| 761 |
+
querystring['status'] = status
|
| 762 |
+
if unsubscribe_method:
|
| 763 |
+
querystring['unsubscribe_method'] = unsubscribe_method
|
| 764 |
+
if verified_at:
|
| 765 |
+
querystring['verified_at'] = verified_at
|
| 766 |
+
if ws_show:
|
| 767 |
+
querystring['ws.show'] = ws_show
|
| 768 |
+
if ws_size:
|
| 769 |
+
querystring['ws.size'] = ws_size
|
| 770 |
+
if unsubscribed_after:
|
| 771 |
+
querystring['unsubscribed_after'] = unsubscribed_after
|
| 772 |
+
if unsubscribed_at:
|
| 773 |
+
querystring['unsubscribed_at'] = unsubscribed_at
|
| 774 |
+
if ws_start:
|
| 775 |
+
querystring['ws.start'] = ws_start
|
| 776 |
+
|
| 777 |
+
headers = {
|
| 778 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 779 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 780 |
+
}
|
| 781 |
+
|
| 782 |
+
|
| 783 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 784 |
+
try:
|
| 785 |
+
observation = response.json()
|
| 786 |
+
except:
|
| 787 |
+
observation = response.text
|
| 788 |
+
return observation
|
| 789 |
+
|
| 790 |
+
def get_tags_for_list(accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 791 |
+
"""
|
| 792 |
+
"Get the tags in a list"
|
| 793 |
+
accountid: Account ID
|
| 794 |
+
listid: LIst ID
|
| 795 |
+
|
| 796 |
+
"""
|
| 797 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/tags"
|
| 798 |
+
querystring = {}
|
| 799 |
+
|
| 800 |
+
headers = {
|
| 801 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 802 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 803 |
+
}
|
| 804 |
+
|
| 805 |
+
|
| 806 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 807 |
+
try:
|
| 808 |
+
observation = response.json()
|
| 809 |
+
except:
|
| 810 |
+
observation = response.text
|
| 811 |
+
return observation
|
| 812 |
+
|
| 813 |
+
def get_campaigns(accountid: int, listid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 814 |
+
"""
|
| 815 |
+
"Get the follow up and broadcasts within a list"
|
| 816 |
+
accountid: Account ID
|
| 817 |
+
listid: List ID
|
| 818 |
+
ws_size: Number of items to retrieve from pagination
|
| 819 |
+
ws_start: Starting position for pagination
|
| 820 |
+
|
| 821 |
+
"""
|
| 822 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns"
|
| 823 |
+
querystring = {}
|
| 824 |
+
if ws_size:
|
| 825 |
+
querystring['ws.size'] = ws_size
|
| 826 |
+
if ws_start:
|
| 827 |
+
querystring['ws.start'] = ws_start
|
| 828 |
+
|
| 829 |
+
headers = {
|
| 830 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 831 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 832 |
+
}
|
| 833 |
+
|
| 834 |
+
|
| 835 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 836 |
+
try:
|
| 837 |
+
observation = response.json()
|
| 838 |
+
except:
|
| 839 |
+
observation = response.text
|
| 840 |
+
return observation
|
| 841 |
+
|
| 842 |
+
def get_messages(listid: int, campaignid: int, campaigntype: str, accountid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 843 |
+
"""
|
| 844 |
+
"Get the messages for a broadcast or follow up within a list"
|
| 845 |
+
listid: List ID
|
| 846 |
+
campaignid: Campaign ID
|
| 847 |
+
campaigntype: Campaign Type
|
| 848 |
+
accountid: Account ID
|
| 849 |
+
ws_size: Number of items to retrieve from pagination
|
| 850 |
+
ws_start: Starting position for pagination
|
| 851 |
+
|
| 852 |
+
"""
|
| 853 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages"
|
| 854 |
+
querystring = {}
|
| 855 |
+
if ws_size:
|
| 856 |
+
querystring['ws.size'] = ws_size
|
| 857 |
+
if ws_start:
|
| 858 |
+
querystring['ws.start'] = ws_start
|
| 859 |
+
|
| 860 |
+
headers = {
|
| 861 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 862 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 863 |
+
}
|
| 864 |
+
|
| 865 |
+
|
| 866 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 867 |
+
try:
|
| 868 |
+
observation = response.json()
|
| 869 |
+
except:
|
| 870 |
+
observation = response.text
|
| 871 |
+
return observation
|
| 872 |
+
|
| 873 |
+
def get_campaign(accountid: int, campaignid: int, campaigntype: str, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 874 |
+
"""
|
| 875 |
+
"Get a specific follow-up or broadcast within an list"
|
| 876 |
+
accountid: Account ID
|
| 877 |
+
campaignid: Campaign ID
|
| 878 |
+
campaigntype: Campaign Type
|
| 879 |
+
listid: List ID
|
| 880 |
+
|
| 881 |
+
"""
|
| 882 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}"
|
| 883 |
+
querystring = {}
|
| 884 |
+
|
| 885 |
+
headers = {
|
| 886 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 887 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 888 |
+
}
|
| 889 |
+
|
| 890 |
+
|
| 891 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 892 |
+
try:
|
| 893 |
+
observation = response.json()
|
| 894 |
+
except:
|
| 895 |
+
observation = response.text
|
| 896 |
+
return observation
|
| 897 |
+
|
| 898 |
+
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'):
|
| 899 |
+
"""
|
| 900 |
+
"Get the clicks from a broadcast or follow up within a list"
|
| 901 |
+
listid: List ID
|
| 902 |
+
accountid: Account ID
|
| 903 |
+
campaigntype: Campaign Type
|
| 904 |
+
linkid: Link ID
|
| 905 |
+
campaignid: Campaign ID
|
| 906 |
+
ws_start: Starting position for pagination
|
| 907 |
+
ws_size: Number of items to retrieve from pagination
|
| 908 |
+
|
| 909 |
+
"""
|
| 910 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/links/{linkid}/clicks"
|
| 911 |
+
querystring = {}
|
| 912 |
+
if ws_start:
|
| 913 |
+
querystring['ws.start'] = ws_start
|
| 914 |
+
if ws_size:
|
| 915 |
+
querystring['ws.size'] = ws_size
|
| 916 |
+
|
| 917 |
+
headers = {
|
| 918 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 919 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 920 |
+
}
|
| 921 |
+
|
| 922 |
+
|
| 923 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 924 |
+
try:
|
| 925 |
+
observation = response.json()
|
| 926 |
+
except:
|
| 927 |
+
observation = response.text
|
| 928 |
+
return observation
|
| 929 |
+
|
| 930 |
+
def get_accounts(ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 931 |
+
"""
|
| 932 |
+
"Get's the accounts linked to user"
|
| 933 |
+
ws_start: Starting point of the paginated collection
|
| 934 |
+
ws_size: Number of items in a pagination
|
| 935 |
+
|
| 936 |
+
"""
|
| 937 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts"
|
| 938 |
+
querystring = {}
|
| 939 |
+
if ws_start:
|
| 940 |
+
querystring['ws.start'] = ws_start
|
| 941 |
+
if ws_size:
|
| 942 |
+
querystring['ws.size'] = ws_size
|
| 943 |
+
|
| 944 |
+
headers = {
|
| 945 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 946 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 947 |
+
}
|
| 948 |
+
|
| 949 |
+
|
| 950 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 951 |
+
try:
|
| 952 |
+
observation = response.json()
|
| 953 |
+
except:
|
| 954 |
+
observation = response.text
|
| 955 |
+
return observation
|
| 956 |
+
|
| 957 |
+
def get_webforms_for_account(ws_op: str, accountid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 958 |
+
"""
|
| 959 |
+
"Get the webforms for an account"
|
| 960 |
+
ws_op: Specify you want the webforms
|
| 961 |
+
accountid: Account ID
|
| 962 |
+
|
| 963 |
+
"""
|
| 964 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}"
|
| 965 |
+
querystring = {'ws.op': ws_op, }
|
| 966 |
+
|
| 967 |
+
headers = {
|
| 968 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 969 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 970 |
+
}
|
| 971 |
+
|
| 972 |
+
|
| 973 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 974 |
+
try:
|
| 975 |
+
observation = response.json()
|
| 976 |
+
except:
|
| 977 |
+
observation = response.text
|
| 978 |
+
return observation
|
| 979 |
+
|
| 980 |
+
def get_message(campaignid: int, accountid: int, messageentryid: int, campaigntype: str, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 981 |
+
"""
|
| 982 |
+
"Get a specific message for a broadcast or follow up within a list"
|
| 983 |
+
campaignid: Campaign ID
|
| 984 |
+
accountid: Account ID
|
| 985 |
+
messageentryid: Message Entry ID
|
| 986 |
+
campaigntype: Campaign Type
|
| 987 |
+
listid: List ID
|
| 988 |
+
|
| 989 |
+
"""
|
| 990 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}"
|
| 991 |
+
querystring = {}
|
| 992 |
+
|
| 993 |
+
headers = {
|
| 994 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 995 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 996 |
+
}
|
| 997 |
+
|
| 998 |
+
|
| 999 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1000 |
+
try:
|
| 1001 |
+
observation = response.json()
|
| 1002 |
+
except:
|
| 1003 |
+
observation = response.text
|
| 1004 |
+
return observation
|
| 1005 |
+
|
| 1006 |
+
def get_custom_fields(listid: int, accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1007 |
+
"""
|
| 1008 |
+
"Get custom fields within an account"
|
| 1009 |
+
listid: List ID
|
| 1010 |
+
accountid: Account ID
|
| 1011 |
+
ws_start: Starting position for pagination
|
| 1012 |
+
ws_size: Number of items to retrieve from pagination
|
| 1013 |
+
|
| 1014 |
+
"""
|
| 1015 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/custom_fields"
|
| 1016 |
+
querystring = {}
|
| 1017 |
+
if ws_start:
|
| 1018 |
+
querystring['ws.start'] = ws_start
|
| 1019 |
+
if ws_size:
|
| 1020 |
+
querystring['ws.size'] = ws_size
|
| 1021 |
+
|
| 1022 |
+
headers = {
|
| 1023 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1024 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1025 |
+
}
|
| 1026 |
+
|
| 1027 |
+
|
| 1028 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1029 |
+
try:
|
| 1030 |
+
observation = response.json()
|
| 1031 |
+
except:
|
| 1032 |
+
observation = response.text
|
| 1033 |
+
return observation
|
| 1034 |
+
|
| 1035 |
+
def get_broadcast(broadcastid: int, accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1036 |
+
"""
|
| 1037 |
+
"Get a specific broadcast within a list"
|
| 1038 |
+
broadcastid: Broadcast ID
|
| 1039 |
+
accountid: Account ID
|
| 1040 |
+
listid: List ID
|
| 1041 |
+
|
| 1042 |
+
"""
|
| 1043 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/broadcasts/{broadcastid}"
|
| 1044 |
+
querystring = {}
|
| 1045 |
+
|
| 1046 |
+
headers = {
|
| 1047 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1048 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1049 |
+
}
|
| 1050 |
+
|
| 1051 |
+
|
| 1052 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1053 |
+
try:
|
| 1054 |
+
observation = response.json()
|
| 1055 |
+
except:
|
| 1056 |
+
observation = response.text
|
| 1057 |
+
return observation
|
| 1058 |
+
|
| 1059 |
+
def get_segment(segmentid: int, accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1060 |
+
"""
|
| 1061 |
+
"Get a specific segment within a list"
|
| 1062 |
+
segmentid: Segment ID
|
| 1063 |
+
accountid: Account ID
|
| 1064 |
+
listid: List ID
|
| 1065 |
+
|
| 1066 |
+
"""
|
| 1067 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/segments/{segmentid}"
|
| 1068 |
+
querystring = {}
|
| 1069 |
+
|
| 1070 |
+
headers = {
|
| 1071 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1072 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1073 |
+
}
|
| 1074 |
+
|
| 1075 |
+
|
| 1076 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1077 |
+
try:
|
| 1078 |
+
observation = response.json()
|
| 1079 |
+
except:
|
| 1080 |
+
observation = response.text
|
| 1081 |
+
return observation
|
| 1082 |
+
|
| 1083 |
+
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'):
|
| 1084 |
+
"""
|
| 1085 |
+
"Get the activity for a specific subscriber"
|
| 1086 |
+
listid: List ID
|
| 1087 |
+
subscriberid: Subscriber ID
|
| 1088 |
+
ws_op: Specify you want the activity
|
| 1089 |
+
accountid: Account ID
|
| 1090 |
+
ws_start: Starting position for pagination
|
| 1091 |
+
ws_size: Number of items to retrieve from pagination
|
| 1092 |
+
|
| 1093 |
+
"""
|
| 1094 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/subscribers/{subscriberid}"
|
| 1095 |
+
querystring = {'ws.op': ws_op, }
|
| 1096 |
+
if ws_start:
|
| 1097 |
+
querystring['ws.start'] = ws_start
|
| 1098 |
+
if ws_size:
|
| 1099 |
+
querystring['ws.size'] = ws_size
|
| 1100 |
+
|
| 1101 |
+
headers = {
|
| 1102 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1103 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
|
| 1107 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1108 |
+
try:
|
| 1109 |
+
observation = response.json()
|
| 1110 |
+
except:
|
| 1111 |
+
observation = response.text
|
| 1112 |
+
return observation
|
| 1113 |
+
|
| 1114 |
+
def get_webforms_for_list(listid: int, accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1115 |
+
"""
|
| 1116 |
+
"Get the webforms within a list"
|
| 1117 |
+
listid: List ID
|
| 1118 |
+
accountid: Account ID
|
| 1119 |
+
ws_start: Starting position for pagination
|
| 1120 |
+
ws_size: Number of items to retrieve from pagination
|
| 1121 |
+
|
| 1122 |
+
"""
|
| 1123 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_forms"
|
| 1124 |
+
querystring = {}
|
| 1125 |
+
if ws_start:
|
| 1126 |
+
querystring['ws.start'] = ws_start
|
| 1127 |
+
if ws_size:
|
| 1128 |
+
querystring['ws.size'] = ws_size
|
| 1129 |
+
|
| 1130 |
+
headers = {
|
| 1131 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1132 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1133 |
+
}
|
| 1134 |
+
|
| 1135 |
+
|
| 1136 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1137 |
+
try:
|
| 1138 |
+
observation = response.json()
|
| 1139 |
+
except:
|
| 1140 |
+
observation = response.text
|
| 1141 |
+
return observation
|
| 1142 |
+
|
| 1143 |
+
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'):
|
| 1144 |
+
"""
|
| 1145 |
+
"Get the subscribers associated to a message for a broadcast or follow up within a list"
|
| 1146 |
+
campaignid: Campaign ID
|
| 1147 |
+
accountid: Account ID
|
| 1148 |
+
campaigntype: Campaign Type
|
| 1149 |
+
listid: List ID
|
| 1150 |
+
ws_op: Specify the desire to return subscribers
|
| 1151 |
+
ws_start: Starting position for pagination
|
| 1152 |
+
ws_show: Return only the total number of records
|
| 1153 |
+
ws_size: Number of items to retrieve from pagination
|
| 1154 |
+
|
| 1155 |
+
"""
|
| 1156 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages"
|
| 1157 |
+
querystring = {'ws.op': ws_op, }
|
| 1158 |
+
if ws_start:
|
| 1159 |
+
querystring['ws.start'] = ws_start
|
| 1160 |
+
if ws_show:
|
| 1161 |
+
querystring['ws.show'] = ws_show
|
| 1162 |
+
if ws_size:
|
| 1163 |
+
querystring['ws.size'] = ws_size
|
| 1164 |
+
|
| 1165 |
+
headers = {
|
| 1166 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1167 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1168 |
+
}
|
| 1169 |
+
|
| 1170 |
+
|
| 1171 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1172 |
+
try:
|
| 1173 |
+
observation = response.json()
|
| 1174 |
+
except:
|
| 1175 |
+
observation = response.text
|
| 1176 |
+
return observation
|
| 1177 |
+
|
| 1178 |
+
def get_total_broadcasts(accountid: int, listid: int, status: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1179 |
+
"""
|
| 1180 |
+
"Get total number of broadcasts in a specific status within a list"
|
| 1181 |
+
accountid: Account ID
|
| 1182 |
+
listid: List ID
|
| 1183 |
+
status: Specify the status of the broadcasts to retrieve
|
| 1184 |
+
|
| 1185 |
+
"""
|
| 1186 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/broadcasts/total"
|
| 1187 |
+
querystring = {'status': status, }
|
| 1188 |
+
|
| 1189 |
+
headers = {
|
| 1190 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1191 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1192 |
+
}
|
| 1193 |
+
|
| 1194 |
+
|
| 1195 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1196 |
+
try:
|
| 1197 |
+
observation = response.json()
|
| 1198 |
+
except:
|
| 1199 |
+
observation = response.text
|
| 1200 |
+
return observation
|
| 1201 |
+
|
| 1202 |
+
def get_broadcast_statistics(accountid: int, listid: int, campaignid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1203 |
+
"""
|
| 1204 |
+
"Get the statistics for a broadcast within a list"
|
| 1205 |
+
accountid: Account ID
|
| 1206 |
+
listid: List ID
|
| 1207 |
+
campaignid: Campaign ID
|
| 1208 |
+
ws_start: Starting position for pagination
|
| 1209 |
+
ws_size: Number of items to retrieve from pagination
|
| 1210 |
+
|
| 1211 |
+
"""
|
| 1212 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/b{campaignid}/stats"
|
| 1213 |
+
querystring = {}
|
| 1214 |
+
if ws_start:
|
| 1215 |
+
querystring['ws.start'] = ws_start
|
| 1216 |
+
if ws_size:
|
| 1217 |
+
querystring['ws.size'] = ws_size
|
| 1218 |
+
|
| 1219 |
+
headers = {
|
| 1220 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1221 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1222 |
+
}
|
| 1223 |
+
|
| 1224 |
+
|
| 1225 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1226 |
+
try:
|
| 1227 |
+
observation = response.json()
|
| 1228 |
+
except:
|
| 1229 |
+
observation = response.text
|
| 1230 |
+
return observation
|
| 1231 |
+
|
| 1232 |
+
def get_message_open(campaignid: int, listid: int, accountid: int, messageentryid: int, openid: int, campaigntype: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1233 |
+
"""
|
| 1234 |
+
"Get a specific open associated to a message for a broadcast or follow up within a list"
|
| 1235 |
+
campaignid: Campaign ID
|
| 1236 |
+
listid: List ID
|
| 1237 |
+
accountid: Account ID
|
| 1238 |
+
messageentryid: Message Entry ID
|
| 1239 |
+
openid: Open ID
|
| 1240 |
+
campaigntype: Campaign Type
|
| 1241 |
+
|
| 1242 |
+
"""
|
| 1243 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/campaigns/{campaigntype}{campaignid}/messages/{messageentryid}/opens/{openid}"
|
| 1244 |
+
querystring = {}
|
| 1245 |
+
|
| 1246 |
+
headers = {
|
| 1247 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1248 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1249 |
+
}
|
| 1250 |
+
|
| 1251 |
+
|
| 1252 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1253 |
+
try:
|
| 1254 |
+
observation = response.json()
|
| 1255 |
+
except:
|
| 1256 |
+
observation = response.text
|
| 1257 |
+
return observation
|
| 1258 |
+
|
| 1259 |
+
def get_account(account_id: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1260 |
+
"""
|
| 1261 |
+
"Get a specific account"
|
| 1262 |
+
account_id: Account ID
|
| 1263 |
+
|
| 1264 |
+
"""
|
| 1265 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{account_id}"
|
| 1266 |
+
querystring = {}
|
| 1267 |
+
|
| 1268 |
+
headers = {
|
| 1269 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1270 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1271 |
+
}
|
| 1272 |
+
|
| 1273 |
+
|
| 1274 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1275 |
+
try:
|
| 1276 |
+
observation = response.json()
|
| 1277 |
+
except:
|
| 1278 |
+
observation = response.text
|
| 1279 |
+
return observation
|
| 1280 |
+
|
| 1281 |
+
def get_broadcasts(accountid: int, status: str, listid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1282 |
+
"""
|
| 1283 |
+
"Get the broadcasts within a list"
|
| 1284 |
+
accountid: Account ID
|
| 1285 |
+
status: Specify the status of broadcasts to retrieve
|
| 1286 |
+
listid: List ID
|
| 1287 |
+
ws_start: Starting position for pagination
|
| 1288 |
+
ws_size: Number of items to retrieve from pagination
|
| 1289 |
+
|
| 1290 |
+
"""
|
| 1291 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/broadcasts"
|
| 1292 |
+
querystring = {'status': status, }
|
| 1293 |
+
if ws_start:
|
| 1294 |
+
querystring['ws.start'] = ws_start
|
| 1295 |
+
if ws_size:
|
| 1296 |
+
querystring['ws.size'] = ws_size
|
| 1297 |
+
|
| 1298 |
+
headers = {
|
| 1299 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1300 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1301 |
+
}
|
| 1302 |
+
|
| 1303 |
+
|
| 1304 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1305 |
+
try:
|
| 1306 |
+
observation = response.json()
|
| 1307 |
+
except:
|
| 1308 |
+
observation = response.text
|
| 1309 |
+
return observation
|
| 1310 |
+
|
| 1311 |
+
def get_lists(accountid: int, ws_start: int=None, ws_size: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1312 |
+
"""
|
| 1313 |
+
"Get's the lists for an account"
|
| 1314 |
+
accountid: Account ID
|
| 1315 |
+
ws_start: Starting point of the paginated collection
|
| 1316 |
+
ws_size: Number of items in a pagination
|
| 1317 |
+
|
| 1318 |
+
"""
|
| 1319 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists"
|
| 1320 |
+
querystring = {}
|
| 1321 |
+
if ws_start:
|
| 1322 |
+
querystring['ws.start'] = ws_start
|
| 1323 |
+
if ws_size:
|
| 1324 |
+
querystring['ws.size'] = ws_size
|
| 1325 |
+
|
| 1326 |
+
headers = {
|
| 1327 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1328 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1329 |
+
}
|
| 1330 |
+
|
| 1331 |
+
|
| 1332 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1333 |
+
try:
|
| 1334 |
+
observation = response.json()
|
| 1335 |
+
except:
|
| 1336 |
+
observation = response.text
|
| 1337 |
+
return observation
|
| 1338 |
+
|
| 1339 |
+
def get_split_tests_for_list(listid: int, accountid: int, ws_size: int=None, ws_start: int=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1340 |
+
"""
|
| 1341 |
+
"Get the web form split tests within a list"
|
| 1342 |
+
listid: List ID
|
| 1343 |
+
accountid: Account ID
|
| 1344 |
+
ws_size: Number of items to retrieve from pagination
|
| 1345 |
+
ws_start: Starting position for pagination
|
| 1346 |
+
|
| 1347 |
+
"""
|
| 1348 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests"
|
| 1349 |
+
querystring = {}
|
| 1350 |
+
if ws_size:
|
| 1351 |
+
querystring['ws.size'] = ws_size
|
| 1352 |
+
if ws_start:
|
| 1353 |
+
querystring['ws.start'] = ws_start
|
| 1354 |
+
|
| 1355 |
+
headers = {
|
| 1356 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1357 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1358 |
+
}
|
| 1359 |
+
|
| 1360 |
+
|
| 1361 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1362 |
+
try:
|
| 1363 |
+
observation = response.json()
|
| 1364 |
+
except:
|
| 1365 |
+
observation = response.text
|
| 1366 |
+
return observation
|
| 1367 |
+
|
| 1368 |
+
def get_split_test_for_list(splittestid: int, accountid: int, listid: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 1369 |
+
"""
|
| 1370 |
+
"Get a specific web form split test within a list"
|
| 1371 |
+
splittestid: Split Test ID
|
| 1372 |
+
accountid: Account ID
|
| 1373 |
+
listid: List ID
|
| 1374 |
+
|
| 1375 |
+
"""
|
| 1376 |
+
url = f"https://aweber2.p.rapidapi.com/1.0/accounts/{accountid}/lists/{listid}/web_form_split_tests/{splittestid}"
|
| 1377 |
+
querystring = {}
|
| 1378 |
+
|
| 1379 |
+
headers = {
|
| 1380 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 1381 |
+
"X-RapidAPI-Host": "aweber2.p.rapidapi.com"
|
| 1382 |
+
}
|
| 1383 |
+
|
| 1384 |
+
|
| 1385 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 1386 |
+
try:
|
| 1387 |
+
observation = response.json()
|
| 1388 |
+
except:
|
| 1389 |
+
observation = response.text
|
| 1390 |
+
return observation
|
| 1391 |
+
|
toolbench/toolenv/tools/Communication/barbaraaa.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Barbaraaa",
|
| 3 |
+
"tool_description":"Hi",
|
| 4 |
+
"title":"Barbaraaa",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":100,
|
| 8 |
+
"avgLatency":1061,
|
| 9 |
+
"avgSuccessRate":100,
|
| 10 |
+
"popularityScore":9.1,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/Barbaraaa/api/barbaraaa/",
|
| 14 |
+
"host":"barbaraaa.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"M",
|
| 18 |
+
"url":"https://barbaraaa.p.rapidapi.com/",
|
| 19 |
+
"description":"crypto",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[],
|
| 22 |
+
"optional_parameters":[],
|
| 23 |
+
"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",
|
| 24 |
+
"statuscode":111,
|
| 25 |
+
"body":"",
|
| 26 |
+
"headers":"",
|
| 27 |
+
"schema":""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Communication/barbaraaa/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def m(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"crypto"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://barbaraaa.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "barbaraaa.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/bcolimited.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"bcolimited",
|
| 3 |
+
"tool_description":"translate",
|
| 4 |
+
"title":"bcolimited",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/bcoded/api/bcolimited/",
|
| 8 |
+
"host":"bcolimited.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"endpoint1",
|
| 12 |
+
"url":"https://bcolimited.p.rapidapi.com/index.php",
|
| 13 |
+
"description":"endpoint desc",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/bcolimited/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def endpoint1(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"endpoint desc"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://bcolimited.p.rapidapi.com/index.php"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "bcolimited.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/bermainapi_whatsapp_gateway.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_23d47925-cb4d-4657-9d10-aecb0dd20666",
|
| 3 |
+
"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/",
|
| 4 |
+
"home_url": "https://rapidapi.com/invictussevenfold-UTc0Aaopdoj/api/bermainapi-whatsapp-gateway/",
|
| 5 |
+
"name": "Bermainapi - Whatsapp Gateway",
|
| 6 |
+
"title": "Bermainapi - Whatsapp Gateway",
|
| 7 |
+
"pricing": "FREEMIUM",
|
| 8 |
+
"tool_name": "Bermainapi - Whatsapp Gateway",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "bermainapi-whatsapp-gateway.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "SendMessage",
|
| 14 |
+
"url": "https://bermainapi-whatsapp-gateway.p.rapidapi.com/apiv2/send.php?key=316411",
|
| 15 |
+
"description": "Sample for sending text message",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [
|
| 18 |
+
{
|
| 19 |
+
"name": "message",
|
| 20 |
+
"type": "STRING",
|
| 21 |
+
"description": "your message",
|
| 22 |
+
"default": ""
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"name": "number",
|
| 26 |
+
"type": "NUMBER",
|
| 27 |
+
"description": "your number (628xxxxxx)",
|
| 28 |
+
"default": ""
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"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",
|
| 33 |
+
"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",
|
| 34 |
+
"test_endpoint": "",
|
| 35 |
+
"statuscode": 200,
|
| 36 |
+
"schema": {
|
| 37 |
+
"type": "object",
|
| 38 |
+
"properties": {
|
| 39 |
+
"status": {
|
| 40 |
+
"type": "string"
|
| 41 |
+
},
|
| 42 |
+
"message": {
|
| 43 |
+
"type": "string"
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
]
|
| 49 |
+
}
|
toolbench/toolenv/tools/Communication/bitikas1.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"bitikas1",
|
| 3 |
+
"tool_description":"niisama",
|
| 4 |
+
"title":"bitikas1",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/bjorn.kass/api/bitikas1/",
|
| 8 |
+
"host":"bitikas1.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"lopp1",
|
| 12 |
+
"url":"https://bitikas1.p.rapidapi.comhttp://www.brunn.ee",
|
| 13 |
+
"description":"niisamalopp",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[
|
| 17 |
+
{
|
| 18 |
+
"name":"aaa",
|
| 19 |
+
"type":"STRING",
|
| 20 |
+
"description":"",
|
| 21 |
+
"default":""
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name":"bbb",
|
| 25 |
+
"type":"STRING",
|
| 26 |
+
"description":"",
|
| 27 |
+
"default":""
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"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",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
}
|
toolbench/toolenv/tools/Communication/bitikas1/api.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def lopp1(aaa: str=None, bbb: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"niisamalopp"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://bitikas1.p.rapidapi.comhttp://www.brunn.ee"
|
| 15 |
+
querystring = {}
|
| 16 |
+
if aaa:
|
| 17 |
+
querystring['aaa'] = aaa
|
| 18 |
+
if bbb:
|
| 19 |
+
querystring['bbb'] = bbb
|
| 20 |
+
|
| 21 |
+
headers = {
|
| 22 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 23 |
+
"X-RapidAPI-Host": "bitikas1.p.rapidapi.com"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 28 |
+
try:
|
| 29 |
+
observation = response.json()
|
| 30 |
+
except:
|
| 31 |
+
observation = response.text
|
| 32 |
+
return observation
|
| 33 |
+
|
toolbench/toolenv/tools/Communication/blanq.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_63278ed2-6d85-40d7-961e-50779a5fdb76",
|
| 3 |
+
"tool_description": "API to shorten and manage your links. Supports custom domains and analytics.",
|
| 4 |
+
"home_url": "https://rapidapi.com/blanq-blanq-default/api/blanq2/",
|
| 5 |
+
"name": "Blanq",
|
| 6 |
+
"title": "Blanq",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Blanq",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "blanq2.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "createShortLink",
|
| 14 |
+
"url": "https://blanq2.p.rapidapi.com/api/v1/links",
|
| 15 |
+
"description": "Create a short link from a long link.",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"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",
|
| 20 |
+
"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",
|
| 21 |
+
"test_endpoint": "",
|
| 22 |
+
"statuscode": 1,
|
| 23 |
+
"schema": ""
|
| 24 |
+
}
|
| 25 |
+
]
|
| 26 |
+
}
|
toolbench/toolenv/tools/Communication/blanq/api.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def getuserdetails(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Get account level information about the user."
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://blanq2.p.rapidapi.com/api/v1/user"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "blanq2.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def getrecenturls(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
" "
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://blanq2.p.rapidapi.com/api/v1/links"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "blanq2.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
| 51 |
+
def geturldetails(backhalf: str, domain: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 52 |
+
"""
|
| 53 |
+
"Pass domain and backhalf to retrieve information about a short link."
|
| 54 |
+
backhalf: Backhalf or slug of your short link
|
| 55 |
+
domain: Your custom domain without http, www and https
|
| 56 |
+
|
| 57 |
+
"""
|
| 58 |
+
url = f"https://blanq2.p.rapidapi.com/api/v1/links/{domain}/{backhalf}"
|
| 59 |
+
querystring = {}
|
| 60 |
+
|
| 61 |
+
headers = {
|
| 62 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 63 |
+
"X-RapidAPI-Host": "blanq2.p.rapidapi.com"
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 68 |
+
try:
|
| 69 |
+
observation = response.json()
|
| 70 |
+
except:
|
| 71 |
+
observation = response.text
|
| 72 |
+
return observation
|
| 73 |
+
|
toolbench/toolenv/tools/Communication/bombsaway.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"BombsAway",
|
| 3 |
+
"tool_description":"Shock and Awe",
|
| 4 |
+
"title":"BombsAway",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/mariedell870/api/bombsaway/",
|
| 8 |
+
"host":"bombsaway.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Bombed",
|
| 12 |
+
"url":"https://bombsaway.p.rapidapi.com/",
|
| 13 |
+
"description":"Sends SMS",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/bombsaway/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def bombed(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Sends SMS"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://bombsaway.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "bombsaway.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/botlibre.json
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "53aa59cfe4b0a9b1348db1f5",
|
| 3 |
+
"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.",
|
| 4 |
+
"home_url": "https://rapidapi.com/paphus/api/botlibre/",
|
| 5 |
+
"name": "BOTlibre",
|
| 6 |
+
"title": "BOTlibre",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "BOTlibre",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 1252,
|
| 12 |
+
"avgSuccessRate": 22,
|
| 13 |
+
"popularityScore": 2.3,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "paphus-botlibre.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "form-check-instance",
|
| 20 |
+
"url": "https://paphus-botlibre.p.rapidapi.com/form-check-instance",
|
| 21 |
+
"description": "The form-check-instance API validates that a bot ID or name exists, and returns the bot's details.",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "password",
|
| 26 |
+
"type": "STRING",
|
| 27 |
+
"description": "OPTIONAL: The password of the user. A token can also be used.",
|
| 28 |
+
"default": "password"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [
|
| 32 |
+
{
|
| 33 |
+
"name": "id",
|
| 34 |
+
"type": "STRING",
|
| 35 |
+
"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.",
|
| 36 |
+
"default": "1234"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "name",
|
| 40 |
+
"type": "STRING",
|
| 41 |
+
"description": "REQUIRED: The nameof the bot to validate. The bot's ID can also be used.",
|
| 42 |
+
"default": "mybot"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"name": "application",
|
| 46 |
+
"type": "STRING",
|
| 47 |
+
"description": "OPTIONAL: The application ID. If not passed, the application will be anonymous.",
|
| 48 |
+
"default": "myapp"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"name": "user",
|
| 52 |
+
"type": "STRING",
|
| 53 |
+
"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.",
|
| 54 |
+
"default": "myuserid"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "token",
|
| 58 |
+
"type": "STRING",
|
| 59 |
+
"description": "OPTIONAL: The token of the user. A token can be obtained through check-user, and is valid until reset.",
|
| 60 |
+
"default": "123456"
|
| 61 |
+
}
|
| 62 |
+
],
|
| 63 |
+
"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",
|
| 64 |
+
"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",
|
| 65 |
+
"test_endpoint": "",
|
| 66 |
+
"statuscode": 1,
|
| 67 |
+
"schema": ""
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"name": "form-check-user",
|
| 71 |
+
"url": "https://paphus-botlibre.p.rapidapi.com/form-check-user",
|
| 72 |
+
"description": "The form-check-user API validates user, and returns the user's details.",
|
| 73 |
+
"method": "GET",
|
| 74 |
+
"required_parameters": [
|
| 75 |
+
{
|
| 76 |
+
"name": "user",
|
| 77 |
+
"type": "STRING",
|
| 78 |
+
"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.",
|
| 79 |
+
"default": "myuserid"
|
| 80 |
+
}
|
| 81 |
+
],
|
| 82 |
+
"optional_parameters": [
|
| 83 |
+
{
|
| 84 |
+
"name": "application",
|
| 85 |
+
"type": "STRING",
|
| 86 |
+
"description": "OPTIONAL: The application ID. If not passed, the application will be anonymous.",
|
| 87 |
+
"default": "myapp"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"name": "password",
|
| 91 |
+
"type": "STRING",
|
| 92 |
+
"description": "REQUIRED: The password of the user. A token can also be used.",
|
| 93 |
+
"default": "password"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"name": "token",
|
| 97 |
+
"type": "STRING",
|
| 98 |
+
"description": "REQUIRED: The token of the user. A token can be obtained through check-user, and is valid until reset.",
|
| 99 |
+
"default": "123456"
|
| 100 |
+
}
|
| 101 |
+
],
|
| 102 |
+
"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",
|
| 103 |
+
"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",
|
| 104 |
+
"test_endpoint": "",
|
| 105 |
+
"statuscode": 1,
|
| 106 |
+
"schema": ""
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name": "form-chat",
|
| 110 |
+
"url": "https://paphus-botlibre.p.rapidapi.com/form-chat",
|
| 111 |
+
"description": "The form-chat API receives a chat message and returns the chat bot's reply as an XML document.",
|
| 112 |
+
"method": "GET",
|
| 113 |
+
"required_parameters": [
|
| 114 |
+
{
|
| 115 |
+
"name": "instance",
|
| 116 |
+
"type": "STRING",
|
| 117 |
+
"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.",
|
| 118 |
+
"default": "mybot"
|
| 119 |
+
}
|
| 120 |
+
],
|
| 121 |
+
"optional_parameters": [
|
| 122 |
+
{
|
| 123 |
+
"name": "application",
|
| 124 |
+
"type": "STRING",
|
| 125 |
+
"description": "OPTIONAL: The application ID. If not passed, the application will be anonymous.",
|
| 126 |
+
"default": "myapp"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"name": "user",
|
| 130 |
+
"type": "STRING",
|
| 131 |
+
"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.",
|
| 132 |
+
"default": "myuserid"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"name": "password",
|
| 136 |
+
"type": "STRING",
|
| 137 |
+
"description": "OPTIONAL: The password of the user who is sending the message. A token can also be used.",
|
| 138 |
+
"default": "mypassword"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"name": "token",
|
| 142 |
+
"type": "STRING",
|
| 143 |
+
"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.",
|
| 144 |
+
"default": "123456"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"name": "conversation",
|
| 148 |
+
"type": "STRING",
|
| 149 |
+
"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.",
|
| 150 |
+
"default": "1234"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"name": "message",
|
| 154 |
+
"type": "STRING",
|
| 155 |
+
"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.",
|
| 156 |
+
"default": "Hello Bot"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"name": "emote",
|
| 160 |
+
"type": "STRING",
|
| 161 |
+
"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.",
|
| 162 |
+
"default": "HAPPY"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"name": "correction",
|
| 166 |
+
"type": "STRING",
|
| 167 |
+
"description": "OPTIONAL: A boolean that defines the chat message is a correction to the bot's last answer.",
|
| 168 |
+
"default": ""
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"name": "offensive",
|
| 172 |
+
"type": "STRING",
|
| 173 |
+
"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.",
|
| 174 |
+
"default": ""
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"name": "disconnect",
|
| 178 |
+
"type": "STRING",
|
| 179 |
+
"description": "OPTIONAL: A boolean that defines the end of the conversation.",
|
| 180 |
+
"default": ""
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"name": "includeQuestion",
|
| 184 |
+
"type": "STRING",
|
| 185 |
+
"description": "OPTIONAL: A boolean that indicates the question should be included in the response.",
|
| 186 |
+
"default": ""
|
| 187 |
+
}
|
| 188 |
+
],
|
| 189 |
+
"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",
|
| 190 |
+
"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",
|
| 191 |
+
"test_endpoint": "",
|
| 192 |
+
"statuscode": 1,
|
| 193 |
+
"schema": ""
|
| 194 |
+
}
|
| 195 |
+
],
|
| 196 |
+
"standardized_name": "botlibre"
|
| 197 |
+
}
|
toolbench/toolenv/tools/Communication/botlibre/api.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def 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'):
|
| 10 |
+
"""
|
| 11 |
+
"The form-check-instance API validates that a bot ID or name exists, and returns the bot's details."
|
| 12 |
+
password: OPTIONAL: The password of the user. A token can also be used.
|
| 13 |
+
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.
|
| 14 |
+
name: REQUIRED: The nameof the bot to validate. The bot's ID can also be used.
|
| 15 |
+
application: OPTIONAL: The application ID. If not passed, the application will be anonymous.
|
| 16 |
+
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.
|
| 17 |
+
token: OPTIONAL: The token of the user. A token can be obtained through check-user, and is valid until reset.
|
| 18 |
+
|
| 19 |
+
"""
|
| 20 |
+
url = f"https://paphus-botlibre.p.rapidapi.com/form-check-instance"
|
| 21 |
+
querystring = {'password': password, }
|
| 22 |
+
if is_id:
|
| 23 |
+
querystring['id'] = is_id
|
| 24 |
+
if name:
|
| 25 |
+
querystring['name'] = name
|
| 26 |
+
if application:
|
| 27 |
+
querystring['application'] = application
|
| 28 |
+
if user:
|
| 29 |
+
querystring['user'] = user
|
| 30 |
+
if token:
|
| 31 |
+
querystring['token'] = token
|
| 32 |
+
|
| 33 |
+
headers = {
|
| 34 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 35 |
+
"X-RapidAPI-Host": "paphus-botlibre.p.rapidapi.com"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 40 |
+
try:
|
| 41 |
+
observation = response.json()
|
| 42 |
+
except:
|
| 43 |
+
observation = response.text
|
| 44 |
+
return observation
|
| 45 |
+
|
| 46 |
+
def form_check_user(user: str, application: str='myapp', password: str='password', token: str='123456', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 47 |
+
"""
|
| 48 |
+
"The form-check-user API validates user, and returns the user's details."
|
| 49 |
+
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.
|
| 50 |
+
application: OPTIONAL: The application ID. If not passed, the application will be anonymous.
|
| 51 |
+
password: REQUIRED: The password of the user. A token can also be used.
|
| 52 |
+
token: REQUIRED: The token of the user. A token can be obtained through check-user, and is valid until reset.
|
| 53 |
+
|
| 54 |
+
"""
|
| 55 |
+
url = f"https://paphus-botlibre.p.rapidapi.com/form-check-user"
|
| 56 |
+
querystring = {'user': user, }
|
| 57 |
+
if application:
|
| 58 |
+
querystring['application'] = application
|
| 59 |
+
if password:
|
| 60 |
+
querystring['password'] = password
|
| 61 |
+
if token:
|
| 62 |
+
querystring['token'] = token
|
| 63 |
+
|
| 64 |
+
headers = {
|
| 65 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 66 |
+
"X-RapidAPI-Host": "paphus-botlibre.p.rapidapi.com"
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 71 |
+
try:
|
| 72 |
+
observation = response.json()
|
| 73 |
+
except:
|
| 74 |
+
observation = response.text
|
| 75 |
+
return observation
|
| 76 |
+
|
| 77 |
+
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'):
|
| 78 |
+
"""
|
| 79 |
+
"The form-chat API receives a chat message and returns the chat bot's reply as an XML document."
|
| 80 |
+
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.
|
| 81 |
+
application: OPTIONAL: The application ID. If not passed, the application will be anonymous.
|
| 82 |
+
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.
|
| 83 |
+
password: OPTIONAL: The password of the user who is sending the message. A token can also be used.
|
| 84 |
+
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.
|
| 85 |
+
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.
|
| 86 |
+
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.
|
| 87 |
+
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.
|
| 88 |
+
correction: OPTIONAL: A boolean that defines the chat message is a correction to the bot's last answer.
|
| 89 |
+
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.
|
| 90 |
+
disconnect: OPTIONAL: A boolean that defines the end of the conversation.
|
| 91 |
+
includequestion: OPTIONAL: A boolean that indicates the question should be included in the response.
|
| 92 |
+
|
| 93 |
+
"""
|
| 94 |
+
url = f"https://paphus-botlibre.p.rapidapi.com/form-chat"
|
| 95 |
+
querystring = {'instance': instance, }
|
| 96 |
+
if application:
|
| 97 |
+
querystring['application'] = application
|
| 98 |
+
if user:
|
| 99 |
+
querystring['user'] = user
|
| 100 |
+
if password:
|
| 101 |
+
querystring['password'] = password
|
| 102 |
+
if token:
|
| 103 |
+
querystring['token'] = token
|
| 104 |
+
if conversation:
|
| 105 |
+
querystring['conversation'] = conversation
|
| 106 |
+
if message:
|
| 107 |
+
querystring['message'] = message
|
| 108 |
+
if emote:
|
| 109 |
+
querystring['emote'] = emote
|
| 110 |
+
if correction:
|
| 111 |
+
querystring['correction'] = correction
|
| 112 |
+
if offensive:
|
| 113 |
+
querystring['offensive'] = offensive
|
| 114 |
+
if disconnect:
|
| 115 |
+
querystring['disconnect'] = disconnect
|
| 116 |
+
if includequestion:
|
| 117 |
+
querystring['includeQuestion'] = includequestion
|
| 118 |
+
|
| 119 |
+
headers = {
|
| 120 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 121 |
+
"X-RapidAPI-Host": "paphus-botlibre.p.rapidapi.com"
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 126 |
+
try:
|
| 127 |
+
observation = response.json()
|
| 128 |
+
except:
|
| 129 |
+
observation = response.text
|
| 130 |
+
return observation
|
| 131 |
+
|
toolbench/toolenv/tools/Communication/brcd.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"brcd",
|
| 3 |
+
"tool_description":"brcd api",
|
| 4 |
+
"title":"brcd",
|
| 5 |
+
"pricing":"FREE",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/k-d0Whkii_3/api/brcd/",
|
| 8 |
+
"host":"brcd.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"hello",
|
| 12 |
+
"url":"https://brcd.p.rapidapi.com/",
|
| 13 |
+
"description":"brcd",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[],
|
| 17 |
+
"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",
|
| 18 |
+
"statuscode":111,
|
| 19 |
+
"body":"",
|
| 20 |
+
"headers":"",
|
| 21 |
+
"schema":""
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"name":"hello_copy",
|
| 25 |
+
"url":"https://brcd.p.rapidapi.com/",
|
| 26 |
+
"description":"hello text",
|
| 27 |
+
"method":"GET",
|
| 28 |
+
"required_parameters":[],
|
| 29 |
+
"optional_parameters":[],
|
| 30 |
+
"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",
|
| 31 |
+
"statuscode":111,
|
| 32 |
+
"body":"",
|
| 33 |
+
"headers":"",
|
| 34 |
+
"schema":""
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
}
|
toolbench/toolenv/tools/Communication/brcd/api.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def hello(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"brcd"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://brcd.p.rapidapi.com/"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "brcd.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
| 30 |
+
def hello_copy(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 31 |
+
"""
|
| 32 |
+
"hello text"
|
| 33 |
+
|
| 34 |
+
"""
|
| 35 |
+
url = f"https://brcd.p.rapidapi.com/"
|
| 36 |
+
querystring = {}
|
| 37 |
+
|
| 38 |
+
headers = {
|
| 39 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 40 |
+
"X-RapidAPI-Host": "brcd.p.rapidapi.com"
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 45 |
+
try:
|
| 46 |
+
observation = response.json()
|
| 47 |
+
except:
|
| 48 |
+
observation = response.text
|
| 49 |
+
return observation
|
| 50 |
+
|
toolbench/toolenv/tools/Communication/bulksmsapi.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "56c3d898e4b07732012a3146",
|
| 3 |
+
"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.",
|
| 4 |
+
"home_url": "https://rapidapi.com/kapsystem/api/bulksmsapi/",
|
| 5 |
+
"name": "BulkSMSAPI",
|
| 6 |
+
"title": "BulkSMSAPI",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "BulkSMSAPI",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "kapsystem-bulksmsapi-v1.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "/api/command?username=test&password=test&cmd=X",
|
| 14 |
+
"url": "https://kapsystem-bulksmsapi-v1.p.rapidapi.com/api/command?username=test&password=test&cmd=X",
|
| 15 |
+
"description": "HTTP GET Commands",
|
| 16 |
+
"method": "GET",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"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",
|
| 20 |
+
"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",
|
| 21 |
+
"test_endpoint": {
|
| 22 |
+
"message": "Endpoint '/api/command' does not exist"
|
| 23 |
+
},
|
| 24 |
+
"statuscode": 1,
|
| 25 |
+
"schema": ""
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"standardized_name": "bulksmsapi"
|
| 29 |
+
}
|
toolbench/toolenv/tools/Communication/bulksmsapi/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def api_command_username_test_password_test_cmd_x(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"HTTP GET Commands"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://kapsystem-bulksmsapi-v1.p.rapidapi.com/api/command?username=test&password=test&cmd=x"
|
| 15 |
+
querystring = {}
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "kapsystem-bulksmsapi-v1.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/cakemail.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "53aa5885e4b0b60946a2fe20",
|
| 3 |
+
"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.",
|
| 4 |
+
"home_url": "https://rapidapi.com/cakemail/api/cakemail/",
|
| 5 |
+
"name": "CakeMail",
|
| 6 |
+
"title": "CakeMail",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "CakeMail",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 100,
|
| 11 |
+
"avgLatency": 24,
|
| 12 |
+
"avgSuccessRate": 100,
|
| 13 |
+
"popularityScore": 6.7,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "cakemail-cakemail.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "Documentation",
|
| 20 |
+
"url": "https://cakemail-cakemail.p.rapidapi.com/http://cakemail.com/start",
|
| 21 |
+
"description": "",
|
| 22 |
+
"method": "GET",
|
| 23 |
+
"required_parameters": [
|
| 24 |
+
{
|
| 25 |
+
"name": "How to",
|
| 26 |
+
"type": "STRING",
|
| 27 |
+
"description": "How to Start",
|
| 28 |
+
"default": "http://cakemail.com/start"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"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",
|
| 33 |
+
"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",
|
| 34 |
+
"test_endpoint": "",
|
| 35 |
+
"statuscode": 1,
|
| 36 |
+
"schema": ""
|
| 37 |
+
}
|
| 38 |
+
],
|
| 39 |
+
"standardized_name": "cakemail"
|
| 40 |
+
}
|
toolbench/toolenv/tools/Communication/cakemail/api.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def documentation(how_to: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
""
|
| 12 |
+
how_to: How to Start
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://cakemail-cakemail.p.rapidapi.com/http://cakemail.com/start"
|
| 16 |
+
querystring = {'How to': how_to, }
|
| 17 |
+
|
| 18 |
+
headers = {
|
| 19 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 20 |
+
"X-RapidAPI-Host": "cakemail-cakemail.p.rapidapi.com"
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 25 |
+
try:
|
| 26 |
+
observation = response.json()
|
| 27 |
+
except:
|
| 28 |
+
observation = response.text
|
| 29 |
+
return observation
|
| 30 |
+
|
toolbench/toolenv/tools/Communication/callbackfy.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_d3b6724b-5209-48f3-8042-6134aedad774",
|
| 3 |
+
"tool_description": "Avoid long http requests by buffering requests and sending a callback when the result is complete.",
|
| 4 |
+
"home_url": "https://rapidapi.com/kadukeitor/api/callbackfy2/",
|
| 5 |
+
"name": "Callbackfy",
|
| 6 |
+
"title": "Callbackfy",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Callbackfy",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "callbackfy2.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Callback",
|
| 14 |
+
"url": "https://callbackfy2.p.rapidapi.com/callback",
|
| 15 |
+
"description": "Get a callback with the response of the requested call.",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"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",
|
| 20 |
+
"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",
|
| 21 |
+
"test_endpoint": ""
|
| 22 |
+
}
|
| 23 |
+
]
|
| 24 |
+
}
|
toolbench/toolenv/tools/Communication/caller_id.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"caller-id",
|
| 3 |
+
"tool_description":"Retrieve personal data (including Name, Gender, Job, Company Name, Email, Telco carrier name, etc) with mobile number",
|
| 4 |
+
"title":"caller-id",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":{
|
| 7 |
+
"avgServiceLevel":66,
|
| 8 |
+
"avgLatency":3734,
|
| 9 |
+
"avgSuccessRate":66,
|
| 10 |
+
"popularityScore":9.3,
|
| 11 |
+
"__typename":"Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url":"https://rapidapi.com/williamchew85/api/caller-id4/",
|
| 14 |
+
"host":"caller-id4.p.rapidapi.com",
|
| 15 |
+
"api_list":[
|
| 16 |
+
{
|
| 17 |
+
"name":"search-mobile",
|
| 18 |
+
"url":"https://caller-id4.p.rapidapi.com/search-mobile",
|
| 19 |
+
"description":"Retrieve personal details with mobile number",
|
| 20 |
+
"method":"GET",
|
| 21 |
+
"required_parameters":[
|
| 22 |
+
{
|
| 23 |
+
"name":"type",
|
| 24 |
+
"type":"STRING",
|
| 25 |
+
"description":"",
|
| 26 |
+
"default":"4"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name":"encoding",
|
| 30 |
+
"type":"STRING",
|
| 31 |
+
"description":"",
|
| 32 |
+
"default":"json"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name":"q",
|
| 36 |
+
"type":"NUMBER",
|
| 37 |
+
"description":"",
|
| 38 |
+
"default":"88888888"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"name":"countryCode",
|
| 42 |
+
"type":"STRING",
|
| 43 |
+
"description":"",
|
| 44 |
+
"default":"SG"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"optional_parameters":[],
|
| 48 |
+
"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",
|
| 49 |
+
"statuscode":200,
|
| 50 |
+
"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}",
|
| 51 |
+
"headers":{
|
| 52 |
+
"access-control-allow-credentials":"true",
|
| 53 |
+
"access-control-allow-origin":"*",
|
| 54 |
+
"alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
|
| 55 |
+
"cf-cache-status":"DYNAMIC",
|
| 56 |
+
"cf-ray":"78900d40ec7d46cd-SIN",
|
| 57 |
+
"content-type":"text/html; charset=utf-8",
|
| 58 |
+
"date":"Fri, 13 Jan 2023 18:04:01 GMT",
|
| 59 |
+
"nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}",
|
| 60 |
+
"referrer-policy":"same-origin",
|
| 61 |
+
"server":"RapidAPI-1.2.8",
|
| 62 |
+
"vary":"Accept-Encoding"
|
| 63 |
+
},
|
| 64 |
+
"schema":{}
|
| 65 |
+
}
|
| 66 |
+
]
|
| 67 |
+
}
|
toolbench/toolenv/tools/Communication/caller_id/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def search_mobile(type: str, encoding: str, q: int, countrycode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Retrieve personal details with mobile number"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://caller-id4.p.rapidapi.com/search-mobile"
|
| 15 |
+
querystring = {'type': type, 'encoding': encoding, 'q': q, 'countryCode': countrycode, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "caller-id4.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/canitobot_webhook.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_3b200165-2c1c-44c6-9f93-a02c3f67b6e8",
|
| 3 |
+
"tool_description": "Webhook used for ClassHack 2019 hackathon",
|
| 4 |
+
"home_url": "https://rapidapi.com/CesarNog/api/canitobot-webhook/",
|
| 5 |
+
"name": "CanitoBot -Webhook",
|
| 6 |
+
"title": "CanitoBot -Webhook",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "CanitoBot -Webhook",
|
| 9 |
+
"score": {
|
| 10 |
+
"avgServiceLevel": 0,
|
| 11 |
+
"avgLatency": 6,
|
| 12 |
+
"avgSuccessRate": 0,
|
| 13 |
+
"popularityScore": 0,
|
| 14 |
+
"__typename": "Score"
|
| 15 |
+
},
|
| 16 |
+
"host": "canitobot-webhook.p.rapidapi.com",
|
| 17 |
+
"api_list": [
|
| 18 |
+
{
|
| 19 |
+
"name": "facebook",
|
| 20 |
+
"url": "https://canitobot-webhook.p.rapidapi.com/facebook",
|
| 21 |
+
"description": "Send post from Facebook to SMS and WhatsApp using TwilioAPI",
|
| 22 |
+
"method": "POST",
|
| 23 |
+
"required_parameters": [],
|
| 24 |
+
"optional_parameters": [],
|
| 25 |
+
"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",
|
| 26 |
+
"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",
|
| 27 |
+
"test_endpoint": ""
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
toolbench/toolenv/tools/Communication/capitalizer/api.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def capitalizer(text: str, lang: str, mode: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"Changes the capitalization of incoming text based on language rules of that text and responds with a simple string"
|
| 12 |
+
text: The text to be capitalized
|
| 13 |
+
lang: The ISO 639-1 code if know or "autoDetect" to detect language before applying the change.
|
| 14 |
+
mode: The target capitalization mode: default, title, sentence, lower, upper, nospace
|
| 15 |
+
|
| 16 |
+
"""
|
| 17 |
+
url = f"https://sprawkcapitalizer.p.rapidapi.com/api/applycaps"
|
| 18 |
+
querystring = {'text': text, 'lang': lang, 'mode': mode, }
|
| 19 |
+
|
| 20 |
+
headers = {
|
| 21 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 22 |
+
"X-RapidAPI-Host": "sprawkcapitalizer.p.rapidapi.com"
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 27 |
+
try:
|
| 28 |
+
observation = response.json()
|
| 29 |
+
except:
|
| 30 |
+
observation = response.text
|
| 31 |
+
return observation
|
| 32 |
+
|
toolbench/toolenv/tools/Communication/celitech_bee_wireless_esim.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"product_id": "api_5acd234e-bd24-44d5-a305-e1d53b500ef2",
|
| 3 |
+
"tool_description": "Celitech Bee API enables web and mobile apps to add cellular data eSIM to their online offerings.",
|
| 4 |
+
"home_url": "https://rapidapi.com/celitech-celitech-default/api/celitech-bee-wireless-esim/",
|
| 5 |
+
"name": "Celitech Bee - Wireless eSIM",
|
| 6 |
+
"title": "Celitech Bee - Wireless eSIM",
|
| 7 |
+
"pricing": "FREE",
|
| 8 |
+
"tool_name": "Celitech Bee - Wireless eSIM",
|
| 9 |
+
"score": null,
|
| 10 |
+
"host": "celitech-bee-wireless-esim.p.rapidapi.com",
|
| 11 |
+
"api_list": [
|
| 12 |
+
{
|
| 13 |
+
"name": "Create session",
|
| 14 |
+
"url": "https://celitech-bee-wireless-esim.p.rapidapi.com/sessions",
|
| 15 |
+
"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.",
|
| 16 |
+
"method": "POST",
|
| 17 |
+
"required_parameters": [],
|
| 18 |
+
"optional_parameters": [],
|
| 19 |
+
"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",
|
| 20 |
+
"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",
|
| 21 |
+
"test_endpoint": "",
|
| 22 |
+
"statuscode": 200,
|
| 23 |
+
"schema": {}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"name": "Create a purchase (eSIM)",
|
| 27 |
+
"url": "https://celitech-bee-wireless-esim.p.rapidapi.com/purchases",
|
| 28 |
+
"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).",
|
| 29 |
+
"method": "POST",
|
| 30 |
+
"required_parameters": [],
|
| 31 |
+
"optional_parameters": [],
|
| 32 |
+
"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",
|
| 33 |
+
"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",
|
| 34 |
+
"test_endpoint": "",
|
| 35 |
+
"statuscode": 200,
|
| 36 |
+
"schema": {}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"name": "Create a customer (optional)",
|
| 40 |
+
"url": "https://celitech-bee-wireless-esim.p.rapidapi.com/customers",
|
| 41 |
+
"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.",
|
| 42 |
+
"method": "POST",
|
| 43 |
+
"required_parameters": [],
|
| 44 |
+
"optional_parameters": [],
|
| 45 |
+
"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",
|
| 46 |
+
"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",
|
| 47 |
+
"test_endpoint": "",
|
| 48 |
+
"statuscode": 200,
|
| 49 |
+
"schema": {}
|
| 50 |
+
}
|
| 51 |
+
]
|
| 52 |
+
}
|
toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"CFC (Capitalize for Capitalists)",
|
| 3 |
+
"tool_description":"Expensive API to capitalize strings",
|
| 4 |
+
"title":"CFC (Capitalize for Capitalists)",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/elopezrfis-xGgXXStQuE/api/cfc-capitalize-for-capitalists/",
|
| 8 |
+
"host":"cfc-capitalize-for-capitalists.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"CAPITALIZE IT!!!",
|
| 12 |
+
"url":"https://cfc-capitalize-for-capitalists.p.rapidapi.com/",
|
| 13 |
+
"description":"CAPITALIZE YOUR TEXT, USE THIS ENDPOINT!!!",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[
|
| 16 |
+
{
|
| 17 |
+
"name":"text",
|
| 18 |
+
"type":"STRING",
|
| 19 |
+
"description":"",
|
| 20 |
+
"default":"hello"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"optional_parameters":[],
|
| 24 |
+
"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",
|
| 25 |
+
"statuscode":111,
|
| 26 |
+
"body":"",
|
| 27 |
+
"headers":"",
|
| 28 |
+
"schema":""
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
toolbench/toolenv/tools/Communication/cfc_capitalize_for_capitalists/api.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def capitalize_it(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"CAPITALIZE YOUR TEXT, USE THIS ENDPOINT!!!"
|
| 12 |
+
|
| 13 |
+
"""
|
| 14 |
+
url = f"https://cfc-capitalize-for-capitalists.p.rapidapi.com/"
|
| 15 |
+
querystring = {'text': text, }
|
| 16 |
+
|
| 17 |
+
headers = {
|
| 18 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 19 |
+
"X-RapidAPI-Host": "cfc-capitalize-for-capitalists.p.rapidapi.com"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 24 |
+
try:
|
| 25 |
+
observation = response.json()
|
| 26 |
+
except:
|
| 27 |
+
observation = response.text
|
| 28 |
+
return observation
|
| 29 |
+
|
toolbench/toolenv/tools/Communication/chat_rooms.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name":"Chat Rooms",
|
| 3 |
+
"tool_description":"This is a chatroom API. Plug in with your server and lets chat.",
|
| 4 |
+
"title":"Chat Rooms",
|
| 5 |
+
"pricing":"FREEMIUM",
|
| 6 |
+
"score":null,
|
| 7 |
+
"home_url":"https://rapidapi.com/businessangelsunited/api/chat-rooms/",
|
| 8 |
+
"host":"chat-rooms.p.rapidapi.com",
|
| 9 |
+
"api_list":[
|
| 10 |
+
{
|
| 11 |
+
"name":"Mars Test Chat",
|
| 12 |
+
"url":"https://chat-rooms.p.rapidapi.com/localhost6969",
|
| 13 |
+
"description":"This is a chat API. Users will plug in a server and start a chat room. no screen name required.",
|
| 14 |
+
"method":"GET",
|
| 15 |
+
"required_parameters":[],
|
| 16 |
+
"optional_parameters":[
|
| 17 |
+
{
|
| 18 |
+
"name":"localhost6969",
|
| 19 |
+
"type":"STRING",
|
| 20 |
+
"description":"this is the mars chain",
|
| 21 |
+
"default":""
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"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",
|
| 25 |
+
"statuscode":200,
|
| 26 |
+
"body":{
|
| 27 |
+
"key1":"value",
|
| 28 |
+
"key2":"value"
|
| 29 |
+
},
|
| 30 |
+
"headers":{
|
| 31 |
+
"A-IM":"Good"
|
| 32 |
+
},
|
| 33 |
+
"schema":{
|
| 34 |
+
"type":"object",
|
| 35 |
+
"properties":{
|
| 36 |
+
"key1":{
|
| 37 |
+
"type":"string"
|
| 38 |
+
},
|
| 39 |
+
"key2":{
|
| 40 |
+
"type":"string"
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
}
|
toolbench/toolenv/tools/Communication/chat_rooms/api.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import json
|
| 3 |
+
from datetime import date, datetime, timedelta
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from typing import Optional, Dict, Union, List
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def mars_test_chat(localhost6969: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
|
| 10 |
+
"""
|
| 11 |
+
"This is a chat API. Users will plug in a server and start a chat room. no screen name required."
|
| 12 |
+
localhost6969: this is the mars chain
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
url = f"https://chat-rooms.p.rapidapi.com/localhost6969"
|
| 16 |
+
querystring = {}
|
| 17 |
+
if localhost6969:
|
| 18 |
+
querystring['localhost6969'] = localhost6969
|
| 19 |
+
|
| 20 |
+
headers = {
|
| 21 |
+
"X-RapidAPI-Key": toolbench_rapidapi_key,
|
| 22 |
+
"X-RapidAPI-Host": "chat-rooms.p.rapidapi.com"
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
response = requests.get(url, headers=headers, params=querystring)
|
| 27 |
+
try:
|
| 28 |
+
observation = response.json()
|
| 29 |
+
except:
|
| 30 |
+
observation = response.text
|
| 31 |
+
return observation
|
| 32 |
+
|
toolbench/toolenv/tools/Communication/checky_verify_phone_number.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tool_name": "Checky - Verify Phone Number",
|
| 3 |
+
"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! ",
|
| 4 |
+
"title": "Checky - Verify Phone Number",
|
| 5 |
+
"pricing": "PAID",
|
| 6 |
+
"score": {
|
| 7 |
+
"avgServiceLevel": 100,
|
| 8 |
+
"avgLatency": 66,
|
| 9 |
+
"avgSuccessRate": 100,
|
| 10 |
+
"popularityScore": 9.1,
|
| 11 |
+
"__typename": "Score"
|
| 12 |
+
},
|
| 13 |
+
"home_url": "https://rapidapi.com/kidddevs/api/checky-verify-phone-number/",
|
| 14 |
+
"host": "checky-verify-phone-number.p.rapidapi.com",
|
| 15 |
+
"api_list": [
|
| 16 |
+
{
|
| 17 |
+
"name": "Verify (Batch)",
|
| 18 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/verify/batch",
|
| 19 |
+
"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.",
|
| 20 |
+
"method": "POST",
|
| 21 |
+
"required_parameters": [],
|
| 22 |
+
"optional_parameters": [],
|
| 23 |
+
"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",
|
| 24 |
+
"statuscode": 111,
|
| 25 |
+
"body": "",
|
| 26 |
+
"headers": "",
|
| 27 |
+
"schema": ""
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"name": "Verify (POST)",
|
| 31 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/verify/post",
|
| 32 |
+
"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.",
|
| 33 |
+
"method": "POST",
|
| 34 |
+
"required_parameters": [],
|
| 35 |
+
"optional_parameters": [],
|
| 36 |
+
"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",
|
| 37 |
+
"statuscode": 111,
|
| 38 |
+
"body": "",
|
| 39 |
+
"headers": "",
|
| 40 |
+
"schema": ""
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name": "Verify",
|
| 44 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/verify",
|
| 45 |
+
"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.",
|
| 46 |
+
"method": "GET",
|
| 47 |
+
"required_parameters": [
|
| 48 |
+
{
|
| 49 |
+
"name": "country",
|
| 50 |
+
"type": "STRING",
|
| 51 |
+
"description": "The two-letter country code of the phone number. eg **US**, **CA**, **FR** etc.",
|
| 52 |
+
"default": "US"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "phone",
|
| 56 |
+
"type": "STRING",
|
| 57 |
+
"description": "The phone number to verify. It should be provided without any spaces or special characters.",
|
| 58 |
+
"default": "6502530000"
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
"optional_parameters": [],
|
| 62 |
+
"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",
|
| 63 |
+
"statuscode": 111,
|
| 64 |
+
"body": "",
|
| 65 |
+
"headers": "",
|
| 66 |
+
"schema": ""
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"name": "Carrier (Batch)",
|
| 70 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/batch",
|
| 71 |
+
"description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.",
|
| 72 |
+
"method": "POST",
|
| 73 |
+
"required_parameters": [],
|
| 74 |
+
"optional_parameters": [],
|
| 75 |
+
"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",
|
| 76 |
+
"statuscode": 111,
|
| 77 |
+
"body": "",
|
| 78 |
+
"headers": "",
|
| 79 |
+
"schema": ""
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name": "Carrier (POST)",
|
| 83 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/post",
|
| 84 |
+
"description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.",
|
| 85 |
+
"method": "POST",
|
| 86 |
+
"required_parameters": [],
|
| 87 |
+
"optional_parameters": [],
|
| 88 |
+
"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",
|
| 89 |
+
"statuscode": 111,
|
| 90 |
+
"body": "",
|
| 91 |
+
"headers": "",
|
| 92 |
+
"schema": ""
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"name": "Carrier",
|
| 96 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/carrier",
|
| 97 |
+
"description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.",
|
| 98 |
+
"method": "GET",
|
| 99 |
+
"required_parameters": [
|
| 100 |
+
{
|
| 101 |
+
"name": "country",
|
| 102 |
+
"type": "STRING",
|
| 103 |
+
"description": "The country code of the phone number.",
|
| 104 |
+
"default": "CM"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "phone",
|
| 108 |
+
"type": "STRING",
|
| 109 |
+
"description": "The phone number for which to retrieve carrier information.",
|
| 110 |
+
"default": "620063770"
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"optional_parameters": [],
|
| 114 |
+
"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",
|
| 115 |
+
"statuscode": 111,
|
| 116 |
+
"body": "",
|
| 117 |
+
"headers": "",
|
| 118 |
+
"schema": ""
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"name": "Verify (Batch)",
|
| 122 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/verify/batch",
|
| 123 |
+
"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.",
|
| 124 |
+
"method": "POST",
|
| 125 |
+
"required_parameters": [],
|
| 126 |
+
"optional_parameters": [],
|
| 127 |
+
"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",
|
| 128 |
+
"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",
|
| 129 |
+
"test_endpoint": ""
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"name": "Verify (POST)",
|
| 133 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/verify/post",
|
| 134 |
+
"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.",
|
| 135 |
+
"method": "POST",
|
| 136 |
+
"required_parameters": [],
|
| 137 |
+
"optional_parameters": [],
|
| 138 |
+
"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",
|
| 139 |
+
"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",
|
| 140 |
+
"test_endpoint": ""
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"name": "Carrier (Batch)",
|
| 144 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/batch",
|
| 145 |
+
"description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.",
|
| 146 |
+
"method": "POST",
|
| 147 |
+
"required_parameters": [],
|
| 148 |
+
"optional_parameters": [],
|
| 149 |
+
"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",
|
| 150 |
+
"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",
|
| 151 |
+
"test_endpoint": ""
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"name": "Carrier (POST)",
|
| 155 |
+
"url": "https://checky-verify-phone-number.p.rapidapi.com/carrier/post",
|
| 156 |
+
"description": "The Checky Carrier Information endpoint allows you to retrieve information about the carrier or service provider for a given phone number.",
|
| 157 |
+
"method": "POST",
|
| 158 |
+
"required_parameters": [],
|
| 159 |
+
"optional_parameters": [],
|
| 160 |
+
"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",
|
| 161 |
+
"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",
|
| 162 |
+
"test_endpoint": ""
|
| 163 |
+
}
|
| 164 |
+
]
|
| 165 |
+
}
|