Webhook UNLOCKER
Any Method /api/botghost/webhook-unlocker
https://api.cookie-api.com/api/botghost/webhook-unlocker
Unlocks BotGhost Webhooks
Request Headers
Name | Value |
---|---|
Authorization | <API Key> |
BotghostUrl | <BotGhost Webhook URL> |
BotghostKey | <BotGhost Webhook API Key> |
You may Include any other Parameters such as: URL Params, HTTP Headers or Request Body.
Response
{ "bg_response": { "success": true }, "success": true}
Curl:
curl --location 'https://api.cookie-api.com/api/botghost/webhook-unlocker' \--header 'Authorization: API_Key' \--header 'BotghostUrl: https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>' \--header 'BotghostKey: BotGhost Webhook API Key'
import requests
url = 'https://api.cookie-api.com/api/botghost/webhook-unlocker'headers = { 'Authorization': 'API_Key', 'BotghostUrl': 'https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>', 'BotghostKey': 'BotGhost Webhook API Key'}
response = requests.post(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/botghost/webhook-unlocker';const headers = { 'Authorization': 'API_Key', 'BotghostUrl': 'https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>', 'BotghostKey': 'BotGhost Webhook API Key'};
fetch(url, { method: 'POST', headers: headers}).then(res => res.json()).then(data => console.log(data)).catch(err => console.error(err));
package main
import ( "bytes" "fmt" "log" "net/http")
func main() { url := "https://api.cookie-api.com/api/botghost/webhook-unlocker" req, err := http.NewRequest("POST", url, nil) if err != nil { log.Fatal(err) }
req.Header.Set("Authorization", "API_Key") req.Header.Set("BotghostUrl", "https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>") req.Header.Set("BotghostKey", "BotGhost Webhook API Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/botghost/webhook-unlocker', method: 'POST', headers: { 'Authorization': 'API_Key', 'BotghostUrl': 'https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>', 'BotghostKey': 'BotGhost Webhook API Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/botghost/webhook-unlocker')
headers = { 'Authorization' => 'API_Key', 'BotghostUrl' => 'https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>', 'BotghostKey' => 'BotGhost Webhook API Key'}
request = Net::HTTP::Post.new(uri, headers)
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: false) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;
fn main() { let url = "https://api.cookie-api.com/api/botghost/webhook-unlocker"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap()); headers.insert("BotghostUrl", "https://api.botghost.com/webhook/<Bot ID>/<Webhook ID>".parse().unwrap()); headers.insert("BotghostKey", "BotGhost Webhook API Key".parse().unwrap());
let res = client .post(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}
Variables
Client Variables
These Variables return Information about the Client (The computer that made the Request)
Name | Variable | Description |
---|---|---|
Client IP | {client.ip} | Returns the IP Address of the Client |
Client User-Agent | {client.user-agent} | Returns the Client’s Browser |
Client Request Method | {client.method} | Returns the Request Method |
Client HTTP Version | {client.http-version} | Returns the HTTP Version of the Client |
URL Params
URL Params can be accessed in the following format:
{url.<URL PARAM NAME>}
HTTP Headers
HTTP Headers can be accessed in the following format:
{header.<HTTP HEADER NAME>}
Request Body
The Request Body can be accessed in the following format:
{body.<BODY PARAMETER NAME>.<BODY PARAMETER NAME>}