code: def get_device(self, rid):
          
          headers = {
                  'User-Agent': self.user_agent(),
                  'Content-Type': self.content_type()
          }
          headers.update(self.headers())
  
          url = self.portals_url()+'/devices/'+rid
          # print("URL: {0}".format(url))
  
          r = requests.get(   url,
                              headers=headers,
                              auth=self.auth())
      
          if HTTP_STATUS.OK == r.status_code:
              # fix the 'meta' to be dictionary instead of string
              device_obj = r.json()
              # device_obj['info']['description']['meta'] = \
                      # json.loads(device_obj['info']['description']['meta'])
              return device_obj
          else:
              print("get_device: Something went wrong: <{0}>: {1}".format(
                          r.status_code, r.reason))
              r.raise_for_status()
docs: Retrieve the device object for a given RID.
  
              http://docs.exosite.com/portals/#get-device