Update lib/@randydev/terabox.js
Browse files- lib/@randydev/terabox.js +6 -4
lib/@randydev/terabox.js
CHANGED
@@ -4,13 +4,15 @@ import { trbtoken, trburl } from '../all.js';
|
|
4 |
async function TeraboxDownloader(url) {
|
5 |
const options = {
|
6 |
method: 'POST',
|
7 |
-
url:
|
8 |
headers: {
|
9 |
-
'x-rapidapi-key': trbtoken
|
10 |
-
'x-rapidapi-host':
|
11 |
'Content-Type': 'application/json'
|
12 |
},
|
13 |
-
data: {
|
|
|
|
|
14 |
};
|
15 |
try {
|
16 |
const response = await axios.request(options);
|
|
|
4 |
async function TeraboxDownloader(url) {
|
5 |
const options = {
|
6 |
method: 'POST',
|
7 |
+
url: 'https://terabox-downloader-direct-download-link-generator.p.rapidapi.com/fetch',
|
8 |
headers: {
|
9 |
+
'x-rapidapi-key': `${trbtoken}`,
|
10 |
+
'x-rapidapi-host': 'terabox-downloader-direct-download-link-generator.p.rapidapi.com',
|
11 |
'Content-Type': 'application/json'
|
12 |
},
|
13 |
+
data: {
|
14 |
+
url: 'https://www.terabox.app/sharing/link?surl=nplD_s47LNg2BEINC-eR0g'
|
15 |
+
}
|
16 |
};
|
17 |
try {
|
18 |
const response = await axios.request(options);
|