Skip to content

Instantly share code, notes, and snippets.

@alsak0de
Created October 7, 2022 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alsak0de/518bf7d742f72a873bbd27761925d588 to your computer and use it in GitHub Desktop.
Save alsak0de/518bf7d742f72a873bbd27761925d588 to your computer and use it in GitHub Desktop.
Disabling WHIN Receive (Whatsapp gateway) at rapidAPI

Replace the apikey with your own on the inject node and click to disable WHIN Receive service.

Reactivation of the service will require registering a destination target again.

[
{
"id": "9270e76f28beb09e",
"type": "inject",
"z": "e3a7b97ea7cac6ff",
"name": "",
"props": [
{
"p": "key",
"v": "<your_rapidapidkey_goes_here>",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 390,
"y": 780,
"wires": [
[
"70484d37ac6b42e2"
]
]
},
{
"id": "70484d37ac6b42e2",
"type": "function",
"z": "e3a7b97ea7cac6ff",
"name": "Whin-Receive-Set-URL",
"func": "msg.method = \"GET\";\nmsg.url = \"https://whin2.p.rapidapi.com/delurl\";\nmsg.headers = {\n 'content-type': 'application/json',\n 'X-RapidAPI-Host': \"whin2.p.rapidapi.com\",\n 'X-RapidAPI-Key': msg.key\n}\nmsg.payload = {\"url\":msg.url}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 610,
"y": 780,
"wires": [
[
"2e4efbc07951b882"
]
]
},
{
"id": "2e4efbc07951b882",
"type": "http request",
"z": "e3a7b97ea7cac6ff",
"name": "",
"method": "use",
"ret": "txt",
"paytoqs": "ignore",
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"headers": [],
"x": 850,
"y": 780,
"wires": [
[
"134bab891a94692f"
]
]
},
{
"id": "134bab891a94692f",
"type": "debug",
"z": "e3a7b97ea7cac6ff",
"name": "debug 28",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1080,
"y": 780,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment