Description: Retrieve Campaigns
URL: http://{your-server-url}/api/v1/appspace/campaigns
Method: GET
Token Required: True
content-type: application/json or content-type: application/xml
token: {token}
Parameter | Type | Nullable | Description |
---|---|---|---|
ActAndDeactURLNotNullEmpty | boolean | True | Activation Url and Deactivation Url are not null and empty |
Example: http://{your-server-url}/api/v1/appspace/campaigns?
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignResponse
Parameter | Type |
---|---|
Response.Campaigns | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.Campaign[] |
Field | Name | Values |
---|---|---|
PlayoutMode | Nexus.AppSpace.Service.Contract.Model.Enums.Campaign.PlayoutMode | Undefined = 0, Strict = 1, BestEffort = 2, Loose = 3, Dynamic = 4 |
<CampaignResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage> <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages"> <Error> <Code>String</Code> <Message>String</Message> <StackTrace>String</StackTrace> </Error> </Errors> <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status> <Campaigns xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign"> <a:Campaign> <a:Code>String</a:Code> <a:CreatedAt>2014-04-24T17:53:43.3473077Z</a:CreatedAt> <a:CreatedBy>String</a:CreatedBy> <a:DeletedAt>2014-04-24T17:53:43.3473077Z</a:DeletedAt> <a:DeletedBy>String</a:DeletedBy> <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid> <a:Id>123</a:Id> <a:LastUpdatedAt>2014-04-24T17:53:43.3473077Z</a:LastUpdatedAt> <a:LastUpdatedBy>String</a:LastUpdatedBy> <a:TypeId>123</a:TypeId> <a:BookingIds xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <b:int>123</b:int> </a:BookingIds> <a:ClientId>123</a:ClientId> <a:DaysToPlay xmlns:b="http://schemas.datacontract.org/2004/07/System"> <b:DayOfWeek>Saturday</b:DayOfWeek> </a:DaysToPlay> <a:DeactivationURL>String</a:DeactivationURL> <a:EndDate>2014-04-24T17:53:43.3473077Z</a:EndDate> <a:IsAllDayEvent>true</a:IsAllDayEvent> <a:IsManualDeactivationOn>true</a:IsManualDeactivationOn> <a:IsTemplate>true</a:IsTemplate> <a:Metadata xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO"> <b:KeyValuePair> <b:Key>String</b:Key> <b:Value>String</b:Value> </b:KeyValuePair> </a:Metadata> <a:Name>String</a:Name> <a:OwnerId>123</a:OwnerId> <a:PlayEverdays>true</a:PlayEverdays> <a:PlayoutMode>Dynamic</a:PlayoutMode> <a:Priority>123</a:Priority> <a:SiteIds xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <b:int>123</b:int> </a:SiteIds> <a:StartDate>2014-04-24T17:53:43.3473077Z</a:StartDate> <a:TemplateId>123</a:TemplateId> <a:TimesToPlay xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO"> <b:ActiveTimeSlot> <b:EndTime>2014-04-24T17:53:43.3473077Z</b:EndTime> <b:StartTime>2014-04-24T17:53:43.3473077Z</b:StartTime> </b:ActiveTimeSlot> </a:TimesToPlay> <a:ZoneIds xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <b:int>123</b:int> </a:ZoneIds> <a:activationURL>String</a:activationURL> </a:Campaign> </Campaigns> </CampaignResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1, "Campaigns":[ { "Code":"String", "CreatedAt":"\/Date(1398362023347)\/", "CreatedBy":"String", "DeletedAt":"\/Date(1398362023347)\/", "DeletedBy":"String", "Guid":"11111111-1111-1111-1111-111111111111", "Id":123, "LastUpdatedAt":"\/Date(1398362023347)\/", "LastUpdatedBy":"String", "TypeId":123, "BookingIds":[ 123 ], "ClientId":123, "DaysToPlay":[ 6 ], "DeactivationURL":"String", "EndDate":"\/Date(1398362023347)\/", "IsAllDayEvent":true, "IsManualDeactivationOn":true, "IsTemplate":true, "Metadata":[ { "Key":"String", "Value":"String" } ], "Name":"String", "OwnerId":123, "PlayEverdays":true, "PlayoutMode":4, "Priority":123, "SiteIds":[ 123 ], "StartDate":"\/Date(1398362023347)\/", "TemplateId":123, "TimesToPlay":[ { "EndTime":"\/Date(1398362023347)\/", "StartTime":"\/Date(1398362023347)\/" } ], "ZoneIds":[ 123 ], "activationURL":"String" } ] }