I am looking to create a script that will automatically generate threads based on another API. I just wondered the best way to create a thread? Is there any documentation for creating the thread / first post?
The important thing here is to set the fact this is an automated post. If you don't it will record the random IP of someone visiting the site at the time of the cron or event triggering the thread being posted. I need to get you the setting for that because I don't see it on this example.
The above is 100% of what you need other than that. No SQL calls at all. Just insert your variables and go.
You can if you call up the autoloader, look for an example of running scripts ot crons outside xenforo. As far as the board crons just put the board into debug mode and add a cron pointing to a script contained within xenforo. The class name is the folder structure within Xenforo. I use Brand_Product_Filetype so mine would be RainDD_Whatever_Cron and then the next box is the function name.