@classmethod
def from_credentials(cls, device_id, api_key):
    """
        Initializes the API with credentials only and uses the default settings for everything else.

        :param device_id:   The id of the device that the API is trying to connect to.
        :param api_key:     The given API key needed to connect to the server.
        :type device_id: str
        :type api_key: str
        """
    return cls({'deviceId': device_id, 'apiKey': api_key})
