robloxapiwrapper.js
Version:
Wrapper for the vast roblox api.
35 lines (31 loc) • 1.31 kB
Markdown
**robloxapiwrapper.js**
+ By LocalSimp
+ 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
+ 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:
```js
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:
```js
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")
}
```