1.2.5 • Published 4 years ago

rassets v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

RAssets

A simple Typescript wrapper to upload assets. See test/index.ts for examples.

getCSRF

This function allows you to get the CSRF token for a specific cookie.

await RAssets.getCSRF("cookie")

getRequestVerificationToken

This function allows you to get the __RequestVerificationToken for a specific cookie

await RAssets.getRequestVerificationToken("cookie")

uploadAudio

This function allows you to upload an audio

const uploadAudio = await RAssets.uploadAudio(cookie, {
    name: "test",
    file: testAudio.toString("base64"),
    paymentSource: "User"
})

upload

This function allows you to upload any asset (working) using the "hidden" api endpoint - http://data.roblox.com/Data/Upload.ashx. If you specify an assetid that you own, you may even overwrite that asset

const uploadAsset = await RAssets.upload(cookie, {
    file: testModel,
    assetType: "Model",
    name: "test",
    description: "test",
    ispublic: true,
    allowcomments: true
})
1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago