Changed all hardcoded api versions in urls to use config variable instead