Output parameters
Name | Description | Type |
---|---|---|
Content | Represents a single learning tool instance. The format of the instance description corresponding to the extension format. Possible content: | Complex type |
File extension content | ||
Name | Description | Type |
---|---|---|
FileName | Name of the file. | Text |
FileLink | Link to download the file. | Text |
FileContentType | Content type of the file. | Text |
Description | File's description. | Text |
Example response - File extension
<
b
:Content
i:type
=
"b:ResourceFileContent"
>
<
b
:Description>description</
b
:Description>
<
b
:FileContentType>text/plain</
b
:FileContentType>
<
b
:FileLink>
https://localhost:1000/f80cdaa1-61ed-4180-8fb5-489f4a512396?Token=gBoGAAEAAAB1heZhAAAAACAABmE6st5Sms0NRW2kp3S3ZVDEkIvg8e9uWCIzoJGY3pMAAA&Download=1
</
b
:FileLink>
<
b
:FileName>add lti.txt</
b
:FileName>
</
b
:Content>
Link extension content | ||
Name | Description | Type |
---|---|---|
Link | Link url. | String |
EmbedLinkTarget | Embed the link target on the page in itslearning. | Boolean |
Description | Link's description. | String |
Example response - Link extension
<
b
:Content
i:type
=
"b:ResourceLinkContent"
>
<
b
:Description/>
<
b
:EmbedLinkTarget>false</
b
:EmbedLinkTarget>
<
b
:Link>
http://test/
</
b
:Link>
</
b
:Content>
Page extension content | ||
Name | Description | Type |
---|---|---|
ContentBlockSet | Represents information about Page's content block. | Parent element |
ContentBlockSet / FileContents | Represents embedded files. | Array of FileContent type |
ContentBlockSet / ContentBlockImages | Represents content of a page's block if it has Images type. | |
ContentBlockSet / ContentBlockText | Represents content of a page's block if it has Text type. | |
ContentBlockSet / ContentBlockFiles | Represents content of a page's block if it has Files type. | |
ContentBlockSet / ContentBlockVote | Represents content of a page's block if it has Vote type. | |
ContentBlockSet / ContentBlockRss | Represents content of a page's block if it has RSS type. | |
FileContent type | ||
Name | File name. | String |
FileId | File Id. | Integer |
ContentType | File content type. | String |
FileLink | File link to download. | String |
ContentBlockImages type | ||
Title | Block title. | String |
Images / BlockImage / Title | Image title. | String |
Images / BlockImage / File | Image file entity. | |
ContentBlockText type | ||
Title | Block title. | String |
Text | Text of the rich text block. | String |
ContentBlockFiles type | ||
Title | Block title. | String |
RootFolder / Files / File | Files from the root folder. | |
RootFolder / Folders / Folder | Subfolders of the root folder. | |
ContentBlockVote type | ||
Title | Block title. | String |
NumberOfVotes | Number of votes. | Integer |
Question | Question text. | String |
Alternatives / VoteAlternative / Text | Text of an alternative. | String |
Alternatives / VoteAlternative / NumberOfVotes | Number of votes of an alternative. | Integer |
Alternatives / VoteAlternative / PersentOfVotes | Percent of votes of an alternative. | Integer |
ContentBlockRss type | ||
Title | Block title. | String |
FeedsUrl | Feed url. | String |
FeedsCount | Feed count. | Integer |
File type | ||
Id | File Id. | Integer |
Folder type | ||
Title | Folder title. | String |
Files | Array of files which belog to the folder. | Array of File type. |
Example response - Page extension
<
Content
i:type
=
"c:PageContent"
xmlns:c
=
"http://schemas.datacontract.org/2004/07/Itslearning.Integration.ContentImport.Model.ServiceEntities.ReadExtensionInstance.ContentEntities.PageContent"
>
<
c
:ContentBlockSets>
<
c
:ContentBlockSet>
<
c
:ContentBlockImages>
<
c
:Title>Image block</
c
:Title>
<
c
:Images>
<
c
:BlockImage>
<
c
:File>
<
c
:Id>1</
c
:Id>
</
c
:File>
<
c
:Title>MicrosoftTeams-image (2)</
c
:Title>
</
c
:BlockImage>
</
c
:Images>
</
c
:ContentBlockImages>
<
c
:FileContents>
<
c
:FileContent>
<
c
:ContentType>image/png</
c
:ContentType>
<
c
:FileId>1</
c
:FileId>
<
c
:FileLink>
https://localhost:1000/0925dd77-2d78-4b7a-86ac-56b579d49f92?Token=gBoGAAEAAAAm-vBhAAAAACAAt_1S1SSoPQVnHbzGPTNek1b_WA35rJkYEj7RR1D15F8AAA&Download=1
</
c
:FileLink>
<
c
:Name>MicrosoftTeams-image+(2).png</
c
:Name>
</
c
:FileContent>
</
c
:FileContents>
</
c
:ContentBlockSet>
<
c
:ContentBlockSet>
<
c
:ContentBlockText>
<
c
:Title>Rich text block</
c
:Title>
<
c
:Text>
<
p
>Texxxxt</
p
>
</
c
:Text>
</
c
:ContentBlockText>
<
c
:FileContents/>
</
c
:ContentBlockSet>
<
c
:ContentBlockSet>
<
c
:ContentBlockFiles>
<
c
:Title>File block</
c
:Title>
<
c
:RootFolder>
<
c
:Files>
<
c
:File>
<
c
:Id>4</
c
:Id>
</
c
:File>
<
c
:File>
<
c
:Id>5</
c
:Id>
</
c
:File>
</
c
:Files>
<
c
:Folders>
<
c
:Folder>
<
c
:Files>
<
c
:File>
<
c
:Id>6</
c
:Id>
</
c
:File>
</
c
:Files>
<
c
:Folders/>
<
c
:Title>Folder for files</
c
:Title>
</
c
:Folder>
</
c
:Folders>
<
c
:Title
i:nil
=
"true"
/>
</
c
:RootFolder>
</
c
:ContentBlockFiles>
<
c
:FileContents>
<
c
:FileContent>
<
c
:ContentType>text/plain</
c
:ContentType>
<
c
:FileId>4</
c
:FileId>
<
c
:FileLink>
https://localhost:1000/1d1546da-d836-45f1-8493-326679c7dbe1?Token=gBoGAAEAAAAm-vBhAAAAACAAt570v5hJnoAvFLstgM6m-dbcZ-jBcNJMGXO83dIvuAEAAA&Download=1
</
c
:FileLink>
<
c
:Name>add lti.txt</
c
:Name>
</
c
:FileContent>
<
c
:FileContent>
<
c
:ContentType>text/plain</
c
:ContentType>
<
c
:FileId>5</
c
:FileId>
<
c
:FileLink>
https://localhost:1000/e43a406d-0f4c-4c3d-8d0c-be783e667686?Token=gBoGAAEAAAAm-vBhAAAAACAAizutFGTQbsVflmOpiAUWn6Wo0k_epRX1B3AHBrKYeHoAAA&Download=1
</
c
:FileLink>
<
c
:Name>add lti (1).txt</
c
:Name>
</
c
:FileContent>
<
c
:FileContent>
<
c
:ContentType>text/plain</
c
:ContentType>
<
c
:FileId>6</
c
:FileId>
<
c
:FileLink>
https://localhost:1000/7aec1c0d-a3ee-4e93-a546-d09bb4ce9e63?Token=gBoGAAEAAAAm-vBhAAAAACAAPhj76VAA7WSrH1fPR_nzD4B7vsL4s_550NJ_GkHgAJIAAA&Download=1
</
c
:FileLink>
<
c
:Name>add lti (2).txt</
c
:Name>
</
c
:FileContent>
</
c
:FileContents>
</
c
:ContentBlockSet>
<
c
:ContentBlockSet>
<
c
:ContentBlockText>
<
c
:Title>Test rich with image</
c
:Title>
<
c
:Text>
<![CDATA[<p><img alt="" height="180" width="180" src="ITSLFileID=1"/></p><p>Texxxxt</p><p><img alt="" height="499" width="1024" src="ITSLFileID=2"/></p>]]>
</
c
:Text>
</
c
:ContentBlockText>
<
c
:FileContents>
<
c
:FileContent>
<
c
:ContentType
i:nil
=
"true"
/>
<
c
:FileId>1</
c
:FileId>
<
c
:FileLink>
https://localhost:1000/75bc00c3-075e-490e-a508-1848f904d61b?Token=gBoGAAEAAAAm-vBhAAAAACAAx5PScYHYaFkxMFNsJpV1FhU7A1Rdlea56cU0DF6NcHoAAA&Download=1
</
c
:FileLink>
<
c
:Name
i:nil
=
"true"
/>
</
c
:FileContent>
<
c
:FileContent>
<
c
:ContentType
i:nil
=
"true"
/>
<
c
:FileId>2</
c
:FileId>
<
c
:FileLink>
https://localhost:1000/5365ed88-94bf-4239-a332-879c35fe16dc?Token=gBoGAAEAAAAm-vBhAAAAACAAVo0JYp0Deco-TWq9hu4BCIxNdQU-IVoELGIK-HkutRgAAA&Download=1
</
c
:FileLink>
<
c
:Name
i:nil
=
"true"
/>
</
c
:FileContent>
</
c
:FileContents>
</
c
:ContentBlockSet>
<
c
:ContentBlockSet>
<
c
:ContentBlockVote>
<
c
:Title>Test poll</
c
:Title>
<
c
:Alternatives>
<
c
:VoteAlternative>
<
c
:NumberOfVotes>1</
c
:NumberOfVotes>
<
c
:PercentOfVotes>100</
c
:PercentOfVotes>
<
c
:Text>Altern1</
c
:Text>
</
c
:VoteAlternative>
<
c
:VoteAlternative>
<
c
:NumberOfVotes>0</
c
:NumberOfVotes>
<
c
:PercentOfVotes>0</
c
:PercentOfVotes>
<
c
:Text>Altern2</
c
:Text>
</
c
:VoteAlternative>
</
c
:Alternatives>
<
c
:NumberOfVotes>1</
c
:NumberOfVotes>
<
c
:Question>Question</
c
:Question>
</
c
:ContentBlockVote>
<
c
:FileContents
i:nil
=
"true"
/>
</
c
:ContentBlockSet>
<
c
:ContentBlockSet>
<
c
:ContentBlockRss>
<
c
:Title>Rss test</
c
:Title>
<
c
:FeedsCount>5</
c
:FeedsCount>
<
c
:FeedsUrl>
https://itslearning.com/feed
</
c
:FeedsUrl>
</
c
:ContentBlockRss>
<
c
:FileContents
i:nil
=
"true"
/>
</
c
:ContentBlockSet>
</
c
:ContentBlockSets>
</
b
:Content>
Assignment extension content | ||
Name | Description | Type |
---|---|---|
Description | Description of assignment. | String |
Files | Represents attached files. | List of FileContent type |
FileContent type | ||
Name | File name. | String |
FileId | File Id. | String |
ContentType | File content type. | String |
FileLink | File link to download. | String |
Example response - Assignment extension
<
a
:Content
i:type
=
"b:AssignmentContent"
xmlns:b
=
"http://schemas.datacontract.org/2004/07/Itslearning.Integration.ContentImport.Model.ServiceEntities.ContentEntities"
>
<
b
:Description><
p
>The Aoraki Mackenzie International Dark Sky Reserve is comprised of Aoraki/Mt. Cook National Park and the Mackenzie Basin of New Zealand’s South island. Outdoor lighting controls were first put into place in the area during the early 1980s. They have not only helped minimize light pollution for the nearby Mt. John Observatory, but also conserve energy, protect wildlife and make the area a popular stargazing destination for tourists.</
p
> <
p
>The natural night has played a critical role in the areaʼs history as its first residents, the Māori, not only used the night sky to navigate to the island but also integrated astronomy and star lore into their culture and daily lives. The reserve seeks to honor that history by keeping the night sky a protected and integral part of the areaʼs natural and cultural landscape. It is a perfect place to protect and honor those traditions as the reserveʼs Mackenzie Basin has the clearest, darkest and the most spectacular night sky in New Zealand.</
p
></
b
:Description>
<
b
:Files>
<
b
:FileContent>
<
b
:ContentType>application/octet-stream</
b
:ContentType>
<
b
:FileId>f/4r6SgXbUi5L2B/so3mxBReW9pigtKOmb9rFctJ9WVLe4gIL0YNnKgIhi7j/adQ</
b
:FileId>
<
b
:FileLink>
https://localhost:1000/e92bfe7f-1728-486d-b92f-607fb28de6c4?Token=gBoGAAIAAAAc-fthAAAAACAAGReTGfWrct13dPUMIoFfi_2SsgT1ipAIUTT4hXD-4VAAAA&Download=1
</
b
:FileLink>
<
b
:Name>OPS-12410_EU1.csv</
b
:Name>
</
b
:FileContent>
<
b
:FileContent>
<
b
:ContentType>image/jpeg</
b
:ContentType>
<
b
:FileId>XHs7tsbD5E6V7WJ5ooV0uAxMEwHoVOyRv/GCtJ3G+KT1lO9ZEAUJZdzhkHgnELkH</
b
:FileId>
<
b
:FileLink>
https://localhost:1000/b63b7b5c-c3c6-4ee4-95ed-6279a28574b8?Token=gBoGAAIAAAAc-fthAAAAACAAIneYFSyOG_qPUT9QfMJM2Rhnt35yrlhkg_G0BMfR3K4AAA&Download=1
</
b
:FileLink>
<
b
:Name>christmas (1).jpg</
b
:Name>
</
b
:FileContent>
<
b
:FileContent>
<
b
:ContentType>video/x-ms-wmv</
b
:ContentType>
<
b
:FileId>wMk3v4qaCkKRGgYo9Ehy7Ubsqi5/bvebP2SblafNIcBSXU+dC97iBVzoT7Z09RJs</
b
:FileId>
<
b
:FileLink>
https://localhost:1000/bf37c9c0-9a8a-420a-911a-0628f44872ed?Token=gBoGAAIAAAAc-fthAAAAACAAKeKvOh0ZzIqHfE5tPdYWvTJVqd240ZbHNWncTzMMfjgAAA&Download=1
</
b
:FileLink>
<
b
:Name>Bear.wmv</
b
:Name>
</
b
:FileContent>
<
b
:FileContent>
<
b
:ContentType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</
b
:ContentType>
<
b
:FileId>3JVgvXThuUeT8JasfuEHR6E3BVDuYY1s696IlBhcF5VlhZ8MBWoefyROsTqRsWoc</
b
:FileId>
<
b
:FileLink>
https://localhost:1000/bd6095dc-e174-47b9-93f0-96ac7ee10747?Token=gBoGAAIAAAAc-fthAAAAACAAcPA4ZoYiwcthhQEKB-1ds7f5v2M-Xa_DFv-hH1WUTXoAAA&Download=1
</
b
:FileLink>
<
b
:Name>lions.docx</
b
:Name>
</
b
:FileContent>
<
b
:FileContent>
<
b
:ContentType>application/pdf</
b
:ContentType>
<
b
:FileId>pbffjzxkMESPhvtF9xjMGYeXsMj07dvzYHJQIxpFBTJZ7/0rmMCdAbNc3a5ZqcdE</
b
:FileId>
<
b
:FileLink>
https://localhost:1000/8fdfb7a5-643c-4430-8f86-fb45f718cc19?Token=gBoGAAIAAAAc-fthAAAAACAAx4zFDMbACgrG1XtVQhUNUocnvEmGs2zI0hMQ8GIDqXAAAA&Download=1
</
b
:FileLink>
<
b
:Name>Getting started.pdf</
b
:Name>
</
b
:FileContent>
</
b
:Files>
</
a
:Content>
Note content | ||
Name | Description | Type |
---|---|---|
Text | Note's text | String |
FileContents | Attachment file list |
Example response - Note element
<
a
:Content
i:type
=
"b:NoteContent"
xmlns:b
=
"http://schemas.datacontract.org/2004/07/Itslearning.Integration.ContentImport.Model.ServiceEntities.ContentEntities"
>
<
b
:FileContents>
<
b
:FileContent>
<
b
:ContentType
i:nil
=
"true"
/>
<
b
:FileId>14</
b
:FileId>
<
b
:FileLink>
https://localhost:1000/5621565f-b4d7-4fea-9d37-ad0884c63846?Token=gBoGAAEAAABENgJiAAAAACAAtnn8wHlSRz2xyy47w0-0DnXK-evIgwxp9ZEA8UxD1JkAAA&Download=1
</
b
:FileLink>
<
b
:Name
i:nil
=
"true"
/>
</
b
:FileContent>
</
b
:FileContents>
<
b
:Text>
<![CDATA[<p><img alt="" height="295" width="443" src="ITSLFileID=14"/></p><p> </p><p><a href="https://site.localhost/TreeLinks?id=852eb609-a78e-4022-8033-3b0cb838eb0c&sourceElementId=505" >Test</a></p>]]>
</
b
:Text>
</
a
:Content>
DeepLink content (present on Read.Extension.Instance) | ||
Name | Description | Type |
---|---|---|
IconUrl | Icon url of the deep link | String |
ThumbnailUrl | Thumbnail url of the deep link | String |
Url | Url of the deep link | String |
PresentationSettings | Presentations settings for DeepLink object | Complex |
PresentationSettings\Custom | Array of custom properties | Array of CustomField element |
PresentationSettings\IFrame | IFrame options | Iframe type |
PresentationSettings\IFrame\Height | IFrame height option | Int |
PresentationSettings\IFrame\Width | IFrame width option | Int |
CustomField element | ||
Name | Description | Type |
---|---|---|
Key | CustomField key | String |
Value | CustomField value | String |
Example response - DeepLink content element
<
a
:Content
i:type
=
"b:DeepLinkContent"
xmlns:b
=
"http://schemas.datacontract.org/2004/07/Itslearning.Integration.ContentImport.Model.ServiceEntities.ContentEntities"
>
<
b
:IconUrl />
<
b
:PresentationSettings>
<
Custom
xmlns
=
""
>
<
CustomField
>
<
Key
>launchMethod</
Key
>
<
Value
>OwnWindow</
Value
>
</
CustomField
>
<
CustomField
>
<
Key
>DTDL</
Key
>
<
Value
>true</
Value
>
</
CustomField
>
<
CustomField
>
<
Key
>dl</
Key
>
<
Value
>
https://edition.thiememeulenhoff.nl/secure/d/stream/geob_e5_h_m1/theory/d38d5cd9-fc99-40e3-aa73-333a335e7fea/d9560cfc-8e4e-4da6-9235-cf1b2cabef1c
</
Value
>
</
CustomField
>
</
Custom
>
<
IFrame
xmlns
=
""
>
<
Height
>0</
Height
>
<
Width
>0</
Width
>
</
IFrame
>
</
b
:PresentationSettings>
<
b
:ThumbnailUrl />
<
b
:Url>
https://localhost:4482/Tool
</
b
:Url>
</
a
:Content>