#NEWLINE# def get_multiple_devices( self , rids ) : #NEWLINE# #INDENT# "\n            Implements the 'Get Multiple Devices' API.\n\n            Param rids: a python list object of device rids.\n\n            http://docs.exosite.com/portals/#get-multiple-devices\n        " #NEWLINE# headers = { #NEWLINE# #INDENT# 'User-Agent' : self . user_agent ( ) , #NEWLINE# 'Content-Type' : self . content_type ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# headers . update ( self . headers ( ) ) #NEWLINE# url = ( ( self . portals_url ( ) + '/users/_this/devices/' ) + str ( rids ) . replace ( "'" , '' ) . replace ( ' ' , '' ) ) #NEWLINE# r = requests . get ( url , headers = headers , auth = self . auth ( ) ) #NEWLINE# if ( HTTP_STATUS . OK == self . status_code ) : #NEWLINE# #INDENT# return r . json ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'get_multiple_devices: Something went wrong: <{0}>: {1}' . format ( r . status_code , r . reason ) ) #NEWLINE# r . raise_for_status ( )