apimo™

Webservice & API

Sayın emlakçılar, API yazılımına hoş geldiniz, burada bir emlak ajansının tüm bilgilerini, ürünlerini, kişilerini ve ayarlarını bulabilirsiniz. Haklarınıza bağlı olarak potansiyel müşteriler gibi bazı bilgilerinizi gönderebilirsiniz.

Ortaklar

Catalogs

Retrieve all the words and translations of the API.

Mevcut yöntemler

HTTP yöntemi Yol Fonksiyon
get /catalogs Get a list of catalogs
get /catalogs/{catalogs_id} Get a specific catalog

get Get a list of catalogs /catalogs

Yol parametreleri

  • Hayır

İçerik parametrelerini isteyin

  • Hayır

İçerik cevabı

  •   Array
    • name  Name of the catalog
    • path  Absolute URL of the catalog

İstek örneği

Console
PHP
curl --request GET \
--url 'https://api.apimo.pro/catalogs' \
--user 'provider:token'
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.apimo.pro/catalogs');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, 'provider:token');
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$output = curl_exec($ch);
curl_close($ch);
$values = json_decode($output, true);
?>

Örnek cevap

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 23 May 2019 14:48:59 +0200
Content-Type: application/json; charset=utf-8
Content-Length: 137
Connection: keep-alive
Vary: Accept-Encoding

[{"name":"property_activity","path":"https:\/\/api.apimo.pro\/catalogs\/property_activity"},{"name":"property_areas","path":"https:\/\/api.apimo.pro\/catalogs\/property_areas"}]

get Get a specific catalog /catalogs/{catalogs_id}

Yol parametreleri

  • referential_id  The unique id for the catalog

İçerik parametrelerini isteyin

  • culture  The language of the catalog

İçerik cevabı

  •   Array
    • id  ID of the entry
    • culture  Language of the entry
    • name  Name of the entry
    • name_plurial  Plurial name of the entry (only for some catalogs)

İstek örneği

Console
PHP
curl --request GET \
--url 'https://api.apimo.pro/catalogs/property_heating_type' \
--user 'provider:token' \
--header 'content-type: application/json' \
--data '{ "culture": "en_GB" }' \
--include
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.apimo.pro/catalogs/property_heating_type');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, 'provider:token');
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POSTFIELDS, '{ "culture": "en_GB" }');
$output = curl_exec($ch);
curl_close($ch);
$values = json_decode($output, true);
?>

Örnek cevap

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 23 May 2019 14:48:59 +0200
Content-Type: application/json; charset=utf-8
Content-Length: 137
Connection: keep-alive
Vary: Accept-Encoding

[{"id":1,"culture":"en_GB","name":"Gas"},{"id":2,"culture":"en_GB","name":"Fuel oil"},{"id":3,"culture":"en_GB","name":"Electric"},{"id":4,"culture":"en_GB","name":"Wood"}]