gddocs icon indicating copy to clipboard operation
gddocs copied to clipboard

Most request examples dosen't use www

Open Geming400 opened this issue 1 year ago • 1 comments

Boomlings servers require to use www, however in most examples, it's uses no www Example: (https://wyliemaster.github.io/gddocs/#/endpoints/levels/getGJLevelScoresPlat)

import requests

data = {
    "accountID": 173831, # DevExit's account ID
    "gjp": "********", # This would be DevExit's password encoded with GJP encryption
    "levelID": 98170000,
      "type": 1, # Leaving this out would only show friends. This shows global.
    "secret": "Wmfd2893gb7"
}

req = requests.post("http://boomlings.com/database/getGJLevelScoresPlat.php", data=data)
print(req.text)

How it should be:

import requests

data = {
    "accountID": 173831, # DevExit's account ID
    "gjp": "********", # This would be DevExit's password encoded with GJP encryption
    "levelID": 98170000,
      "type": 1, # Leaving this out would only show friends. This shows global.
    "secret": "Wmfd2893gb7"
}

req = requests.post("http://www.boomlings.com/database/getGJLevelScoresPlat.php", data=data)
print(req.text)

By doing a search-replace it could be easily fixed though

Geming400 avatar Aug 19 '24 16:08 Geming400

Will likely do in a few days a pr fixing some issues I found

Geming400 avatar Sep 06 '24 10:09 Geming400