Get appkey and apiurl from arg