#NEWLINE# def get_user_details( self , response ) : #NEWLINE# #INDENT# user_info = response [ 'response' ] [ 'user' ] #NEWLINE# data = { #NEWLINE# #INDENT# 'username' : user_info [ 'name' ] , #NEWLINE# #UNINDENT# } #NEWLINE# blog = first ( ( lambda blog : blog [ 'primary' ] ) , user_info [ 'blogs' ] ) #NEWLINE# if blog : #NEWLINE# #INDENT# data [ 'fullname' ] = blog [ 'title' ] #NEWLINE# #UNINDENT# return data