add config file to store api urls, and loop inside all the url form the config
calling and saving rewards data
add some validations and their exceptions