Chilkat Online Tools

Delphi (DLL) / Support API / List Views - Compact

Back to Collection Items

var

begin
CkHttp_putBasicAuth(http,True);CkHttp_putLogin(http,'login');CkHttp_putPassword(http,'password');success := CkHttp_QuickGetSb(http,'https://example.zendesk.com/api/v2/views/compact',sbResponseBody);CkJsonObject_LoadSb(jResp,sbResponseBody);CkJsonObject_putEmitCompact(jResp,False);CkJsonObject_putI(jResp,i);active := CkJsonObject__stringOf(jResp,'views[i].active');Amet_b2 := CkJsonObject__stringOf(jResp,'views[i].conditions.amet_b2');Pariatur_d74 := CkJsonObject_BoolOf(jResp,'views[i].conditions.pariatur_d74');Eiusmodd7e := CkJsonObject_IntOf(jResp,'views[i].conditions.eiusmodd7e');created_at := CkJsonObject__stringOf(jResp,'views[i].created_at');default := CkJsonObject__stringOf(jResp,'views[i].default');description := CkJsonObject__stringOf(jResp,'views[i].description');Sit_bd1 := CkJsonObject__stringOf(jResp,'views[i].execution.sit_bd1');Voluptated := CkJsonObject_IntOf(jResp,'views[i].execution.voluptated');id := CkJsonObject__stringOf(jResp,'views[i].id');position := CkJsonObject__stringOf(jResp,'views[i].position');Officia_1c := CkJsonObject__stringOf(jResp,'views[i].restriction.officia_1c');title := CkJsonObject__stringOf(jResp,'views[i].title');updated_at := CkJsonObject__stringOf(jResp,'views[i].updated_at');Do_99 := CkJsonObject_IntOf(jResp,'views[i].conditions.do_99');Aliqua_ad := CkJsonObject_BoolOf(jResp,'views[i].conditions.aliqua_ad');Dolore277 := CkJsonObject_IntOf(jResp,'views[i].conditions.dolore277');Labore0 := CkJsonObject__stringOf(jResp,'views[i].conditions.labore0');Deserunt00 := CkJsonObject_IntOf(jResp,'views[i].execution.deserunt00');Velit_90 := CkJsonObject__stringOf(jResp,'views[i].execution.velit_90');Dolor_58 := CkJsonObject__stringOf(jResp,'views[i].restriction.dolor_58');Sed_41 := CkJsonObject__stringOf(jResp,'views[i].restriction.sed_41');i := i + 1;


Curl Command

curl  -u login:password -X GET
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/views/compact

Postman Collection Item JSON

{
  "name": "List Views - Compact",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/views/compact",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "views",
        "compact"
      ]
    },
    "description": "A compacted list of shared and personal views available to the current user. This endpoint never returns more than 32 records and does not respect the \"per_page\" option.\n\n#### Allowed For\n\n* Agents\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/views/compact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "views",
            "compact"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"count\": \"<integer>\",\n  \"next_page\": \"<string>\",\n  \"previous_page\": \"<string>\",\n  \"views\": [\n    {\n      \"active\": \"<boolean>\",\n      \"conditions\": {\n        \"amet_b2\": \"minim et Ut aliquip\",\n        \"pariatur_d74\": true,\n        \"eiusmodd7e\": 16274866\n      },\n      \"created_at\": \"<dateTime>\",\n      \"default\": \"<boolean>\",\n      \"description\": \"<string>\",\n      \"execution\": {\n        \"sit_bd1\": -70845421.92699432,\n        \"voluptated\": -13477997\n      },\n      \"id\": \"<integer>\",\n      \"position\": \"<integer>\",\n      \"restriction\": {\n        \"officia_1c\": -36345253.13616539\n      },\n      \"title\": \"<string>\",\n      \"updated_at\": \"<dateTime>\"\n    },\n    {\n      \"active\": \"<boolean>\",\n      \"conditions\": {\n        \"do_99\": 75108528,\n        \"aliqua_ad\": true,\n        \"dolore277\": 23927228,\n        \"labore0\": \"incididunt ut dolor\"\n      },\n      \"created_at\": \"<dateTime>\",\n      \"default\": \"<boolean>\",\n      \"description\": \"<string>\",\n      \"execution\": {\n        \"deserunt00\": 61902530,\n        \"velit_90\": \"consectetur in Excepteur\"\n      },\n      \"id\": \"<integer>\",\n      \"position\": \"<integer>\",\n      \"restriction\": {\n        \"dolor_58\": -88642742.97884612,\n        \"sed_41\": \"commodo ut\"\n      },\n      \"title\": \"<string>\",\n      \"updated_at\": \"<dateTime>\"\n    }\n  ]\n}"
    }
  ]
}