Update Api.php

Changed path so wcurl would be called properly outside namespace.