adds function to adapter to use api key