Файловый менеджер - Редактировать - /home/easybachat/downloaderdaddy.com/api/api.js
Ðазад
const apiKey = "fsaerw654wygrsy45w6wfrrsyrtrr67w54wyfys5ewyfdsytare6w"; const apiUrl = "https://www.downloader-hub.com"; const apivendor = "https://www.codesterra.com"; document.getElementById('downloadBtn').addEventListener('click', () => { const videoUrl = document.getElementById('videoUrl').value.trim(); const statusMessage = document.getElementById('statusMessage'); if (!videoUrl) { statusMessage.textContent = "Please enter a valid video URL."; statusMessage.style.color = "red"; return; } statusMessage.textContent = "Processing your request..."; statusMessage.style.color = "black"; fetch(`${apiUrl}/api/v1/download`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` }, body: JSON.stringify({ url: videoUrl }) }) .then(response => response.json()) .then(data => { if (data.success) { const downloadLink = data.download_url; const a = document.createElement('a'); a.href = downloadLink; a.download = ''; a.textContent = 'Click here to download your video'; a.style.color = '#2575fc'; a.style.display = 'block'; a.target = '_blank'; statusMessage.innerHTML = ''; statusMessage.appendChild(a); } else { statusMessage.textContent = data.message || "Failed to download the video. Please try again."; statusMessage.style.color = "red"; } }) .catch(error => { console.error("Error:", error); statusMessage.textContent = "An error occurred. Please try again later."; statusMessage.style.color = "red"; }); });
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.21 |
proxy
|
phpinfo
|
ÐаÑтройка