FIX_HR_API_ISSUE
This commit is contained in:
parent
19096a99ae
commit
1231e28e99
@ -87,16 +87,17 @@ class RestAuthenticationController extends AdminController
|
||||
$options = [
|
||||
'query' => $queryParams,
|
||||
'http_errors' => false,
|
||||
'headers' => [
|
||||
'App-Signature' => getenv('APP_SIGNATURE'),
|
||||
'Accept' => 'application/json'
|
||||
]
|
||||
];
|
||||
|
||||
if (isset($params['token']) && !empty($params['token'])) {
|
||||
$options['headers'] = [
|
||||
'Authorization' => 'Bearer ' . $params['token'],
|
||||
'Accept' => 'application/json',
|
||||
'App-Signature' => getenv('APP_SIGNATURE'),
|
||||
];
|
||||
if (!empty($params['token'])) {
|
||||
$options['headers']['Authorization'] = 'Bearer ' . $params['token'];
|
||||
}
|
||||
|
||||
|
||||
$response = $client->get($url, $options);
|
||||
|
||||
return $response->getBody();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user