You can obtain information about a content item with the getContentItem method.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
Parameter | Type | Description |
---|---|---|
credentials (required) | credentials | Read the description of the Credentials object. |
contentItemId (required) | string | ID of a content item. |
Text | Description |
---|---|
Unknown content item | The content item with the specified ID was not found. |
After the request has been completed, the system returns an object with the following properties:
Parameter | Type | Description |
---|---|---|
contentItemId | string | ID of the specified content item. |
title | string | Title of the specified content item. |
description | string | Description of the specified content item. |
userId | string | ID of the user who created the given content item. |
addedDate | date | Date when the given content item was added. |
viewUrl | string | Absolute URL of the given content item. |
type | string | Type of the content item. |
<?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <GetContentItemRequest> <credentials> <accountUrl>http://myaccount.ispringlearn.com</accountUrl> <email>email@email.com</email> <password>password</password> </credentials> <contentItemId>1234</contentItemId> </GetContentItemRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
<?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <GetContentItemResult> <contentItem> <contentItemId>1234</contentItemId> <title>title</title> <description>description</description> <userId>1</userId> <addedDate>2017-02-22T19:54:50+03:00</addedDate> <viewUrl>http://myaccount.ispringlearn.com/content/1234</viewUrl> <type>Assignment</type> </contentItem> </GetContentItemResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |