code: def get_oauth_request(self):
          
  
          try:
              method = os.environ['REQUEST_METHOD']
          except:
              method = 'GET'
  
          postdata = None
          if method in ('POST', 'PUT'):
              postdata = self.request.body
  
          return oauth.Request.from_request(method, self.request.uri,
              headers=self.request.headers, query_string=postdata)
docs: Return an OAuth Request object for the current request.