ALPHA

This service is the general configuration of the site and customer by a domain.

Resource information
Authentication Required
HTTP Method GET
Response JSON
Version 1

Resource URL

<https://www.mapapropapp.com/api/action/express-v1/settings>

Sample code

GET /api/action/express-v1/settings HTTP/1.1
Host: www.mapapropapp.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer ya29.1.AADtN_UxybTdjLw9jX6lg_Sjjgc3wTtek4q2WvfETzSrz7Q6loEYoJEWd1x4qvlpGw

Response

A JSON document with the configuration of the customer and website.

Object Field Type Required Description
Response settings Array of Setting yes The list of Setting object
customer Customer yes The customer object
Setting name string yes The name of the setting
category string yes The category of the setting (config, resource)
Customer name string yes The company name of the realtor
address string yes The address of the realtor
zone0Description string yes The country where the realtor is located
zone1Description string yes The state / province the realtor is located
zone2Description string yes The county the realtor is located / neighborhood in some cases
zone3Description string no The city the realtor is located
zip string yes The zip code of the realtor
websiteActive boolean yes If the website is active or not. If not, no other service will bring you data. This might be because the customer is overdue with bills or simple cancellation
phone1 string yes A phone number of the realtor
phone2 string no An alternative phone number for the realtor
phone3 string no An alternative phone number for the realtor
mobile string no Mobile phone number for instant messengers
email string yes The email of the customer

Sample response

{
  "settings": [
    {
      "name": "mode",
      "category": "config",
      "value": "some.branches"
    },
    {
      "name": "google.analytics",
      "category": "resource",
      "value": "UA-16637317-1"
    },
    {
      "name": "logo",
      "category": "resource",
      "value": "/styles/customers/1687/logo.png"
    },
    {
      "name": "path",
      "category": "resource",
      "value": "1687"
    },
    {
      "name": "slide1.image",
      "category": "resource",
      "value": "/styles/customers/1687/slide1.jpg"
    },
    {
      "name": "slide1.url",
      "category": "resource",
      "value": "/contacto"
    },
    {
      "name": "slide2.image",
      "category": "resource",
      "value": "/styles/customers/1687/slide2.jpg"
    },
    {
      "name": "slide2.url",
      "category": "resource",
      "value": "/contacto"
    },
    {
      "name": "slide3.image",
      "category": "resource",
      "value": "/styles/customers/1687/slide3.jpg"
    },
    {
      "name": "slide3.url",
      "category": "resource",
      "value": "/contacto"
    },
    {
      "name": "stylesheet",
      "category": "resource",
      "value": "/styles/customers/1687/style.css"
    }
  ],
  "customer": {
    "name": "Super Realtors Inc",
    "tempRental": true,
    "zone0Description": "Argentina",
    "zone1Description": "Capital Federal",
    "zone2Description": "Recoleta",
    "websiteActive": true,
    "phone1": "2334-3322",
    "phone2": "2334-3323",
    "mobile": "541122226666",
    "email": "[email protected]",
    "zip": "1425",
    "address": "Skype: apartments"
  }
}