updated the script to use PhEDEx APIs instead of DAS