-
Notifications
You must be signed in to change notification settings - Fork 46
Add message/client-summary endpoint docs #2872
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
base: annotations-rest-api
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -675,6 +675,32 @@ bc[json]. [{ | |
| extras: <optional extras object>, | ||
| }] | ||
|
|
||
| h3(#annotations-client-summary). Retrieve annotation summary for a specific clientId | ||
|
|
||
| h6. GET rest.ably.io/channels/@<channelId>@/messages/@<messageSerial>@/client-summary | ||
|
|
||
| Retrieve the annotation summary for a specific clientId for a specific message identified by its serial. | ||
|
|
||
| Example request: | ||
|
|
||
| bc[sh]. curl https://rest.ably.io/channels/rest-example/messages/01726585978590-001@abcdefghij:001/client-summary?forClientId=client1 \ | ||
| -u "{{API_KEY}}" | ||
|
|
||
| h5. Parameters | ||
|
|
||
| - forClientId := _client1_ The clientId to retrieve the annotation summary for. It defaults to the clientId of the authenticated client. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can I ask why we ended up with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought I mean if you don't have access to act on behalf of another |
||
|
|
||
| h5. Options | ||
|
|
||
| - Accept := @application/json@ by default, or @application/x-msgpack@ | ||
| - Auth required := yes ("basic":#basic-authentication or "token":#token-authentication) | ||
|
|
||
| h5. Returns | ||
|
|
||
| A successful request returns an object containing the annotation summary for the specified message, clipped to only include the summary for the requested clientId. | ||
|
|
||
| The summary is an object whose keys are annotation types, and the values are aggregated summaries for that annotation type. | ||
|
|
||
| h2(#push). Push | ||
|
|
||
| h3(#post-device-registration). Register a device for receiving push notifications | ||
|
|
||
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.
The base branch likely needs rebasing as well, but I recently updated all endpoints to the new format (
main.realtime.ably.net)