Allow API credentials to be retrieved from environment variables