neovav / hh.ru-api
Api hh.ru
1.1.2
2021-02-11 00:01 UTC
Requires
- php: ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.2
- vlucas/phpdotenv: ^5.2
README
This is library for access to hh.ru Api
Tests:
- 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}
- Copy file: tests/.env-sample to tests/.env and change values
- Build docker container:
docker build -t hh.ru-api .
-
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:
- Install package using composer:
composer require neovav/hh.ru-api:1.0.4