strawpoll/strawpoll_api_reader.py
def from_json(cls, json_string):
        """
        Constructs a poll instance from a JSON string
        returned by strawpoll.me API
        """
        api_response = json.loads(json_string)
        response_keys = set(api_response.keys())
        if response_keys.issubset(cls.API_KEYWORDS):
            return cls(data=api_response)

        Constructs a poll instance from a JSON string
        returned by strawpoll.me API
        
Constructs a poll instance from a JSON string
returned by strawpoll.me API
Constructs a poll instance from a JSON string returned by strawpoll . me API
def from_json(cls, json_string):
        api_response = json.loads(json_string)
        response_keys = set(api_response.keys())
        if response_keys.issubset(cls.API_KEYWORDS):
            return cls(data=api_response)
def from_json ( cls , json_string ) : api_response = json . loads ( json_string ) response_keys = set ( api_response . keys ( ) ) if response_keys . issubset ( cls . API_KEYWORDS ) : return cls ( data = api_response )
Constructs a poll instance from a JSON string
returned by strawpoll.me API
Constructs a poll instance from a JSON string returned by strawpoll . me API
"""
        Constructs a poll instance from a JSON string
        returned by strawpoll.me API
        """
cls
json_string