README: update examples to use preferred API