{ "info": { "_postman_id": "8f5cb892-941a-4877-b7f1-e7ac7a92fc30", "name": "Khoros Basics", "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json", "_exporter_id": "31498720", "_collection_link": "https://crimson-crescent-755319.postman.co/workspace/Community-Khoros-team-workspace~59dd30df-cfd9-4534-bd38-383789c3965d/collection/31498720-8f5cb892-941a-4877-b7f1-e7ac7a92fc30?action=share&source=collection_link&creator=31498720" }, "item": [ { "name": "get token Copy", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"sessionkey\", jsonData.response.value.$);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "url": { "raw": "https://{{base_community_url}}/restapi/vc/authentication/sessions/login?user.login={{api_username}}&user.password={{api_pw}}&restapi.response_format=json", "protocol": "https", "host": [ "{{base_community_url}}" ], "path": [ "restapi", "vc", "authentication", "sessions", "login" ], "query": [ { "key": "user.login", "value": "{{api_username}}" }, { "key": "user.password", "value": "{{api_pw}}" }, { "key": "restapi.response_format", "value": "json" } ] } }, "response": [] }, { "name": "API 2.0 JSON Query Copy", "request": { "method": "POST", "header": [ { "key": "li-api-session-key", "value": "{{sessionkey}}", "type": "text" }, { "warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.", "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "[\n { \n \"kudos\": {\n \"fields\": [ \"count(*)\"],\n \"constraints\": [\n { \"user.id\": \"10235\" } \n ],\n \"limit\": 5\n }\n }\n]", "options": { "raw": { "language": "json" } } }, "url": "https://{{base_community_url}}/api/2.0/search" }, "response": [] }, { "name": "API 2.0 LiQL Query Copy", "request": { "method": "GET", "header": [], "url": { "raw": "https://{{base_community_url}}/api/2.0/search?q=select%20subject%20from%20messages%20where%20depth=0%20and%20conversation.style=\"idea\"%20and%20author.id%20in%20(%2710235%27)&restapi.response_style=view&restapi.session_key={{sessionkey}}", "protocol": "https", "host": [ "{{base_community_url}}" ], "path": [ "api", "2.0", "search" ], "query": [ { "key": "q", "value": "select%20subject%20from%20messages%20where%20depth=0%20and%20conversation.style=\"idea\"%20and%20author.id%20in%20(%2710235%27)" }, { "key": "restapi.response_style", "value": "view" }, { "key": "restapi.session_key", "value": "{{sessionkey}}" } ] } }, "response": [] } ] }