naofumiapi_handler
v1.0.1
Published
```javascript const { Handler } = require('naofumiapi')
Downloads
2
Readme
NaofumiAPI
Gifs
const { Handler } = require('naofumiapi')
Handler.get({type: 'hug'})
.then((data) => {
console.log(data.url)
})
return something like : http://cdn.naofumi.halyma.fr/hug/hug_075.gif
Animes
const { Handler } = require('naofumiapi')
Handler.get({type: 'anime', title: 'attack on titan'})
.then((data) => {
console.log(data)
})
return something like:
[
{
"title": "Shingeki no Kyojin 4 : The Final Season",
"episodes": null,
"studios": "MAPPA",
"start_date": "Dec 6, 2020",
"genres": [ "Action", "Drama", "Fantasy", "Mystery" ],
"link": "http://voiranime.com/anime/shingeki-no-kyojin-the-final-season/",
"trailer": "https://www.youtube.com/watch?v=SlNpRThS9t8",
"thumbnail": "https://voiranime.com/wp-content/uploads/2020/06/thumb_5eee57f3231d0-193x278.jpg",
"synopsis": "Saison 4 de Shingeki no Kyojin"
}
]
Waifus
const { Handler } = require('naofumiapi')
Handler.get({type: 'waifus'})
.then((data) => {
console.log(data)
})
return something like :
{
"name": "Takako IZUMI",
"image": "https://www.anime-planet.comhttps://cdn.anime-planet.com/images/characters/default/default-character.png",
"rank": "#71,291",
"tags": [ "Glasses", "Children", "Pigtails" ],
"animes": [ "Hanebado!" ],
"mangas": []
}