Change the second variable in the first example to `publisher_api`

- This fixes an `undefined local variable` error if someone were to
  run the example verbatim.