amethyste-client
v1.0.2
Published
<img align="center" src="https://api.amethyste.moe/d983cbfa8bf6413d79bf52ae6c545e25.png">
Downloads
2
Readme
Amethyste Client
An unofficial wrapper for Amethyste-Api written in TypeScript
⚙️ Setup
//yarn
yarn add amethyste-client
//npm
npm i amethyste-client
📑 Usage
Note : You can get your api key here
JavaScript
const amiapi = require("amethyste-client")
const Client = amiapi("UR_TOKEN")
Client.generate({
endpoint: "beautiful",
options: {
"url": client.user.avatarURL
}
}).then(img => {
console.log(img)
})
TypeScript
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)
})
Response
{
"status": 200,
"url": "https://cdn.amethyste.moe/wallpaper14ebdfb3f9a9e4025b54ab759f1ad9e60bd0.jpg"
}