Method | URL | İçerik Türü |
---|---|---|
GET | address-book/get/{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/get/{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 => 'GET',
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ı
{
"status": true,
"message": null,
"data": [
{
"id": 159,
"customer_id": 136,
"customer_name": "Navlungo Test Account",
"address_type": "sender",
"location_name": "John Depo 2",
"address_name": "John Doe",
"address_email": "john@doe.com",
"address_phone": "+90 531234567",
"address_line": "Deneme Mahallesi Ural Sokak No:999",
"address_country": "tr",
"address_city": "İstanbul",
"address_district": "Kadıköy",
"address_post_code": null,
"address_latitude": null,
"address_longitude": null,
"is_main_warehouse": 1,
"created_at": "2024-10-24 20:28:23",
"updated_at": "2024-10-24 20:28:23"
}
]
}