Adaptive Insights API calls in PHP