Skip to content

Commit f4d7aa8

Browse files
committed
fixup! Migrate REST SDK API spec History page to MDX
1 parent 96c21f9 commit f4d7aa8

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

src/pages/docs/api/rest-sdk/history.mdx

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ redirect_from:
1818

1919
The [Rest `Channel` object](/docs/channels) exposes the following public method to obtain [`Message`](#message) history.
2020

21-
### Methods <a id="#channel-methods" />
21+
### Methods <a id="channel-methods" />
2222

23-
### <If lang="javascript,nodejs,java,objc,php,python,ruby,swift">history</If><If lang="csharp,go">History</If> <a id="#channel-history" />
23+
### <If lang="javascript,nodejs,java,objc,php,python,ruby,swift">history</If><If lang="csharp,go">History</If> <a id="channel-history" />
2424

2525
<If lang="javascript,nodejs">
2626

@@ -147,9 +147,9 @@ Failure to retrieve the message history will raise an [`AblyException`](/docs/ap
147147

148148
[Rest `Presence` object](/docs/presence-occupancy/presence) exposes the following public method to obtain presence event history such as enter, update and leave events. These events are represented as [`PresenceMessage`](#presence-message) objects.
149149

150-
### Methods <a id="#presence-methods" />
150+
### Methods <a id="presence-methods" />
151151

152-
### <If lang="javascript,nodejs,java,objc,php,python,ruby,swift">history</If><If lang="csharp,go">History</If> <a id="#presence-history" />
152+
### <If lang="javascript,nodejs,java,objc,php,python,ruby,swift">history</If><If lang="csharp,go">History</If> <a id="presence-history" />
153153

154154
<If lang="javascript,nodejs">
155155

@@ -272,67 +272,67 @@ Failure to retrieve the presence event history will raise an [`AblyException`](/
272272

273273
</If>
274274

275-
## Related types <a id="#related-types" />
275+
## Related types <a id="related-types" />
276276

277-
### <If lang="javascript,nodejs,php,python,go">Message</If><If lang="swift,objc">ARTMessage</If><If lang="ruby">Ably::Models::Message Enum</If><If lang="java">io.ably.lib.types.Message</If><If lang="csharp">IO.Ably.Message</If> <a id="#message" />
277+
### <If lang="javascript,nodejs,php,python,go">Message</If><If lang="swift,objc">ARTMessage</If><If lang="ruby">Ably::Models::Message Enum</If><If lang="java">io.ably.lib.types.Message</If><If lang="csharp">IO.Ably.Message</If> <a id="message" />
278278

279279
A `Message` represents an individual message that is sent to or received from Ably.
280280

281-
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">name</If><If lang="csharp">Name</If> <a id="#name" />
281+
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">name</If><If lang="csharp">Name</If> <a id="name" />
282282

283283
The event name, if provided. <br />_Type: `String`_
284284

285-
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">data</If><If lang="csharp">Data</If> <a id="#data" />
285+
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">data</If><If lang="csharp">Data</If> <a id="data" />
286286

287287
The message payload, if provided.<br />_Type: <If lang="javascript,nodejs,go">`String`, `StringBuffer`, `JSON Object`</If><If lang="java">`String`, `ByteArray`, `JSONObject`, `JSONArray`</If><If lang="csharp">`String`, `byte[]`, `plain C# object that can be serialized to JSON`</If><If lang="ruby">`String`, `Binary` (ASCII-8BIT String), `Hash`, `Array`</If><If lang="python">`String`, `Bytearray`, `Dict`, `List`</If><If lang="php">`String`, `Binary String`, `Associative Array`, `Array`</If><If lang="objc">`NSString *`, `NSData *`, `NSDictionary *`, `NSArray *`</If><If lang="swift">`String`, `NSData`, `Dictionary`, `Array`</If>_
288288

289-
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">extras</If><If lang="csharp">Extras</If> <a id="#extras" />
289+
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">extras</If><If lang="csharp">Extras</If> <a id="extras" />
290290

291291
Metadata and/or ancillary payloads, if provided. Valid payloads include [`push`](/docs/push/publish#payload), `headers` (a map of strings to strings for arbitrary customer-supplied metadata), [`ephemeral`](/docs/pub-sub/advanced#ephemeral), and [`privileged`](/docs/platform/integrations/webhooks#skipping) objects.<br />_Type: <If lang="java">`JSONObject`, `JSONArray`</If><If lang="csharp">plain C# object that can be converted to JSON</If><If lang="javascript,nodejs">`JSON Object`</If><If lang="ruby">`Hash`, `Array`</If><If lang="python">`Dict`, `List`</If><If lang="swift">`Dictionary`, `Array`</If><If lang="objc">`NSDictionary *`, `NSArray *`</If><If lang="php">`Associative Array`, `Array`</If><If lang="go">`String`, `[]byte`</If>_
292292

293-
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">id</If><If lang="csharp">Id</If> <a id="#id" />
293+
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">id</If><If lang="csharp">Id</If> <a id="id" />
294294

295295
A Unique ID assigned by Ably to this message.<br />_Type: `String`_
296296

297-
### <If lang="javascript,nodejs,php,java,objc,swift,go">clientId</If><If lang="ruby,python">client_id</If><If lang="csharp">ClientId</If> <a id="#client-id" />
297+
### <If lang="javascript,nodejs,php,java,objc,swift,go">clientId</If><If lang="ruby,python">client_id</If><If lang="csharp">ClientId</If> <a id="client-id" />
298298

299299
The client ID of the publisher of this message.<br />_Type: `String`_
300300

301-
### <If lang="javascript,nodejs,php,java,objc,swift,go">connectionId</If><If lang="ruby,python">connection_id</If><If lang="csharp">ConnectionId</If> <a id="#connection-id" />
301+
### <If lang="javascript,nodejs,php,java,objc,swift,go">connectionId</If><If lang="ruby,python">connection_id</If><If lang="csharp">ConnectionId</If> <a id="connection-id" />
302302

303303
The connection ID of the publisher of this message.<br />_Type: `String`_
304304

305-
### <If lang="javascript,nodejs,php,java,objc,swift">connectionKey</If><If lang="csharp,go">ConnectionKey</If><If lang="ruby,python">connection_key</If> <a id="#connection-key" />
305+
### <If lang="javascript,nodejs,php,java,objc,swift">connectionKey</If><If lang="csharp,go">ConnectionKey</If><If lang="ruby,python">connection_key</If> <a id="connection-key" />
306306

307307
A connection key, which can optionally be included for a REST publish as part of the [publishing on behalf of a realtime client functionality](/docs/pub-sub/advanced#publish-on-behalf).<br />_Type: `String`_
308308

309-
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">timestamp</If><If lang="csharp">Timestamp</If> <a id="#timestamp" />
309+
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">timestamp</If><If lang="csharp">Timestamp</If> <a id="timestamp" />
310310

311311
Timestamp when the message was first received by the Ably, as <If lang="javascript,nodejs,php,python,go,java">milliseconds since the epoch</If><If lang="ruby">a `Time` object</If>.<br />_Type: <If lang="javascript,nodejs,php,python">`Integer`</If><If lang="java">`Long Integer`</If><If lang="csharp">`DateTimeOffset`</If><If lang="ruby">`Time`</If><If lang="objc,swift">`NSDate`</If><If lang="go">Integer</If>_
312312

313-
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">encoding</If><If lang="csharp">Encoding</If> <a id="#encoding" />
313+
### <If lang="javascript,nodejs,php,python,go,ruby,java,objc,swift">encoding</If><If lang="csharp">Encoding</If> <a id="encoding" />
314314

315315
This will typically be empty as all messages received from Ably are automatically decoded client-side using this value. However, if the message encoding cannot be processed, this attribute will contain the remaining transformations not applied to the `data` payload.<br />_Type: `String`_
316316

317317
<If lang="javascript,nodejs">
318318

319-
### action <a id="#action" />
319+
### action <a id="action" />
320320

321321
The action type of the message, one of the [`MessageAction`](/docs/api/realtime-sdk/types#message-action) enum values.<br />_Type: `int enum { MESSAGE_CREATE, MESSAGE_UPDATE, MESSAGE_DELETE, META, MESSAGE_SUMMARY }`_
322322

323-
### serial <a id="#serial" />
323+
### serial <a id="serial" />
324324

325325
A server-assigned identifier that will be the same in all future updates of this message. It can be used to add annotations to a message. Serial will only be set if you enable annotations in [channel rules](/docs/channels#rules).<br />_Type: `String`_
326326

327-
### annotations <a id="#annotations" />
327+
### annotations <a id="annotations" />
328328

329329
An object containing information about annotations that have been made to the object.<br />_Type: [`MessageAnnotations`](/docs/api/realtime-sdk/types#message-annotations)_
330330

331331
</If>
332332

333-
### Message constructors <a id="#constructors" />
333+
### Message constructors <a id="constructors" />
334334

335-
#### Message.fromEncoded <a id="#message-from-encoded" />
335+
#### Message.fromEncoded <a id="message-from-encoded" />
336336

337337
`Message.fromEncoded(Object encodedMsg, ChannelOptions channelOptions?) -> Message`
338338

@@ -349,7 +349,7 @@ A static factory method to create a [`Message`](/docs/api/realtime-sdk/types#mes
349349

350350
A [`Message`](/docs/api/realtime-sdk/types#message) object
351351

352-
#### Message.fromEncodedArray <a id="#message-from-encoded-array" />
352+
#### Message.fromEncodedArray <a id="message-from-encoded-array" />
353353

354354
`Message.fromEncodedArray(Object[] encodedMsgs, ChannelOptions channelOptions?) -> Message[]`
355355

@@ -366,7 +366,7 @@ A static factory method to create an array of [`Messages`](/docs/api/realtime-sd
366366

367367
An `Array` of [`Message`](/docs/api/realtime-sdk/types#message) objects
368368

369-
### <If lang="javascript,nodejs,php,python,go">PresenceMessage</If><If lang="swift,objc">ARTPresenceMessage</If><If lang="ruby">Ably::Models::PresenceMessage Enum</If><If lang="java">io.ably.lib.types.PresenceMessage</If><If lang="csharp">IO.Ably.PresenceMessage</If> <a id="#presence-message" />
369+
### <If lang="javascript,nodejs,php,python,go">PresenceMessage</If><If lang="swift,objc">ARTPresenceMessage</If><If lang="ruby">Ably::Models::PresenceMessage Enum</If><If lang="java">io.ably.lib.types.PresenceMessage</If><If lang="csharp">IO.Ably.PresenceMessage</If> <a id="presence-message" />
370370

371371
A `PresenceMessage` represents an individual presence update that is sent to or received from Ably.
372372

@@ -385,7 +385,7 @@ A `PresenceMessage` represents an individual presence update that is sent to or
385385

386386
### PresenceMessage constructors
387387

388-
#### PresenceMessage.fromEncoded <a id="#presence-from-encoded" />
388+
#### PresenceMessage.fromEncoded <a id="presence-from-encoded" />
389389

390390
`PresenceMessage.fromEncoded(Object encodedPresMsg, ChannelOptions channelOptions?) -> PresenceMessage`
391391

@@ -402,7 +402,7 @@ A static factory method to create a [`PresenceMessage`](/docs/api/realtime-sdk/t
402402

403403
A [`PresenceMessage`](/docs/api/realtime-sdk/types#presence-message) object
404404

405-
#### PresenceMessage.fromEncodedArray <a id="#presence-from-encoded-array" />
405+
#### PresenceMessage.fromEncodedArray <a id="presence-from-encoded-array" />
406406

407407
`PresenceMessage.fromEncodedArray(Object[] encodedPresMsgs, ChannelOptions channelOptions?) -> PresenceMessage[]`
408408

@@ -419,7 +419,7 @@ A static factory method to create an array of [`PresenceMessages`](/docs/api/rea
419419

420420
An `Array` of [`PresenceMessage`](/docs/api/realtime-sdk/types#presence-message) objects
421421

422-
### <If lang="javascript,nodejs,php,go">Presence action</If><If lang="python">PresenceAction</If><If lang="swift,objc">ARTPresenceAction</If><If lang="java">io.ably.lib.types.PresenceMessage.Action</If><If lang="ruby">Ably::Models::PresenceMessage::ACTION</If><If lang="csharp">IO.Ably.PresenceAction</If> <a id="#presence-action" />
422+
### <If lang="javascript,nodejs,php,go">Presence action</If><If lang="python">PresenceAction</If><If lang="swift,objc">ARTPresenceAction</If><If lang="java">io.ably.lib.types.PresenceMessage.Action</If><If lang="ruby">Ably::Models::PresenceMessage::ACTION</If><If lang="csharp">IO.Ably.PresenceAction</If> <a id="presence-action" />
423423

424424
<If lang="javascript,nodejs">
425425

@@ -639,7 +639,7 @@ const (
639639

640640
<If lang="csharp">
641641

642-
### IO.Ably.PaginatedRequestParams <a id="#paginated-request-params" />
642+
### IO.Ably.PaginatedRequestParams <a id="paginated-request-params" />
643643

644644
`HistoryRequestParams` is a type that encapsulates the parameters for a history queries. For example usage see [`Channel#History`](/docs/api/realtime-sdk/history#channel-history).
645645

@@ -655,7 +655,7 @@ const (
655655

656656
</If>
657657

658-
### <If lang="javascript,nodejs,php,python,go">PaginatedResult</If><If lang="swift,objc">ARTPaginatedResult</If><If lang="ruby">Ably::Models::PaginatedResult</If><If lang="java">io.ably.lib.types.PaginatedResult</If><If lang="csharp">IO.Ably.PaginatedResult</If> <a id="#paginated-result" />
658+
### <If lang="javascript,nodejs,php,python,go">PaginatedResult</If><If lang="swift,objc">ARTPaginatedResult</If><If lang="ruby">Ably::Models::PaginatedResult</If><If lang="java">io.ably.lib.types.PaginatedResult</If><If lang="csharp">IO.Ably.PaginatedResult</If> <a id="paginated-result" />
659659

660660
A `PaginatedResult` is a type that represents a page of results for all message and presence history, stats and REST presence requests. The response from a [Ably REST API paginated query](/docs/api/rest-api/#pagination) is accompanied by metadata that indicates the relative queries available to the `PaginatedResult` object.
661661

@@ -861,15 +861,15 @@ Returns a promise. On success, the promise is fulfilled with a new `PaginatedRes
861861
</If>
862862
<If lang="javascript,nodejs">
863863

864-
##### current <a id="#current" />
864+
##### current <a id="current" />
865865

866866
`current(): Promise<PaginatedResult>`
867867

868868
Returns a promise. On success, the promise is fulfilled with a new `PaginatedResult` loaded with the current page of results. On failure, the promise is rejected with an [`ErrorInfo`](/docs/api/realtime-sdk/types#error-info) object that details the reason why it was rejected.
869869

870870
</If>
871871

872-
#### Example <a id="#paginated-result-example" />
872+
#### Example <a id="paginated-result-example" />
873873

874874
<If lang="javascript">
875875

@@ -1038,7 +1038,7 @@ fmt.Println("Last page? %s\n", page1.IsLast())
10381038
</If>
10391039
<If lang="java">
10401040

1041-
### io.ably.lib.types.Param <a id="#param" />
1041+
### io.ably.lib.types.Param <a id="param" />
10421042

10431043
`Param` is a type encapsulating a key/value pair. This type is used frequently in method parameters allowing key/value pairs to be used more flexible, see [`Channel#history`](/docs/api/realtime-sdk/history#channel-history) for an example.
10441044

0 commit comments

Comments
 (0)