An unofficial wrapper for Amethyste-Api written in TypeScript
//yarn
yarn add amethyste-client
//npm
npm i amethyste-client
Note : You can get your api key here
const amiapi = require("amethyste-client")
const Client = amiapi("UR_TOKEN")
Client.generate({
endpoint: "beautiful",
options: {
"url": client.user.avatarURL
}
}).then(img => {
console.log(img)
})
import amiapi from "amethyste-client"
const Client:amiapi = amiapi("UR_TOKEN")
Client.generate({
endpoint: "beautiful",
options: {
"url": client.user.avatarURL
}
}).then(img => {
console.log(img)
})
{
"status": 200,
"url": "https://cdn.amethyste.moe/wallpaper14ebdfb3f9a9e4025b54ab759f1ad9e60bd0.jpg"
}