[examples] rename variable `plugin` to `api`