This is not supported past v15. v16 and v17 use NormalEndpoints. v13 is retired.
Pro Examples
Returns below are the objects the methods resolve with.
import * as ramapi from "ram-api.js"; // typescript
const ramapi = require("ram-api.js"); // javascript
const lang = "english"; // "spanish" for spanish
let RamApi = new ramapi.ProEndpoints("api key here", "v14", 60000, 1);
// { url }
RamApi.laughAsync().then((data) => { console.log(data); }).catch((error) => {});
// { version, outdated, supported, latest }
RamApi.versionInfoAsync().then(data => { console.log(data); }).catch(error => {});
// { text, url }
RamApi.birthdayAsync(lang).then(data => { console.log(data); }).catch(error => {});
// { url, text }
RamApi.cryAsync(lang).then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.tiredAsync().then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.sickAsync().then(data => { console.log(data); }).catch(error => {});
// { url, text, text2, text3, text4, textFormatted }
RamApi.slapAsync("Ada", "Bea").then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.kissAsync().then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.hugAsync().then(data => { console.log(data); }).catch(error => {});
// { url, text }
RamApi.goodNightAsync(lang).then(data => { console.log(data); }).catch(error => {});
// { url, text }
RamApi.goodMorningAsync(lang).then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.cuddleAsync().then(data => { console.log(data); }).catch(error => {});
// { text }
RamApi.helloAsync(lang).then(data => { console.log(data); }).catch(error => {});
// { api_choice, your_choice }
RamApi.rpsAsync("paper").then(data => { console.log(data); }).catch(error => {});
// { text }
RamApi._8ballAsync(lang).then(data => { console.log(data); }).catch(error => {});
// { limit, current, remaining, resetTime, resetTimeFormated }
RamApi.rateLimitAsync().then(data => { console.log(data); }).catch(error => {});
// { Number, roundedNumber, flooredNumber, enteredNumbers }
RamApi.randomNumberAsync(1, 10).then(data => { console.log(data); }).catch(error => {});
// "Completed!"
RamApi.suggestionAsync("This is a suggestion", "Example User").then(data => { console.log(data); }).catch(error => {});
// { ping: "108ms" }
RamApi.pingAsync().then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.ramAsync().then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.nekoparaAsync().then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.mikuAsync().then(data => { console.log(data); }).catch(error => {});
// { url }
RamApi.memeAsync().then(data => { console.log(data); }).catch(error => {});
