Update sample to JSON API v1 from v1beta2.