PHP code example of bahricanli / hepsiburada-php-api

1. Go to this page and download the library: Download bahricanli/hepsiburada-php-api 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/ */

    

bahricanli / hepsiburada-php-api example snippets


use ksmylmz\hepsiburada\Hepsiburada;
......
$isTeststage = true;
$hb  = new Hepsiburada({username},{password},{merchantid},$isTestStage);
$categoryID = "123456";
$hb->category->getCategoryAttributes($categoryID);

 if($result->status)
 {

     var_dump($result->response)
 }
 {
     echo $result->statusCode; //Http response code
     echo $result->errorMessage; //String Error Mesage
     echo $result->errorCode ///Servisten dönen spesifik bir hata kodu varsa
  }