Skip to content

Commit d38876d

Browse files
authored
Merge pull request #48 from WaifuAPI/staging
Staging
2 parents 0ee5f34 + 249fa73 commit d38876d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+188
-152
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs.waifu.it",
3-
"version": "3.0.5",
3+
"version": "3.0.6",
44
"description": "The new and improved documentation for Waifu.it",
55
"scripts": {
66
"dev": "next dev",

pages/faq.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<br />
44

55
### How do I get the API token?
6-
- To get your API token, join this [discord server](https://discord.gg/yyW389c), then type `-claim` in [#bot-commands](https://discord.com/channels/479300008118714388/800784815908454452), fill the questions asked by `@Kohai` in DM, and receive your token.
6+
- To get your API token, just login to [dashboard](https://waifu.it/dashboard)
77

88
{/* ### CORS causing trouble?
99

pages/rest-api/Images/Waifu/search.mdx

+11-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ The request to the `/waifu` endpoint should be a JSON object with the following
3333
| --------------- | ------- | ---------------------------------------------------- | -------- |
3434
| `Authorization` | string | The unique identifier of the user sending the request. | True |
3535

36+
### Parameters
37+
38+
The request parameters for the `/waifu?{parameter}={value}` endpoint.
39+
40+
| Parameter | Type | Description | Required |
41+
| ----------| ------ | ----------------------------------------------------- | -------- |
42+
| `name` | string | (Optional) The desired character name for the query. If not provided, a random waifu will be generated. | False |
43+
| `anime` | string | (Optional) The desired anime name for the query. If not provided, a random waifu will be selected. | False |
44+
3645
### Example Request
3746
Here's example of how to make a request to the `/waifu` endpoint.
3847

@@ -44,7 +53,7 @@ Here's example of how to make a request to the `/waifu` endpoint.
4453
/*
4554
Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint.
4655
*/
47-
const url = "https://waifu.it/api/waifu";
56+
const url = "https://waifu.it/api/v4/waifu";
4857
const data = async () => {
4958
try {
5059
const { data } = await axios.get(url, { headers: {
@@ -66,7 +75,7 @@ Here's example of how to make a request to the `/waifu` endpoint.
6675
"""
6776
Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint.
6877
"""
69-
url = "https://waifu.it/api/waifu"
78+
url = "https://waifu.it/api/v4/waifu"
7079
response = requests.get(url, headers={
7180
"Authorization": "YOUR_ACCESS_TOKEN",
7281
})

pages/rest-api/Interactions/Angry/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/angry` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/angry";
33+
const url = "https://waifu.it/api/v4/angry";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/angry` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/angry"
55+
url = "https://waifu.it/api/v4/angry"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Baka/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/baka` endpoint should be a JSON object with the following h
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/baka";
33+
const url = "https://waifu.it/api/v4/baka";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/baka` endpoint should be a JSON object with the following h
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/baka"
55+
url = "https://waifu.it/api/v4/baka"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Bite/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/bite` endpoint should be a JSON object with the following h
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/bite";
33+
const url = "https://waifu.it/api/v4/bite";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/bite` endpoint should be a JSON object with the following h
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/bite"
55+
url = "https://waifu.it/api/v4/bite"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Blush/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/blush` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/blush";
33+
const url = "https://waifu.it/api/v4/blush";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/blush` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/blush"
55+
url = "https://waifu.it/api/v4/blush"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Bonk/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/bonk` endpoint should be a JSON object with the following h
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/bonk";
33+
const url = "https://waifu.it/api/v4/bonk";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/bonk` endpoint should be a JSON object with the following h
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/bonk"
55+
url = "https://waifu.it/api/v4/bonk"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Bored/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/bored` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/bored";
33+
const url = "https://waifu.it/api/v4/bored";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/bored` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/bored"
55+
url = "https://waifu.it/api/v4/bored"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Bully/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/bully` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/bully";
33+
const url = "https://waifu.it/api/v4/bully";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/bully` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/bully"
55+
url = "https://waifu.it/api/v4/bully"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Bye/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/bye` endpoint should be a JSON object with the following he
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/bye";
33+
const url = "https://waifu.it/api/v4/bye";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/bye` endpoint should be a JSON object with the following he
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/bye"
55+
url = "https://waifu.it/api/v4/bye"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Chase/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/chase` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/chase";
33+
const url = "https://waifu.it/api/v4/chase";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/chase` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/chase"
55+
url = "https://waifu.it/api/v4/chase"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Cheer/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/cheer` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/cheer";
33+
const url = "https://waifu.it/api/v4/cheer";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/cheer` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/cheer"
55+
url = "https://waifu.it/api/v4/cheer"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Cringe/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/cringe` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/cringe";
33+
const url = "https://waifu.it/api/v4/cringe";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/cringe` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/cringe"
55+
url = "https://waifu.it/api/v4/cringe"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Cry/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/cry` endpoint should be a JSON object with the following he
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/cry";
33+
const url = "https://waifu.it/api/v4/cry";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/cry` endpoint should be a JSON object with the following he
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/cry"
55+
url = "https://waifu.it/api/v4/cry"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Cuddle/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/cuddle` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/cuddle";
33+
const url = "https://waifu.it/api/v4/cuddle";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/cuddle` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/cuddle"
55+
url = "https://waifu.it/api/v4/cuddle"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Dab/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/dab` endpoint should be a JSON object with the following he
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/dab";
33+
const url = "https://waifu.it/api/v4/dab";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/dab` endpoint should be a JSON object with the following he
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/dab"
55+
url = "https://waifu.it/api/v4/dab"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Dance/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/dance` endpoint should be a JSON object with the following
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/dance";
33+
const url = "https://waifu.it/api/v4/dance";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/dance` endpoint should be a JSON object with the following
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/dance"
55+
url = "https://waifu.it/api/v4/dance"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Die/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/die` endpoint should be a JSON object with the following he
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/die";
33+
const url = "https://waifu.it/api/v4/die";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/die` endpoint should be a JSON object with the following he
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/die"
55+
url = "https://waifu.it/api/v4/die"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Disgust/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/disgust` endpoint should be a JSON object with the followin
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/disgust";
33+
const url = "https://waifu.it/api/v4/disgust";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/disgust` endpoint should be a JSON object with the followin
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/disgust"
55+
url = "https://waifu.it/api/v4/disgust"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Facepalm/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/facepalm` endpoint should be a JSON object with the followi
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/facepalm";
33+
const url = "https://waifu.it/api/v4/facepalm";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/facepalm` endpoint should be a JSON object with the followi
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/facepalm"
55+
url = "https://waifu.it/api/v4/facepalm"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

pages/rest-api/Interactions/Feed/search.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/feed` endpoint should be a JSON object with the following h
3030
/*
3131
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
3232
*/
33-
const url = "https://waifu.it/api/feed";
33+
const url = "https://waifu.it/api/v4/feed";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/feed` endpoint should be a JSON object with the following h
5252
"""
5353
Replace "Your-API-Token" with the token you got from the Kohai Bot and the endpoint.
5454
"""
55-
url = "https://waifu.it/api/feed"
55+
url = "https://waifu.it/api/v4/feed"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

0 commit comments

Comments
 (0)