Skip to content

Commit 249fa73

Browse files
committed
Changed aapi version to v4
1 parent 81d48fd commit 249fa73

Some content is hidden

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

71 files changed

+142
-142
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Here's example of how to make a request to the `/waifu` endpoint.
5353
/*
5454
Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint.
5555
*/
56-
const url = "https://waifu.it/api/waifu";
56+
const url = "https://waifu.it/api/v4/waifu";
5757
const data = async () => {
5858
try {
5959
const { data } = await axios.get(url, { headers: {
@@ -75,7 +75,7 @@ Here's example of how to make a request to the `/waifu` endpoint.
7575
"""
7676
Replace "YOUR_ACCESS_TOKEN" with the token you got from the Kohai Bot and the endpoint.
7777
"""
78-
url = "https://waifu.it/api/waifu"
78+
url = "https://waifu.it/api/v4/waifu"
7979
response = requests.get(url, headers={
8080
"Authorization": "YOUR_ACCESS_TOKEN",
8181
})

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
})

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/glomp` 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/glomp";
33+
const url = "https://waifu.it/api/v4/glomp";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/glomp` 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/glomp"
55+
url = "https://waifu.it/api/v4/glomp"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The request to the `/happy` 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/happy";
33+
const url = "https://waifu.it/api/v4/happy";
3434
const data = async () => {
3535
try {
3636
const { data } = await axios.get(url, { headers: {
@@ -52,7 +52,7 @@ The request to the `/happy` 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/happy"
55+
url = "https://waifu.it/api/v4/happy"
5656
response = requests.get(url, headers={
5757
"Authorization": "Your-API-Token",
5858
})

0 commit comments

Comments
 (0)