Export api key and http client

Actually use the passed in http client