GET /api/v1/owner/:owner/campaigns

Get Details on all Campaigns owned by a particular Owner

Accepts a request and responds with a list of Campaigns owned by the Owner.

Request Parameters

This endpoint does not take any parameters.

Response Parameters

A JSON array of Campaign objects.

Examples

Sample Request

GET:/api/v1/owner/tdent/campaign/returnToFuture4
            
{
    description: 'New movie coming out on December 4th'
}
            
        

Sample Response

The full Campaign resource is returned in response.

            
{
    "campaigns": [
        {
            "name": "returnToFuture4",
            "description": "New movie coming out on December 3rd, 2016",
            "owner": "tdent",
            "date_created": "Thu Jan 1 2015 09:00:00 GMT-0500 (EST)"
        },
        {
            "name": "returnToFuture5",
            "description": "New movie coming out on December 3rd, 2017",
            "owner": "tdent",
            "date_created": "Thu Jan 1 2015 09:00:00 GMT-0500 (EST)"
        },
        {
            "name": "returnToFuture6",
            "description": "New movie coming out on December 3rd, 2018",
            "owner": "tdent",
            "date_created": "Thu Jan 1 2015 09:00:00 GMT-0500 (EST)"
        }
    ]
}