#NEWLINE# @ property #NEWLINE# def albums( self ) : #NEWLINE# #INDENT# request = self . session . get ( ( '%s/folders' % self . _service_endpoint ) , params = self . params ) #NEWLINE# response = request . json ( ) #NEWLINE# albums = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for folder in response [ 'folders' ] : #NEWLINE# #INDENT# if ( not ( folder [ 'type' ] == 'album' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# album = PhotoAlbum ( folder , self ) #NEWLINE# albums [ album . title ] = album #NEWLINE# #UNINDENT# return albums