Chilkat Online Tools

Go / CleverTap API / Partial API

Back to Collection Items

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Runtime.InteropServices.Marshal.StringToHGlobalUni(String s)
   at Chilkat.CkMarshal.StringToX(String s, XString* x)
   at Chilkat.Xml.LoadXml(String xmlData)
   at ChilkatApi.XClass.LoadClass(String className, Log log)
   at ChilkatApi.ApiCache.getApiClass(String className, Log log)
   at ChilkatApi.ApiCache.methodExists(String className, String methodName)
   at ChilkatCode.CodeGen.checkMethodCall(Xml xml)
   at ChilkatCode.Parser.fnCall(Xml xml)
   at ChilkatCode.Parser.subCall()
   at ChilkatCode.Parser.statement()
   at ChilkatCode.Parser.Chilkat()
   at ChilkatCode.Parser.Parse()
   at ChilkatCode.Compile.CompileForToolsIO(String srcCode, String langHashKey, StringBuilder sbHtmlOut)

Curl Command

curl -G -d "req_id=%7B%7Breqid%7D%7D"
	-H "X-CleverTap-Account-Id: {{id}}"
	-H "X-CleverTap-Passcode: {{passcode}}"
	-H "Content-Type: {{type}}"
https://api.clevertap.com/1/counts/trends.json

Postman Collection Item JSON

{
  "name": "Partial API",
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "var result = JSON.parse(responseBody);",
          "pm.globals.set(\"req_id\",result.req_id);"
        ]
      }
    }
  ],
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "X-CleverTap-Account-Id",
        "value": "{{id}}"
      },
      {
        "key": "X-CleverTap-Passcode",
        "value": "{{passcode}}"
      },
      {
        "key": "Content-Type",
        "value": "{{type}}"
      }
    ],
    "url": {
      "raw": "https://api.clevertap.com/1/counts/trends.json?req_id={{reqid}}",
      "protocol": "https",
      "host": [
        "api",
        "clevertap",
        "com"
      ],
      "path": [
        "1",
        "counts",
        "trends.json"
      ],
      "query": [
        {
          "key": "req_id",
          "value": "{{reqid}}"
        }
      ]
    }
  },
  "response": [
  ]
}