Skip to content

Almost all request markdowns in 'docs/endpoints/' need to be updated #84

Open
@flid0

Description

@flid0

Take any .md file in the endpoints directory and run the snippet and it will result in a 403 Forbidden.
Why? Because: 1. the 'User-Agent' header should be empty and 2. the base endpoint url should start with the www subdomain

# currently
import requests

data = {
    "secret": "Wmfd2893gb7",
    "targetAccountID": 173831
}

req = requests.post('http://boomlings.com/database/getGJUserInfo20.php', data=data)
print(req.text)
# what it should be
import requests

data = {
    "secret": "Wmfd2893gb7",
    "targetAccountID": 173831
}

req = requests.post('http://www.boomlings.com/database/getGJUserInfo20.php', data=data, headers={"User-Agent": ""})
print(req.text)

notice the www subdomain and headers argument
not a pressing issue but it isn't so good if the docs' code snippets don't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions