Provide class method to set api key.