Update sample scripts for v3 support and their documentation

Now that we support v3, we should update the sample scripts to reflect that.

The documentation shows examples for v3, though v2 usage should remain working,
as long as v2 is the assumed default version.