$client
$client : \GuzzleHttp\ClientInterface
$provider : \duncan3dc\Sonos\Cloud\OAuthProvider
request(\duncan3dc\Sonos\Cloud\string $method, \duncan3dc\Sonos\Cloud\string $url, array $data, \League\OAuth2\Client\Token\AccessToken $token) : \stdClass
Send a request and return the response.
\duncan3dc\Sonos\Cloud\string | $method | The HTTP verb to use for the request |
\duncan3dc\Sonos\Cloud\string | $url | The url to issue the request to (https://api.ws.sonos.com/control/api/v1/ is optional) |
array | $data | The parameters to send with the request |
\League\OAuth2\Client\Token\AccessToken | $token | The access token for authorisation |
getUser(\duncan3dc\Sonos\Cloud\string $username, \Psr\SimpleCache\CacheInterface $cache = null) : \duncan3dc\Sonos\Cloud\Interfaces\UserInterface
Get a user instance.
\duncan3dc\Sonos\Cloud\string | $username | |
\Psr\SimpleCache\CacheInterface | $cache |