Fix external API sample

Fixes the sample given on http://doc.owncloud.org/server/7.0/developer_manual/app/app/externalapi.html#registering-methods