You can obtain information about a content item with the getContentItem method.

Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.


Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
contentItemId (required)stringID of a content item.

Possible Errors

TextDescription
Unknown content itemThe content item with the specified ID was not found.


Return Value

After the request has been completed, the system returns an object with the following properties:

ParameterTypeDescription
contentItemIdstringID of the specified content item.
titlestringTitle of the specified content item.
descriptionstringDescription of the specified content item.
userIdstringID of the user who created the given content item.
addedDatedateDate when the given content item was added.
viewUrlstringAbsolute URL of the given content item.
typestringType of the content item.


Sample Call

<?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

Sample Response

<?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>
XML