code: def _request(self, typ, id=0, method='GET', params=None, data=None,
                   url=None):
          
          backend, backend_version = peeringdb.get_backend_info()
          user_agent = 'PeeringDB/{} {}/{}'.format(peeringdb.__version__,
                                                   backend, backend_version)
          headers = {
              "Accept": "application/json",
              "User-Agent": user_agent,
          }
          auth = None
  
          if self.user:
              auth = (self.user, self.password)
          if not url:
              if id:
                  url = "%s/%s/%s" % (self.url, typ, id)
              else:
                  url = "%s/%s" % (self.url, typ)
  
          return requests.request(method, url, params=params, data=data,
                                  auth=auth, headers=headers)
docs: send the request, return response obj