I just gone through how to create forums and containers programmatically with the below link
http://www.unibia.com/unibianet/drupal/how-create-drupal-forums-and-containers-programmatically
But never see any post(google) which create forum topic pro-grammatically, whether i should go with node_save() or any alternative.
please help me guys,
Thanks, Edvin
A quick, safe and easy way to create new nodes programmatically is to use node_save():
Drupal 7 Examples :
To create new Forum
To create new Topic
To create topic comments
A forum topic is really just a node, so node_save is the best option as all the needed hooks will be called.
Using D7 Entity API