collection.listTexts

List texts that exists in a Collection. Returns the result in descending order (last text first). See text.get method for response parameters.

Request Parameters

collection_idint (required)

Collection to get texts from

limitint (default: 50)

Maximum number of texts returned. Max value is 50.

max_text_idint (default: highest existing text_id in the collection)

Return only texts with id less or equal to provided id.

min_text_idint (default: 1)

Return only texts with id higher or equal to provided id.

Response Parameters

see text.get

Code Examples

JSON

//Request
{
  "method":"collection.listTexts", 
  "params":{
   "collection_id":607
  }, 
  "id":0
}

//Response
{
 "id":0,
 "result":{
    "texts" : [
       {
        "headline":"My other headline", 
        "url":"", 
        "collection_id":607, 
        "text_id":2,
        "ext_text_id":"478943"
     },
     {
        "headline":"My headline", 
        "url":"", 
        "collection_id":607, 
        "text_id":1,
        "ext_text_id":"98563154"
      }]
}