Changed input params to match existing signature
Refactored to used passed uri as api endpoint