neovav/hh.ru-api

1.1.2 2021-02-11 00:01 UTC

This package is auto-updated.

Last update: 2024-09-11 07:43:34 UTC


README

This is library for access to hh.ru Api

Tests:

  1. To get $authCode go to the following link in your browser: https://hh.ru/oauth/authorize?response_type=code&client_id={client_id}&state={state}&redirect_uri={redirect_uri}
  2. Copy file: tests/.env-sample to tests/.env and change values
  3. Build docker container:
docker build -t hh.ru-api .
  1. Launch test file:

    a. For testing oAuth:

    docker run --env-file tests/.env hh.ru-api php -f tests/checkoAuth.php

    b. For testing vacancies:

    docker run --env-file tests/.env hh.ru-api php -f tests/vacancies.php

    c. For testing personal:

    docker run --env-file tests/.env hh.ru-api php -f tests/personal.php

    d. For testing active vacancies:

    docker run --env-file tests/.env hh.ru-api php -f tests/vacancies_active.php

    e. For testing negotiation:

    docker run --env-file tests/.env hh.ru-api php -f tests/vacancies_active.php

Using in your projects:

  1. Install package using composer:
composer require neovav/hh.ru-api:1.0.4