Eo Engine

Overview

Dostępne wywołania

Path Opis Parametry Odpowiedź
/settings Pobiera konfigurację partnera n/d Tablicaj obiektów {label/value}
/categories Pobiera dostępne kategorię parentId (optional) Tablicaj obiektów / obiekt
/brands Pobiera dostępne marki id(optional) Tablicaj obiektów / obiekt
/products Pobiera dostępne produkty brandId (optional)
categoryId (optional)
path uuid (optional)
Tablicaj obiektów / obiekt

Przykłady użycia

Pobranie ustawień

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/settings'

odpowiedź

{
    "body": [
        {
            "label": "CAMERA_SWITCH",
            "value": "ON"
        },
        {
            "label": "PRODUCT_PHOTOS_VIEW",
            "value": "ON"
        },
        {
            "label": "VIDEO_VIEW",
            "value": "ON"
        },
        {
            "label": "PRODUCT_TAGS",
            "value": "ON"
        },
        {
            "label": "VERSION_VIEW_OPTION",
            "value": "BASIC"
        },
        {
            "label": "LEFT_RIGHT_NAVIGATION_SWITCH",
            "value": "OFF"
        },
        {
            "label": "AR_VIEW_PRODUCT_SCALING",
            "value": "OFF"
        },
        {
            "label": "PRODUCT_CARD_VIEW",
            "value": "ON"
        }
    ]
}

Pobranie kategorii

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/categories'

odpowiedź

{
    "body": [
        {
            "id": "fc1f5656-202d-4ce9-8c77-b32c0e532eec",
            "category_name": "Damskie",
            "parent_category_id": null,
            "category_order": 1
        },
        {
            "id": "a29a9b80-25fb-4a52-8aab-7004193369ac",
            "category_name": "Męskie",
            "parent_category_id": null,
            "category_order": 2
        },
        {
            "id": "ca79ee58-3c14-45ab-9eb9-f695f5eed8d3",
            "category_name": "Przeciwsłoneczne",
            "parent_category_id": "fc1f5656-202d-4ce9-8c77-b32c0e532eec",
            "category_order": 3
        },
        {
            "id": "a5f89770-3013-47ee-bf22-9c4958787485",
            "category_name": "Metalowe",
            "parent_category_id": "6501dcce-2b9e-497a-8166-a8cd475a68e3",
            "category_order": 4
        },
        {
            "id": "6fda8a15-5fea-4607-a765-936af321fa8d",
            "category_name": "Korekcyjne",
            "parent_category_id": "fc1f5656-202d-4ce9-8c77-b32c0e532eec",
            "category_order": 5
        },
        {
            "id": "2ed7c741-8fab-4628-b3a1-634485e89032",
            "category_name": "Korekcyjne",
            "parent_category_id": "a29a9b80-25fb-4a52-8aab-7004193369ac",
            "category_order": 6
        },
        {
            "id": "6501dcce-2b9e-497a-8166-a8cd475a68e3",
            "category_name": "Przeciwsłoneczne",
            "parent_category_id": "a29a9b80-25fb-4a52-8aab-7004193369ac",
            "category_order": 7
        },
        {
            "id": "af38179d-a93c-4a44-b843-26edf7f98241",
            "category_name": "Drewniane",
            "parent_category_id": "2ed7c741-8fab-4628-b3a1-634485e89032",
            "category_order": 13
        },
        {
            "id": "f4928076-6ac9-421f-94ef-19dfd932c270",
            "category_name": "Metalowe",
            "parent_category_id": "2ed7c741-8fab-4628-b3a1-634485e89032",
            "category_order": 15
        },
        {
            "id": "17a2d506-b762-48b1-add3-ecab07dc0d73",
            "category_name": "Uniwersalne",
            "parent_category_id": null,
            "category_order": 16
        },
        {
            "id": "40a640e2-1258-4b72-88f6-4bf36545c2d5",
            "category_name": "Plastikowe",
            "parent_category_id": "2ed7c741-8fab-4628-b3a1-634485e89032",
            "category_order": 17
        }
    ]
}

Pobranie podkategorii

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/categories?parentId=fc1f5656-202d-4ce9-8c77-b32c0e532eec'

odpowiedź

{
    "body": [
        {
            "id": "ca79ee58-3c14-45ab-9eb9-f695f5eed8d3",
            "category_name": "Przeciwsłoneczne",
            "parent_category_id": "fc1f5656-202d-4ce9-8c77-b32c0e532eec",
            "category_order": 3
        },
        {
            "id": "6fda8a15-5fea-4607-a765-936af321fa8d",
            "category_name": "Korekcyjne",
            "parent_category_id": "fc1f5656-202d-4ce9-8c77-b32c0e532eec",
            "category_order": 5
        }
    ]
}

Pobranie marek

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/brands'

odpowiedź

{
    "body": [
        {
            "id": "214cc826-46f7-4841-b9f8-9b0008ab0b25",
            "brand_name": "Brand C",
            "brand_logo": null
        },
        {
            "id": "b8cbe80d-f1a2-4423-b5dc-7e909dab7b55",
            "brand_name": "Brand B",
            "brand_logo": null
        },
        {
            "id": "8e851795-33b6-48c2-88d4-a3fc1b90f8d7",
            "brand_name": "Brand A",
            "brand_logo": null
        }
    ]
}

Pobranie marki

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/brands/214cc826-46f7-4841-b9f8-9b0008ab0b25'

odpowiedź

{
    "body": {
        "id": "214cc826-46f7-4841-b9f8-9b0008ab0b25",
        "brand_name": "Brand C",
        "brand_logo": null
    }
}

Pobranie produktów

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/products'

odpowiedź

{
    "body": [
        {
            "id": "68d45aa2-2d7f-4e9b-8893-36233e4586c1",
            "product_name": "Barcelona",
            "product_thumb_link": null,
            "product_price": null,
            "product_special_price": null,
            "product_shop_url": null
        },
        {
            "id": "4927655d-219e-4817-a90f-d83cb467ad38",
            "product_name": "Product test",
            "product_thumb_link": "https://storage.googleapis.com/arlabs-product-files/4927655d-219e-4817-a90f-d83cb467ad38/thumb.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=partner-panel-backend%40arlabs-310308.iam.gserviceaccount.com%2F20210808%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210808T073639Z&X-Goog-Expires=900&X-Goog-SignedHeaders=host&X-Goog-Signature=a254d186ac1b38d23ffebe00518a1a673b22952d1b2e0a5472f88b051379d25afd6ea05e2d0be77c93fe67368696d351ba12008e29a23e55cc2f556ab8b10172fc441c3a4989ce6e36e8c39adf5ed2084d4a4a8780d9b252eb40829648b1128493e0a7073e106b6af838ae83372ab6e817179239bfa001dcebf4b1ee3371186fafc8d9c8909e88139ac853ccc57b82c682cb602666b7a9acd79ce18ad398811bf94a99a92735b96092af7ba78a3c9185a7a787ace03f75d221d58ab03f4d73a2b049ccbd961aaaa2b3b98084cc67be415bd9f0b66c6a5f8ff5a9a32608bef824166f1642a4d57047785b91cdbb9e2c358943b81e37464253234b27c33755625b",
            "product_price": "199.99",
            "product_special_price": null,
            "product_shop_url": "www.briju.com"
        },
        {
            "id": "39f0fcc7-a6b4-4bd5-a80d-8d6d0f700ef2",
            "product_name": "Paris",
            "product_thumb_link": null,
            "product_price": null,
            "product_special_price": null,
            "product_shop_url": null
        },
        {
            "id": "1a5d5758-0f0f-43d5-b24a-f13778d2c327",
            "product_name": "Berlin",
            "product_thumb_link": null,
            "product_price": null,
            "product_special_price": null,
            "product_shop_url": null
        }
    ]
}

Pobranie produktów z filtrowaniem

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/products?brandId=68d45aa2-2d7f-4e9b-8893-36233e4586c1'

odpowiedź

{
    "body": [
        {
            "id": "68d45aa2-2d7f-4e9b-8893-36233e4586c1",
            "product_name": "Barcelona",
            "product_thumb_link": null,
            "product_price": null,
            "product_special_price": null,
            "product_shop_url": null
        },
        {
            "id": "4927655d-219e-4817-a90f-d83cb467ad38",
            "product_name": "Product test",
            "product_thumb_link": "https://storage.googleapis.com/arlabs-product-files/4927655d-219e-4817-a90f-d83cb467ad38/thumb.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=partner-panel-backend%40arlabs-310308.iam.gserviceaccount.com%2F20210808%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210808T073841Z&X-Goog-Expires=901&X-Goog-SignedHeaders=host&X-Goog-Signature=cbad720b3c6788e511feab30de1aa56a572b90a6672f6265451e5aaac23f772e609d34e629acba091b73053f4fe987953cae279a86e8e4dae7c321f05e8d1a16dc8e51332be54d223c90e613a15f4951f06a2e18ea68ee32a1bf4a8c0ea470f49a0b0efdbb1561934894bae3ab4f1bbdba54882d120f0385d6186f03729a2fb5b8998abbe6fb5e2ce8059b248af1fc374bc87ba3db13a9792684712ff6ba1f2b08154e0c00f7741db75a8bf901b36d5a54e0237612d66e21a0d440ecdf58ed0c020a7400f0962c0d99200e40e3773e30989e2a879d46d9ed6a5bae8b5c3873064eb797ed353fb372899d3a7be94fb01ddaf8df32bfe591807433e6e38a77c379",
            "product_price": "199.99",
            "product_special_price": null,
            "product_shop_url": "www.briju.com"
        },
        {
            "id": "39f0fcc7-a6b4-4bd5-a80d-8d6d0f700ef2",
            "product_name": "Paris",
            "product_thumb_link": null,
            "product_price": null,
            "product_special_price": null,
            "product_shop_url": null
        },
        {
            "id": "1a5d5758-0f0f-43d5-b24a-f13778d2c327",
            "product_name": "Berlin",
            "product_thumb_link": null,
            "product_price": null,
            "product_special_price": null,
            "product_shop_url": null
        }
    ]
}

Pobranie danych produktu

wysłanie żądania

wget --no-check-certificate --quiet \
  --method GET \
  --timeout=0 \
  --header 'Authorization: Bearer <access_token>' \
   'https://app.ar-labs.io/products/68d45aa2-2d7f-4e9b-8893-36233e4586c1'

odpowiedź

{
    "body": {
        "id": "68d45aa2-2d7f-4e9b-8893-36233e4586c1",
        "product_name": "Barcelona",
        "category_id": "fc1f5656-202d-4ce9-8c77-b32c0e532eec",
        "product_files_zip_link": "https://storage.googleapis.com/arlabs-product-files/68d45aa2-2d7f-4e9b-8893-36233e4586c1.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=partner-panel-backend%40arlabs-310308.iam.gserviceaccount.com%2F20210808%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210808T073933Z&X-Goog-Expires=901&X-Goog-SignedHeaders=host&X-Goog-Signature=9d95f0c72f8a2e3ed0f7c790d4e33e3e6876961005f239a3ffdab5b5db5c1436fc85e75d2a6e2af92f046c66c7926a4fd3b93c0300d975bd354fd03bfff3002951526bcb19b2a57e17590c167480fb019259e3377bf65cb15c4629b5093ede9166b41854b54c7feb791fb632e8296e2184974890f1ee2fdd91f840d8fec2620a42a227b37e50770730ba0f811b17ad1da25ee94f8d2a754ae2af692dbf1cfdcd6ffbeadd782f8447740d22f564d7859b6df4065ae0bff950782872b5f9a5c8101d54f029a0f8578092f0a13806f6d5b4980c45895e9bf308101f346ec588a372e31b9c6f8a17515c1f3aee7d1438f9a6732c5d11b203e683cc0126c6dff8bc25",
        "product_properties": null,
        "product_versions": [
            {
                "id": "61b62663-64c4-4750-8917-5da8b2e3e199",
                "version_name": "Black",
                "version_code": "B0011233",
                "version_shop_url": "www.black.pl",
                "version_price": "100.00",
                "version_special_price": "99.99",
                "version_thumb_link": "https://storage.googleapis.com/arlabs-product-files/68d45aa2-2d7f-4e9b-8893-36233e4586c1/thumb.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=partner-panel-backend%40arlabs-310308.iam.gserviceaccount.com%2F20210808%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210808T073933Z&X-Goog-Expires=901&X-Goog-SignedHeaders=host&X-Goog-Signature=a1d4c5ad6338e914b4726420148387992d9ce6a8cbe8e13be41001efcd9c86bc05e22d29f1d71db41eb1c0f1f9318e9b41c257695fba3936349b912614ac31d7b25c7bf4777644a7c9703fa15d3816e797693b22cdaa21dbd7d18a4a494dffbf780981bd24a9552bd10d9d156d48b28118e3523f3e629a572e6eda03d7299decabd26a68787cd7c44e6d6bff68317d65bd941e9cac7a9ed1618c10635d4b23b4716a282ed593fb396980d59ec3a9c0ef17085dfea4cc3f7dc43bfdd90a0073326e3fd430f5b7c349eba86af6de84f30ec744951df3b69b786a8f315a4892190bf843191e83493ab5795796074f1e2cc5c22fd6ff266dbcaad85e5e6ed0528d46"
            },
            {
                "id": "d2ece998-732e-4f18-8557-80641953b9f1",
                "version_name": "White",
                "version_code": "B0011244",
                "version_shop_url": "www.white.pl",
                "version_price": "100.00",
                "version_special_price": "89.99",
                "version_thumb_link": "https://storage.googleapis.com/arlabs-product-files/68d45aa2-2d7f-4e9b-8893-36233e4586c1/thumb.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=partner-panel-backend%40arlabs-310308.iam.gserviceaccount.com%2F20210808%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20210808T073933Z&X-Goog-Expires=901&X-Goog-SignedHeaders=host&X-Goog-Signature=a1d4c5ad6338e914b4726420148387992d9ce6a8cbe8e13be41001efcd9c86bc05e22d29f1d71db41eb1c0f1f9318e9b41c257695fba3936349b912614ac31d7b25c7bf4777644a7c9703fa15d3816e797693b22cdaa21dbd7d18a4a494dffbf780981bd24a9552bd10d9d156d48b28118e3523f3e629a572e6eda03d7299decabd26a68787cd7c44e6d6bff68317d65bd941e9cac7a9ed1618c10635d4b23b4716a282ed593fb396980d59ec3a9c0ef17085dfea4cc3f7dc43bfdd90a0073326e3fd430f5b7c349eba86af6de84f30ec744951df3b69b786a8f315a4892190bf843191e83493ab5795796074f1e2cc5c22fd6ff266dbcaad85e5e6ed0528d46"
            }
        ]
    }
}