dmGetRecent

Signature

http://CdmServer.com:port/dmwebservices/index.php?q=dmGetRecent/alias/num/fields/mode/imagesonly/format

  • alias is a collection alias
  • num is the number of items to return
  • fields is a !-delimited list of field nicknames listing the fields for which metadata should be returned. A maximum of five fields may be specified. A maximum of 100 bytes is returned for each field.
  • mode is the type of query to execute to return either the most recent, the oldest, or a random set of items. 0=most recent (default), 1=oldest, 2=random
  • imagesonly can be set to "1" or "0": 1=images only (default), 0=all items
  • format can be xml or json

Returns

A list of records produced by the query, plus a total for the number of records returned.

Example

http://CdmServer.com:port/dmwebservices/index.php?q=dmGetRecent/mycollection/5/title/0/1/xml

returns:

< xml version="1.0" encoding="UTF-8"?>
< results>
< total>5 < records>
< record>
< collection> < pointer> < title> < date> < /record>
< record>
< collection> < pointer> < title> < date> < /record>
< record>
< collection> < pointer> < title> < ;date> < ;/record>
< record>
< collection> < pointer> < title> < date> < /record>
< record>
< collection> < pointer> < title> < date> < record>
< /records>
< /results;>