diff --git a/package.json b/package.json index 1bfd514..599a8ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docs.waifu.it", - "version": "2.0.4", + "version": "3.0.4", "description": "The new and improved documentation for Waifu.it", "scripts": { "dev": "next dev", @@ -17,7 +17,7 @@ }, "homepage": "https://github.com/WaifuAPI/Documentation/#readme", "dependencies": { - "next": "^13.4.9", + "next": "^13.4.12", "nextra": "2.0.1", "nextra-theme-docs": "2.0.1", "react": "^18.2.0", diff --git a/pages/faq.mdx b/pages/faq.mdx index a0ff58b..10578fe 100644 --- a/pages/faq.mdx +++ b/pages/faq.mdx @@ -3,7 +3,7 @@
### How do I get the API token? -- To get your API token, join this [discord server](https://discord.gg/yyW389c), then type `-claim` in [#bot-commands](https://discord.com/channels/479300008118714388/800784815908454452), fill the questions asked by [@Kohai](https://discord.com/channels/@me/834416864766591016) in DM, and receive your token. +- To get your API token, join this [discord server](https://discord.gg/yyW389c), then type `-claim` in [#bot-commands](https://discord.com/channels/479300008118714388/800784815908454452), fill the questions asked by `@Kohai` in DM, and receive your token. {/* ### CORS causing trouble? diff --git a/pages/libraries/Javascript/_meta.json b/pages/libraries/Javascript/_meta.json index 6427d07..195117f 100644 --- a/pages/libraries/Javascript/_meta.json +++ b/pages/libraries/Javascript/_meta.json @@ -2,5 +2,9 @@ "animefact": { "title": "anime-facts", "theme": { "collapsed": true } + }, + "waifuit": { + "title": "waifu.it", + "theme": { "collapsed": true } } } diff --git a/pages/libraries/Javascript/waifuit/_meta.json b/pages/libraries/Javascript/waifuit/_meta.json new file mode 100644 index 0000000..9090a60 --- /dev/null +++ b/pages/libraries/Javascript/waifuit/_meta.json @@ -0,0 +1,6 @@ +{ + "getstarted": "Get Started", + "generatefact": "Generate Fact", + "generatequote": "Generate Quote", + "generatewaifu": "Generate Waifu" +} diff --git a/pages/libraries/Javascript/waifuit/generatefact.mdx b/pages/libraries/Javascript/waifuit/generatefact.mdx new file mode 100644 index 0000000..021f36d --- /dev/null +++ b/pages/libraries/Javascript/waifuit/generatefact.mdx @@ -0,0 +1,47 @@ +--- +title: waifu.it | Generate Fact +--- + +import { Tab, Tabs } from "nextra-theme-docs"; + +# Generate Fact + +Generate random anime facts from a huge database. + + +## Functions + +| Function | Type | Description | Required? | +| :------: | :------: | ---------------------------------------------------- | :-------: | +| getFact | function | The search function to generate a random anime fact. | Yes | + +## Request Samples + + + + <> + ```js + import Client from "waifu.it"; + + // Replace with your API Token + const api = new Client(""); + api.getFact().then((res) => console.log(res)); + ``` + + + + + +## Response Schema + + + + **Content Type:** `application/json` + ```json copy=false +{ + "id": 5, + "fact": "TEZUKA Osamu is the most famous manga artist in Japan.", +} + ``` + + diff --git a/pages/libraries/Javascript/waifuit/generatequote.mdx b/pages/libraries/Javascript/waifuit/generatequote.mdx new file mode 100644 index 0000000..d6ec804 --- /dev/null +++ b/pages/libraries/Javascript/waifuit/generatequote.mdx @@ -0,0 +1,49 @@ +--- +title: waifu.it | Generate Quote +--- + +import { Tab, Tabs } from "nextra-theme-docs"; + +# Generate Fact + +Generate random anime Quote from a huge database. + + +## Functions + +| Function | Type | Description | Required? | +| :------: | :------: | ---------------------------------------------------- | :-------: | +| getQuote | function | The search function to generate a random anime quote. | Yes | + +## Request Samples + + + + <> + ```js + import Client from "waifu.it"; + + // Replace with your API Token + const api = new Client(""); + api.getQuote().then((res) => console.log(res)); + ``` + + + + + +## Response Schema + + + + **Content Type:** `application/json` + ```json copy=false +{ + "id": 5, + "quote": "Even children are forced to grow up in the face of pain.", + "author": "Pain", + "anime": "Naruto" +} + ``` + + diff --git a/pages/libraries/Javascript/waifuit/generatewaifu.mdx b/pages/libraries/Javascript/waifuit/generatewaifu.mdx new file mode 100644 index 0000000..bef6bf3 --- /dev/null +++ b/pages/libraries/Javascript/waifuit/generatewaifu.mdx @@ -0,0 +1,46 @@ +--- +title: waifu.it | Generate Waifu +--- + +import { Tab, Tabs } from "nextra-theme-docs"; + +# Generate Fact + +Generate random anime Waifu from a huge database. + + +## Functions + +| Function | Type | Description | Required? | +| :------: | :------: | ---------------------------------------------------- | :-------: | +| getWaifu | function | The search function to generate a random anime Waifu. | Yes | + +## Request Samples + + + + <> + ```js + import Client from "waifu.it"; + + // Replace with your API Token + const api = new Client(""); + api.getWaifu().then((res) => console.log(res)); + ``` + + + + + +## Response Schema + + + + **Content Type:** `application/json` + ```json copy=false +{ + "id": 5, +} + ``` + + diff --git a/pages/libraries/Javascript/waifuit/getstarted.mdx b/pages/libraries/Javascript/waifuit/getstarted.mdx new file mode 100644 index 0000000..fdda9af --- /dev/null +++ b/pages/libraries/Javascript/waifuit/getstarted.mdx @@ -0,0 +1,26 @@ +import { Tab, Tabs } from "nextra-theme-docs"; + +# Get Started + +The "waifu.it" library is the official wrapper for waifu.it! Very small install size. + +## Installation + +Instructions for installing the library can be found below. + +{/* NOTE: do NOT run a formatter for the time being; it breaks the code blocks below. */} + + + + ```bash + npm i waifu.it + ``` + View package at [npmjs.com](https://www.npmjs.com/package/waifu.it) + + + ```bash + yarn add waifu.it + ``` + View package at [yarnpkg.com](https://yarnpkg.com/package/waifu.it) + + \ No newline at end of file diff --git a/pages/libraries/Python/waifuit/search.mdx b/pages/libraries/Python/waifuit/search.mdx index 1cd5d2a..b7f4817 100644 --- a/pages/libraries/Python/waifuit/search.mdx +++ b/pages/libraries/Python/waifuit/search.mdx @@ -1 +1 @@ -owo WIP \ No newline at end of file +The developer hasn't provided documentation yet. Reach them at -> [Discord](https://discord.gg/yyW389c) \ No newline at end of file diff --git a/pages/list-of-endpoints.mdx b/pages/list-of-endpoints.mdx index 27e1611..a2fccaf 100644 --- a/pages/list-of-endpoints.mdx +++ b/pages/list-of-endpoints.mdx @@ -1,148 +1,154 @@ -# List of Endpoints +## List of Endpoints Waifu.it supports a wealth of endpoints, which can be categorized into the following groups: -## Actions +### Interactions -- [Angry](https://docs.waifu.it/rest-api/Actions/Angry/search): This endpoint retrieves a random anime GIF that portrays an angry reaction. +- [Angry](https://docs.waifu.it/rest-api/Interactions/Angry/search): This endpoint retrieves a random anime GIF that portrays an angry reaction. -- [Baka](https://docs.waifu.it/rest-api/Actions/Baka/search): Get a random anime GIF that represents the expression of being a "baka" or an idiot. +- [Baka](https://docs.waifu.it/rest-api/Interactions/Baka/search): Get a random anime GIF that represents the expression of being a "baka" or an idiot. -- [Bite](https://docs.waifu.it/rest-api/Actions/Bite/search): Explore a random anime GIF that showcases a biting action. +- [Bite](https://docs.waifu.it/rest-api/Interactions/Bite/search): Explore a random anime GIF that showcases a biting action. -- [Blush](https://docs.waifu.it/rest-api/Actions/Blush/search): Get a random anime GIF showcasing a blushing expression. +- [Blush](https://docs.waifu.it/rest-api/Interactions/Blush/search): Get a random anime GIF showcasing a blushing expression. -- [Bonk](https://docs.waifu.it/rest-api/Actions/Bonk/search): Obtain a random anime GIF capturing a bonking action. +- [Bonk](https://docs.waifu.it/rest-api/Interactions/Bonk/search): Obtain a random anime GIF capturing a bonking action. -- [Bored](https://docs.waifu.it/rest-api/Actions/Bored/search): This endpoint provides a random anime GIF displaying a bored expression. +- [Bored](https://docs.waifu.it/rest-api/Interactions/Bored/search): This endpoint provides a random anime GIF displaying a bored expression. -- [Bully](https://docs.waifu.it/rest-api/Actions/Bully/search): Retrieve a random anime GIF that illustrates a bullying action. +- [Bully](https://docs.waifu.it/rest-api/Interactions/Bully/search): Retrieve a random anime GIF that illustrates a bullying action. -- [Bye](https://docs.waifu.it/rest-api/Actions/Bye/search): Obtain a random anime GIF depicting a goodbye gesture. +- [Bye](https://docs.waifu.it/rest-api/Interactions/Bye/search): Obtain a random anime GIF depicting a goodbye gesture. -- [Chase](https://docs.waifu.it/rest-api/Actions/Chase/search): Get a random anime GIF showcasing a chasing action. +- [Chase](https://docs.waifu.it/rest-api/Interactions/Chase/search): Get a random anime GIF showcasing a chasing action. -- [Cheer](https://docs.waifu.it/rest-api/Actions/Cheer/search): Retrieve a random anime GIF representing a cheering expression. +- [Cheer](https://docs.waifu.it/rest-api/Interactions/Cheer/search): Retrieve a random anime GIF representing a cheering expression. -- [Cringe](https://docs.waifu.it/rest-api/Actions/Cringe/search): This endpoint returns a random anime GIF with a cringing reaction. +- [Cringe](https://docs.waifu.it/rest-api/Interactions/Cringe/search): This endpoint returns a random anime GIF with a cringing reaction. -- [Cry](https://docs.waifu.it/rest-api/Actions/Cry/search): Get a random anime GIF with a crying reaction. +- [Cry](https://docs.waifu.it/rest-api/Interactions/Cry/search): Get a random anime GIF with a crying reaction. -- [Cuddle](https://docs.waifu.it/rest-api/Actions/Cuddle/search): Obtain a random anime GIF depicting a cuddling action. +- [Cuddle](https://docs.waifu.it/rest-api/Interactions/Cuddle/search): Obtain a random anime GIF depicting a cuddling action. -- [Dab](https://docs.waifu.it/rest-api/Actions/Dab/search): Get a random anime GIF with a dabbing action. +- [Dab](https://docs.waifu.it/rest-api/Interactions/Dab/search): Get a random anime GIF with a dabbing action. -- [Dance](https://docs.waifu.it/rest-api/Actions/Dance/search): Retrieve a random anime GIF featuring a dancing action. +- [Dance](https://docs.waifu.it/rest-api/Interactions/Dance/search): Retrieve a random anime GIF featuring a dancing action. -- [Die](https://docs.waifu.it/rest-api/Actions/Die/search): Obtain a random anime GIF depicting a dying action. +- [Die](https://docs.waifu.it/rest-api/Interactions/Die/search): Obtain a random anime GIF depicting a dying action. -- [Disgust](https://docs.waifu.it/rest-api/Actions/Disgust/search): Get a random anime GIF with a disgusted reaction. +- [Disgust](https://docs.waifu.it/rest-api/Interactions/Disgust/search): Get a random anime GIF with a disgusted reaction. -- [Facepalm](https://docs.waifu.it/rest-api/Actions/Facepalm/search): Retrieve a random anime GIF depicting a facepalm reaction. +- [Facepalm](https://docs.waifu.it/rest-api/Interactions/Facepalm/search): Retrieve a random anime GIF depicting a facepalm reaction. -- [Feed](https://docs.waifu.it/rest-api/Actions/Feed/search): Get a random anime GIF with a feeding action. +- [Feed](https://docs.waifu.it/rest-api/Interactions/Feed/search): Get a random anime GIF with a feeding action. -- [Glomp](https://docs.waifu.it/rest-api/Actions/Glomp/search): Retrieve a random anime GIF featuring a glomping action. +- [Glomp](https://docs.waifu.it/rest-api/Interactions/Glomp/search): Retrieve a random anime GIF featuring a glomping action. -- [Happy](https://docs.waifu.it/rest-api/Actions/Happy/search): Obtain a random anime GIF showcasing a happy expression. +- [Happy](https://docs.waifu.it/rest-api/Interactions/Happy/search): Obtain a random anime GIF showcasing a happy expression. -- [Hi](https://docs.waifu.it/rest-api/Actions/Hi/search): Get a random anime GIF with a greeting gesture. +- [Hi](https://docs.waifu.it/rest-api/Interactions/Hi/search): Get a random anime GIF with a greeting gesture. -- [Highfive](https://docs.waifu.it/rest-api/Actions/Highfive/search): Retrieve a random anime GIF capturing a high five action. +- [Highfive](https://docs.waifu.it/rest-api/Interactions/Highfive/search): Retrieve a random anime GIF capturing a high five action. -- [Hold](https://docs.waifu.it/rest-api/Actions/Hold/search): Obtain a random anime GIF depicting a holding action. +- [Hold](https://docs.waifu.it/rest-api/Interactions/Hold/search): Obtain a random anime GIF depicting a holding action. -- [Hug](https://docs.waifu.it/rest-api/Actions/Hug/search): Get a random anime GIF featuring a hugging action. +- [Hug](https://docs.waifu.it/rest-api/Interactions/Hug/search): Get a random anime GIF featuring a hugging action. -- [Kick](https://docs.waifu.it/rest-api/Actions/Kick/search): Retrieve a random anime GIF showcasing a kicking action. +- [Kick](https://docs.waifu.it/rest-api/Interactions/Kick/search): Retrieve a random anime GIF showcasing a kicking action. -- [Kill](https://docs.waifu.it/rest-api/Actions/Kill/search): Obtain a random anime GIF with a killing action. +- [Kill](https://docs.waifu.it/rest-api/Interactions/Kill/search): Obtain a random anime GIF with a killing action. -- [Kiss](https://docs.waifu.it/rest-api/Actions/Kiss/search): Get a random anime GIF depicting a kissing action. +- [Kiss](https://docs.waifu.it/rest-api/Interactions/Kiss/search): Get a random anime GIF depicting a kissing action. -- [Laugh](https://docs.waifu.it/rest-api/Actions/Laugh/search): Retrieve a random anime GIF showcasing a laughing reaction. +- [Laugh](https://docs.waifu.it/rest-api/Interactions/Laugh/search): Retrieve a random anime GIF showcasing a laughing reaction. -- [Lick](https://docs.waifu.it/rest-api/Actions/Lick/search): Obtain a random anime GIF with a licking action. +- [Lick](https://docs.waifu.it/rest-api/Interactions/Lick/search): Obtain a random anime GIF with a licking action. -- [Love](https://docs.waifu.it/rest-api/Actions/Love/search): Get a random anime GIF depicting a loving expression. +- [Love](https://docs.waifu.it/rest-api/Interactions/Love/search): Get a random anime GIF depicting a loving expression. -- [Lurk](https://docs.waifu.it/rest-api/Actions/Lurk/search): Retrieve a random anime GIF featuring a lurking action. +- [Lurk](https://docs.waifu.it/rest-api/Interactions/Lurk/search): Retrieve a random anime GIF featuring a lurking action. -- [Midfing](https://docs.waifu.it/rest-api/Actions/Midfing/search): This endpoint returns a random anime GIF with a middle finger gesture. +- [Midfing](https://docs.waifu.it/rest-api/Interactions/Midfing/search): This endpoint returns a random anime GIF with a middle finger gesture. -- [Nervous](https://docs.waifu.it/rest-api/Actions/Nervous/search): Get a random anime GIF portraying a nervous expression. +- [Nervous](https://docs.waifu.it/rest-api/Interactions/Nervous/search): Get a random anime GIF portraying a nervous expression. -- [Nom](https://docs.waifu.it/rest-api/Actions/Nom/search): Retrieve a random anime GIF showcasing a nomming action. +- [Nom](https://docs.waifu.it/rest-api/Interactions/Nom/search): Retrieve a random anime GIF showcasing a nomming action. -- [Nope](https://docs.waifu.it/rest-api/Actions/Nope/search): Obtain a random anime GIF representing a "nope" reaction. +- [Nope](https://docs.waifu.it/rest-api/Interactions/Nope/search): Obtain a random anime GIF representing a "nope" reaction. -- [Nuzzle](https://docs.waifu.it/rest-api/Actions/Nuzzle/search): Get a random anime GIF depicting a nuzzling action. +- [Nuzzle](https://docs.waifu.it/rest-api/Interactions/Nuzzle/search): Get a random anime GIF depicting a nuzzling action. -- [Panic](https://docs.waifu.it/rest-api/Actions/Panic/search): Retrieve a random anime GIF showing a panic reaction. +- [Panic](https://docs.waifu.it/rest-api/Interactions/Panic/search): Retrieve a random anime GIF showing a panic reaction. -- [Pat](https://docs.waifu.it/rest-api/Actions/Pat/search): Get a random anime GIF featuring a patting action. +- [Pat](https://docs.waifu.it/rest-api/Interactions/Pat/search): Get a random anime GIF featuring a patting action. -- [Peck](https://docs.waifu.it/rest-api/Actions/Peck/search): Retrieve a random anime GIF showcasing a pecking action. +- [Peck](https://docs.waifu.it/rest-api/Interactions/Peck/search): Retrieve a random anime GIF showcasing a pecking action. -- [Poke](https://docs.waifu.it/rest-api/Actions/Poke/search): Obtain a random anime GIF with a poking action. +- [Poke](https://docs.waifu.it/rest-api/Interactions/Poke/search): Obtain a random anime GIF with a poking action. -- [Pout](https://docs.waifu.it/rest-api/Actions/Pout/search): Get a random anime GIF featuring a pouting expression. +- [Pout](https://docs.waifu.it/rest-api/Interactions/Pout/search): Get a random anime GIF featuring a pouting expression. -- [Punch](https://docs.waifu.it/rest-api/Actions/Punch/search): Retrieve a random anime GIF illustrating a punching action. +- [Punch](https://docs.waifu.it/rest-api/Interactions/Punch/search): Retrieve a random anime GIF illustrating a punching action. -- [Run](https://docs.waifu.it/rest-api/Actions/Run/search): Get a random anime GIF showcasing a running action. +- [Run](https://docs.waifu.it/rest-api/Interactions/Run/search): Get a random anime GIF showcasing a running action. -- [Sad](https://docs.waifu.it/rest-api/Actions/Sad/search): Retrieve a random anime GIF representing a sad expression. +- [Sad](https://docs.waifu.it/rest-api/Interactions/Sad/search): Retrieve a random anime GIF representing a sad expression. -- [Shoot](https://docs.waifu.it/rest-api/Actions/Shoot/search): This endpoint returns a random anime GIF depicting a shooting action. +- [Shoot](https://docs.waifu.it/rest-api/Interactions/Shoot/search): This endpoint returns a random anime GIF depicting a shooting action. -- [Shrug](https://docs.waifu.it/rest-api/Actions/Shrug/search): Get a random anime GIF with a shrugging gesture. +- [Shrug](https://docs.waifu.it/rest-api/Interactions/Shrug/search): Get a random anime GIF with a shrugging gesture. -- [Sip](https://docs.waifu.it/rest-api/Actions/Sip/search): Retrieve a random anime GIF showcasing a sipping action. +- [Sip](https://docs.waifu.it/rest-api/Interactions/Sip/search): Retrieve a random anime GIF showcasing a sipping action. -- [Slap](https://docs.waifu.it/rest-api/Actions/Slap/search): Obtain a random anime GIF illustrating a slapping action. +- [Slap](https://docs.waifu.it/rest-api/Interactions/Slap/search): Obtain a random anime GIF illustrating a slapping action. -- [Sleepy](https://docs.waifu.it/rest-api/Actions/Sleepy/search): Get a random anime GIF featuring a sleepy expression. +- [Sleepy](https://docs.waifu.it/rest-api/Interactions/Sleepy/search): Get a random anime GIF featuring a sleepy expression. -- [Smile](https://docs.waifu.it/rest-api/Actions/Smile/search): Retrieve a random anime GIF with a smiling expression. +- [Smile](https://docs.waifu.it/rest-api/Interactions/Smile/search): Retrieve a random anime GIF with a smiling expression. -- [Smug](https://docs.waifu.it/rest-api/Actions/Smug/search): Get a random anime GIF showcasing a smug expression. +- [Smug](https://docs.waifu.it/rest-api/Interactions/Smug/search): Get a random anime GIF showcasing a smug expression. -- [Stab](https://docs.waifu.it/rest-api/Actions/Stab/search): Obtain a random anime GIF depicting a stabbing action. +- [Stab](https://docs.waifu.it/rest-api/Interactions/Stab/search): Obtain a random anime GIF depicting a stabbing action. -- [Stare](https://docs.waifu.it/rest-api/Actions/Stare/search): Get a random anime GIF featuring a staring expression. +- [Stare](https://docs.waifu.it/rest-api/Interactions/Stare/search): Get a random anime GIF featuring a staring expression. -- [Suicide](https://docs.waifu.it/rest-api/Actions/Suicide/search): Retrieve a random anime GIF related to suicide actions. +- [Suicide](https://docs.waifu.it/rest-api/Interactions/Suicide/search): Retrieve a random anime GIF related to suicide Interactions. -- [Tease](https://docs.waifu.it/rest-api/Actions/Tease/search): Obtain a random anime GIF with a teasing action. +- [Tease](https://docs.waifu.it/rest-api/Interactions/Tease/search): Obtain a random anime GIF with a teasing action. -- [Think](https://docs.waifu.it/rest-api/Actions/Think/search): Get a random anime GIF showcasing a thinking expression. +- [Think](https://docs.waifu.it/rest-api/Interactions/Think/search): Get a random anime GIF showcasing a thinking expression. -- [Thumbsup](https://docs.waifu.it/rest-api/Actions/Thumbsup/search): Retrieve a random anime GIF with a thumbs-up gesture. +- [Thumbsup](https://docs.waifu.it/rest-api/Interactions/Thumbsup/search): Retrieve a random anime GIF with a thumbs-up gesture. -- [Tickle](https://docs.waifu.it/rest-api/Actions/Tickle/search): Get a random anime GIF illustrating a tickling action. +- [Tickle](https://docs.waifu.it/rest-api/Interactions/Tickle/search): Get a random anime GIF illustrating a tickling action. -- [Triggered](https://docs.waifu.it/rest-api/Actions/Triggered/search): Obtain a random anime GIF representing a triggered reaction. +- [Triggered](https://docs.waifu.it/rest-api/Interactions/Triggered/search): Obtain a random anime GIF representing a triggered reaction. -- [Wag](https://docs.waifu.it/rest-api/Actions/Wag/search): Get a random anime GIF showcasing a wagging action. +- [Wag](https://docs.waifu.it/rest-api/Interactions/Wag/search): Get a random anime GIF showcasing a wagging action. -- [Wave](https://docs.waifu.it/rest-api/Actions/Wave/search): Get a random anime GIF with a waving gesture. +- [Wave](https://docs.waifu.it/rest-api/Interactions/Wave/search): Get a random anime GIF with a waving gesture. -- [Wink](https://docs.waifu.it/rest-api/Actions/Wink/search): Obtain a random anime GIF featuring a winking expression. +- [Wink](https://docs.waifu.it/rest-api/Interactions/Wink/search): Obtain a random anime GIF featuring a winking expression. -- [Yes](https://docs.waifu.it/rest-api/Actions/Yes/search): Get a random anime GIF expressing a positive affirmation. +- [Yes](https://docs.waifu.it/rest-api/Interactions/Yes/search): Get a random anime GIF expressing a positive affirmation. -## Images +### Images - [Waifu:](https://docs.waifu.it/rest-api/Images/Waifu/search) Immerse yourself in the captivating world of anime with the Waifu endpoint. -## Texts +### Texts - [Fact](https://docs.waifu.it/rest-api/Texts/Fact/search): Retrieve a random anime fact to expand your knowledge. -- [Password](https://docs.waifu.it/rest-api/Texts/Password/search): Generate a unique and secure `base64` string for password purposes. +- [Password](https://docs.waifu.it/rest-api/Texts/Password/generate): Generate a unique and secure `base64` string for password purposes. - [Quote](https://docs.waifu.it/rest-api/Texts/Quote/search): Discover an inspiring or memorable anime quote to motivate or entertain you. - [Tags](https://docs.waifu.it/rest-api/Texts/Tags/search): Get a list of available tags that can be used for specific queries in certain endpoints. + +- [Owoify](https://docs.waifu.it/rest-api/Texts/Owoify/generate): The text you want to convert into an "owo" language-style format. + +- [Uvuify](https://docs.waifu.it/rest-api/Texts/Uvuify/generate): Convert the provided text into the style of the "uvu" language. + +- [Uwuify](https://docs.waifu.it/rest-api/Texts/Uwuify/generate): Transforming the given text into the "uwu" language-style format is what you desire. diff --git a/pages/rest-api/Images/Waifu/search.mdx b/pages/rest-api/Images/Waifu/search.mdx index 1cd5d2a..e457c6a 100644 --- a/pages/rest-api/Images/Waifu/search.mdx +++ b/pages/rest-api/Images/Waifu/search.mdx @@ -1 +1,145 @@ -owo WIP \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to access and retrieve information about your favorite waifus. To access the `/waifu` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/waifu` endpoint allows you to retrieve information about a specific waifu. + +- **URL**: `/waifu` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/waifu` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request Headers + +The request to the `/waifu` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request +Here's example of how to make a request to the `/waifu` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/waifu"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "YOUR_ACCESS_TOKEN", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/waifu" + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }) + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `_id`: The unique identifier of the waifu. +- `names`: The names of the waifu. +- `from`: The anime from where the waifu belongs to. +- `statistics`: Her statistics from the users. +- `images`: The array of URLs to an image of the waifu. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "_id": 48, + "images": [ + "https://rei.animecharactersdatabase.com/uploads/chars/67975-1468280545.jpg", + "https://rei.animecharactersdatabase.com/uploads/chars/67975-1074357995.jpg", + "https://rei.animecharactersdatabase.com/uploads/chars/67975-1025264171.jpg", + "https://rei.animecharactersdatabase.com/uploads/chars/67975-347417678.jpg", + "https://thicc.mywaifulist.moe/waifus/60/ac08a0604cef48cfb60db8946b4eaed65a7d5d3c8b28a340df0259328f984131.jpeg", + "https://thicc.mywaifulist.moe/waifus/60/059e4c365b97ad2dc24c459d02e9cfe9771c3e80305f893b4befbb906e537171.jpeg", + "https://thicc.mywaifulist.moe/waifus/60/88fb2e15ad401f5f14c41e2c9e4c8528f18af52ae8d45b67b3c8e652a001f4e2.jpeg" + ], + "names": { + "en": "Kanade Tachibana", + "jp": "立華 かなで", + "alt": "Tenshi" + }, + "from": { + "name": "Angel Beats!", + "type": "Anime" + }, + "statistics": { + "fav": 205, + "love": 160, + "hate": 20, + "upvote": 70, + "downvote": 8 + } + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/waifu` endpoint. +That's it! You are now ready to use the `/waifu` endpoint to retrieve information about your favorite waifus. Happy coding! \ No newline at end of file diff --git a/pages/rest-api/Interactions/Angry/search.mdx b/pages/rest-api/Interactions/Angry/search.mdx index 01ee763..15134b2 100644 --- a/pages/rest-api/Interactions/Angry/search.mdx +++ b/pages/rest-api/Interactions/Angry/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/angry` endpoint allows users to receive appropriate angry anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/angry` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/angry` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/angry"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/angry" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/angry` endpoint. diff --git a/pages/rest-api/Interactions/Baka/search.mdx b/pages/rest-api/Interactions/Baka/search.mdx index 01ee763..bd4c3c6 100644 --- a/pages/rest-api/Interactions/Baka/search.mdx +++ b/pages/rest-api/Interactions/Baka/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/baka` endpoint allows users to receive appropriate baka anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/baka` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/baka` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/baka"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/baka" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/baka` endpoint. diff --git a/pages/rest-api/Interactions/Bite/search.mdx b/pages/rest-api/Interactions/Bite/search.mdx index 01ee763..79ab11b 100644 --- a/pages/rest-api/Interactions/Bite/search.mdx +++ b/pages/rest-api/Interactions/Bite/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/bite` endpoint allows users to receive appropriate bite anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/bite` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/bite` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/bite"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/bite" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/bite` endpoint. diff --git a/pages/rest-api/Interactions/Blush/search.mdx b/pages/rest-api/Interactions/Blush/search.mdx index 01ee763..5d08b9b 100644 --- a/pages/rest-api/Interactions/Blush/search.mdx +++ b/pages/rest-api/Interactions/Blush/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/blush` endpoint allows users to receive appropriate blush anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/blush` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/blush` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/blush"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/blush" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/blush` endpoint. diff --git a/pages/rest-api/Interactions/Bonk/search.mdx b/pages/rest-api/Interactions/Bonk/search.mdx index 01ee763..8f79d87 100644 --- a/pages/rest-api/Interactions/Bonk/search.mdx +++ b/pages/rest-api/Interactions/Bonk/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/bonk` endpoint allows users to receive appropriate bonk anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/bonk` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/bonk` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/bonk"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/bonk" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/bonk` endpoint. diff --git a/pages/rest-api/Interactions/Bored/search.mdx b/pages/rest-api/Interactions/Bored/search.mdx index 01ee763..f3069a4 100644 --- a/pages/rest-api/Interactions/Bored/search.mdx +++ b/pages/rest-api/Interactions/Bored/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/bored` endpoint allows users to receive appropriate bored anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/bored` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/bored` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/bored"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/bored" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/bored` endpoint. diff --git a/pages/rest-api/Interactions/Bully/search.mdx b/pages/rest-api/Interactions/Bully/search.mdx index 01ee763..30b1a2d 100644 --- a/pages/rest-api/Interactions/Bully/search.mdx +++ b/pages/rest-api/Interactions/Bully/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/bully` endpoint allows users to receive appropriate bully anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/bully` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/bully` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/bully"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/bully" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/bully` endpoint. diff --git a/pages/rest-api/Interactions/Bye/search.mdx b/pages/rest-api/Interactions/Bye/search.mdx index 01ee763..37fa565 100644 --- a/pages/rest-api/Interactions/Bye/search.mdx +++ b/pages/rest-api/Interactions/Bye/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/bye` endpoint allows users to receive appropriate bye anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/bye` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/bye` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/bye"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/bye" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/bye` endpoint. diff --git a/pages/rest-api/Interactions/Chase/search.mdx b/pages/rest-api/Interactions/Chase/search.mdx index 01ee763..a1fb606 100644 --- a/pages/rest-api/Interactions/Chase/search.mdx +++ b/pages/rest-api/Interactions/Chase/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/chase` endpoint allows users to receive appropriate chase anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/chase` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/chase` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/chase"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/chase" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/chase` endpoint. diff --git a/pages/rest-api/Interactions/Cheer/search.mdx b/pages/rest-api/Interactions/Cheer/search.mdx index 01ee763..1296cc3 100644 --- a/pages/rest-api/Interactions/Cheer/search.mdx +++ b/pages/rest-api/Interactions/Cheer/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/cheer` endpoint allows users to receive appropriate cheer anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/cheer` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/cheer` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/cheer"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/cheer" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/cheer` endpoint. diff --git a/pages/rest-api/Interactions/Cringe/search.mdx b/pages/rest-api/Interactions/Cringe/search.mdx index 01ee763..e5d19e6 100644 --- a/pages/rest-api/Interactions/Cringe/search.mdx +++ b/pages/rest-api/Interactions/Cringe/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/cringe` endpoint allows users to receive appropriate cringe anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/cringe` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/cringe` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/cringe"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/cringe" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/cringe` endpoint. diff --git a/pages/rest-api/Interactions/Cry/search.mdx b/pages/rest-api/Interactions/Cry/search.mdx index 01ee763..6fb1686 100644 --- a/pages/rest-api/Interactions/Cry/search.mdx +++ b/pages/rest-api/Interactions/Cry/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/cry` endpoint allows users to receive appropriate cry anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/cry` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/cry` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/cry"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/cry" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/cry` endpoint. diff --git a/pages/rest-api/Interactions/Cuddle/search.mdx b/pages/rest-api/Interactions/Cuddle/search.mdx index 01ee763..67473df 100644 --- a/pages/rest-api/Interactions/Cuddle/search.mdx +++ b/pages/rest-api/Interactions/Cuddle/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/cuddle` endpoint allows users to receive appropriate cuddle anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/cuddle` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/cuddle` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/cuddle"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/cuddle" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/cuddle` endpoint. diff --git a/pages/rest-api/Interactions/Dab/search.mdx b/pages/rest-api/Interactions/Dab/search.mdx index 01ee763..c091b71 100644 --- a/pages/rest-api/Interactions/Dab/search.mdx +++ b/pages/rest-api/Interactions/Dab/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/dab` endpoint allows users to receive appropriate dab anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/dab` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/dab` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/dab"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/dab" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/dab` endpoint. diff --git a/pages/rest-api/Interactions/Dance/search.mdx b/pages/rest-api/Interactions/Dance/search.mdx index 01ee763..3e2ff33 100644 --- a/pages/rest-api/Interactions/Dance/search.mdx +++ b/pages/rest-api/Interactions/Dance/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/dance` endpoint allows users to receive appropriate dance anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/dance` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/dance` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/dance"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/dance" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/dance` endpoint. diff --git a/pages/rest-api/Interactions/Die/search.mdx b/pages/rest-api/Interactions/Die/search.mdx index 01ee763..85e7e07 100644 --- a/pages/rest-api/Interactions/Die/search.mdx +++ b/pages/rest-api/Interactions/Die/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/die` endpoint allows users to receive appropriate die anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/die` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/die` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/die"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/die" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/die` endpoint. diff --git a/pages/rest-api/Interactions/Disgust/search.mdx b/pages/rest-api/Interactions/Disgust/search.mdx index 01ee763..07bfdf5 100644 --- a/pages/rest-api/Interactions/Disgust/search.mdx +++ b/pages/rest-api/Interactions/Disgust/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/disgust` endpoint allows users to receive appropriate disgust anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/disgust` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/disgust` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/disgust"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/disgust" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/disgust` endpoint. diff --git a/pages/rest-api/Interactions/Facepalm/search.mdx b/pages/rest-api/Interactions/Facepalm/search.mdx index 01ee763..85bc340 100644 --- a/pages/rest-api/Interactions/Facepalm/search.mdx +++ b/pages/rest-api/Interactions/Facepalm/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/facepalm` endpoint allows users to receive appropriate facepalm anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/facepalm` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/facepalm` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/facepalm"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/facepalm" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/facepalm` endpoint. diff --git a/pages/rest-api/Interactions/Feed/search.mdx b/pages/rest-api/Interactions/Feed/search.mdx index 01ee763..13deefb 100644 --- a/pages/rest-api/Interactions/Feed/search.mdx +++ b/pages/rest-api/Interactions/Feed/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/feed` endpoint allows users to receive appropriate feed anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/feed` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/feed` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/feed"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/feed" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/feed` endpoint. diff --git a/pages/rest-api/Interactions/Glomp/search.mdx b/pages/rest-api/Interactions/Glomp/search.mdx index 01ee763..ee08799 100644 --- a/pages/rest-api/Interactions/Glomp/search.mdx +++ b/pages/rest-api/Interactions/Glomp/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/glomp` endpoint allows users to receive appropriate glomp anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/glomp` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/glomp` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/glomp"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/glomp" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/glomp` endpoint. diff --git a/pages/rest-api/Interactions/Happy/search.mdx b/pages/rest-api/Interactions/Happy/search.mdx index 01ee763..7023f5d 100644 --- a/pages/rest-api/Interactions/Happy/search.mdx +++ b/pages/rest-api/Interactions/Happy/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/happy` endpoint allows users to receive appropriate happy anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/happy` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/happy` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/happy"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/happy" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/happy` endpoint. diff --git a/pages/rest-api/Interactions/Hi/search.mdx b/pages/rest-api/Interactions/Hi/search.mdx index 01ee763..da5c675 100644 --- a/pages/rest-api/Interactions/Hi/search.mdx +++ b/pages/rest-api/Interactions/Hi/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/hi` endpoint allows users to receive appropriate hi anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/hi` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/hi` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/hi"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/hi" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/hi` endpoint. diff --git a/pages/rest-api/Interactions/Highfive/search.mdx b/pages/rest-api/Interactions/Highfive/search.mdx index 01ee763..61d1b07 100644 --- a/pages/rest-api/Interactions/Highfive/search.mdx +++ b/pages/rest-api/Interactions/Highfive/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/highfive` endpoint allows users to receive appropriate highfive anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/highfive` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/highfive` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/highfive"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/highfive" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/highfive` endpoint. diff --git a/pages/rest-api/Interactions/Hold/search.mdx b/pages/rest-api/Interactions/Hold/search.mdx index 01ee763..288f877 100644 --- a/pages/rest-api/Interactions/Hold/search.mdx +++ b/pages/rest-api/Interactions/Hold/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/hold` endpoint allows users to receive appropriate hold anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/hold` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/hold` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/hold"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/hold" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/hold` endpoint. diff --git a/pages/rest-api/Interactions/Hug/search.mdx b/pages/rest-api/Interactions/Hug/search.mdx index 01ee763..1898ecb 100644 --- a/pages/rest-api/Interactions/Hug/search.mdx +++ b/pages/rest-api/Interactions/Hug/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/hug` endpoint allows users to receive appropriate hug anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/hug` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/hug` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/hug"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/hug" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/hug` endpoint. diff --git a/pages/rest-api/Interactions/Kick/search.mdx b/pages/rest-api/Interactions/Kick/search.mdx index 01ee763..b43a320 100644 --- a/pages/rest-api/Interactions/Kick/search.mdx +++ b/pages/rest-api/Interactions/Kick/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/kick` endpoint allows users to receive appropriate kick anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/kick` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/kick` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/kick"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/kick" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/kick` endpoint. diff --git a/pages/rest-api/Interactions/Kill/search.mdx b/pages/rest-api/Interactions/Kill/search.mdx index 01ee763..59ec30b 100644 --- a/pages/rest-api/Interactions/Kill/search.mdx +++ b/pages/rest-api/Interactions/Kill/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/kill` endpoint allows users to receive appropriate kill anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/kill` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/kill` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/kill"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/kill" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/kill` endpoint. diff --git a/pages/rest-api/Interactions/Kiss/search.mdx b/pages/rest-api/Interactions/Kiss/search.mdx index 01ee763..f96f8a3 100644 --- a/pages/rest-api/Interactions/Kiss/search.mdx +++ b/pages/rest-api/Interactions/Kiss/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/kiss` endpoint allows users to receive appropriate kiss anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/kiss` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/kiss` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/kiss"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/kiss" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/kiss` endpoint. diff --git a/pages/rest-api/Interactions/Laugh/search.mdx b/pages/rest-api/Interactions/Laugh/search.mdx index 01ee763..dd477ce 100644 --- a/pages/rest-api/Interactions/Laugh/search.mdx +++ b/pages/rest-api/Interactions/Laugh/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/laugh` endpoint allows users to receive appropriate laugh anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/laugh` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/laugh` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/laugh"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/laugh" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/laugh` endpoint. diff --git a/pages/rest-api/Interactions/Lick/search.mdx b/pages/rest-api/Interactions/Lick/search.mdx index 01ee763..2ee1b64 100644 --- a/pages/rest-api/Interactions/Lick/search.mdx +++ b/pages/rest-api/Interactions/Lick/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/lick` endpoint allows users to receive appropriate lick anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/lick` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/lick` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/lick"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/lick" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/lick` endpoint. diff --git a/pages/rest-api/Interactions/Love/search.mdx b/pages/rest-api/Interactions/Love/search.mdx index 01ee763..ac864cf 100644 --- a/pages/rest-api/Interactions/Love/search.mdx +++ b/pages/rest-api/Interactions/Love/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/love` endpoint allows users to receive appropriate love anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/love` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/love` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/love"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/love" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/love` endpoint. diff --git a/pages/rest-api/Interactions/Lurk/search.mdx b/pages/rest-api/Interactions/Lurk/search.mdx index 01ee763..cef7e55 100644 --- a/pages/rest-api/Interactions/Lurk/search.mdx +++ b/pages/rest-api/Interactions/Lurk/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/lurk` endpoint allows users to receive appropriate lurk anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/lurk` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/lurk` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/lurk"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/lurk" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/lurk` endpoint. diff --git a/pages/rest-api/Interactions/Midfing/search.mdx b/pages/rest-api/Interactions/Midfing/search.mdx index 01ee763..db3c11f 100644 --- a/pages/rest-api/Interactions/Midfing/search.mdx +++ b/pages/rest-api/Interactions/Midfing/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/midfing` endpoint allows users to receive appropriate midfing anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/midfing` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/midfing` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/midfing"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/midfing" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/midfing` endpoint. diff --git a/pages/rest-api/Interactions/Nervous/search.mdx b/pages/rest-api/Interactions/Nervous/search.mdx index 01ee763..698c2bf 100644 --- a/pages/rest-api/Interactions/Nervous/search.mdx +++ b/pages/rest-api/Interactions/Nervous/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/nervous` endpoint allows users to receive appropriate nervous anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/nervous` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/nervous` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/nervous"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/nervous" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/nervous` endpoint. diff --git a/pages/rest-api/Interactions/Nom/search.mdx b/pages/rest-api/Interactions/Nom/search.mdx index 01ee763..ee48c00 100644 --- a/pages/rest-api/Interactions/Nom/search.mdx +++ b/pages/rest-api/Interactions/Nom/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/nom` endpoint allows users to receive appropriate nom anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/nom` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/nom` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/nom"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/nom" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/nom` endpoint. diff --git a/pages/rest-api/Interactions/Nope/search.mdx b/pages/rest-api/Interactions/Nope/search.mdx index 01ee763..75712f8 100644 --- a/pages/rest-api/Interactions/Nope/search.mdx +++ b/pages/rest-api/Interactions/Nope/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/nope` endpoint allows users to receive appropriate nope anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/nope` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/nope` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/nope"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/nope" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/nope` endpoint. diff --git a/pages/rest-api/Interactions/Nuzzle/search.mdx b/pages/rest-api/Interactions/Nuzzle/search.mdx index 01ee763..76fdc9f 100644 --- a/pages/rest-api/Interactions/Nuzzle/search.mdx +++ b/pages/rest-api/Interactions/Nuzzle/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/nuzzle` endpoint allows users to receive appropriate nuzzle anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/nuzzle` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/nuzzle` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/nuzzle"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/nuzzle" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/nuzzle` endpoint. diff --git a/pages/rest-api/Interactions/Panic/search.mdx b/pages/rest-api/Interactions/Panic/search.mdx index 01ee763..716cb49 100644 --- a/pages/rest-api/Interactions/Panic/search.mdx +++ b/pages/rest-api/Interactions/Panic/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/panic` endpoint allows users to receive appropriate panic anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/panic` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/panic` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/panic"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/panic" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/panic` endpoint. diff --git a/pages/rest-api/Interactions/Pat/search.mdx b/pages/rest-api/Interactions/Pat/search.mdx index 01ee763..8df8f13 100644 --- a/pages/rest-api/Interactions/Pat/search.mdx +++ b/pages/rest-api/Interactions/Pat/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/pat` endpoint allows users to receive appropriate pat anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/pat` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/pat` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/pat"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/pat" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/pat` endpoint. diff --git a/pages/rest-api/Interactions/Peck/search.mdx b/pages/rest-api/Interactions/Peck/search.mdx index 01ee763..10be753 100644 --- a/pages/rest-api/Interactions/Peck/search.mdx +++ b/pages/rest-api/Interactions/Peck/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/peck` endpoint allows users to receive appropriate peck anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/peck` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/peck` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/peck"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/peck" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/peck` endpoint. diff --git a/pages/rest-api/Interactions/Poke/search.mdx b/pages/rest-api/Interactions/Poke/search.mdx index 01ee763..7cd8bf1 100644 --- a/pages/rest-api/Interactions/Poke/search.mdx +++ b/pages/rest-api/Interactions/Poke/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/poke` endpoint allows users to receive appropriate poke anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/poke` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/poke` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/poke"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/poke" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/poke` endpoint. diff --git a/pages/rest-api/Interactions/Pout/search.mdx b/pages/rest-api/Interactions/Pout/search.mdx index 01ee763..435ba46 100644 --- a/pages/rest-api/Interactions/Pout/search.mdx +++ b/pages/rest-api/Interactions/Pout/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/pout` endpoint allows users to receive appropriate pout anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/pout` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/pout` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/pout"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/pout" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/pout` endpoint. diff --git a/pages/rest-api/Interactions/Punch/search.mdx b/pages/rest-api/Interactions/Punch/search.mdx index 01ee763..e38f899 100644 --- a/pages/rest-api/Interactions/Punch/search.mdx +++ b/pages/rest-api/Interactions/Punch/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/punch` endpoint allows users to receive appropriate punch anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/punch` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/punch` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/punch"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/punch" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/punch` endpoint. diff --git a/pages/rest-api/Interactions/Run/search.mdx b/pages/rest-api/Interactions/Run/search.mdx index 01ee763..c39c32b 100644 --- a/pages/rest-api/Interactions/Run/search.mdx +++ b/pages/rest-api/Interactions/Run/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/run` endpoint allows users to receive appropriate run anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/run` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/run` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/run"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/run" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/run` endpoint. diff --git a/pages/rest-api/Interactions/Sad/search.mdx b/pages/rest-api/Interactions/Sad/search.mdx index 01ee763..f4bff19 100644 --- a/pages/rest-api/Interactions/Sad/search.mdx +++ b/pages/rest-api/Interactions/Sad/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/sad` endpoint allows users to receive appropriate sad anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/sad` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/sad` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/sad"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/sad" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/sad` endpoint. diff --git a/pages/rest-api/Interactions/Shoot/search.mdx b/pages/rest-api/Interactions/Shoot/search.mdx index 01ee763..62fb832 100644 --- a/pages/rest-api/Interactions/Shoot/search.mdx +++ b/pages/rest-api/Interactions/Shoot/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/shoot` endpoint allows users to receive appropriate shoot anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/shoot` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/shoot` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/shoot"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/shoot" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/shoot` endpoint. diff --git a/pages/rest-api/Interactions/Shrug/search.mdx b/pages/rest-api/Interactions/Shrug/search.mdx index 01ee763..821b664 100644 --- a/pages/rest-api/Interactions/Shrug/search.mdx +++ b/pages/rest-api/Interactions/Shrug/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/shrug` endpoint allows users to receive appropriate shrug anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/shrug` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/shrug` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/shrug"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/shrug" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/shrug` endpoint. diff --git a/pages/rest-api/Interactions/Sip/search.mdx b/pages/rest-api/Interactions/Sip/search.mdx index 01ee763..86c0036 100644 --- a/pages/rest-api/Interactions/Sip/search.mdx +++ b/pages/rest-api/Interactions/Sip/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/sip` endpoint allows users to receive appropriate sip anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/sip` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/sip` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/sip"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/sip" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/sip` endpoint. diff --git a/pages/rest-api/Interactions/Slap/search.mdx b/pages/rest-api/Interactions/Slap/search.mdx index 01ee763..70e1174 100644 --- a/pages/rest-api/Interactions/Slap/search.mdx +++ b/pages/rest-api/Interactions/Slap/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/slap` endpoint allows users to receive appropriate slap anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/slap` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/slap` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/slap"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/slap" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/slap` endpoint. diff --git a/pages/rest-api/Interactions/Sleepy/search.mdx b/pages/rest-api/Interactions/Sleepy/search.mdx index 01ee763..5b54324 100644 --- a/pages/rest-api/Interactions/Sleepy/search.mdx +++ b/pages/rest-api/Interactions/Sleepy/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/sleepy` endpoint allows users to receive appropriate sleepy anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/sleepy` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/sleepy` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/sleepy"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/sleepy" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/sleepy` endpoint. diff --git a/pages/rest-api/Interactions/Smile/search.mdx b/pages/rest-api/Interactions/Smile/search.mdx index 01ee763..52286dd 100644 --- a/pages/rest-api/Interactions/Smile/search.mdx +++ b/pages/rest-api/Interactions/Smile/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/smile` endpoint allows users to receive appropriate smile anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/smile` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/smile` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/smile"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/smile" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/smile` endpoint. diff --git a/pages/rest-api/Interactions/Smug/search.mdx b/pages/rest-api/Interactions/Smug/search.mdx index 01ee763..986f23f 100644 --- a/pages/rest-api/Interactions/Smug/search.mdx +++ b/pages/rest-api/Interactions/Smug/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/smug` endpoint allows users to receive appropriate smug anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/smug` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/smug` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/smug"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/smug" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/smug` endpoint. diff --git a/pages/rest-api/Interactions/Stab/search.mdx b/pages/rest-api/Interactions/Stab/search.mdx index 01ee763..0d1045e 100644 --- a/pages/rest-api/Interactions/Stab/search.mdx +++ b/pages/rest-api/Interactions/Stab/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/stab` endpoint allows users to receive appropriate stab anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/stab` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/stab` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/stab"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/stab" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/stab` endpoint. diff --git a/pages/rest-api/Interactions/Stare/search.mdx b/pages/rest-api/Interactions/Stare/search.mdx index 01ee763..8c49f1d 100644 --- a/pages/rest-api/Interactions/Stare/search.mdx +++ b/pages/rest-api/Interactions/Stare/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/stare` endpoint allows users to receive appropriate stare anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/stare` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/stare` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/stare"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/stare" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/stare` endpoint. diff --git a/pages/rest-api/Interactions/Suicide/search.mdx b/pages/rest-api/Interactions/Suicide/search.mdx index 01ee763..3c7ec46 100644 --- a/pages/rest-api/Interactions/Suicide/search.mdx +++ b/pages/rest-api/Interactions/Suicide/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/suicide` endpoint allows users to receive appropriate suicide anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/suicide` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/suicide` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/suicide"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/suicide" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/suicide` endpoint. diff --git a/pages/rest-api/Interactions/Tease/search.mdx b/pages/rest-api/Interactions/Tease/search.mdx index 01ee763..7a20d88 100644 --- a/pages/rest-api/Interactions/Tease/search.mdx +++ b/pages/rest-api/Interactions/Tease/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/tease` endpoint allows users to receive appropriate tease anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/tease` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/tease` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/tease"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/tease" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/tease` endpoint. diff --git a/pages/rest-api/Interactions/Think/search.mdx b/pages/rest-api/Interactions/Think/search.mdx index 01ee763..616831c 100644 --- a/pages/rest-api/Interactions/Think/search.mdx +++ b/pages/rest-api/Interactions/Think/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/think` endpoint allows users to receive appropriate think anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/think` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/think` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/think"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/think" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/think` endpoint. diff --git a/pages/rest-api/Interactions/Thumbsup/search.mdx b/pages/rest-api/Interactions/Thumbsup/search.mdx index 01ee763..865bab6 100644 --- a/pages/rest-api/Interactions/Thumbsup/search.mdx +++ b/pages/rest-api/Interactions/Thumbsup/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/thumbsup` endpoint allows users to receive appropriate thumbsup anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/thumbsup` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/thumbsup` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/thumbsup"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/thumbsup" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/thumbsup` endpoint. diff --git a/pages/rest-api/Interactions/Tickle/search.mdx b/pages/rest-api/Interactions/Tickle/search.mdx index 01ee763..1b35fc5 100644 --- a/pages/rest-api/Interactions/Tickle/search.mdx +++ b/pages/rest-api/Interactions/Tickle/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/tickle` endpoint allows users to receive appropriate tickle anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/tickle` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/tickle` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/tickle"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/tickle" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/tickle` endpoint. diff --git a/pages/rest-api/Interactions/Triggered/search.mdx b/pages/rest-api/Interactions/Triggered/search.mdx index 01ee763..92a76e5 100644 --- a/pages/rest-api/Interactions/Triggered/search.mdx +++ b/pages/rest-api/Interactions/Triggered/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/triggered` endpoint allows users to receive appropriate triggered anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/triggered` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/triggered` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/triggered"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/triggered" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/triggered` endpoint. diff --git a/pages/rest-api/Interactions/Wag/search.mdx b/pages/rest-api/Interactions/Wag/search.mdx index 01ee763..d786e8d 100644 --- a/pages/rest-api/Interactions/Wag/search.mdx +++ b/pages/rest-api/Interactions/Wag/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/wag` endpoint allows users to receive appropriate wag anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/wag` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/wag` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/wag"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/wag" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/wag` endpoint. diff --git a/pages/rest-api/Interactions/Wave/search.mdx b/pages/rest-api/Interactions/Wave/search.mdx index 01ee763..636b5f5 100644 --- a/pages/rest-api/Interactions/Wave/search.mdx +++ b/pages/rest-api/Interactions/Wave/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/wave` endpoint allows users to receive appropriate wave anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/wave` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/wave` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/wave"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/wave" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/wave` endpoint. diff --git a/pages/rest-api/Interactions/Wink/search.mdx b/pages/rest-api/Interactions/Wink/search.mdx index 01ee763..556063c 100644 --- a/pages/rest-api/Interactions/Wink/search.mdx +++ b/pages/rest-api/Interactions/Wink/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/wink` endpoint allows users to receive appropriate wink anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/wink` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/wink` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/wink"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/wink" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/wink` endpoint. diff --git a/pages/rest-api/Interactions/Yes/search.mdx b/pages/rest-api/Interactions/Yes/search.mdx index 01ee763..aabd0a0 100644 --- a/pages/rest-api/Interactions/Yes/search.mdx +++ b/pages/rest-api/Interactions/Yes/search.mdx @@ -1 +1,95 @@ -Work in progress \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +The `/yes` endpoint allows users to receive appropriate yes anime responses from the server. This document provides a +detailed description of the endpoint, including input headers, response examples, and code snippets in Python and Node.js +for handling the requests. + +## Endpoint Details + +- **URL**: `/yes` +- **Method**: GET +- **Content Type**: application/json + +## Request Headers + +The request to the `/yes` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request + + + + ```js + import axios from "axios"; + + /* + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/yes"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "Your-API-Token", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/yes" + response = requests.get(url, headers={ + "Authorization": "Your-API-Token", + }) + data = response.json() + + print(data) + ``` + + + +## Responses + +The server will respond with an appropriate message based on the input provided. The possible response messages are as follows: + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/yes` endpoint. diff --git a/pages/rest-api/Texts/Fact/search.mdx b/pages/rest-api/Texts/Fact/search.mdx index 1cd5d2a..66cc6a6 100644 --- a/pages/rest-api/Texts/Fact/search.mdx +++ b/pages/rest-api/Texts/Fact/search.mdx @@ -1 +1,117 @@ -owo WIP \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to access and retrieve information about your favorite facts. To access the `/fact` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/fact` endpoint allows you to retrieve information about a specific fact. + +- **URL**: `/fact` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/fact` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request Headers + +The request to the `/fact` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request +Here's example of how to make a request to the `/fact` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://fact.it/api/fact"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "YOUR_ACCESS_TOKEN", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/fact" + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }) + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `_id`: The unique identifier of the fact. +- `fact`: This pertains to various facts and information related to anime and related topics. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "_id": 48, + "fact": "TEZUKA Osamu is the most famous manga artist in Japan." + "status": 200, + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/fact` endpoint. diff --git a/pages/rest-api/Texts/Owoify/generate.mdx b/pages/rest-api/Texts/Owoify/generate.mdx index e69de29..9e9807a 100644 --- a/pages/rest-api/Texts/Owoify/generate.mdx +++ b/pages/rest-api/Texts/Owoify/generate.mdx @@ -0,0 +1,138 @@ +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to generate owoified text. To access the `/owoify` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/owoify` endpoint allows you to retrieve information about a specific owoify. + +- **URL**: `/owoify` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/owoify` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request +### Headers + +The request to the `/owoify` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Parameters + +These are the request parameters for the `/owoify` endpoint. + +| Parameter | Type | Description | Required | +| --------- | ------ | ------------------------------------------------------------------ | -------- | +| `text` | string | The text you want to convert into an "owo" language-style format. | True | + +## Example Request +Here's an example of how to make a request to the `/owoify` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/owoify"; + const text = "Hello world"; // Replace with your desired owoify length (optional). + const data = async () => { + try { + const { data } = await axios.get(url, { + headers: { + Authorization: "YOUR_ACCESS_TOKEN", + }, + params: { + text: text || undefined, + } + }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/owoify" + + text = "Hello world" # Replace with your desired owoify length (optional). + + params = { + "text": text if text is not None else None, + } + + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }, params=params) + + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `owoify`: The owoified that is generated for you. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "text": "Hewwo wowwd" + "status": 200, + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/owoify` endpoint. \ No newline at end of file diff --git a/pages/rest-api/Texts/Password/_meta.json b/pages/rest-api/Texts/Password/_meta.json index 3cf6b01..af5715a 100644 --- a/pages/rest-api/Texts/Password/_meta.json +++ b/pages/rest-api/Texts/Password/_meta.json @@ -1,3 +1,3 @@ { - "search": "Search" + "generate": "Generate" } diff --git a/pages/rest-api/Texts/Password/generate.mdx b/pages/rest-api/Texts/Password/generate.mdx new file mode 100644 index 0000000..327f26a --- /dev/null +++ b/pages/rest-api/Texts/Password/generate.mdx @@ -0,0 +1,138 @@ +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to generate random passwords. To access the `/password` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/password` endpoint allows you to retrieve information about a specific password. + +- **URL**: `/password` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/password` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request +### Headers + +The request to the `/password` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Parameters + +The request parameters for the `/password` endpoint. + +| Parameter | Type | Description | Required | +| ------------- | ------ | ------------------------------------------------------------------------------------------------------------- | -------- | +| `charLength` | number | (Optional) The desired length of the generated password. If not provided, a default length is used. | False | + +## Example Request +Here's an example of how to make a request to the `/password` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/password"; + const charLength = 12; // Replace with your desired password length (optional). + const data = async () => { + try { + const { data } = await axios.get(url, { + headers: { + Authorization: "YOUR_ACCESS_TOKEN", + }, + params: { + charLength: charLength || undefined, + } + }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/password" + + charLength = 12 # Replace with your desired password length (optional). + + params = { + "charLength": charLength if charLength is not None else None, + } + + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }, params=params) + + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `password`: The unique password that is generated for you. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "password": "&CbO891uM7G3" + "status": 200, + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/password` endpoint. diff --git a/pages/rest-api/Texts/Password/search.mdx b/pages/rest-api/Texts/Password/search.mdx deleted file mode 100644 index 1cd5d2a..0000000 --- a/pages/rest-api/Texts/Password/search.mdx +++ /dev/null @@ -1 +0,0 @@ -owo WIP \ No newline at end of file diff --git a/pages/rest-api/Texts/Quote/search.mdx b/pages/rest-api/Texts/Quote/search.mdx index 1cd5d2a..f3aaa39 100644 --- a/pages/rest-api/Texts/Quote/search.mdx +++ b/pages/rest-api/Texts/Quote/search.mdx @@ -1 +1,120 @@ -owo WIP \ No newline at end of file +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to access and retrieve information about your favorite quotes. To access the `/quote` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/quote` endpoint allows you to retrieve information about a specific quote. + +- **URL**: `/quote` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/quote` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request Headers + +The request to the `/quote` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Example Request +Here's example of how to make a request to the `/quote` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://quote.it/api/quote"; + const data = async () => { + try { + const { data } = await axios.get(url, { headers: { + Authorization: "YOUR_ACCESS_TOKEN", + } }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/quote" + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }) + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `_id`: The unique identifier of the quote. +- `quote`: This encompasses a collection of quotes and information concerning anime and related subjects. +- `from`: The identification of the anime or related subject from which the quote originated. +- `author`: The attribution of the quote to its source or the person who said it. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "_id": 88, + "quote": "I don't know everything. I just know what I know.", + "from": "Nisemonogatari", + "author": "Tsubasa Hanekawa" + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/quote` endpoint. \ No newline at end of file diff --git a/pages/rest-api/Texts/Uvuify/_meta.json b/pages/rest-api/Texts/Uvuify/_meta.json new file mode 100644 index 0000000..af5715a --- /dev/null +++ b/pages/rest-api/Texts/Uvuify/_meta.json @@ -0,0 +1,3 @@ +{ + "generate": "Generate" +} diff --git a/pages/rest-api/Texts/Uvuify/generate.mdx b/pages/rest-api/Texts/Uvuify/generate.mdx new file mode 100644 index 0000000..aa8eb77 --- /dev/null +++ b/pages/rest-api/Texts/Uvuify/generate.mdx @@ -0,0 +1,138 @@ +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to generate uvuified text. To access the `/uvuify` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/uvuify` endpoint allows you to retrieve information about a specific uvuify. + +- **URL**: `/uvuify` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/uvuify` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request +### Headers + +The request to the `/uvuify` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Parameters + +These are the request parameters for the `/uvuify` endpoint. + +| Parameter | Type | Description | Required | +| --------- | ------ | ------------------------------------------------------------------ | -------- | +| `text` | string | The text you want to convert into an "uvu" language-style format. | True | + +## Example Request +Here's an example of how to make a request to the `/uvuify` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/uvuify"; + const text = "Hello world"; // Replace with your desired uvuify length (optional). + const data = async () => { + try { + const { data } = await axios.get(url, { + headers: { + Authorization: "YOUR_ACCESS_TOKEN", + }, + params: { + text: text || undefined, + } + }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/uvuify" + + text = "Hello world" # Replace with your desired uvuify length (optional). + + params = { + "text": text if text is not None else None, + } + + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }, params=params) + + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `uvuify`: The uvuified that is generated for you. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "text": "Hevvo wovvud" + "status": 200, + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/uvuify` endpoint. \ No newline at end of file diff --git a/pages/rest-api/Texts/Uwuify/_meta.json b/pages/rest-api/Texts/Uwuify/_meta.json new file mode 100644 index 0000000..af5715a --- /dev/null +++ b/pages/rest-api/Texts/Uwuify/_meta.json @@ -0,0 +1,3 @@ +{ + "generate": "Generate" +} diff --git a/pages/rest-api/Texts/Uwuify/generate.mdx b/pages/rest-api/Texts/Uwuify/generate.mdx new file mode 100644 index 0000000..3c6d184 --- /dev/null +++ b/pages/rest-api/Texts/Uwuify/generate.mdx @@ -0,0 +1,138 @@ +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to generate uwuified text. To access the `/uwuify` endpoint, you +will need to provide the proper authentication using the Authorization header. + + +## Endpoint Details +The `/uwuify` endpoint allows you to retrieve information about a specific uwuify. + +- **URL**: `/uwuify` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/uwuify` endpoint, you must include an `Authorization` header in your API calls. This header should contain a valid access token. + +### Example Authorization Header + +```jsx +Authorization: YOUR_ACCESS_TOKEN +``` + +Replace `YOUR_ACCESS_TOKEN` with the actual token provided to you. + +## Request +### Headers + +The request to the `/uwuify` endpoint should be a JSON object with the following headers: + +| Header | Type | Description | Required | +| --------------- | ------- | ---------------------------------------------------- | -------- | +| `Authorization` | string | The unique identifier of the user sending the request. | True | + +### Parameters + +These are the request parameters for the `/uwuify` endpoint. + +| Parameter | Type | Description | Required | +| --------- | ------ | ------------------------------------------------------------------ | -------- | +| `text` | string | The text you want to convert into an "uwu" language-style format. | True | + +## Example Request +Here's an example of how to make a request to the `/uwuify` endpoint. + + + + ```js + import axios from "axios"; + + /* + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + */ + const url = "https://waifu.it/api/uwuify"; + const text = "Hello world"; // Replace with your desired uwuify length (optional). + const data = async () => { + try { + const { data } = await axios.get(url, { + headers: { + Authorization: "YOUR_ACCESS_TOKEN", + }, + params: { + text: text || undefined, + } + }); + return data; + } catch (err) { + throw new Error(err.message); + } + }; + + console.log(data); + ``` + + + ```python + import requests + + """ + Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint. + """ + url = "https://waifu.it/api/uwuify" + + text = "Hello world" # Replace with your desired uwuify length (optional). + + params = { + "text": text if text is not None else None, + } + + response = requests.get(url, headers={ + "Authorization": "YOUR_ACCESS_TOKEN", + }, params=params) + + data = response.json() + + print(data) + ``` + + + +Remember to replace `YOUR_ACCESS_TOKEN` with your actual access token. + +## Responses + +The server will respond with an appropriate message based on the input provided. A successfully API request will respond +with a JSON object containing the following information: + +- `uwuify`: The uwuified that is generated for you. +- `status`: Response status + + + + **Content Type:** `application/json` + ```json copy=false + "text": "Hewwo wowwd" + "status": 200, + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 404, + "message": {} + ``` + + + **Content Type:** `application/json` + ```json copy=false + "status": 500, + "message": {} + ``` + + + +This documentation should help you use [`axios`](https://www.npmjs.com/package/axios) for Node.js and [`requests`](https://pypi.org/project/requests/) +for Python to interact with the `/uwuify` endpoint. \ No newline at end of file diff --git a/pages/rest-api/Texts/_meta.json b/pages/rest-api/Texts/_meta.json index 5517fe9..6dfb937 100644 --- a/pages/rest-api/Texts/_meta.json +++ b/pages/rest-api/Texts/_meta.json @@ -18,5 +18,13 @@ "Owoify": { "title": "Owoify", "theme": { "collapsed": true } + }, + "Uvuify": { + "title": "Uvuify", + "theme": { "collapsed": true } + }, + "Uwuify": { + "title": "Uwuify", + "theme": { "collapsed": true } } } diff --git a/pages/rest-api/start.mdx b/pages/rest-api/start.mdx index d2bfc60..934c7a3 100644 --- a/pages/rest-api/start.mdx +++ b/pages/rest-api/start.mdx @@ -30,7 +30,7 @@ The base URL for the Waifu.it REST API is: [`https://waifu.it/api/:endpoint`](ht const url = "https://waifu.it/api/:endpoint" const data = async () => { try { - const { data } = await axios.get(url, { header: { + const { data } = await axios.get(url, { headers: { Authorization: "Your-API-Token", } }); return data; @@ -53,7 +53,7 @@ The base URL for the Waifu.it REST API is: [`https://waifu.it/api/:endpoint`](ht Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint. """ url = "https://waifu.it/api/:endpoint" - response = requests.get(url, header={ + response = requests.get(url, headers={ "Authorization": "Your-API-Token", }) data = response.json() @@ -61,7 +61,6 @@ The base URL for the Waifu.it REST API is: [`https://waifu.it/api/:endpoint`](ht print(data) ``` - @@ -78,12 +77,14 @@ The base URL for the Waifu.it REST API is: [`https://waifu.it/api/:endpoint`](ht **Content Type:** `application/json` ```json copy=false + "status": 404, "message": {} ``` **Content Type:** `application/json` ```json copy=false + "status": 500, "message": {} ``` diff --git a/theme.config.tsx b/theme.config.tsx index cbccfec..34e4a76 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -1,14 +1,19 @@ import React from "react"; -import { DocsThemeConfig, useTheme } from "nextra-theme-docs"; +import { DocsThemeConfig } from "nextra-theme-docs"; const config: DocsThemeConfig = { gitTimestamp: false, useNextSeoProps: () => { return { titleTemplate: `%s - Waifu.it` }; }, - faviconGlyph: "🚧", + faviconGlyph: "📝", banner: { - text: "🚧 Undergoing reconstruction 🚧", + key: '3.0-release', + text: ( + + 🎉 Documentation 3.0 is released. Read more → + + ) }, logo: Documentation, navbar: { @@ -55,7 +60,15 @@ const config: DocsThemeConfig = { }, docsRepositoryBase: "https://github.com/WaifuAPI/Documentation/tree/production", footer: { - text: "© 2021-2023 Waifu.it", + text: ( + + AGPL-3.0 {new Date().getFullYear()} ©{' '} + + Waifu.it + + . + + ) }, head: function useHead() { const description =