I am creating some small plugin to add some content as post to wordpress site.
Actually, i am not writing, i'm planning to do this :) But i don't know how to add new post via wordpress api. Could anyone help with link to tutorial or codex page about it? :)