Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createGamePass function #323

Open
mmccall0813 opened this issue Apr 30, 2021 · 4 comments
Open

createGamePass function #323

mmccall0813 opened this issue Apr 30, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mmccall0813
Copy link

mmccall0813 commented Apr 30, 2021

Is your feature request related to a problem? Please describe.
Just thought that this would be a nice addition to noblox.js. I noticed that there is code to modify game passes but not to create them.

Describe the solution you'd like
A function to create a gamepass on a game. Something like

const noblox = require("noblox.js");
const fs = require("fs");

// login stuff

noblox.createGamePass(12345678 /* game id */, "A friendly title", "Some description", 100 /* price */, fs.createReadStream("./icon.png"))
// if user doesn't have permission, send error message
@Neztore Neztore added the enhancement New feature or request label May 7, 2021
@suufi suufi added the on-hold label May 29, 2021
@suufi
Copy link
Member

suufi commented May 29, 2021

On hold until a proper endpoint is found for this function.

@GlowingUmbreon
Copy link

POST https://www.roblox.com/build/doverifiedupload
formdata:

-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="__RequestVerificationToken"

***** (Hidden)
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="assetTypeId"

21
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="isOggUploadEnabled"

True
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="groupId"


-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="onVerificationPage"

True
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="captchaEnabled"

False
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="captchaToken"


-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="captchaProvider"


-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="assetImageId"

7461616701
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="name"

test
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="assetTypeId"

21
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="description"

Desc
-----------------------------1650414117552438611147384475
Content-Disposition: form-data; name="targetPlaceId"

4672343617
-----------------------------1650414117552438611147384475--

I have saved the full request as curl if it is required.

@GlowingUmbreon
Copy link

@CanineData
Copy link

POST to https://apis.roblox.com/game-passes/v1/game-passes

Formdata:
Name: string
Description: string
UniverseId: number
File: binary //File is the image for the gamepass

@Neztore Neztore added help wanted Extra attention is needed and removed on-hold labels Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants