Description: Search Assets
URL: http://{your-server-url}/api/v1/appspace/campaigns/search/assets
Method: POST
Token Required: True
content-type: application/json or content-type: application/xml
token: {token}
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignRequest
Parameter | Type | Nullable |
---|---|---|
Request.OwnerID | integer | True |
Request.BookingID | integer | True |
Request.CampaignID | integer | True |
Request.CampaignIDs | integer[] | True |
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignResponse
Parameter | Type |
---|---|
Response.Assets | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.Asset.Asset[] |
Response.Schedules | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.Schedule.Schedule[] |
Field | Name | Values |
---|---|---|
DurationType | Nexus.AppSpace.Service.Contract.Model.Enums.Campaign.DurationType | |
AssetType | Nexus.AppSpace.Service.Contract.Model.Enums.Campaign.AssetType |
<CampaignRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <BookingID>123</BookingID> <CampaignID>123</CampaignID> <CampaignIDs xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <a:int>123</a:int> </CampaignIDs> <OwnerID>123</OwnerID> </CampaignRequest>
{ "BookingID":123, "CampaignID":123, "CampaignIDs":[ 123 ], "OwnerID":123 }
<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> <Schedules xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Schedule"> <a:Schedule> <a:Description>String</a:Description> <a:End>2014-04-24T17:53:43.3312964Z</a:End> <a:Id>123</a:Id> <a:Name>String</a:Name> <a:Recurrences> <a:Recurrence> <a:Days>Everyday</a:Days> <a:EndTime>2014-04-24T17:53:43.3312964Z</a:EndTime> <a:Id>123</a:Id> <a:Interval>PT0S</a:Interval> <a:Inverse>true</a:Inverse> <a:ScheduleId>123</a:ScheduleId> <a:StartTime>2014-04-24T17:53:43.3312964Z</a:StartTime> </a:Recurrence> </a:Recurrences> <a:Start>2014-04-24T17:53:43.3312964Z</a:Start> </a:Schedule> </Schedules> </CampaignResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1, "Schedules":[ { "Description":"String", "End":"\/Date(1398362023331)\/", "Id":123, "Name":"String", "Recurrences":[ { "Days":254, "EndTime":"\/Date(1398362023331)\/", "Id":123, "Interval":"PT0S", "Inverse":true, "ScheduleId":123, "StartTime":"\/Date(1398362023331)\/" } ], "Start":"\/Date(1398362023331)\/" } ] }