code: def get_query(self, query_params=None):
          
          if query_params is None:
              query_params = {}
          query = ''
          query_params['idSite'] = self.site_id
          if self.api_token is not None:
              query_params['token_auth'] = self.api_token
          for key, value in query_params.iteritems():
              if isinstance(value, list):
                  value = ','.join(value)
              query += '{}={}&'.format(str(key), str(value))
          return query[:-1]
docs: Return a query string