import com.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient; import com.google.recaptchaenterprise.v1.Assessment; import com.google.recaptchaenterprise.v1.CreateAssessmentRequest; import com.google.recaptchaenterprise.v1.Event; import com.google.recaptchaenterprise.v1.ProjectName; import com.google.recaptchaenterprise.v1.RiskAnalysis.ClassificationReason; import java.io.IOException; public class CreateAssessment { public static void main(String[] args) throws IOException { // TODO: Replace the token and reCAPTCHA action variables before running the sample. String projectID = "pitch-my-project"; String recaptchaKey = "6LeaCNorAAAAAEFKnlA4gNFOsxK7qjNysjuZBkh5"; String token = "action-token"; String recaptchaAction = "action-name"; createAssessment(projectID, recaptchaKey, token, recaptchaAction); } /** * Create an assessment to analyze the risk of a UI action. * * @param projectID : Your Google Cloud Project ID. * @param recaptchaKey : The reCAPTCHA key associated with the site/app * @param token : The generated token obtained from the client. * @param recaptchaAction : Action name corresponding to the token. */ public static void createAssessment( String projectID, String recaptchaKey, String token, String recaptchaAction) throws IOException { // Create the reCAPTCHA client. // TODO: Cache the client generation code (recommended) or call client.close() before exiting the method. try (RecaptchaEnterpriseServiceClient client = RecaptchaEnterpriseServiceClient.create()) { // Set the properties of the event to be tracked. Event event = Event.newBuilder().setSiteKey(recaptchaKey).setToken(token).build(); // Build the assessment request. CreateAssessmentRequest createAssessmentRequest = CreateAssessmentRequest.newBuilder() .setParent(ProjectName.of(projectID).toString()) .setAssessment(Assessment.newBuilder().setEvent(event).build()) .build(); Assessment response = client.createAssessment(createAssessmentRequest); // Check if the token is valid. if (!response.getTokenProperties().getValid()) { System.out.println( "The CreateAssessment call failed because the token was: " + response.getTokenProperties().getInvalidReason().name()); return; } // Check if the expected action was executed. if (!response.getTokenProperties().getAction().equals(recaptchaAction)) { System.out.println( "The action attribute in reCAPTCHA tag is: " + response.getTokenProperties().getAction()); System.out.println( "The action attribute in the reCAPTCHA tag " + "does not match the action (" + recaptchaAction + ") you are expecting to score"); return; } // Get the risk score and the reason(s). // For more information on interpreting the assessment, see: // https://cloud.google.com/recaptcha-enterprise/docs/interpret-assessment for (ClassificationReason reason : response.getRiskAnalysis().getReasonsList()) { System.out.println(reason); } float recaptchaScore = response.getRiskAnalysis().getScore(); System.out.println("The reCAPTCHA score is: " + recaptchaScore); // Get the assessment name (id). Use this to annotate the assessment. String assessmentName = response.getName(); System.out.println( "Assessment name: " + assessmentName.substring(assessmentName.lastIndexOf("/") + 1)); } } }
Request a Quote

Get in touch today

Interested? Contact us and we'll get started.

Your message has been submitted.
We will get back to you as soon as possible.
Oops! Something went wrong.
FAQs

Frequently Asked Questions

Interested in learning more? Check out some of the most frequently asked questions.

Are the prices negotiable?

Yes. Our team will assess your project and will negotiate a possible backend option (i.e. equity stake) based on project complexity and likelihood of distribution.

How does each plan work?

In the Standard Plan, we schedule a 1-on-1 session to get insight into your project before our team will dive into market research and copywriting associated with your genre and concept. At the end, you will receive an initial design mockup for approval before the final export as a PDF.

In the Premium Plan, we will work to build a one-page website to host both an online-version of the PDF as well as provide additional insight into your project for investors and executives. We will also provide additional guidance and consulting support with regard to your project and how to best get it into the marketplace.

In the Deluxe Plan, we will provide your project with custom concept art showcasing it’s unique settings and characters while also creating a promo/ sizzle video to add to the website as an additional proof-of-concept.

What happens after the deck is created?

If you ordered a Premium or Deluxe plan, we will schedule a one-on-one call to strategize where and how to disseminate your new deck.

Can I get a quote for a custom package?

Of course!  We offer plenty of customization options including creating a full-investor package (i.e. schedule/ budget), animatics and additional pitch package elements.

What is the typical timeline?

Depends on you and your project, but typically the turnaround time is 3-5 days.

Are there any additional costs?

Depends on you and your project. The website will be hosted on our server, while the promo video and deck will be put together using stock footage and stock images unless otherwise specified.