Skip to content

Used to get the game_version and binary_version of gd. This is updated manually

Notifications You must be signed in to change notification settings

Geming400/gd-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

gd-version

(this is the dumbest thing in the world)

When doing requests to the gd servers, some requests require you to get the game_version and binary_version of gd:

# example from https://wyliemaster.github.io/gddocs/#/endpoints/accounts/backupGJAccountNew

import requests

data = {
    "userName": "APIAccount",
    "password": "********", # This would be APIAccount's password
    "gameVersion": 22,
    "binaryVersion": 44,
    "saveData": "H4sIAAAAAAAAA8VaWXObSBD[...]",
    "secret": "Wmfv3899gc9"
}

req = requests.post("http://www.robtopgames.org/database/accounts/backupGJAccountNew.php", data=data)
print(req.text)

how to use

It's very easy to use. Here's an example using Python: (this won't get updated automatically when gd gets updated, as this repo is updated manually)

import requests
req = requests.get("https://geming400.github.io/gd-version/")
print(req.json())
# returns:
# {
#   "game_version": 22,
#   "binary_version": 44
# }

About

Used to get the game_version and binary_version of gd. This is updated manually

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages