Panda3D
Classes | Functions | Variables
direct.http.recaptcha Namespace Reference

Classes

class  RecaptchaResponse
 

Functions

def displayhtml (public_key, use_ssl=False, error=None)
 
def submit (recaptcha_challenge_field, recaptcha_response_field, private_key, remoteip)
 

Variables

string API_SERVER = "http://api.recaptcha.net"
 
string API_SSL_SERVER = "https://api-secure.recaptcha.net"
 
string VERIFY_SERVER = "api-verify.recaptcha.net"
 

Function Documentation

◆ displayhtml()

def direct.http.recaptcha.displayhtml (   public_key,
  use_ssl = False,
  error = None 
)
Gets the HTML to display for reCAPTCHA

public_key -- The public api key
use_ssl -- Should the request be sent over ssl?
error -- An error message to display (from RecaptchaResponse.error_code)

◆ submit()

def direct.http.recaptcha.submit (   recaptcha_challenge_field,
  recaptcha_response_field,
  private_key,
  remoteip 
)
Submits a reCAPTCHA request for verification. Returns RecaptchaResponse
for the request

recaptcha_challenge_field -- The value of recaptcha_challenge_field from the form
recaptcha_response_field -- The value of recaptcha_response_field from the form
private_key -- your reCAPTCHA private key
remoteip -- the user's ip address

Variable Documentation

◆ API_SERVER

string API_SERVER = "http://api.recaptcha.net"

◆ API_SSL_SERVER

string API_SSL_SERVER = "https://api-secure.recaptcha.net"

◆ VERIFY_SERVER

string VERIFY_SERVER = "api-verify.recaptcha.net"