Get Catalog Items List

Get Catalog Items

This API is used to get a list of items in the catalog.


API Details

Signature of API call

connection.invokeApi(String uri, String realUserName, Map<String, String> requestParameters);

See details about invoking API in general


Parameter 1 - URI


Parameter 2 - UserName

Username of the site admin


Parameter 3 - Request Parameters

Name Value
dispatch getCatalogItems
xml true
productType Optional - can be CS, PS or EV to get only course sessions, program sessions or events. By default, all are returned. 
subject1 metadata ID of the subject for filtering the result. 

metadata ID of the region for filtering the result.


metadata ID of complexity for filtering the result. Can be comma separated for multiple. 


metadata ID of skillLevel for filtering the result. Can be comma separated for multiple. 

exam metadata ID of exam for filtering the result. Can be comma separated for multiple. 
courseName Name of the item for filtering. Can be the name of the course session, program session, or event. 
paging parameters
currPage page number to fetch, must be specified for 2nd page onwards. Value of currPage starts at 0. So for page 2 specify currPage = 1
numItems total records in the list, must be specified for 2nd page onwards. You can get the count of records from the response of the first page. then pass it as-is in subsequent pages.
pageSize Number of items in a page



Response on successfully getting the list

HTTP Response Code = HttpServletResponse.SC_OK

Response XML

<response code="0">





                <![CDATA[ Success ]]>





        <items numItems="22" currPage="0" pageSize="10">

            <item id="3901cb71-6ce1-11e5-83c0-00163e006318" entityId="48ab6d4a-6ce1-11e5-83c0-00163e006318"

                entityType="COURSE_SESSION" price="0.0" currency="USD"

                freeByAutoCode="true" freeByCodeId="8367f959-72af-11e7-8cba-00163e0076fa">

                <courseSession id="58ab644a-6ce1-11e5-83c0-00163e006318"




                        <![CDATA[ Weekly Schedule Example 1 ]]>



                        <![CDATA[ wkex1 ]]>



                        <![CDATA[ Example course with weekly schedule ]]>



                        <![CDATA[ ACTIVE ]]>










                        <![CDATA[ Training ]]>










                        <![CDATA[ 38157b10-8284-11e5-83c0-00163e006318.png ]]>



                        <![CDATA[ Overview ]]>



                        <![CDATA[ USA Mexico ]]>




            <item id="2bf8628e-f3b0-11e6-8cba-00163e0076fa" entityId="2b27cf3a-f3b0-11e6-8cba-00163e0076fa"

                entityType="PROGRAM_SESSION" price="0.0" currency="USD"

                freeByAutoCode="true" freeByCodeId="2367f259-12af-12e7-8cba-00163e0076fa">

                <programSession id="2bf7cf3a-f3b0-1126-8cba-00163e0076fa"

                    programId="2e0cc530-f311-1126-8cba-00163e0076fa" numCourses="0"



                        <![CDATA[ Sales Professional Accreditations 2015 ]]>



                        <![CDATA[ SALES2015 ]]>




                        A sales-related role, then your first step on your education journey is to become a Sales Expert.




                        <![CDATA[ ACTIVE ]]>










                        <![CDATA[ 2561c976-40f6-11e7-b7e1-00163e0076fa.png ]]>



                        <![CDATA[ Sales Engineer ]]>



                        <![CDATA[ Marketing and Sales ]]>




            <item id="e1100266-9129-11e7-81da-00163e0076fa" entityId="e0fc28a9-9129-11e7-81da-00163e0076fa"

                entityType="EVENT" price="0.0" currency="USD" freeByAutoCode="true"


                <event id="e0fc28a9-9129-11e7-81da-00163e0076fa" type="CONFERENCE"

                    status="ACTIVE" accessType="PAID" fullAndWaitListEnabled="false"

                    full="false" waitlisted="false">


                        <![CDATA[ Live Meeting Sep 27, 2017 ]]>







                        <![CDATA[ ../att/4f7178e2-924e-11e7-81da-00163e0076fa ]]>




                        <![CDATA[ 4f7278e2-924e-11e7-81da-00163e0076fa.png ]]>




                        <![CDATA[ 47537715 ]]>



                        <![CDATA[ 568053832219070731 ]]>










Code Snippet

/* Check API Call for detail */

Map<String, String> parameters = new HashMap<String, String>();
String result = connection.invokeApi("", "adminusername", parameters);
private void populateMapForCatalogList(Map<String, String> parameters) {
    parameters.put("dispatch", "getCatalogItems
    parameters.put("xml", String.valueOf(true));