bosesoundtouchapi.soundtouchmodelrequest
@export
class
SoundTouchModelRequest:
A class representing a model that can issue a POST request with an xml payload that gets placed in the request body.
@abstractmethod
def
ToXmlRequestBody(self, encoding: str = 'utf-8') -> str:
Returns a POST request body, which is used to update the device configuration.
Arguments:
- encoding (str): encode type (e.g. 'utf-8', 'unicode', etc).
Default is 'utf-8'.
Returns:
An xml string that can be used in a POST request to update the device configuration.