Implemented authentication and api key request.