Skip to content

Commit 88daa4e

Browse files
authored
Cloud Job Discovery samples
1 parent b3dea20 commit 88daa4e

29 files changed

+5369
-0
lines changed

jobs/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Google Cloud Job Discovery API Samples
2+
3+
## Description
4+
5+
These samples show how to use the [Google Cloud Job Discovery API]
6+
(https://cloud.google.com/job-discovery/).
7+
8+
## Build and Run
9+
1. **Enable APIs** - [Enable the Job Discovery API](https://console.cloud.google.com/flows/enableapi?apiid=jobs.googleapis.com)
10+
and create a new project or select an existing project.
11+
2. **Activate your Credentials** - If you do not already have an active set of credentials, create and download a [JSON Service Account key](https://pantheon.corp.google.com/apis/credentials/serviceaccountkey). Set the environment variable `GOOGLE_APPLICATION_CREDENTIALS` as the path to the downloaded JSON file.
12+
3. **Clone the repo** and cd into this directory
13+
14+
```
15+
$ git clone https://github.com/GoogleCloudPlatform/php-docs-samples
16+
$ cd php-docs-samples/jobs
17+
```
18+
4. **Install dependencies** via [Composer](http://getcomposer.org/doc/00-intro.md).
19+
Run `php composer.phar install` (if composer is installed locally) or `composer install`
20+
(if composer is installed globally).
21+
5. Run `php quickstart.php`.
22+
23+
## Contributing changes
24+
25+
* See [CONTRIBUTING.md](../../CONTRIBUTING.md)
26+
27+
## Licensing
28+
29+
* See [LICENSE](../../LICENSE)

jobs/composer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"require": {
3+
"google/apiclient": "^2.1",
4+
"symfony/console": " ^3.0"
5+
},
6+
"require-dev": {
7+
"phpunit/phpunit": "^5.0"
8+
},
9+
"autoload": {
10+
"files": [
11+
"src/auto_complete_sample.php",
12+
"src/basic_company_sample.php",
13+
"src/basic_job_sample.php",
14+
"src/batch_operation_sample.php",
15+
"src/commute_search_sample.php",
16+
"src/custom_attribute_sample.php",
17+
"src/email_alert_search_sample.php",
18+
"src/featured_jobs_search_sample.php",
19+
"src/general_search_sample.php",
20+
"src/histogram_sample.php",
21+
"src/location_search_sample.php",
22+
"src/var_export.php"
23+
]
24+
}
25+
}

0 commit comments

Comments
 (0)