youtubenouritclient
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

YOUTUBE NOURIT CLIENT

ceci est une api pour pouvoir récupérer les information sur les videos disponible sur youtube ainsi que les chaînes



YOUTUBE API DATA CLIENT

VIDEO

vous pouvez récupérer les dernières videos favories

import { Client, Request } from "youtubenouritclient";
const client = new Client("API_KEY")
const request = new Request("video")
const onSuccess = (data) => {
  ...
}
const onError = (err) => {
  ...
}
client.execute(request).then(onSuccess).catch(onError)

SEARCH

vous pouvez faire une recherche sur une video comme ce ci

import { Client, Request } from "youtubenouritclient";
const client = new Client("API_KEY")
const request = new Request("search", "my_search")
const onSuccess = (data) => {
  ...
}
const onError = (err) => {
  ...
}
client.execute(request).then(onSuccess).catch(onError)

ou comme cela.

import { Client, Request } from "youtubenouritclient";
const client = new Client("API_KEY")
const request = new Request("search", {q: "my_search"})
const onSuccess = (data) => {
  ...
}
const onError = (err) => {
  ...
}
client.execute(request).then(onSuccess).catch(onError)

Readme

Keywords

Package Sidebar

Install

npm i youtubenouritclient

Weekly Downloads

0

Version

1.3.4

License

ISC

Unpacked Size

39.9 kB

Total Files

16

Last publish

Collaborators

  • nourit