Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for segment management in API client (App and Track) #50

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

fantomiks
Copy link

Overview

This PR introduces new functionality to handle segments in the API client. It includes the following features:

  • Create, list, retrieve, and delete segments
  • Manage segment dependencies and customer counts
  • Add and remove people from segments
  • Enum types for segment state and segment type

Changes

  1. Added methods to manage segments (CreateSegment, ListSegments, GetSegment, DeleteSegment).
  2. Added methods to handle customers in segments (AddPeopleToSegment, RemovePeopleFromSegment).
  3. Introduced new data structures: Segment, SegmentState, SegmentType, and associated types.

Why this change is needed

These additions expand the capabilities of the API client by enabling users to manage segments directly, which was previously not possible.

Testing

  • Added unit tests for all new functions.
  • Verified segment management endpoints with the API using real data.
  • Confirmed that all existing tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant