1. Go to this page and download the library: Download soloser/vcv-php-client 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/ */
soloser / vcv-php-client example snippets
= new Api('your_access_token');
$api->users->me();
//return the vacancies api
$vacancies = $api->vacancies
//Build filter by title request
$request = (new ApiRequestBuilder())
->withUser()
->whereTitle('(copy)')
->getRequest();
//returns list of vacancies
$vacancies->list($request);
//return the Vacancy 123
$vacancies->getById(123);
//delete vacancy 123
$vacancies->delete(123);
//return current user
$user = $api->users->me();
//return response comments api
$comments = $api->responseComments;
//Build request for filtering comments created by current user
$request = (new ApiRequestBuilder())
->whereUserId($user['user']['id'])
->setPageSize(10)
->getRequest();
//list comments by filter
$response = $comments->list($request);
foreach ($response['_embedded']['comments'] as $comment) {
$comment['message'] = $comment['message'] . ' [UPDATED]';
//update response comment message
$comments->update($comment['id'], $comment);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.