404studios-api 中文文档教程

发布于 3年前 浏览 29 更新于 3年前

About

这是 404 Studios Api

API 本身的 JavaScript 包装器: 404 Studios API 是一个强大的 API,可用于获取笑话、图像等! 更多即将推出。

3+ Endpoins. More being added very soon.
Insanely Fast Responses

Example Usage:

Jokes

const API = require('404studios-api');

async function getJoke(){
    let {joke, answer} = await API.joke();
    console.log(joke, answer);
}

getJoke(); //--> "Where do you learn to make a banana split?", "Sundae school"

GIFs and Images

const API = require('404studios-api');

//Hug GIF
async function hugGIF() {
    let GIF = await API.animeHug();
    console.log(GIF);
}

hugGIF(); //--> https://c.tenor.com/ixaDEFhZJSsAAAAM/anime-choke.gif

//Kiss GIF
async function kissGIF() {
    let GIF = await API.animeKiss();
    console.log(GIF);
}

kissGIF(); //--> https://c.tenor.com/Cchd6VOMDIwAAAAM/forehead-forehead-kiss.gif

更多端点将在不久的将来出现,这个 API 处于测试阶段,很快就会完全发布。

About

This is a JavaScript wrapper for 404 Studios Api

The API itself: 404 Studios API is a powerful API to get jokes, images, and much more! More coming soon.

3+ Endpoins. More being added very soon.
Insanely Fast Responses

Example Usage:

Jokes

const API = require('404studios-api');

async function getJoke(){
    let {joke, answer} = await API.joke();
    console.log(joke, answer);
}

getJoke(); //--> "Where do you learn to make a banana split?", "Sundae school"

GIFs and Images

const API = require('404studios-api');

//Hug GIF
async function hugGIF() {
    let GIF = await API.animeHug();
    console.log(GIF);
}

hugGIF(); //--> https://c.tenor.com/ixaDEFhZJSsAAAAM/anime-choke.gif

//Kiss GIF
async function kissGIF() {
    let GIF = await API.animeKiss();
    console.log(GIF);
}

kissGIF(); //--> https://c.tenor.com/Cchd6VOMDIwAAAAM/forehead-forehead-kiss.gif

More endpoints will be coming in the near future, this API is sitll in beta and will be releasing fully very soon.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文