1. Go to this page and download the library: Download aad/fatura 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/ */
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$bulunan_taslak = $service->findDraftInvoice(['date' => 'Fatura tarihi', 'uuid' => 'Fatura uuid']);
$imzalanmis_fatura = $service->signDraftInvoice($bulunan_taslak);
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$fatura_url = $service->getDownloadURL('Fatura uuid');
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$fatura_url = $service->getDownloadURL('Fatura uuid', false);
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$fatura_html = $service->getInvoiceHTML('Fatura uuid');
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$fatura_html = $service->getInvoiceHTML('Fatura uuid', false);
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$fatura_html = $service->getInvoiceHTML('İptal sebebi', $bulunan_taslak);
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$service->setUuid('590e1a3e-4aaf-11ea-b085-8434976ef848');
use AAD\Fatura\Service;
$baslangic_tarihi = "08/02/2020";
$bitis_tarihi = "11/02/2020";
$service = new Service($ayarlar);
$taslak_faturalar = $service->getAllInvoicesByDateRange($baslangic_tarihi, $bitis_tarihi);
use AAD\Fatura\Service;
$tckn_veya_vkn = "";
$service = new Service($ayarlar);
$bilgiler = $service->getRecipientDataByTaxIDOrTRID($tckn_veya_vkn);
use AAD\Fatura\Service;
$telefon_numarasi = ""; // SMS doğrulama işleminin yapılacağı telefon numarası
$service = new Service($ayarlar);
$sms = $service->sendSignSMSCode($telefon_numarasi);
use AAD\Fatura\Service;
$dogrulama_kodu = ""; // Belirttiğiniz numaraya sms olarak gönderilmiş olan kod
$takip_numarasi = ""; // sendSignSMSCode metodu araciligi ile baslatmis oldugunuz islem sonucunda donen `oid` bilgisi
$service = new Service($ayarlar);
$sms = $service->verifySignSMSCode($telefon_numarasi, $takip_numarasi);
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$firma_bilgileri = $service->getUserData();
use AAD\Fatura\Service;
$service = new Service($ayarlar);
$sonuc = $service->updateUserData($firma_bilgileri);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.