Skip to content

Commit d10106f

Browse files
Deprecate MarkEventRead function (#753)
* Deprecate MarkEventRead API * Update fixtures
1 parent a3c3b47 commit d10106f

File tree

2 files changed

+154
-140
lines changed

2 files changed

+154
-140
lines changed

account_events.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ func (c *Client) GetEvent(ctx context.Context, eventID int) (*Event, error) {
311311
}
312312

313313
// MarkEventRead marks a single Event as read.
314+
// Deprecated: `MarkEventRead` is a deprecated API, please consider using `MarkEventsSeen` instead.
315+
// Please note that the `MarkEventsSeen` API functions differently and will mark all events up to and
316+
// including the referenced event-id as "seen" rather than individual events.
314317
func (c *Client) MarkEventRead(ctx context.Context, event *Event) error {
315318
e := formatAPIPath("account/events/%d/read", event.ID)
316319
return doPOSTRequestNoRequestResponseBody(ctx, c, e)

0 commit comments

Comments
 (0)