Skip to content

Latest commit

 

History

History
 
 

cjd_sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Cloud Job Discovery client samples

Open in Cloud Shell

Cloud Job Discovery is part of Google for Jobs - a Google-wide commitment to help people find jobs more easily. Job Discovery provides plug and play access to Google’s search and machine learning capabilities, enabling the entire recruiting ecosystem - company career sites, job boards, applicant tracking systems, and staffing agencies to improve job site engagement and candidate conversion.

This sample Java application demonstrates how to access the Cloud Job Discovery API using the Google Cloud Client Library for Java.

Setup

  1. Install Maven.
  2. Enable Cloud Job Discovery API.

Build

Build your project with:

   mvn clean package

Local testing

  1. Create a service account and set the GOOGLE_APPLICATION_CREDENTIALS environment variable, for example:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/key.json
  1. Run all samples with command:
   mvn -Dtest=SampleTests test

Or a single sample:

   mvn exec:java -Dexec.mainClass="com.google.samples.BatchOperationSample"