posthog icon indicating copy to clipboard operation
posthog copied to clipboard

API don't match with Documentation

Open hit2hat opened this issue 2 years ago • 1 comments

Bug description

I try to get events with API and use this documentation article (https://posthog.com/docs/api/events). Reply from API don't match with Documentation and seems broken.

Documentation for List all events image

How to reproduce

  1. Call method https://app.posthog.com/api/projects/<project id>/events

Actual result

image

Server didn't return previous and count properties. Link for next page don't contain limit and offset params (it use before for pagination)

Expected result

Server return previous and count properties. And next property is correct (use limit and offset for pagination).

Environment

  • [x] PostHog Cloud
  • [ ] self-hosted PostHog, version/commit: please provide

hit2hat avatar Dec 29 '22 20:12 hit2hat

Nice documentations.... This functionality is just missing in code 👍

image

hit2hat avatar Dec 29 '22 20:12 hit2hat