GET https://omuservices.omu.edu.tr/HES/single/{hes-code}

{hes-code}: Hes Kodu (Aralarında tire işareti olmadan)

GuzzleHttp Örnek

function apiClient() { $response = $this->client->request('GET', $this->baseApiURL .$this->apiURL, [ 'headers' => ['Authorization' => 'Bearer '.$this->token], 'verify' => false ] ); return json_decode($response->getBody(), true); }

AngularJS Örnek

return $http({ method: 'GET', headers: { "authorization": "Bearer " + $window.localStorage.getItem('token'), "content-type": "application/json", "accept": "application/json" }, url: $rootScope.serviceBaseURL + 'BilesikKutukSorgulaKimlikNoServis/'+id }).success(function (data, status) { console.log(data); }).error(function (data, status) { console.log("Hata: " + JSON.stringify({ data: data })); });

Hatalar!

{ "status": "Token is Invalid" } , { "status": "Token is Expired" } , { "status": "Authorization Token not found" } , { "status": "User not found" } , { "status": "Unauthorized" } , { "status": "Record table write error" }

Başarılı!

{\"expiration_date\":\"2021-12-31T21:00:00Z\",\"current_health_status\":\"RISKLESS\", \"masked_identity_number\":\"********552\",\"masked_firstname\":\"\u0130S****\",\"masked_lastname\":\"CA**** \"}