Skip to content

Obtener los webhooks establecidos.

GET
/api/user/get-webhook

Obtiene todos los webhooks establecidos.

Autorizaciones

Respuestas

Webhooks obtenidos correctamente.
JSON
[
{
"url": "string",
"certificate_ssl": true,
"token": "string",
"created_at": "string",
"id": 0,
"monitors": [
{
"monitor_id": 0
}
]
}
]

Ejemplos

cURL
curl -X GET \
'https://pydolarve.org/api/user/get-webhook' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://pydolarve.org/api/user/get-webhook', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://pydolarve.org/api/user/get-webhook';
$method = 'GET';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://pydolarve.org/api/user/get-webhook'

headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers)
print(response.json())
Powered by VitePress OpenAPI