update examples to show v2 api
Merge pull request #1194 from asmacdo/amacdona-1034316

1034316 - update examples to show v2 api