Quality check complete

parent e9c471db
......@@ -64,7 +64,7 @@ if ($confirm !== 'Y' && $confirm !== 'Ν') {
*
*/
$client = new Client([
'base_uri' => 'https://wso2.minedu.gov.gr/academicid',
'base_uri' => $settings['base_uri'],
'username' => $settings['username'],
'password' => $settings['password']
]);
......@@ -96,8 +96,8 @@ $get = array_walk($csv_data, function (&$v, $k) use ($client, $amka_column, $set
echo $amka;
$response = '';
try {
// $response = $client->check($amka, $settings['auth_header']);
$response = $client->rawcheck($amka);
$response = $client->check($amka, $settings['auth_header']);
// $response = $client->rawcheck($amka);
if ($response === false) {
$response = 'false';
}
......
<?php
return [
'base_uri' => 'https://wso2.minedu.gov.gr/academicid',
'raw_check_base_uri' => '',
'username' => 'username-for-endpoint',
'password' => 'password-for-endpoint',
'auth_header' => 'Bearer ...', // wso2 auth header
......
......@@ -60,7 +60,7 @@ class Client
'Accept: */*',
];
$results = $this->post('https://academicidapp.grnet.gr/admin/web/ws/users/inspectAMKA', $data, $headers);
$results = $this->post($this->_settings['raw_check_base_uri'], $data, $headers);
echo " RAWCHECK RESULT IS: ", var_export($results, true), PHP_EOL;
if ($results['success'] === false) {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment