robloxapiwrapper.js
v1.0.6
Published
Wrapper for the vast roblox api.
Downloads
7
Maintainers
Readme
robloxapiwrapper.js
- By LocalSimp#0001
- With help(endpoint for csrf token)] and mobileapi endpoint) from noblox.js
- The endpoints that require captcha have been skipped, such as follow, send friend request etc.
- COOKIE MUST INCLUDE THE WARNING PART TOO.
- UNIVERSEID !== PLACEID. Use await RobloxClient#GetUniverseID(placeid)
- ASSETID !== GAMEPASSID which is also !== VIPSERVERID
- VIPSERVER AND PRIVATE SERVER MAY BE DIFFERENT THINGS SINCE ROBLOX IS WEIRD
- Asset types are specified in index.d.ts
- Any parameter called "limit" can only have a few number values. Specified in index.d.ts
Examples Code Snippets
- With a cookie:
const Roblox = require("robloxapiwrapper.js")
const Client = new Roblox.RobloxClient();
const Cookie = "A .ROBLOSECURITY cookie including the warning part."
await Client.Initialize(Cookie)
const amIFollowingROBLOX = await Client.IsFollowing(1)
console.log(amIFollowingROBLOX)
- Without a cookie:
const Roblox = require("robloxapiwrapper.js")
const Client = new Roblox.RobloxClient();
const OwnsGamepass = await Client.UserOwnsGamepass(someuserId,someGamepassId)
if(OwnsGamepass === true){
console.log("The user owns this gamepass")
} else {
console.log("The user does not own this gamepass")
}