Skip to content
forked from 0kan1/roapi

A Api Includes Delete gamepasses and assets from Inventory, Buy Gamepasses, Create Gamepasses for roblox

Notifications You must be signed in to change notification settings

sesocell/roapi.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

ROAPI

Contributors Forks Stargazers Issues

A Api Includes Delete gamepasses and assets from Inventory, Buy Gamepasses, Create Gamepasses for roblox

Example Usage

NOTE: You need Install requests library

pip install requests

GAMEPASS CREATOR

import requests
from roapi import info
cookie="Put_Your_Cookie"
class game_pass:
    def __init__(self,cookie:str):
        self.cookie=cookie
    def do_offsale(self,passid):
        url=f"https://apis.roblox.com/game-passes/v1/game-passes/{passid}/details"
        data={"IsForSale": "false"}
        a=requests.post(url,data=data,headers=info.get_headers(self.cookie),cookies=info.get_cookies(self.cookie))
    def pass_creator(self,amount,universeid):
        url="https://apis.roblox.com/game-passes/v1/game-passes"
        data={"Name": "Gamepass Name",
        "UniverseId": universeid}
        a=requests.post(url,data=data,headers=info.get_headers(self.cookie),cookies=info.get_cookies(self.cookie))
        try:
            passid=a.json()['gamePassId']
            url=f"https://apis.roblox.com/game-passes/v1/game-passes/{passid}/details"
            data={"IsForSale": "true","Price": amount}
            a=requests.post(url,data=data,headers=info.get_headers(self.cookie),cookies=info.get_cookies(self.cookie))
            print(a.content)
            return str(passid)
        except:
            return "Error"
game_pass(cookie).pass_creator(1000,12345678)
#The first arggument is price of gamepass second is universe id

GAMEPASS BUYER

from roapi import buyer

cookie="Put_Your_Cookie"
buyer(cookie).buy("True",12345678,"gamepass")
#The first argument is delete when purchase second argument is id of the gamepass the third argument is type of item asset or gamepass

GAMEPASS/ASSET DELETER

from roapi import deleter

cookie="Put_Your_Cookie"
deleter(cookie).delete_asset(12345678)
deleter(cookie).delete_gamepass(12345678)
#First argument is id of asset 

If you have an error https://github.com/sesocell/roapi/issues

About

A Api Includes Delete gamepasses and assets from Inventory, Buy Gamepasses, Create Gamepasses for roblox

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%