hhru

This project is not covered by Drupal’s security advisory policy.

hh.ru - HeadHunter.

This module provides integration with https://www.hh.ru/ service through API.
It needs the library https://github.com/seregazhuk/php-headhunter-api

Installation

How to install the library:

  1. Go to /sites/all/libraries directory
  2. Run composer require seregazhuk/headhunter-api

It needs Composer to install all additional libraries.
Instruction about the library you can see here

How to use

Some operations don't need the token to access to info - for example, view vacancy.
Just use hh_get_api() to get the API object. You can use it to run functions from here.

Example:

// View vacancy by id "123".
$api = hh_get_api();
$result = $api->vacancies->view(123);

Other operations (create vacancies etc.) need the private token to access.
How to get the token:

  1. Register your application here - https://dev.hh.ru/
  2. Open /admin/config/system/hh page and fill "Client ID" and "Client Secret" keys
  3. Push the button "Login to HH" to update the token from hh.ru

The module will work with this token automatically. Just use hh_get_api() to get API object with extended access.

Links

Official API documentation (RU/EN) - https://github.com/hhru/api/blob/master/README.md#headhunter-api

Supporting organizations: 

Project information

Releases