client_1c_timesheet/api.py
def parse_json(response) -> dict:
        """Parse response json string from server into object

        Parameters
        ----------
        response: requests.response
            containing json encoded string received from API

        Raises
        ------
        APIResponseParseException
            When response text cannot be parsed as json

        Returns
        -------
        Dict
            Parsed json

        """
        try:
            return response.json()
        except JSONDecodeError:
            msg = f"Could not parse response as JSON: '{response.text}'"
            raise APIResponseParseException(msg)
Parse response json string from server into object

        Parameters
        ----------
        response: requests.response
            containing json encoded string received from API

        Raises
        ------
        APIResponseParseException
            When response text cannot be parsed as json

        Returns
        -------
        Dict
            Parsed json

        
Parse response json string from server into object
Parameters

requests.response
containing json encoded string received from API

Raises

APIResponseParseException
When response text cannot be parsed as json

Returns

Dict
Parsed json
Parse response json string from server into object Parameters requests . response containing json encoded string received from API Raises APIResponseParseException When response text cannot be parsed as json Returns Dict Parsed json
def parse_json(response) -> dict:
        try:
            return response.json()
        except JSONDecodeError:
            msg = f"Could not parse response as JSON: '{response.text}'"
            raise APIResponseParseException(msg)
def parse_json ( response ) -> dict : try : return response . json ( ) except JSONDecodeError : msg = f"Could not parse response as JSON: '{response.text}'" raise APIResponseParseException ( msg )
Parse response json string from server into object
Parameters
Parse response json string from server into object Parameters
"""Parse response json string from server into object

        Parameters
        ----------
        response: requests.response
            containing json encoded string received from API

        Raises
        ------
        APIResponseParseException
            When response text cannot be parsed as json

        Returns
        -------
        Dict
            Parsed json

        """
response