Code samples don't include authorization content. Authorize requests as instructed in Event API authorization.