diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dc6cdeb..5007621 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,26 +1,25 @@ -# Contributing to Waifu.it - -We love your input! We want to make contributing to this project as easy as possible, whether it's: - -- Submitting a fix -- Reporting an issue -- Becoming a maintainer -- Proposing new features -- Discussing the current state of the code - -## Code of Conduct - -The code of conduct is described in [Code of Conduct](CODE_OF_CONDUCT.md). - -## Feature Request - -Great Feature Requests tend to have: - -- A quick idea summary. -- What & why you wanted to add the specific feature. -- Additional context like images, links to resources to implement the feature etc, etc. - -## License - -By contributing to Animu Documentation, you agree that your contributions will be licensed -under the [LICENSE file](LICENSE.md). +# Contributing Guidelines + +Welcome to the Waifu.it community! We value your contributions and aim to make the process of contributing as straightforward as possible. You can help in various ways, such as: + +- Fixing issues +- Reporting bugs or problems +- Becoming a project maintainer +- Proposing new features +- Engaging in discussions about the project's codebase + +## Code of Conduct + +Please review our [Code of Conduct](CODE_OF_CONDUCT.md) to understand our community's behavior standards. + +## Feature Requests + +If you have a feature in mind, we appreciate it when feature requests include: + +- A concise summary of the idea +- Explanation of what the feature is and why it would be beneficial +- Any additional context, like images or resources that could help in implementing the feature + +## Licensing + +By contributing to the Waifu.it project, you agree that your contributions will be subject to the terms specified in our [LICENSE file](LICENSE.md). diff --git a/components/counters.tsx b/components/counters.tsx index d7bea8b..b78f12d 100644 --- a/components/counters.tsx +++ b/components/counters.tsx @@ -21,4 +21,4 @@ function MyButton() { export default function MyApp() { return -} \ No newline at end of file +} diff --git a/package.json b/package.json index 1b03525..811fdde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docs.waifu.it", - "version": "2.0.3", + "version": "3.2.9", "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.8", + "next": "^13.4.12", "nextra": "2.0.1", "nextra-theme-docs": "2.0.1", "react": "^18.2.0", @@ -27,4 +27,4 @@ "@types/node": "18.11.10", "typescript": "^4.9.5" } -} +} \ No newline at end of file diff --git a/pages/_meta.json b/pages/_meta.json index debc191..5939c86 100644 --- a/pages/_meta.json +++ b/pages/_meta.json @@ -1,5 +1,6 @@ { "index": "Introduction", + "tos": "Terms of Service", "list-of-endpoints": "List of Endpoints", "faq": "FAQ", "rest-api": "API", @@ -10,10 +11,16 @@ "href": "https://raw.githubusercontent.com/WaifuAPI/Waifu.it/production/LICENCE.md", "newWindow": true }, + "privacy-policy": { + "title": "Privacy Policy ↗", + "type": "page", + "href": "https://raw.githubusercontent.com/WaifuAPI/Waifu.it/production/PRIVACY_POLICY.md", + "newWindow": true + }, "contact": { "title": "Contact ↗", "type": "page", "href": "mailto:notaeryk@gmail.com", "newWindow": true } -} +} \ No newline at end of file diff --git a/pages/faq.mdx b/pages/faq.mdx index a0ff58b..7139b62 100644 --- a/pages/faq.mdx +++ b/pages/faq.mdx @@ -1,21 +1,80 @@ -## FREQUENTLY ASKED QUESTIONS +# **Frequently Asked Questions (FAQ)** -
+### **How do I get an API token?** -### 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 obtain your API token, simply log in to the **[Waifu.it Dashboard](https://waifu.it/dashboard)**. -{/* ### CORS causing trouble? +--- -
- Use the Waifuit CORS proxy. - Append the source link for the media to `https://cors.waifuit.stream/`, like so: - ``` - https://cors.waifuit.stream/ - ``` -
*/} +### **How can I support the project?** -### How can I support the project? -- Contribute to the [API](https://github.com/WaifuAPI/Waifu.it) -- Donate me via [Ko-fi](https://ko-fi.com/Aeryk) -- Give feedback or suggestions in [discord server](https://discord.gg/yyW389c). +We appreciate any form of support! Here’s how you can help: + +- ⭐ **Contribute** to the API on **[GitHub](https://github.com/WaifuAPI/Waifu.it)**. +- ☕ **Donate** via **[Ko-fi](https://ko-fi.com/Aeryk)** to help with server costs. +- 💬 **Share your feedback** or suggest improvements in our **[Discord server](https://discord.gg/yyW389c)**. + +--- + +### **What happens if I run out of quota?** + +If you exhaust your quota, you’ll receive a **403 Forbidden** error. To continue using the API, you’ll need to **earn more quota** (see the next question for details). + +You can check your available quota using: + +- **`-profile `** (Discord command). +- The **Waifu.it Dashboard** for real-time quota tracking. + +--- + +### **How can I earn more API quota?** + +You can earn quota in multiple ways: + +#### **1. Starring or Following Our GitHub Repositories** + +Earn **150 quota** per star when you star our GitHub repositories! + +- **⚠️ Note:** Removing the star will revoke the corresponding quota. +- **🛠️ How to Redeem:** Create a ticket to claim your quota. +- **📂 GitHub Repositories:** + - **Organization:** [Click here](https://github.com/WaifuAPI) + - **API:** [Click here](https://github.com/WaifuAPI/api) + - **Website:** [Click here](https://github.com/WaifuAPI/website) + - **Documentation:** [Click here](https://github.com/WaifuAPI/documentation) + +#### **2. Donating** + +Support our API and help keep it running! By donating, you can receive **bonus quota** and other perks. + +- **📈 Quota Increase:** Varies based on the donation amount. +- **🎖️ Additional Benefits:** + - Special **donator role** in our Discord server. + - **Access to premium endpoints** and exclusive features. + - **Early access** to upcoming cool features. +- **🛠️ How to Redeem:** Create a ticket after donating to claim your quota. + +#### **3. Upgrading to a Premium Plan** + +For users who need a **higher quota limit** with additional benefits, we offer premium plans! + +- **🚀 Basic Plan - $5/month:** + - **X monthly quota** + - **Access to premium endpoints** + - **Priority support** +- **🌟 Pro Plan - $15/month:** + - **X monthly quota** + - **Faster API response times** + - **Access to exclusive beta features** +- **🔥 Ultimate Plan - $30/month:** + + - **X monthly quota** + - **Highest API priority** + - **Custom API limits upon request** + - **Personalized support** + +- **💳 How to Subscribe:** Visit the **Waifu.it Discord** and create a ticket. + +--- + +With these methods, you can continue using Waifu.it **without running out of quota!** 🎉 Need more help? Join our **[Discord server](https://discord.gg/yyW389c)** for assistance! 🚀 diff --git a/pages/index.mdx b/pages/index.mdx index 7612d88..791b8ac 100644 --- a/pages/index.mdx +++ b/pages/index.mdx @@ -1,5 +1,14 @@ -# Introduction +# **🌸 Welcome to Waifu.it Documentation!** -Welcome to the documentation for Waifu.it - a high-level API that provide anime related information from numerous -entertainment mediums (such as anime, manga, light novels, movies etc.), along with links to these contents from publicly-available online -sources. This website intends to inform you about how to use both the API ([https://waifu.it](https://waifu.it)). \ No newline at end of file +Your ultimate source for **anime-related content**! 🎉 Waifu.it provides seamless access to a vast collection of data spanning **anime, manga, light novels, and movies**, along with direct links to publicly available sources. + +## **Why Use Waifu.it?** + +✅ **Comprehensive Database** – Fetch detailed information on characters, series, and more. +✅ **Lightning-Fast Responses** – Optimized for speed and efficiency. +✅ **Easy Integration** – Perfect for Discord bots, websites, and AI-powered projects. + +📌 **API Documentation:** +🌐 **[https://waifu.it](https://waifu.it)** + +Get started today and bring your anime-related projects to life effortlessly! 🚀 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 ed4a781..6e58ea6 100644 --- a/pages/list-of-endpoints.mdx +++ b/pages/list-of-endpoints.mdx @@ -1,28 +1,82 @@ -# List of Endpoints +## **List of Endpoints** -Waifu.it supports a wealth of endpoints, which can be categorized into the following groups: +Waifu.it offers a rich collection of API endpoints, thoughtfully categorized to enhance user experience and functionality: -## Actions +- **🌀 Interactions** – Power dynamic engagements with interactive features. +- **🖼️ Images** – Access a vast library of stunning anime artwork. +- **📝 Texts** – Retrieve, generate, and explore captivating text-based content. -[Angry:](https://docs.waifu.it/rest-api/Actions/Angry/search) This endpoint returns a random anime GIF with the angry reaction. +Unlock limitless possibilities with Waifu.it’s API and bring your projects to life! 🚀 -[Baka:](https://docs.waifu.it/rest-api/Actions/Baka/search) This endpoint returns a random anime GIF with the baka or idiot reaction. +--- +### 🌀 Interactions -## Emotes +Retrieve random anime GIFs representing various emotions and actions. -[Blush:](https://docs.waifu.it/rest-api/Emotes/Blush/search) This endpoint returns a random anime GIF with Blush. +- **[Angry](https://docs.waifu.it/rest-api/Interactions/Angry/search)** – Express frustration with an angry reaction. +- **[Baka](https://docs.waifu.it/rest-api/Interactions/Baka/search)** – Playfully call someone an idiot. +- **[Bite](https://docs.waifu.it/rest-api/Interactions/Bite/search)** – Show affection or aggression with a bite. +- **[Blush](https://docs.waifu.it/rest-api/Interactions/Blush/search)** – Display embarrassment with a blush. +- **[Bonk](https://docs.waifu.it/rest-api/Interactions/Bonk/search)** – Knock some sense into someone. +- **[Bored](https://docs.waifu.it/rest-api/Interactions/Bored/search)** – Express boredom. +- **[Bully](https://docs.waifu.it/rest-api/Interactions/Bully/search)** – Engage in lighthearted teasing. +- **[Bye](https://docs.waifu.it/rest-api/Interactions/Bye/search)** – Wave farewell. +- **[Chase](https://docs.waifu.it/rest-api/Interactions/Chase/search)** – Run after someone. +- **[Cheer](https://docs.waifu.it/rest-api/Interactions/Cheer/search)** – Show enthusiasm and support. +- **[Cringe](https://docs.waifu.it/rest-api/Interactions/Cringe/search)** – React to something awkward. +- **[Cry](https://docs.waifu.it/rest-api/Interactions/Cry/search)** – Express sadness. +- **[Cuddle](https://docs.waifu.it/rest-api/Interactions/Cuddle/search)** – Share a warm embrace. +- **[Dab](https://docs.waifu.it/rest-api/Interactions/Dab/search)** – Show off a stylish dab move. +- **[Dance](https://docs.waifu.it/rest-api/Interactions/Dance/search)** – Express joy through dance. +- **[Facepalm](https://docs.waifu.it/rest-api/Interactions/Facepalm/search)** – React to something foolish. +- **[Feed](https://docs.waifu.it/rest-api/Interactions/Feed/search)** – Offer food to someone. +- **[Glomp](https://docs.waifu.it/rest-api/Interactions/Glomp/search)** – Enthusiastically tackle someone in a hug. +- **[Happy](https://docs.waifu.it/rest-api/Interactions/Happy/search)** – Share a cheerful expression. +- **[Hi](https://docs.waifu.it/rest-api/Interactions/Hi/search)** – Say hello with a friendly wave. +- **[Highfive](https://docs.waifu.it/rest-api/Interactions/Highfive/search)** – Celebrate with a high five. +- **[Hug](https://docs.waifu.it/rest-api/Interactions/Hug/search)** – Show affection with a heartfelt hug. +- **[Kick](https://docs.waifu.it/rest-api/Interactions/Kick/search)** – Deliver a swift kick. +- **[Kill](https://docs.waifu.it/rest-api/Interactions/Kill/search)** – (Fictionally) eliminate someone dramatically. +- **[Kiss](https://docs.waifu.it/rest-api/Interactions/Kiss/search)** – Share a loving kiss. +- **[Laugh](https://docs.waifu.it/rest-api/Interactions/Laugh/search)** – Burst into laughter. +- **[Lick](https://docs.waifu.it/rest-api/Interactions/Lick/search)** – Playfully lick someone. +- **[Love](https://docs.waifu.it/rest-api/Interactions/Love/search)** – Express deep affection. +- **[Nuzzle](https://docs.waifu.it/rest-api/Interactions/Nuzzle/search)** – Show fondness by rubbing affectionately. +- **[Pat](https://docs.waifu.it/rest-api/Interactions/Pat/search)** – Comfort someone with a gentle pat. +- **[Poke](https://docs.waifu.it/rest-api/Interactions/Poke/search)** – Get someone’s attention with a poke. +- **[Punch](https://docs.waifu.it/rest-api/Interactions/Punch/search)** – Throw a strong punch. +- **[Run](https://docs.waifu.it/rest-api/Interactions/Run/search)** – Dash away in a hurry. +- **[Slap](https://docs.waifu.it/rest-api/Interactions/Slap/search)** – Deliver a sharp slap. +- **[Smile](https://docs.waifu.it/rest-api/Interactions/Smile/search)** – Show a bright and cheerful smile. +- **[Wave](https://docs.waifu.it/rest-api/Interactions/Wave/search)** – Greet someone with a friendly wave. +- **[Wink](https://docs.waifu.it/rest-api/Interactions/Wink/search)** – Flirt or tease with a wink. +- **[Yes](https://docs.waifu.it/rest-api/Interactions/Yes/search)** – Express strong approval. -## Images +For the complete list of interaction endpoints, visit their respective documentation pages. -[Waifu:](https://docs.waifu.it/rest-api/Images/Waifu/search) Serves with a random anime waifu image with some of it's information. +--- -## Texts +### 🎨 Images -[Fact:](https://docs.waifu.it/rest-api/Texts/Fact/search) Serves with a random anime fact. +Discover stunning anime artwork and character portraits. -[Password:](https://docs.waifu.it/rest-api/Texts/Password/search) Generate's a random `base64` string. +- **[Waifu](https://docs.waifu.it/rest-api/Images/Waifu/search)** – Find captivating waifus. +- **[Husbando](https://docs.waifu.it/rest-api/Images/Husbando/search)** – Discover charming husbandos. -[Quote:](https://docs.waifu.it/rest-api/Texts/Quote/search) Serves with a random anime quote. +--- -[Tags:](https://docs.waifu.it/rest-api/Texts/Tags/search) Response with the available tags for query in certain endpoints. \ No newline at end of file +### 📜 Texts + +Get fascinating anime-related text content. + +- **[Fact](https://docs.waifu.it/rest-api/Texts/Fact/search)** – Learn a random anime fact. +- **[Quote](https://docs.waifu.it/rest-api/Texts/Quote/search)** – Discover inspiring anime quotes. +- **[Tags](https://docs.waifu.it/rest-api/Texts/Tags/search)** – Retrieve a list of tags for filtering results. +- **[Owoify](https://docs.waifu.it/rest-api/Texts/Owoify/generate)** – Convert text into a cute “owo” style. +- **[Uwuify](https://docs.waifu.it/rest-api/Texts/Uvuify/generate)** – Transform text into an adorable “uwu” format. +- **[Password](https://docs.waifu.it/rest-api/Texts/Password/generate)** – Generate a secure Base64 password. + +--- + +For more details, visit their respective documentation pages or explore the [Waifu.it API](https://waifu.it). diff --git a/pages/rest-api/Actions/Angry/search.mdx b/pages/rest-api/Actions/Angry/search.mdx deleted file mode 100644 index 1cd5d2a..0000000 --- a/pages/rest-api/Actions/Angry/search.mdx +++ /dev/null @@ -1 +0,0 @@ -owo WIP \ No newline at end of file diff --git a/pages/rest-api/Actions/_meta.json b/pages/rest-api/Actions/_meta.json deleted file mode 100644 index fb899d4..0000000 --- a/pages/rest-api/Actions/_meta.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Angry": { - "title": "Angry", - "theme": { "collapsed": true } - } -} diff --git a/pages/rest-api/Emotes/Blush/_meta.json b/pages/rest-api/Emotes/Blush/_meta.json deleted file mode 100644 index 3cf6b01..0000000 --- a/pages/rest-api/Emotes/Blush/_meta.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "search": "Search" -} diff --git a/pages/rest-api/Emotes/Blush/search.mdx b/pages/rest-api/Emotes/Blush/search.mdx deleted file mode 100644 index 1cd5d2a..0000000 --- a/pages/rest-api/Emotes/Blush/search.mdx +++ /dev/null @@ -1 +0,0 @@ -owo WIP \ No newline at end of file diff --git a/pages/rest-api/Emotes/_meta.json b/pages/rest-api/Emotes/_meta.json deleted file mode 100644 index 0a23e99..0000000 --- a/pages/rest-api/Emotes/_meta.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Blush": { - "title": "Blush", - "theme": { "collapsed": true } - } -} diff --git a/pages/rest-api/Actions/Angry/_meta.json b/pages/rest-api/Images/Husbando/_meta.json similarity index 100% rename from pages/rest-api/Actions/Angry/_meta.json rename to pages/rest-api/Images/Husbando/_meta.json diff --git a/pages/rest-api/Images/Husbando/search.mdx b/pages/rest-api/Images/Husbando/search.mdx new file mode 100644 index 0000000..0b3d7fa --- /dev/null +++ b/pages/rest-api/Images/Husbando/search.mdx @@ -0,0 +1,233 @@ +import { Tab, Tabs } from "nextra-theme-docs"; + +# Search + +This endpoint allows you to access and retrieve information about your favorite husbandos. To access the `/husbando` endpoint, you +will need to provide the proper authentication using the Authorization header. + +## Endpoint Details + +The `/husbando` endpoint allows you to retrieve information about a specific husbando. + +- **URL**: `/husbando` +- **Method**: GET +- **Content Type**: application/json + +## Authentication + +To make requests to the `/husbando` 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 `/husbando` 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 `/husbando?{parameter}={value}` endpoint. + +| Parameter | Type | Description | Required | +| --------- | ------ | ---------------------------------------------------------------------------------------------------------- | -------- | +| `name` | string | (Optional) The desired character name for the query. If not provided, a random husbando will be generated. | False | +| `anime` | string | (Optional) The desired anime name for the query. If not provided, a random husbando will be selected. | False | + +### Example Request + +Here's example of how to make a request to the `/husbando` 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/v4/husbando"; + 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/v4/husbando" + 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 husbando. +- `name`: Information about the husbando's name. + - `first`: The first name of the husbando. + - `middle`: The middle name of the husbando (if available). + - `last`: The last name of the husbando (if available). + - `full`: The full name of the husbando. + - `native`: The native name of the husbando. + - `userPreferred`: The user's preferred name for the husbando. + - `alternative`: An array of alternative names for the husbando. + - `alternativeSpoiler`: An array of alternative names with potential spoilers. +- `image`: Information about the husbando's image. + - `large`: URL to a large image of the husbando. +- `favourites`: The number of users who have favorited the husbando. +- `siteUrl`: URL to the husbando's page on AniList. +- `description`: Description of the husbando (if available). +- `age`: Age of the husbando (if available). +- `gender`: Gender of the husbando. +- `bloodType`: Blood type of the husbando (if available). +- `dateOfBirth`: Date of birth of the husbando (if available). + - `year`: Year of birth. + - `month`: Month of birth. + - `day`: Day of birth. +- `media`: Information about the media associated with the husbando. + - `nodes`: An array of media nodes. + - `id`: The unique identifier of the media. + - `idMal`: The MyAnimeList identifier of the media. + - `coverImage`: Information about the cover image of the media. + - `medium`: URL to a medium-sized cover image of the media. + - `bannerImage`: URL to a banner image of the media (if available). + - `title`: Information about the title of the media. + - `romaji`: Romaji representation of the title. + - `english`: English representation of the title (if available). + - `native`: Native representation of the title. + - `userPreferred`: User-preferred representation of the title. + - `synonyms`: An array of synonyms for the media title. + - `popularity`: Popularity score of the media. + - `type`: Type of the media (e.g., ANIME, MANGA). + - `format`: Format of the media (e.g., TV, MANGA). + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "_id": 14881, + "name": { + "first": "Ura no Ojiichan", + "middle": null, + "last": null, + "full": "Ura no Ojiichan", + "native": "裏のおじいちゃん", + "userPreferred": "Ura no Ojiichan", + "alternative": [], + "alternativeSpoiler": [] + }, + "image": { + "large": "https://s4.anilist.co/file/anilistcdn/character/large/default.jpg" + }, + "favourites": 0, + "siteUrl": "https://anilist.co/character/257439", + "description": null, + "age": null, + "gender": "Male", + "bloodType": null, + "dateOfBirth": { + "year": null, + "month": null, + "day": null + }, + "media": { + "nodes": [ + { + "id": 2406, + "idMal": 2406, + "coverImage": { + "medium": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/small/bx2406-nP8NIct9Sci3.jpg" + }, + "bannerImage": "https://s4.anilist.co/file/anilistcdn/media/anime/banner/2406-ROqXxejQ5bH9.jpg", + "title": { + "romaji": "Sazae-san", + "english": null, + "native": "サザエさん", + "userPreferred": "Sazae-san" + }, + "synonyms": [ + "Mrs. Sazae" + ], + "popularity": 1311, + "type": "ANIME", + "format": "TV" + }, + { + "id": 43192, + "idMal": 13192, + "coverImage": { + "medium": "https://s4.anilist.co/file/anilistcdn/media/manga/cover/small/b43192-lBoylrcHjwWA.jpg" + }, + "bannerImage": null, + "title": { + "romaji": "Sazae-San", + "english": "The Wonderful World of Sazae-San", + "native": "サザエさん", + "userPreferred": "Sazae-San" + }, + "synonyms": [ + "Heisei no Sazae-san", + "The Wonderful World of Sazae-san" + ], + "popularity": 195, + "type": "MANGA", + "format": "MANGA" + } + ] + } + ``` + + + **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 `/husbando` endpoint. +That's it! You are now ready to use the `/husbando` endpoint to retrieve information about your favorite husbandos. Happy coding! diff --git a/pages/rest-api/Images/Waifu/search.mdx b/pages/rest-api/Images/Waifu/search.mdx index 1cd5d2a..b199c77 100644 --- a/pages/rest-api/Images/Waifu/search.mdx +++ b/pages/rest-api/Images/Waifu/search.mdx @@ -1 +1,213 @@ -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 | + +### Parameters + +The request parameters for the `/waifu?{parameter}={value}` endpoint. + +| Parameter | Type | Description | Required | +| --------- | ------ | ------------------------------------------------------------------------------------------------------- | -------- | +| `name` | string | (Optional) The desired character name for the query. If not provided, a random waifu will be generated. | False | +| `anime` | string | (Optional) The desired anime name for the query. If not provided, a random waifu will be selected. | False | + +### 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/v4/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/v4/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. +- `name`: Information about the waifu's name. + - `first`: The first name of the waifu. + - `middle`: The middle name of the waifu (if available). + - `last`: The last name of the waifu (if available). + - `full`: The full name of the waifu. + - `native`: The native name of the waifu. + - `userPreferred`: The user's preferred name for the waifu. + - `alternative`: An array of alternative names for the waifu. + - `alternativeSpoiler`: An array of alternative names with potential spoilers. +- `image`: Information about the waifu's image. + - `large`: URL to a large image of the waifu. +- `favourites`: The number of users who have favorited the waifu. +- `siteUrl`: URL to the waifu's page on AniList. +- `description`: Description of the waifu (if available). +- `age`: Age of the waifu (if available). +- `gender`: Gender of the waifu. +- `bloodType`: Blood type of the waifu (if available). +- `dateOfBirth`: Date of birth of the waifu (if available). + - `year`: Year of birth. + - `month`: Month of birth. + - `day`: Day of birth. +- `media`: Information about the media associated with the waifu. + - `nodes`: An array of media nodes. + - `id`: The unique identifier of the media. + - `idMal`: The MyAnimeList identifier of the media. + - `coverImage`: Information about the cover image of the media. + - `medium`: URL to a medium-sized cover image of the media. + - `bannerImage`: URL to a banner image of the media (if available). + - `title`: Information about the title of the media. + - `romaji`: Romaji representation of the title. + - `english`: English representation of the title (if available). + - `native`: Native representation of the title. + - `userPreferred`: User-preferred representation of the title. + - `synonyms`: An array of synonyms for the media title. + - `popularity`: Popularity score of the media. + - `type`: Type of the media (e.g., ANIME, MANGA). + - `format`: Format of the media (e.g., TV, MANGA). + + + + **Content Type:** `application/json` + ```json copy=false + "status": 200, + "_id": 11251, + "name": { + "first": "Nanako", + "middle": null, + "last": "Kaisei", + "full": "Nanako Kaisei", + "native": "開成 奈々子", + "userPreferred": "Nanako Kaisei", + "alternative": [], + "alternativeSpoiler": [] + }, + "image": { + "large": "https://s4.anilist.co/file/anilistcdn/character/large/b220909-iQMT7Xyikifz.jpg" + }, + "favourites": 0, + "siteUrl": "https://anilist.co/character/220909", + "description": null, + "age": null, + "gender": "Female", + "bloodType": null, + "dateOfBirth": { + "year": null, + "month": null, + "day": null + }, + "media": { + "nodes": [ + { + "id": 106964, + "idMal": 118955, + "coverImage": { + "medium": "https://s4.anilist.co/file/anilistcdn/media/manga/cover/small/nx106964-FeyF5m9SQnXE.jpg" + }, + "bannerImage": "https://s4.anilist.co/file/anilistcdn/media/manga/banner/106964-ryuN7wdxWc5X.jpg", + "title": { + "romaji": "Zenaku no Kuzu", + "english": null, + "native": "善悪の屑", + "userPreferred": "Zenaku no Kuzu" + }, + "synonyms": [ + "The Scum of Good and Evil" + ], + "popularity": 548, + "type": "MANGA", + "format": "MANGA" + } + ] + } + ``` + + + + **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! diff --git a/pages/rest-api/Images/_meta.json b/pages/rest-api/Images/_meta.json index 65698c4..7417102 100644 --- a/pages/rest-api/Images/_meta.json +++ b/pages/rest-api/Images/_meta.json @@ -2,5 +2,9 @@ "Waifu": { "title": "Waifu", "theme": { "collapsed": true } + }, + "Husbando": { + "title": "Husbando", + "theme": { "collapsed": true } } } diff --git a/pages/rest-api/Interactions/Angry/_meta.json b/pages/rest-api/Interactions/Angry/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Angry/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Angry/search.mdx b/pages/rest-api/Interactions/Angry/search.mdx new file mode 100644 index 0000000..6f9b985 --- /dev/null +++ b/pages/rest-api/Interactions/Angry/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Baka/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Baka/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Baka/search.mdx b/pages/rest-api/Interactions/Baka/search.mdx new file mode 100644 index 0000000..dbdb8ca --- /dev/null +++ b/pages/rest-api/Interactions/Baka/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Bite/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Bite/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Bite/search.mdx b/pages/rest-api/Interactions/Bite/search.mdx new file mode 100644 index 0000000..2e0ba44 --- /dev/null +++ b/pages/rest-api/Interactions/Bite/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Blush/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Blush/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Blush/search.mdx b/pages/rest-api/Interactions/Blush/search.mdx new file mode 100644 index 0000000..b7e387f --- /dev/null +++ b/pages/rest-api/Interactions/Blush/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Bonk/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Bonk/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Bonk/search.mdx b/pages/rest-api/Interactions/Bonk/search.mdx new file mode 100644 index 0000000..16a36df --- /dev/null +++ b/pages/rest-api/Interactions/Bonk/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Bored/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Bored/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Bored/search.mdx b/pages/rest-api/Interactions/Bored/search.mdx new file mode 100644 index 0000000..91d9fc2 --- /dev/null +++ b/pages/rest-api/Interactions/Bored/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Bully/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Bully/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Bully/search.mdx b/pages/rest-api/Interactions/Bully/search.mdx new file mode 100644 index 0000000..75d76fd --- /dev/null +++ b/pages/rest-api/Interactions/Bully/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Bye/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Bye/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Bye/search.mdx b/pages/rest-api/Interactions/Bye/search.mdx new file mode 100644 index 0000000..86884c6 --- /dev/null +++ b/pages/rest-api/Interactions/Bye/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Chase/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Chase/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Chase/search.mdx b/pages/rest-api/Interactions/Chase/search.mdx new file mode 100644 index 0000000..ea4211c --- /dev/null +++ b/pages/rest-api/Interactions/Chase/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Cheer/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Cheer/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Cheer/search.mdx b/pages/rest-api/Interactions/Cheer/search.mdx new file mode 100644 index 0000000..924e6e9 --- /dev/null +++ b/pages/rest-api/Interactions/Cheer/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Cringe/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Cringe/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Cringe/search.mdx b/pages/rest-api/Interactions/Cringe/search.mdx new file mode 100644 index 0000000..5ea4b7d --- /dev/null +++ b/pages/rest-api/Interactions/Cringe/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Cry/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Cry/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Cry/search.mdx b/pages/rest-api/Interactions/Cry/search.mdx new file mode 100644 index 0000000..84ac159 --- /dev/null +++ b/pages/rest-api/Interactions/Cry/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Cuddle/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Cuddle/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Cuddle/search.mdx b/pages/rest-api/Interactions/Cuddle/search.mdx new file mode 100644 index 0000000..4e1afd6 --- /dev/null +++ b/pages/rest-api/Interactions/Cuddle/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Dab/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Dab/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Dab/search.mdx b/pages/rest-api/Interactions/Dab/search.mdx new file mode 100644 index 0000000..7d82ef6 --- /dev/null +++ b/pages/rest-api/Interactions/Dab/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Dance/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Dance/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Dance/search.mdx b/pages/rest-api/Interactions/Dance/search.mdx new file mode 100644 index 0000000..21df235 --- /dev/null +++ b/pages/rest-api/Interactions/Dance/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Die/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Die/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Die/search.mdx b/pages/rest-api/Interactions/Die/search.mdx new file mode 100644 index 0000000..0230649 --- /dev/null +++ b/pages/rest-api/Interactions/Die/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Disgust/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Disgust/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Disgust/search.mdx b/pages/rest-api/Interactions/Disgust/search.mdx new file mode 100644 index 0000000..cf075c4 --- /dev/null +++ b/pages/rest-api/Interactions/Disgust/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Facepalm/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Facepalm/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Facepalm/search.mdx b/pages/rest-api/Interactions/Facepalm/search.mdx new file mode 100644 index 0000000..c1b3443 --- /dev/null +++ b/pages/rest-api/Interactions/Facepalm/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Feed/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Feed/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Feed/search.mdx b/pages/rest-api/Interactions/Feed/search.mdx new file mode 100644 index 0000000..633b72f --- /dev/null +++ b/pages/rest-api/Interactions/Feed/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Glomp/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Glomp/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Glomp/search.mdx b/pages/rest-api/Interactions/Glomp/search.mdx new file mode 100644 index 0000000..6dc369b --- /dev/null +++ b/pages/rest-api/Interactions/Glomp/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Happy/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Happy/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Happy/search.mdx b/pages/rest-api/Interactions/Happy/search.mdx new file mode 100644 index 0000000..853ad4d --- /dev/null +++ b/pages/rest-api/Interactions/Happy/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Hi/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Hi/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Hi/search.mdx b/pages/rest-api/Interactions/Hi/search.mdx new file mode 100644 index 0000000..3f59e1f --- /dev/null +++ b/pages/rest-api/Interactions/Hi/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Highfive/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Highfive/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Highfive/search.mdx b/pages/rest-api/Interactions/Highfive/search.mdx new file mode 100644 index 0000000..b02e628 --- /dev/null +++ b/pages/rest-api/Interactions/Highfive/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Hold/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Hold/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Hold/search.mdx b/pages/rest-api/Interactions/Hold/search.mdx new file mode 100644 index 0000000..e65b39c --- /dev/null +++ b/pages/rest-api/Interactions/Hold/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Hug/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Hug/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Hug/search.mdx b/pages/rest-api/Interactions/Hug/search.mdx new file mode 100644 index 0000000..284d67e --- /dev/null +++ b/pages/rest-api/Interactions/Hug/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Kick/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Kick/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Kick/search.mdx b/pages/rest-api/Interactions/Kick/search.mdx new file mode 100644 index 0000000..7126470 --- /dev/null +++ b/pages/rest-api/Interactions/Kick/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Kill/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Kill/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Kill/search.mdx b/pages/rest-api/Interactions/Kill/search.mdx new file mode 100644 index 0000000..cc1dabf --- /dev/null +++ b/pages/rest-api/Interactions/Kill/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Kiss/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Kiss/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Kiss/search.mdx b/pages/rest-api/Interactions/Kiss/search.mdx new file mode 100644 index 0000000..f18b3cf --- /dev/null +++ b/pages/rest-api/Interactions/Kiss/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Laugh/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Laugh/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Laugh/search.mdx b/pages/rest-api/Interactions/Laugh/search.mdx new file mode 100644 index 0000000..83bd5fe --- /dev/null +++ b/pages/rest-api/Interactions/Laugh/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Lick/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Lick/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Lick/search.mdx b/pages/rest-api/Interactions/Lick/search.mdx new file mode 100644 index 0000000..ff7c387 --- /dev/null +++ b/pages/rest-api/Interactions/Lick/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Love/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Love/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Love/search.mdx b/pages/rest-api/Interactions/Love/search.mdx new file mode 100644 index 0000000..70be73a --- /dev/null +++ b/pages/rest-api/Interactions/Love/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Lurk/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Lurk/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Lurk/search.mdx b/pages/rest-api/Interactions/Lurk/search.mdx new file mode 100644 index 0000000..3798c6b --- /dev/null +++ b/pages/rest-api/Interactions/Lurk/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Midfing/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Midfing/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Midfing/search.mdx b/pages/rest-api/Interactions/Midfing/search.mdx new file mode 100644 index 0000000..b93535c --- /dev/null +++ b/pages/rest-api/Interactions/Midfing/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Nervous/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Nervous/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Nervous/search.mdx b/pages/rest-api/Interactions/Nervous/search.mdx new file mode 100644 index 0000000..93b3a76 --- /dev/null +++ b/pages/rest-api/Interactions/Nervous/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Nom/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Nom/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Nom/search.mdx b/pages/rest-api/Interactions/Nom/search.mdx new file mode 100644 index 0000000..6b717b5 --- /dev/null +++ b/pages/rest-api/Interactions/Nom/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Nope/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Nope/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Nope/search.mdx b/pages/rest-api/Interactions/Nope/search.mdx new file mode 100644 index 0000000..39db730 --- /dev/null +++ b/pages/rest-api/Interactions/Nope/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Nuzzle/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Nuzzle/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Nuzzle/search.mdx b/pages/rest-api/Interactions/Nuzzle/search.mdx new file mode 100644 index 0000000..2431120 --- /dev/null +++ b/pages/rest-api/Interactions/Nuzzle/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Panic/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Panic/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Panic/search.mdx b/pages/rest-api/Interactions/Panic/search.mdx new file mode 100644 index 0000000..327f718 --- /dev/null +++ b/pages/rest-api/Interactions/Panic/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Pat/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Pat/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Pat/search.mdx b/pages/rest-api/Interactions/Pat/search.mdx new file mode 100644 index 0000000..0bb4c93 --- /dev/null +++ b/pages/rest-api/Interactions/Pat/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Peck/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Peck/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Peck/search.mdx b/pages/rest-api/Interactions/Peck/search.mdx new file mode 100644 index 0000000..2a69adf --- /dev/null +++ b/pages/rest-api/Interactions/Peck/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Poke/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Poke/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Poke/search.mdx b/pages/rest-api/Interactions/Poke/search.mdx new file mode 100644 index 0000000..2a8f5f8 --- /dev/null +++ b/pages/rest-api/Interactions/Poke/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Pout/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Pout/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Pout/search.mdx b/pages/rest-api/Interactions/Pout/search.mdx new file mode 100644 index 0000000..8f9e9ac --- /dev/null +++ b/pages/rest-api/Interactions/Pout/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Punch/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Punch/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Punch/search.mdx b/pages/rest-api/Interactions/Punch/search.mdx new file mode 100644 index 0000000..fdb9122 --- /dev/null +++ b/pages/rest-api/Interactions/Punch/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Run/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Run/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Run/search.mdx b/pages/rest-api/Interactions/Run/search.mdx new file mode 100644 index 0000000..2f3cd52 --- /dev/null +++ b/pages/rest-api/Interactions/Run/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Sad/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Sad/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Sad/search.mdx b/pages/rest-api/Interactions/Sad/search.mdx new file mode 100644 index 0000000..b806fdc --- /dev/null +++ b/pages/rest-api/Interactions/Sad/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Shoot/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Shoot/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Shoot/search.mdx b/pages/rest-api/Interactions/Shoot/search.mdx new file mode 100644 index 0000000..bd9980d --- /dev/null +++ b/pages/rest-api/Interactions/Shoot/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Shrug/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Shrug/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Shrug/search.mdx b/pages/rest-api/Interactions/Shrug/search.mdx new file mode 100644 index 0000000..c43a6d8 --- /dev/null +++ b/pages/rest-api/Interactions/Shrug/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Sip/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Sip/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Sip/search.mdx b/pages/rest-api/Interactions/Sip/search.mdx new file mode 100644 index 0000000..b138946 --- /dev/null +++ b/pages/rest-api/Interactions/Sip/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Slap/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Slap/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Slap/search.mdx b/pages/rest-api/Interactions/Slap/search.mdx new file mode 100644 index 0000000..f763650 --- /dev/null +++ b/pages/rest-api/Interactions/Slap/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Sleepy/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Sleepy/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Sleepy/search.mdx b/pages/rest-api/Interactions/Sleepy/search.mdx new file mode 100644 index 0000000..54890b6 --- /dev/null +++ b/pages/rest-api/Interactions/Sleepy/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Smile/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Smile/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Smile/search.mdx b/pages/rest-api/Interactions/Smile/search.mdx new file mode 100644 index 0000000..2ebb556 --- /dev/null +++ b/pages/rest-api/Interactions/Smile/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Smug/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Smug/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Smug/search.mdx b/pages/rest-api/Interactions/Smug/search.mdx new file mode 100644 index 0000000..038a210 --- /dev/null +++ b/pages/rest-api/Interactions/Smug/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Stab/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Stab/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Stab/search.mdx b/pages/rest-api/Interactions/Stab/search.mdx new file mode 100644 index 0000000..00fecfb --- /dev/null +++ b/pages/rest-api/Interactions/Stab/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Stare/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Stare/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Stare/search.mdx b/pages/rest-api/Interactions/Stare/search.mdx new file mode 100644 index 0000000..9da2b86 --- /dev/null +++ b/pages/rest-api/Interactions/Stare/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Suicide/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Suicide/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Suicide/search.mdx b/pages/rest-api/Interactions/Suicide/search.mdx new file mode 100644 index 0000000..6c11bd9 --- /dev/null +++ b/pages/rest-api/Interactions/Suicide/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Tease/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Tease/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Tease/search.mdx b/pages/rest-api/Interactions/Tease/search.mdx new file mode 100644 index 0000000..44de21a --- /dev/null +++ b/pages/rest-api/Interactions/Tease/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Think/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Think/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Think/search.mdx b/pages/rest-api/Interactions/Think/search.mdx new file mode 100644 index 0000000..f18206b --- /dev/null +++ b/pages/rest-api/Interactions/Think/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Thumbsup/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Thumbsup/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Thumbsup/search.mdx b/pages/rest-api/Interactions/Thumbsup/search.mdx new file mode 100644 index 0000000..85fbc00 --- /dev/null +++ b/pages/rest-api/Interactions/Thumbsup/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Tickle/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Tickle/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Tickle/search.mdx b/pages/rest-api/Interactions/Tickle/search.mdx new file mode 100644 index 0000000..ee5fb27 --- /dev/null +++ b/pages/rest-api/Interactions/Tickle/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Triggered/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Triggered/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Triggered/search.mdx b/pages/rest-api/Interactions/Triggered/search.mdx new file mode 100644 index 0000000..f39aeec --- /dev/null +++ b/pages/rest-api/Interactions/Triggered/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Wag/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Wag/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Wag/search.mdx b/pages/rest-api/Interactions/Wag/search.mdx new file mode 100644 index 0000000..0065883 --- /dev/null +++ b/pages/rest-api/Interactions/Wag/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Wave/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Wave/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Wave/search.mdx b/pages/rest-api/Interactions/Wave/search.mdx new file mode 100644 index 0000000..366c74a --- /dev/null +++ b/pages/rest-api/Interactions/Wave/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Wink/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Wink/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Wink/search.mdx b/pages/rest-api/Interactions/Wink/search.mdx new file mode 100644 index 0000000..a6f2507 --- /dev/null +++ b/pages/rest-api/Interactions/Wink/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/_meta.json b/pages/rest-api/Interactions/Yes/_meta.json new file mode 100644 index 0000000..a6bd572 --- /dev/null +++ b/pages/rest-api/Interactions/Yes/_meta.json @@ -0,0 +1,3 @@ +{ + "search": "Search" +} \ No newline at end of file diff --git a/pages/rest-api/Interactions/Yes/search.mdx b/pages/rest-api/Interactions/Yes/search.mdx new file mode 100644 index 0000000..ad44a23 --- /dev/null +++ b/pages/rest-api/Interactions/Yes/search.mdx @@ -0,0 +1,95 @@ +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/v4/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/v4/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/Interactions/_meta.json b/pages/rest-api/Interactions/_meta.json new file mode 100644 index 0000000..684594a --- /dev/null +++ b/pages/rest-api/Interactions/_meta.json @@ -0,0 +1,258 @@ +{ + "Angry": { + "title": "Angry", + "theme": { "collapsed": true } + }, + "Baka": { + "title": "Baka", + "theme": { "collapsed": true } + }, + "Bite": { + "title": "Bite", + "theme": { "collapsed": true } + }, + "Blush": { + "title": "Blush", + "theme": { "collapsed": true } + }, + "Bonk": { + "title": "Bonk", + "theme": { "collapsed": true } + }, + "Bored": { + "title": "Bored", + "theme": { "collapsed": true } + }, + "Bully": { + "title": "Bully", + "theme": { "collapsed": true } + }, + "Bye": { + "title": "Bye", + "theme": { "collapsed": true } + }, + "Chase": { + "title": "Chase", + "theme": { "collapsed": true } + }, + "Cheer": { + "title": "Cheer", + "theme": { "collapsed": true } + }, + "Cringe": { + "title": "Cringe", + "theme": { "collapsed": true } + }, + "Cry": { + "title": "Cry", + "theme": { "collapsed": true } + }, + "Cuddle": { + "title": "Cuddle", + "theme": { "collapsed": true } + }, + "Dab": { + "title": "Dab", + "theme": { "collapsed": true } + }, + "Dance": { + "title": "Dance", + "theme": { "collapsed": true } + }, + "Die": { + "title": "Die", + "theme": { "collapsed": true } + }, + "Disgust": { + "title": "Disgust", + "theme": { "collapsed": true } + }, + "Facepalm": { + "title": "Facepalm", + "theme": { "collapsed": true } + }, + "Feed": { + "title": "Feed", + "theme": { "collapsed": true } + }, + "Glomp": { + "title": "Glomp", + "theme": { "collapsed": true } + }, + "Happy": { + "title": "Happy", + "theme": { "collapsed": true } + }, + "Hi": { + "title": "Hi", + "theme": { "collapsed": true } + }, + "Highfive": { + "title": "Highfive", + "theme": { "collapsed": true } + }, + "Hold": { + "title": "Hold", + "theme": { "collapsed": true } + }, + "Hug": { + "title": "Hug", + "theme": { "collapsed": true } + }, + "Kick": { + "title": "Kick", + "theme": { "collapsed": true } + }, + "Kill": { + "title": "Kill", + "theme": { "collapsed": true } + }, + "Kiss": { + "title": "Kiss", + "theme": { "collapsed": true } + }, + "Laugh": { + "title": "Laugh", + "theme": { "collapsed": true } + }, + "Lick": { + "title": "Lick", + "theme": { "collapsed": true } + }, + "Love": { + "title": "Love", + "theme": { "collapsed": true } + }, + "Lurk": { + "title": "Lurk", + "theme": { "collapsed": true } + }, + "Midfing": { + "title": "Midfing", + "theme": { "collapsed": true } + }, + "Nervous": { + "title": "Nervous", + "theme": { "collapsed": true } + }, + "Nom": { + "title": "Nom", + "theme": { "collapsed": true } + }, + "Nope": { + "title": "Nope", + "theme": { "collapsed": true } + }, + "Nuzzle": { + "title": "Nuzzle", + "theme": { "collapsed": true } + }, + "Panic": { + "title": "Panic", + "theme": { "collapsed": true } + }, + "Pat": { + "title": "Pat", + "theme": { "collapsed": true } + }, + "Peck": { + "title": "Peck", + "theme": { "collapsed": true } + }, + "Poke": { + "title": "Poke", + "theme": { "collapsed": true } + }, + "Pout": { + "title": "Pout", + "theme": { "collapsed": true } + }, + "Punch": { + "title": "Punch", + "theme": { "collapsed": true } + }, + "Run": { + "title": "Run", + "theme": { "collapsed": true } + }, + "Sad": { + "title": "Sad", + "theme": { "collapsed": true } + }, + "Shoot": { + "title": "Shoot", + "theme": { "collapsed": true } + }, + "Shrug": { + "title": "Shrug", + "theme": { "collapsed": true } + }, + "Sip": { + "title": "Sip", + "theme": { "collapsed": true } + }, + "Slap": { + "title": "Slap", + "theme": { "collapsed": true } + }, + "Sleepy": { + "title": "Sleepy", + "theme": { "collapsed": true } + }, + "Smile": { + "title": "Smile", + "theme": { "collapsed": true } + }, + "Smug": { + "title": "Smug", + "theme": { "collapsed": true } + }, + "Stab": { + "title": "Stab", + "theme": { "collapsed": true } + }, + "Stare": { + "title": "Stare", + "theme": { "collapsed": true } + }, + "Suicide": { + "title": "Suicide", + "theme": { "collapsed": true } + }, + "Tease": { + "title": "Tease", + "theme": { "collapsed": true } + }, + "Think": { + "title": "Think", + "theme": { "collapsed": true } + }, + "Thumbsup": { + "title": "Thumbsup", + "theme": { "collapsed": true } + }, + "Tickle": { + "title": "Tickle", + "theme": { "collapsed": true } + }, + "Triggered": { + "title": "Triggered", + "theme": { "collapsed": true } + }, + "Wag": { + "title": "Wag", + "theme": { "collapsed": true } + }, + "Wave": { + "title": "Wave", + "theme": { "collapsed": true } + }, + "Wink": { + "title": "Wink", + "theme": { "collapsed": true } + }, + "Yes": { + "title": "Yes", + "theme": { "collapsed": true } + } +} diff --git a/pages/rest-api/Texts/Fact/search.mdx b/pages/rest-api/Texts/Fact/search.mdx index 1cd5d2a..539e2fa 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://waifu.it/api/v4/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/v4/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..11df47f 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/v4/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/v4/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..aabf0c1 --- /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/v4/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/v4/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..16525fc 100644 --- a/pages/rest-api/Texts/Quote/search.mdx +++ b/pages/rest-api/Texts/Quote/search.mdx @@ -1 +1,124 @@ -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 | + +### Parameters + +The request parameters for the `/quote?{parameter}={value}` endpoint. + +| Parameter | Type | Description | Required | +| ----------- | ------ | ------------------------------------------------------------------------------------------------------- | -------- | +| `character` | string | (Optional) The desired character name for the query. If not provided, a random quote will be generated. | False | +| `anime` | string | (Optional) The desired anime name for the query. If not provided, a random quote will be selected. | False | + +### 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://waifu.it/api/v4/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/v4/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. 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..769346f --- /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/v4/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/v4/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..995a83c --- /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/v4/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/v4/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/_meta.json b/pages/rest-api/_meta.json index e82d7dd..dbad8f9 100644 --- a/pages/rest-api/_meta.json +++ b/pages/rest-api/_meta.json @@ -1,7 +1,6 @@ { "start": "Get Started", - "Actions": { "title": "Actions", "theme": { "collapsed": true } }, - "Emotes": { "title": "Emotes", "theme": { "collapsed": true } }, + "Interactions": { "title": "Interactions", "theme": { "collapsed": true } }, "Images": { "title": "Images", "theme": { "collapsed": true } }, "Texts": { "title": "Texts", "theme": { "collapsed": true } } } diff --git a/pages/rest-api/start.mdx b/pages/rest-api/start.mdx index d2bfc60..5533152 100644 --- a/pages/rest-api/start.mdx +++ b/pages/rest-api/start.mdx @@ -1,19 +1,46 @@ -import { Tab, Tabs } from "nextra-theme-docs"; +import { Tab, Tabs,Callout } from "nextra-theme-docs"; + # Get Started +## Base URL + +``` +https://waifu.it/api +``` + +## API Versioning + + + Some API and Gateway versions are now non-functioning, and are labeled as discontinued in the table below for posterity. + Trying to use these versions will fail and return 400 Bad Request. + + +Waifu.it exposes different versions of our API. You should specify which version to use by including it in the request path +like `https://waifu.it/api/v{version_number}`. Omitting the version number from the route will route requests to the current +default version (marked below). You can find the change log for the newest API version [here](https://github.com/WaifuAPI/api/releases). + +**API Versions** + +| Version | Status | Default | +|---------|--------------|---------| +| 4 | Available | ✓ | +| 3 | Deprecated | | +| 2 | Discontinued | | +| 1 | Discontinued | | -The base URL for the Waifu.it REST API is: [`https://waifu.it/api/:endpoint`](https://waifu.it/api) -- Replace `:endpoint` with the endpoint you want response from. ## Authentication -- Use the API token that you generate to authenticate each request made to the API. +Authenticating with the Waifu.it API can be done using a token found on the **Dashboard** page within your settings. +If you don't have an API token, then just head over to https://docs.waifu.it/faq, then read and get one for free. -> If you don't have an API token, then just head over to https://docs.waifu.it/faq, then read and get one for free. +For all authentication types, authentication is performed with the `Authorization` HTTP header in the format `Authorization: TOKEN`. - **Request Header** -> -> - Set your API token as the `Authorization` header on every request. +**Example Token Authorization Header** + +``` +Authorization: MTk4NjIyNDgzNDcxOTI1MjQ4.Cl2FMQ.ZnCjm1XVW7vRze4b7Cq4se7kKWs +``` **Request Samples** @@ -27,10 +54,10 @@ 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. */ - const url = "https://waifu.it/api/:endpoint" + const url = "https://waifu.it/api/v4/: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; @@ -52,8 +79,8 @@ 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={ + url = "https://waifu.it/api/v4/:endpoint" + response = requests.get(url, headers={ "Authorization": "Your-API-Token", }) data = response.json() @@ -61,7 +88,6 @@ The base URL for the Waifu.it REST API is: [`https://waifu.it/api/:endpoint`](ht print(data) ``` - @@ -78,12 +104,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/pages/tos.mdx b/pages/tos.mdx new file mode 100644 index 0000000..5ad5c1a --- /dev/null +++ b/pages/tos.mdx @@ -0,0 +1,59 @@ +# **Waifu.it API - Terms of Service** + +**Effective Date:** February 9, 2025 + +Welcome to **Waifu.it API**! By using our API & it's services, you agree to abide by these Terms of Service (**ToS**) to ensure fair and responsible usage. Violations may result in **suspension or permanent termination** of your access, depending on the severity of the offense. + +## **1. Acceptance of Terms** + +By accessing or using our API, you acknowledge that you have read, understood, and agree to comply with these terms. If you **do not agree**, you are prohibited from using our API. + +## **2. API Usage Rules** + +To ensure a stable and fair experience for all users, the following activities are strictly **prohibited**: + +### **2.1 Restricted Actions** + +- **Malicious Attacks:** You may not perform DDoS attacks, brute-force attempts, or any activity that disrupts API stability. +- **Unauthorized Data Access:** Scraping, harvesting, or extracting data beyond permitted API usage is not allowed. +- **Rate Limit Violations:** You must **not exceed 20 requests per minute** or attempt to bypass rate limits in any way. +- **Exploiting Bugs:** If you find a bug, you must report it instead of exploiting it. Failure to do so will be considered abuse. +- **Rule Loopholes:** Creating or abusing unintended loopholes in the system is strictly forbidden. + +### **2.2 Responsible Disclosure** + +If you **identify security vulnerabilities**, you must immediately report them to our team. We value **responsible disclosures** and will **work swiftly** to resolve them. + +## **3. Punishment Policy** + +Violating the Waifu.it API ToS will lead to strict actions based on the severity of the offense. Punishments include but are not limited to: + +### **3.1 Warning System** + +- Minor infractions may result in an official **warning** with a request to comply. +- Repeated minor violations may lead to **temporary restrictions** on API access. + +### **3.2 Temporary Suspensions** + +- Medium-severity violations (e.g., exceeding rate limits multiple times, minor abuse) may result in **temporary API suspensions** (from 24 hours to a few weeks). + +### **3.3 Permanent API Ban** + +Severe violations will result in **an immediate and irreversible API ban**, including but not limited to: + +- **Intentional abuse** of the API (e.g., excessive spam requests, automated mass scraping). +- **Bypassing restrictions** such as rate limits, authentication checks, or quota limitations. +- **DDoS attacks or malicious attempts** to overload our servers. +- **Selling, reselling, or redistributing** our API service without permission. +- **Providing false information** in API-related applications or verification processes. + +### **3.4 Appeal Process** + +- In cases where a user believes they were wrongly punished, they may **appeal through our official discord support channels**. +- Appeals will be **reviewed case-by-case**, but **permanent bans due to severe abuse are non-negotiable**. + +## **4. Changes to the ToS** + +We reserve the right to **modify, update, or revise** these Terms of Service at any time. It is your responsibility to **stay informed** about changes, which may be announced in official communication channels. + +For support, questions, or to report an issue, please contact us through **our official Discord server**. diff --git a/theme.config.tsx b/theme.config.tsx index cbccfec..a6ed6f4 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -1,14 +1,22 @@ 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: { @@ -53,9 +61,18 @@ const config: DocsThemeConfig = { chat: { link: "https://discord.gg/yyW389c", }, - docsRepositoryBase: "https://github.com/WaifuAPI/Documentation/tree/production", + 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 = @@ -63,9 +80,18 @@ const config: DocsThemeConfig = { return ( <> - + + +