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.
Merge pull request #4 from dariusdunlap/patch-1

fixed example "create a post using the API module"