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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 11 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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
})

0 commit comments

Comments
 (0)