Auth::refreshToken()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace seregazhuk\HeadHunterApi\EndPoints;
4
5
class Auth extends Endpoint
6
{
7
    const RESOURCE = 'oauth';
8
9
    /**
10
     * @param string $token
11
     * @return array
12
     */
13
    public function refreshToken($token)
14
    {
15
        $params = [
16
            'grant_type'    => 'refresh_token',
17
            'refresh_token' => $token,
18
        ];
19
20
        return $this->postResource('', $params);
21
    }
22
}
23