1.1.1 • Published 3 months ago

brickverse v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Installation

Open command line and type: npm install brickverse

Documentation

NPM Package

https://developers.brickverse.gg/npm-module/introduction

Web API

https://developers.brickverse.gg/npm-module/web-api

Links

GitHub

https://github.com/BrickVerse-co/OpenCloud-NPM

NPM Package

https://www.npmjs.com/package/brickverse

Example

const { WebAPIClient, OpenCloudClient, ThumbnailClient,WorldClient, OCDatabase, OCENV, OCWebhooks } = require("brickverse");

const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';
const worldId = 1;
const key = "CoolDatabaseKey";
const IsBot = true;

let OpenCloud = new OpenCloudClient(apiKey, apiSecret);
let WebAPI = new WebAPIClient();

console.log(await ThumbnailClient.GetAssetThumbnail(1));
console.log(await ThumbnailClient.GetUserThumbnail(1, "player_head"));
console.log(await OCDatabase.GetAsync(worldId, key));

await OCDatabase.SetAsync(worldId, key, {
    cool_json: true
});

console.log(await OCENV.GetAsync(worldId, key));
console.log(await WorldClient.GetWorldTree(worldId));

await OCENV.SetAsync(worldId, key, "CoolFFlagOrSuperDuperSecret");

OCWebhooks.on('RightToErasure', (payload) => {
    console.log('Received RightToErasure event: ', payload);
    
    // Implement your erasure logic here
});

WebAPI.login(process.env.BRICKVERSE_SECURITY_TOKEN, IsBot).then(async() => {
    await WebAPI.SendFriendRequest(1);
});

OCWebhooks.listen();

Maintainers

This library is maintained by engineers from the BrickVerse Engineering & Research Division, please use issue sections to report bugs on GitHub.

npm.io

1.1.1

3 months ago

1.1.0

3 months ago

1.0.9

3 months ago

1.0.8

5 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago