Method | URL | İçerik Türü |
---|---|---|
DELETE | address-book/delete/{address_id} | - |
Açıklama
Servise Gönderilmesi gereken zorunlu başlıklar
Parametre ismi | Tip | Zorunluluk | Açıklama |
---|---|---|---|
Authorization | Bearer | evet | auth/login metodundan aldığınız token |
Örnek İstek
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '__APIURL__/address-book/delete/{address_id}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => array(
'X-localization: tr',
'Content-Type: application/json',
'Authorization: Bearer __TOKEN__'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Örnek Servis Cevapları