PHP code example of conkal / yokas-rest-client

1. Go to this page and download the library: Download conkal/yokas-rest-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

conkal / yokas-rest-client example snippets


use Conkal\YOKAS\Client;
$client = new Client("host", "username", "password", "yokasid);

//create a request
$request = new OgrKabulEkleGuncelleRequest();

//set request parameters
$request->universiteid = $client->id;
$request->basvuruno = rand(100000, 999999);
$request->kimlikno = "123456";
$request->pasaportno = "123456";
$request->adi = "Test";
$request->soyadi = "Test";
$request->cinsiyet = "E";
$request->babaadi = "Test";
$request->anneadi = "Test";
$request->kayityili = "2023";
$request->kayitdonemi = "1";
$request->uyrugu = "ZWE";
$request->dogumtarihi = "01.01.2000";
$request->dogumyeri = "Test";
$request->ogrgelisdurum = "0";

//execute the request
$response = $this->client->execute($request);

//check if the request was successful
$this->assertTrue($response->isSuccessful());