Fix API sample
Merge pull request #6 from obazoud/patch-1

Fix API sample