Chilkat Online Tools

Unicode C++ / Microsoft Graph / Search acronym

Back to Collection Items

void ChilkatSample(void)
    {
    json.UpdateString(L"requests[0].entityTypes[0]",L"acronym");    json.UpdateString(L"requests[0].query.queryString",L"define KQL");    http.put_AuthToken(L"<access_token>");
    }

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "requests": [
        {
            "entityTypes": [
                "acronym"
            ],
            "query": {
                "queryString": "define KQL"
            }
        }
    ]
}'
https://graph.microsoft.com/beta/search/query

Postman Collection Item JSON

{
  "name": "Search acronym",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "name": "Content-Type",
        "type": "text",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"requests\": [\n        {\n            \"entityTypes\": [\n                \"acronym\"\n            ],\n            \"query\": {\n                \"queryString\": \"define KQL\"\n            }\n        }\n    ]\n}"
    },
    "url": {
      "raw": "https://graph.microsoft.com/beta/search/query",
      "protocol": "https",
      "host": [
        "graph",
        "microsoft",
        "com"
      ],
      "path": [
        "beta",
        "search",
        "query"
      ]
    }
  },
  "response": [
  ]
}