All Datapoints API

This API is used to obtain a list of all datapoints.

Command

"client/allDatapoints/1"



Inputs

The following values are expected in the JSON body:

Name Type Required Description
command String

Must be "client/allDatapoints/1"


Outputs

The JSON output will always contain the original command and a result. If the result > 0, an error has occurred (refer to Error Codes) and a message field will describe the error. If result = 0, the following is included in the response field:

Name Type Description
datapoints Object[]

All datapoint with details.


Example Command

{
     command": "client/allDatapoints/1"
}

Example Response

response : {
     datapoints : [
          {
               "name": "Cosmetics P1M",
               "property": "cosmetics_p1m",
               "mode": 1,
               "type": 1,
               "category": "RFG.Products/Services",
               "alphabetical": false,
               "countries": [
                    "US",
                    "CA",
                    "AF",
                    "AL",
                    "DZ",
                    "AD",
                    "AO",
                    "AG",
                    "AR",
                    "AM",
                    "AU",
                    "AT",
                    "AZ",
                    "BS",
                    "BH",
                    "BD",
                    "BB",
                    "BY",
                    "BE",
                    "BZ",
                    "BJ",
                    "BT",
                    "BO",
                    "BA",
                    "BW",
                    "BR",
                    "BN",
                    "BG",
                    "BF",
                    "BI",
                    "KH",
                    "CM",
                    "CV",
                    "CF",
                    "TD",
                    "CL",
                    "CN",
                    "CO",
                    "CC",
                    "CG",
                    "CR",
                    "HR",
                    "CU",
                    "CY",
                    "CZ",
                    "KP",
                    "CD",
                    "DK",
                    "DJ",
                    "DM",
                    "DO",
                    "EC",
                    "EG",
                    "SV",
                    "GQ",
                    "ER",
                    "EE",
                    "ET",
                    "FJ",
                    "FI",
                    "FR",
                    "GA",
                    "GM",
                    "GE",
                    "DE",
                    "GH",
                    "GR",
                    "GD",
                    "GT",
                    "GN",
                    "GW",
                    "GY",
                    "HT",
                    "HN",
                    "HU",
                    "IS",
                    "IN",
                    "ID",
                    "IR",
                    "IQ",
                    "IE",
                    "IL",
                    "IT",
                    "JM",
                    "JP",
                    "JO",
                    "KZ",
                    "KE",
                    "KW",
                    "KG",
                    "LA",
                    "LV",
                    "LB",
                    "LS",
                    "LR",
                    "LY",
                    "LI",
                    "LT",
                    "LU",
                    "MG",
                    "MW",
                    "MY",
                    "MV",
                    "ML",
                    "MT",
                    "MH",
                    "MR",
                    "MU",
                    "MX",
                    "FM",
                    "MC",
                    "MN",
                    "MA",
                    "MZ",
                    "MM",
                    "NA",
                    "NP",
                    "NL",
                    "NZ",
                    "NI",
                    "NE",
                    "NG",
                    "NO",
                    "OM",
                    "PK",
                    "PW",
                    "PA",
                    "PG",
                    "PY",
                    "PE",
                    "PH",
                    "PL",
                    "PT",
                    "QA",
                    "KR",
                    "MD",
                    "RO",
                    "RU",
                    "RW",
                    "KN",
                    "KC",
                    "VC",
                    "WS",
                    "SM",
                    "ST",
                    "SA",
                    "SN",
                    "SC",
                    "SL",
                    "SG",
                    "SK",
                    "SI",
                    "SB",
                    "SO",
                    "ZA",
                    "ES",
                    "LK",
                    "SD",
                    "SR",
                    "SZ",
                    "SE",
                    "CH",
                    "SY",
                    "TW",
                    "TJ",
                    "TH",
                    "TG",
                    "TT",
                    "TN",
                    "TR",
                    "TM",
                    "UG",
                    "UA",
                    "AE",
                    "GB",
                    "TZ",
                    "UY",
                    "UZ",
                    "VU",
                    "VE",
                    "VN",
                    "YE",
                    "??",
                    "ZM",
                    "ZW",
                    "HK"
               ],
               "answers": [
                    null,
                    {
                         "en-US": "Makeup products",
                         "pt-BR": "Maquiagem",
                         "fr-FR": "Produits de maquillage",
                         "es-MX": "Maquillaje",
                         "ja-JP": "化粧品",
                         "es-ES": "Productos de maquillaje",
                         "it-IT": "Trucchi",
                         "fr-CA": "Produits de maquillage"
                    },
                    {
                         "en-US": "Nail products",
                         "pt-BR": "Produtos de unha",
                         "fr-FR": "Produits pour les ongles",
                         "es-MX": "Productos para las uñas",
                         "ja-JP": "ネイル用製品",
                         "es-ES": "Productos para las uñas",
                         "it-IT": "Prodotti per unghie",
                         "fr-CA": "Produits pour les ongles"
                    },
                    {
                         "en-US": "Facial Skincare products",
                         "pt-BR": "Produtos de Cuidados para a Pele do Rosto",
                         "fr-FR": "Produits de soin du visage",
                         "es-MX": "Productos para el cuidado de la piel facial",
                         "ja-JP": "顔用スキンケア製品",
                         "es-ES": "Productos para el cuidado de la piel",
                         "it-IT": "Prodotti per la cura della pelle del viso",
                         "fr-CA": "Produits de soin du visage"
                    },
                    {
                         "en-US": "Bath \u0026 Body products ",
                         "pt-BR": "Produtos para Banho \u0026 Corpo",
                         "fr-FR": "Produits pour le bain/corps",
                         "es-MX": "Productos de baño y para el cuerpo",
                         "ja-JP": "バス・ボディー用製品",
                         "es-ES": "Productos de baño y cuerpo",
                         "it-IT": "Prodotti da bagno e per il corpo",
                         "fr-CA": "Produits pour le bain/corps"
                    },
                    {
                         "en-US": "Fragrance products ",
                         "pt-BR": "Fragrâncias",
                         "fr-FR": "Produits parfumés",
                         "es-MX": "Fragancias",
                         "ja-JP": "香り製品",
                         "es-ES": "Fragancias",
                         "it-IT": "Profumi",
                         "fr-CA": "Produits parfumés"
                    },
                    {
                         "en-US": "Hair Care products ",
                         "pt-BR": "Produtos de Cuidados para os Cabelos",
                         "fr-FR": "Produits de soins capillaires",
                         "es-MX": "Productos para el cuidado del cabello",
                         "ja-JP": "ヘアケア製品",
                         "es-ES": "Productos para cuidado capilar",
                         "it-IT": "Prodotti per capelli",
                         "fr-CA": "Produits de soins capillaires"
                    },
                    {
                         "en-US": "None of the above",
                         "pt-BR": "Nenhuma das anteriores",
                         "fr-FR": "Aucun des choix précédents",
                         "es-MX": "Ninguno de los anteriores",
                         "ja-JP": "以上に該当なし",
                         "es-ES": "Ninguno de los anteriores",
                         "it-IT": "Nessuno di questi",
                         "fr-CA": "Aucun des choix précédents"
                    }
               ],
               "question": {
                    "en-US": "Which of the following products have you personally used in the past month? ",
                    "pt-BR": "Qual dos produtos a seguir você utilizou no último mês?",
                    "fr-FR": "Lequel des produits suivants avez-vous personnellement utilisé le mois dernier ?",
                    "es-MX": "¿Cuál de los siguientes productos ha usado personalmente?",
                    "ja-JP": "先月、以下のどの製品を使いましたか?",
                    "es-ES": "¿Cuales de los siguientes productos has utilizado el mes pasado?",
                    "it-IT": "Quali tra i seguenti prodotti ha usato personalmente nell\u0027ultimo mese?",
                    "fr-CA": "Lequel des produits suivants avez-vous personnellement utilisé le mois dernier ?"
               }
          },
          ...
     ]
}