This sample will get you download your specified report against your object. Please feel free to change resourceIds and reportDefinitionIds according to your needs. As an example I just shared a screenshot for vSphere World.
Find your vSphere World resourceID via UI