Method which will be used by external scripts to add posts