-
Notifications
You must be signed in to change notification settings - Fork 18
[59707] Java SDK support for metadata for events #8
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
[59707] Java SDK support for metadata for events #8
Conversation
|
This pull request has been linked to Clubhouse Story #59707: Java SDK support for metadata for events. |
As per @ddlatham's comment, the metadata will always be a string value so it's more correct to cast it that way.
Can query based on metadata_key, metadata_value, and metadata_pair
ddlatham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple comments. I also have a few question still for @rajeev2gupta in this story that I'd like to pin down before merging this in. May require some additional documentation:
https://app.clubhouse.io/nylas/story/57542/java-sdk-support-for-metadata-for-events
Switching from replacing variables on setting to adding to a list allows adding a filters rather than replacing all of them when invoked again
…etadata-for-events
ddlatham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to merge!
Description
The Nylas Calendar API has a new beta feature of adding a new metadata field to calendar events. This PR makes the feature available via the Nylas Java SDK.
Usage
To create a new event with event metadata, you can create a
Map<String, String>with a mapping of key-value pairs for the metadata:To query events based on metadata, you can filter on three different parameters:
metadata_key(string or array) to filter based on the keys within the metadata objectmetadata_value(string or array) to filter based on the value within the metadata objectmetadata_pair(pair of strings; a key and a value) to filter based on the key-value pairs within the metadata objectYou can invoke them as such and even chain them:
License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.