This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| class Spotdl { | |
| constructor(url) { | |
| if (!url) throw new Error("Mana URL nya min"); | |
| this.url = url; | |
| this.baseURL = "https://spotmate.online"; | |
| this.userAgent = | |
| "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120 Safari/537.36"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from "axios"; | |
| const PROXY_URL = "https://proxied.syaii.my.id" | |
| // - Example Method GET | |
| const response = await axios.get(`${PROXY_URL}/?url=https://ipwho.is`, { | |
| headers: { | |
| "Request-By": "Bang_Syaii" | |
| } | |
| }).catch(e => e.response); |