def get_notification_result(self, stream_id):
with self._connection.get_response(stream_id) as response:<EOL><INDENT>if response.status == <NUM_LIT:200>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>raw_data = response.read().decode('<STR_LIT:utf-8>')<EOL>data = json.loads(raw_data)<EOL>if response.status == <NUM_LIT>:<EOL><INDENT>return data['<STR_LIT>'], data['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>return data['<STR_LIT>']<EOL><DEDENT><DEDENT><DEDENT>
Get result for specified stream
The function returns: 'Success' or 'failure reason' or ('Unregistered', timestamp)