Update to make use of the most current api.php

Josh Freeman made an update to his API and am incorporating that into
this. More work on the plugin will be made when I have more free time,
until then, just keeping the API current.