Code for pulling reports using WiseMedia API