Creating and managing events with the ContactsManager SDK
eventType
field (a free-form string) and the metadata
field (a customizable JSON object), you can implement a wide range of social features:
metadata
field accepts any JSON data, making it extremely versatile:
CreateEventRequest
model includes these key properties:
eventType
: A categorical identifier for the event (e.g., meeting, social, post, transaction)title
: The main title of the eventdescription
: Detailed information about the eventlocation
: Where the event will take placestartTime
and endTime
: When the event begins and endsmetadata
: Additional custom data as key-value pairsisPublic
: Determines whether the event is visible to all users or only specific contactsUpdateEventRequest
model is similar to the creation model, but all fields are optional. Only the properties you want to change need to be included, and existing properties will remain unchanged if not specified.
skip
and limit
parameters, allowing you to implement infinite scrolling or load-more functionality.
eventType
parameter in feed requests to get only the events you need:
"social_post"
- Social media style posts with images, text, hashtags"transaction"
- Payment or financial transactions"meeting"
- Calendar events and appointments"activity"
- General activities and milestones"announcement"
- Product launches and announcements"recommendation"
- Content or product recommendationsThis example shows a complete event detail view with dynamic content based on event type. You can adapt this interface to match your app’s design and requirements.
isPublic
flag when creating events to ensure proper visibility settings