Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 831 Bytes

Search

Looks through transcripts on this accounts.

For the full XML representation of messages, check out the data reference.

Search for term

  • GET /search/#{term}.xml returns all the messages across all rooms on this account containing the supplied term.
  • GET /search?q=#{term}&format=xml same as above, but avoids issues with periods (".") in the term.

Response:

<messages type="array">
  <message>
    <id type="integer">1</id>
    <body>Hello</body>
    <room-id type="integer">1</room-id>
    <user-id type="integer">2</user-id>
    <created-at type="datetime">2009-11-22T19:11:41Z</created-at>
    <type>TextMessage</type>
    <starred>true</starred>
  </message>
  ...
</messages>