seregazhuk/php-headhunter-api

View on GitHub
src/EndPoints/Auth.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace seregazhuk\HeadHunterApi\EndPoints;

class Auth extends Endpoint
{
    const RESOURCE = 'oauth';

    /**
     * @param string $token
     * @return array
     */
    public function refreshToken($token)
    {
        $params = [
            'grant_type'    => 'refresh_token',
            'refresh_token' => $token,
        ];

        return $this->postResource('', $params);
    }
}