Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

What must I adjust to make this request work to get a full set of viewing stats?

I am trying to get pagination working for the GetSessionExtendedDetailedUsage API, but regardless of the settings I use it seems to give me the first 25 results. As an example request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:pan="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40">

   <soapenv:Header/>

   <soapenv:Body>

      <tem:GetSessionExtendedDetailedUsage>

         <tem:auth>

            <pan:Password>***</pan:Password>

            <pan:UserKey>***</pan:UserKey>

         </tem:auth>

         <tem:sessionId>ccb94674-a2af-4969-bc52-af9d00fc088d</tem:sessionId>

         <tem:beginRange>2023-01-01</tem:beginRange>

         <tem:endRange>2023-05-08</tem:endRange>

         <tem:pagination>

            <pan:MaxNumberResults>10</pan:MaxNumberResults>

            <pan:PageNumber>2</pan:PageNumber>

         </tem:pagination>

      </tem:GetSessionExtendedDetailedUsage>

   </soapenv:Body>

</soapenv:Envelope>

This gives me a list of 25 ExtendedDetailedUsageResponseItems

What must I adjust to make this request work, or alternatively is there another API that will allow me to get the full set of viewing statistics for sessions (at least which user ids viewed and how much of the session they viewed)?

I look forward to hearing from you

Answers

  • Nedim DeliahmetovicNedim Deliahmetovic Panopto Employee

    Hi Al-Ridhaa,

    Thanks for contacting Panopto. I will try to help you about your request and needed paginated response.

    For SOAP API request order of request data within envelope is important. Valid order is: auth, sessionId, pagination, beginRange, endRange.

    Here is a example of valid SOAP API envelope:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Body>
            <GetSessionExtendedDetailedUsage xmlns="http://tempuri.org/">        
                <auth xmlns:a="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                    <a:Password>***</a:Password>
                    <a:UserKey>***</a:UserKey>
                </auth>
                <sessionId>79172b62-3027-4c57-be26-ae9b00c665c8</sessionId>
                <pagination xmlns:p="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                    <p:MaxNumberResults>2</p:MaxNumberResults>
                    <p:PageNumber>1</p:PageNumber>
                </pagination>
                <beginRange>2018-01-01</beginRange>
                <endRange>2023-12-31</endRange>
            </GetSessionExtendedDetailedUsage>
        </s:Body>
    </s:Envelope>
    

    I hope this will help you to resolve your issue.

    Please let us know if you have additional questions.

    Regards,

    Panopto team.

Sign In or Register to comment.