Comparing version 2.0.1 to 2.1.0
17
index.js
@@ -1,5 +0,8 @@ | ||
const BASE_URL = 'http://mrbaro-youtube-api.glitch.me'; | ||
const BASE_URL = 'https://www.barotube.cf'; | ||
const fetch = require('node-fetch'); | ||
class BaroTube { | ||
constructor(key) { | ||
this.key = key; | ||
} | ||
@@ -13,3 +16,4 @@ async searchVideos(value, callback) { | ||
body: JSON.stringify({ | ||
v: value | ||
v: value, | ||
key: this.key | ||
}) | ||
@@ -26,3 +30,4 @@ }) | ||
body: JSON.stringify({ | ||
v: value | ||
v: value, | ||
key: this.key, | ||
}) | ||
@@ -44,3 +49,4 @@ }) | ||
body: JSON.stringify({ | ||
v: value | ||
v: value, | ||
key: this.key | ||
}) | ||
@@ -57,3 +63,4 @@ }) | ||
body: JSON.stringify({ | ||
v: value | ||
v: value, | ||
key: this.key | ||
}) | ||
@@ -60,0 +67,0 @@ }) |
{ | ||
"name": "barotube", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
# barotube | ||
## Discord | ||
Mr BARO#4957 | ||
baris#0001 | ||
@@ -10,2 +10,4 @@ ## **Install** | ||
``` | ||
## **Get API Key** | ||
https://www.barotube.cf/ | ||
@@ -15,3 +17,3 @@ ## **Usage** | ||
const Barotube = require('barotube'); | ||
const barotube = new Barotube(); | ||
const barotube = new Barotube("API KEY"); | ||
``` | ||
@@ -18,0 +20,0 @@ |
3957
63
100