def get_oauth_consumer_key():
 req = user_service_pb.CheckOAuthSignatureRequest()
 resp = user_service_pb.CheckOAuthSignatureResponse()
 try:
  apiproxy_stub_map.MakeSyncCall('user', 'CheckOAuthSignature', req, resp)
 except apiproxy_errors.ApplicationError as e:
  if (e.application_error == user_service_pb.UserServiceError.OAUTH_INVALID_REQUEST):
   raise InvalidOAuthParametersError(e.error_detail)
  elif (e.application_error == user_service_pb.UserServiceError.OAUTH_ERROR):
   raise OAuthServiceFailureError(e.error_detail)
  else:
   raise OAuthServiceFailureError(e.error_detail)
 return resp.oauth_consumer_key()

def get_oauth_consumer_key ( ) : req = user_service_pb . CheckOAuthSignatureRequest ( ) resp = user_service_pb . CheckOAuthSignatureResponse ( ) try : apiproxy_stub_map . MakeSyncCall ( 'user' , 'CheckOAuthSignature' , req , resp ) except apiproxy_errors . ApplicationError as e : if ( e . application_error == user_service_pb . UserServiceError . OAUTH_INVALID_REQUEST ) : raise InvalidOAuthParametersError ( e . error_detail ) elif ( e . application_error == user_service_pb . UserServiceError . OAUTH_ERROR ) : raise OAuthServiceFailureError ( e . error_detail ) else : raise OAuthServiceFailureError ( e . error_detail ) return resp . oauth_consumer_key ( )
returns the value of the oauth_consumer_key parameter from the request .