RetrieveApplicationContentSets

 

ApplicationService / RetrieveApplicationContentSets

 

Description: Retrieve Application content sets

URL: http://{your-server-url}/api/v1/core/applications/contentsets

Method: GET

Token Required: True


Request Headers:
token: {token}
currentaccountid: {accountid - optional and default value is user's own account}
content-type: application/json or content-type: application/xml
Required Roles:

Portal Administrator, Account Administrator, Account Owner, Content Administrator

Rights:

Type: Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Rights

Right Require
Application_Management Yes

Request Query Parameters:
Parameter Type Nullable Description
appids int[] True comma separated values, eg. appids=1,2,3
page int True page number
rpp int True records per page, default = 50, max = 500
includereadonly boolean True include read only resources, eg. includereadonly=true

Example: http://{your-server-url}/api/v1/core/applications/contentsets?appids=1,2,3&page=100&rpp=100


Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application.ApplicationResponse

Parameter Type
Response.ApplicationContentSets Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Applications.ApplicationContentSet[]
Response.CurrentPage int
Response.TotalPages int
Response.Rpp int

Enums:
Field Name Values
Type Nexus.AppSpace.Service.Contract.Model.Enums.Application.Type Custom = 0, Passive = 1, Interactive = 2, VideoWall = 3
TemplateType Nexus.AppSpace.Service.Contract.Model.Enums.Application.PassiveType Instance = 0, ApplicationTemplate = 1, LayoutTemplate = 2

The following is an example response Xml body:
<ApplicationResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Application" 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>
  <ApplicationContentSets xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Application">
    <a:ApplicationContentSet>
      <a:ApplicationId>123</a:ApplicationId>
      <a:CompressedSize>123</a:CompressedSize>
      <a:FileCount>123</a:FileCount>
      <a:FileSize>123</a:FileSize>
      <a:ScriptCount>123</a:ScriptCount>
      <a:TimeStamp>2014-11-20T17:57:37.2715714Z</a:TimeStamp>
      <a:UncompressedSize>123</a:UncompressedSize>
    </a:ApplicationContentSet>
  </ApplicationContentSets>
  <CurrentPage>123</CurrentPage>
  <Rpp>123</Rpp>
  <TotalPages>123</TotalPages>
</ApplicationResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"ApplicationContentSets":[
		{
			"ApplicationId":123,
			"CompressedSize":123,
			"FileCount":123,
			"FileSize":123,
			"ScriptCount":123,
			"TimeStamp":"\/Date(1416506257271)\/",
			"UncompressedSize":123
		}
	],
	"CurrentPage":123,
	"Rpp":123,
	"TotalPages":123
}