Make the doc example use the v2 API