That example is indeed using the API.