changed getDriApiData from static call to dynamic call using passed in parameters