def retrieve_last_comment_status(response): content = json.loads(response.content) len_comments = len(content['actor_comments']) return Comment.objects.get( id=id_from_uri(content['actor_comments'][len_comments - 1]) ).status.status_en
def retrieve_user_id(response): return id_from_uri( json.loads(response.content)['assigned_user'] )
def get_status_from_response(response): status_id = id_from_uri( get_key_from_response(response, 'most_recent_status_actor')) return StatusUpdate.objects.get(id=status_id).status_en
def retrieve_last_comment_status(response): content = json.loads(response.content) len_comments = len(content['actor_comments']) return Comment.objects.get( id=id_from_uri(content['actor_comments'][len_comments - 1])).status.status_en
def retrieve_user_id(response): return id_from_uri(json.loads(response.content)['assigned_user'])