Fix API sample
Merge pull request #7 from obazoud/patch-2

Fix API sample