public static void main()

in Java/CreateHITSample.java [46:68]


	public static void main(final String[] argv) throws IOException {
		/* 
		Use the Amazon Mechanical Turk Sandbox to publish test Human Intelligence Tasks (HITs) without paying any money.
		Sign up for a Sandbox account at https://requestersandbox.mturk.com/ with the same credentials as your main MTurk account
		
		Switch to getProdClient() in production. 
		Uncomment line 60, 61, & 66 below to create your HIT in production.
			
		*/
		
		final CreateHITSample sandboxApp = new CreateHITSample(getSandboxClient());
		final HITInfo hitInfo = sandboxApp.createHIT(QUESTION_XML_FILE_NAME);
		
		// final CreateHITSample prodApp = new CreateHITSample(getProdClient());
		// final HITInfo hitInfo = prodApp.createHIT(QUESTION_XML_FILE_NAME);
				
		System.out.println("Your HIT has been created. You can see it at this link:");
		
		System.out.println("https://workersandbox.mturk.com/mturk/preview?groupId=" + hitInfo.getHITTypeId());	
		// System.out.println("https://www.mturk.com/mturk/preview?groupId=" + hitInfo.getHITTypeId());
		
		System.out.println("Your HIT ID is: " + hitInfo.getHITId());
	}