Update api.class.php

little change for PHP5.4 (https://github.com/PENDOnl/Wunderlist2-PHP-Wrapper/issues/4)