Get All Campaign Items

Get a list of items for the specified campaign.

Sample response:

{
   "results": [
      {
         "id": "1",
         "campaign_id": "1234",
         "type": "ITEM",
         "url": "https://www.example.com/news/demo_article_1.html",
         "thumbnail_url": "http://cdn.example.com/demo_image_1.jpg",
         "title": "Demo Article 1",
         "approval_state": "PENDING",
         "is_active": true,
         "status": "PENDING_APPROVAL"
      },
      {
         "id": "2",
         "campaign_id": "1234",
         "type": "ITEM",
         "url": "https://www.example.com/news/demo_article_2.html",
         "thumbnail_url": "http://cdn.example.com/demo_image_2.jpg",
         "title": "Demo Article 2",
         "approval_state": "PENDING",
         "is_active": true,
         "status": "PENDING_APPROVAL"
      },
      {
         "id": "3",
         "campaign_id": "1234",
         "type": "ITEM",
         "url": "https://www.example.com/news/demo_article_3.html",
         "thumbnail_url": "http://cdn.example.com/demo_image_3.jpg",
         "title": "Demo Article 3",
         "approval_state": "PENDING",
         "is_active": true,
         "status": "PENDING_APPROVAL"
      }
   ]
}
{
    "http_status": 404,
    "message": "Resource not found"
}

πŸ“˜

Response Body

The response body is a valid, JSON object, with a results property that contains the list of campaign items.

Language