0.1.0 • Published 8 months ago

ram-api2.js v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

About this package

We understand using ram api 2 can be hard as it has alot this package calls the api for you however this wont bypass the ratelimit youll still see the ratelimit error

v0.x.x are dev builds for v1.0.0 but are marked as final for npm reasons

Install

npm i ram-api2.js or yarn add ram-api2.js

Examples

//typescript
import * as ramapi2 from "ram-api2.js";
//javascript
const ramapi2 = require("ram-api2.js");

let token = "token here";

new ramapi2.tokenAsync()
  .loginAsync("test", "test")
  .then((data) => console.log(data)) //data = {success, token, Notice}
  .catch((err) => {});

new ramapi2.tokenAsync()
  .signupAsync("test", "test")
  .then((data) => console.log(data)) // data =  {success, token, Notice}
  .catch((err) => {});

new ramapi2.funAsync(token)
  .birthdayAsync()
  .then((data) => console.log(data)) // data = {text, imageURL}
  .then((err) => {});

new ramapi2.funAsync(token)
  .helloAsync()
  .then((data) => console.log(data)) // data = {text, imageURL}
  .then((err) => {});

new ramapi2.imageAsync(token)
  .nekoparaAsync()
  .then((data) => console.log(data))
  .catch((err) => {});

Missing endpoint

current api version is v1-dev if v1 is out then contact support

ram api endpoints can be found at https://api2.rambot.xyz/docs

Support

email : support@rambot.xyz

discord: https://discord.gg/q3ycRjBG9q

1.0.0-dev.1

8 months ago

0.1.0

8 months ago