Added authentication with secret key and API key.