Board Thread:Support Requests - Getting Technical/@comment-43962992-20191114003545

Hi folks.

I'm using the API and Python 3.x code to create pages programattically. The Fandom support folks directed me to ask the "community" for help after refusing to clarify portions of the API documentation.

So here I am, and here's the relevant portions of the code:

import sys

import requests

import json

this = sys.modules[__name__]

URL = "https://my-wiki-name.fandom.com/api.php"

POST = requests.post(URL, data=DATA)

When using the code, articles appear on our wiki, proper title, and content. However the category is not set.

From how it looks to me, everything is being doing properly according to the API documentation. If the POST data was malformed, I'd see that big wall of help text get returned instead of a successful page creation event.

Thoughts?

Thanks. 