Completed
Push — master ( febf69...7d4223 )
by Sergey
04:50 queued 02:23
created

Auth::refreshToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
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