Class GetAvailableDevicesRequest

All Implemented Interfaces:
IRequest<Device[]>

public class GetAvailableDevicesRequest extends AbstractDataRequest<Device[]>
Get information about a user’s available Spotify Connect devices. Some device models are not supported and will not be listed in the API response.
See Also:
  • Method Details

    • execute

      public Device[] execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
      Send the request.
      Returns:
      A set of devices
      Throws:
      IOException - In case of networking issues.
      SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.
      org.apache.hc.core5.http.ParseException - The response could not be parsed.