I am using the Xibo API and while I was searching for a way to get the ID of a region, playlist and widget, I saw that I could write something to embed datas about regions, playlists, tags, etc…
(https://xibo.org.uk/manual/api/#/layout/layoutSearch)
I wrote this line : $getLayoutWhere = (new Xibo\OAuth2\Client\Entity\XiboLayout($entityProvider))->get(array(‘layoutId’=>75));
but I have no idea how to tell Xibo to embed the datas about regions and everything.
In this line for exemple, I am trying to get the layout with the ID 75 to display the datas, and it’s working, but what should I modifie/add to see the datas about the regions or playlists related to this layout ?
I’ve tried it but unfortunatly, I had the same result as before
Here is a screenshot of what I get when calling: $layout = (new \Xibo\OAuth2\Client\Entity\XiboLayout($entityProvider))->get([‘layoutId’=> 48, ‘embed’=>‘regions,playlists,widgets’]);
It’s working within postman with that query : {{url}}/api/layout?layoutId=48embed=regions,playlists,widgets
but I still haven’t found the correct syntax I can use in PHP.
Had to delete the folder content, then run “composer require xibosignage/oauth2-xibo-cms”
Then I went into the composer.json file and edited it like that :
Finaly I runned “composer update” and that’s it.