fixed example "create a post using the API module"

The example source for "create a post using the API module" was incorrect. I changed it to match the correct code found in the Introduction section.