Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Latest commit

 

History

History
52 lines (39 loc) · 1.5 KB

Readme.md

File metadata and controls

52 lines (39 loc) · 1.5 KB

Image (cdn) rest-api Trenite

Features (planned):

  • welcome image (userProfilePic, username, background) [url parameters]
  • rank cards (xp system) [lvl, xp, username, userProfilePic][url parameters]
  • leave image (userProfilePic, username, background) [url parameters]

Architecture:

  • express.js
  • hashbased auth (url-param)

endpoints:

endpoints: docs
/setup/welcome
/setup/leave
/fortnite/shop
/fortnite/leaks
/economy/slots

Auth:

use fetch.js

const { fetch } = require("./fetch");
const fs = require("fs");

fetch("/setup/welcome", {
	user_tag: "xnacly#6370",
	user_id: "417699816836169728",
	guild_name: "Trenite",
	guild_avatar: "6e4174e86c4b36be80d2159f8214788a",
	guild_id: "683026970606567440",
	member_count: "42",
	user_avatar: "f76492e43b50b60ad4a3299691225f73",
	background: "",
})
	.then((res) => res.buffer())
	.then((buffer) => fs.writeFileSync("image.png", buffer));

see test.js for a more in depth example