Script for Data Collection API Sample