PHP code example of google / cloud-talent
1. Go to this page and download the library: Download google/cloud-talent library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
google / cloud-talent example snippets
use Google\Cloud\Talent\V4\Company;
use Google\Cloud\Talent\V4\CompanyServiceClient;
$client = new CompanyServiceClient();
$response = $client->createCompany(
CompanyServiceClient::projectName('spaceman-spiff2'),
new Company([
'display_name' => 'Google, LLC',
'external_id' => 1,
'headquarters_address' => '1600 Amphitheatre Parkway, Mountain View, CA'
])
);