Getting Started
Most actions start from the Household object which has a set of methods for getting Sonos resources.
Household
Once you’ve got an authenticated User object you can get all the households they have like so:
$households = $user->getHouseholds();
Or if you know the specific ID of the household you want to control:
$household = $user->getHousehold("Sonos_G5Lv5sdgPfXZ5.hGpwSaya");
Players
You can get all of the speakers available:
$players = $household->getPlayers();
Or the players for a particular room:
$players = $household->getPlayersByRoom("Living Room");
Or a single speaker for a particular room:
$office = $household->getPlayerByRoom("Office");