abtaining apiKey form service. NOT tested!!