Skip to content

GetFoldersByExternalID appears not to be returning anything #4

@walkerjamie

Description

@walkerjamie

Hi;

We have encountered an issue recently where our API GetFoldersByExternalID (and GetAllFoldersByExternalID) queries are all failing (they have worked for years). In our Panopto client model we have this code:

public function get_folderid_by_externalid($externalid) {
        try {
            echo "<h1>get_folderid_by_externalid called in Panopto model :</h1>";
            //$param = new \Panopto\SessionManagement\GetFoldersByExternalId($this->auth, array($externalid),'BCCanvas'); //with provider param
            $param = new \Panopto\SessionManagement\GetFoldersByExternalId($this->auth, array($externalid)); //no provider param

            $folders = $this->smclient->GetFoldersByExternalId($param)->getGetFoldersByExternalIdResult();

        } catch(Exception $e) {
            throw new SoapFault('client', $e->getMessage());
        }

        if (count($folders)) { 
            return $folders[0]->getId();
        }
        return false;
    }

Here is our payload:

Panopto\SessionManagement\GetFoldersByExternalId Object
(
    [auth:protected] => Panopto\Auth\AuthenticationInfo Object
        (
            [AuthCode:protected] => 
            [Password:protected] => xxxxxxxxx
            [UserKey:protected] => xxxxx
        )

    [folderExternalIds:protected] => Array
        (
            [0] => 1667293
        )

)

Here is the response from Postman:

<h1>getGetFoldersByExternalIdResult:</h1>object(Panopto\SessionManagement\ArrayOfFolder)#85 (1) {
  ["Folder":protected]=>
  NULL
}

Any clue as to what has gone wrong?
Many Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions