Update index.php
Merge pull request #3 from hostianer/patch-2

Update example as method names have changed