get appkey and api url from command line arg