Smart Gradient API Sample