Added api parameter to specify client library by hand