Update api.php

Patch: https://github.com/viion/XIVPads-LodestoneAPI/issues/49
Patch: https://github.com/viion/XIVPads-LodestoneAPI/issues/48

UNTESTED