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.
Options

I'm trying to list all recordings from date1 to date 2....but it is timing out repeatedly...

Hello all.

I've successfully been able to list specific recordings for a FolderID bewteen two dates. So I'm sure I'm sending in the correct date formats however when I decided to seen in NULL as the folder ID or omit the folder ID from the ListSessionsRequest that I build before sending it in to Panopto it just spins and spins and spins.


I need to find all the recordings on a specified date..

Here is an example of the PHP code we are using. Do I need to build the ListSessionRequest wit


$startDate = new \DateTime($start);

$endDate = new \DateTime($end);

$paga = new \Panopto\SessionManagement\Pagination();

$paga->setMaxNumberResults(500);


$lsr = new \Panopto\SessionManagement\ListSessionsRequest();

if(!is_null($folderid)){

$lsr->setFolderId($folderid);

}

$lsr->setPagination($paga);


if(!is_null($start)){

$lsr->setStartDate($startDate);

}

if(!is_null($end)){

$lsr->setEndDate($endDate);

}

#$lsr->setEndDate($endDate);

#$lsr->setStartDate($startDate);

$sessionstate = new \Panopto\SessionManagement\ArrayOfSessionState();

$myarray = $states;

$thearrayobject = $sessionstate->setSessionState($myarray);

$lsr->setStates($sessionstate->getSessionState());

#var_dump($lsr);

#echo('<BR><BR>');

#exit();

try {

$param = new \Panopto\SessionManagement\GetSessionsList($this->auth, $lsr, "");

$reply = $this->smclient->GetSessionsList($param)->getGetSessionsListResult()->getResults()->getSession();



BELOW is the PARAMETERS I'm sending into GETSESSIONSLIST endpoint.


object(Panopto\SessionManagement\GetSessionsList)#99 (3) {

["auth":protected]=>

object(Panopto\Auth\AuthenticationInfo)#89 (3) {

["AuthCode":protected]=>

NULL

["Password":protected]=>

string(13) "XXXXX!"

["UserKey":protected]=>

string(6) "XXXXXXX"

}

["request":protected]=>

object(Panopto\SessionManagement\ListSessionsRequest)#78 (8) {

["EndDate":protected]=>

string(25) "2021-10-12T00:00:00-04:00"

["FolderId":protected]=>

NULL

["Pagination":protected]=>

object(Panopto\SessionManagement\Pagination)#79 (2) {

["MaxNumberResults":protected]=>

int(500)

["PageNumber":protected]=>

NULL

}

["RemoteRecorderId":protected]=>

NULL

["SortBy":protected]=>

NULL

["SortIncreasing":protected]=>

NULL

["StartDate":protected]=>

string(25) "2021-10-11T00:00:00-04:00"

["States":protected]=>

array(1) {

[0]=>

string(9) "Scheduled"

}

}

["searchQuery":protected]=>

string(0) ""

}

Answers

  • Options
    Joe MalmstenJoe Malmsten Panopto Employee

    Hi,


    We may need some additional information in order to investigate this further for you. Can you please open a support ticket at https://support.panopto.com so we can get some more detailed information from you?


    Thanks,


    Joe Malmsten

Sign In or Register to comment.