Chilkat Online Tools

Foxpro / CleverTap API / Get Profile Count 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.getApiMethod(String className, String methodName, Log log)
   at ChilkatCode.CodeGen.getXEntry(String className, String entryName)
   at ChilkatCode.CodeGen.getEntryType(String varName, String entryName)
   at ChilkatCode.Parser.objectAccess(String varName, Xml xml)
   at ChilkatCode.Parser.varAccess(Xml xml)
   at ChilkatCode.Parser.primaryExpression(Xml xml)
   at ChilkatCode.Parser.unaryExpression(Xml xml)
   at ChilkatCode.Parser.multiplicativeExpression(Xml xml)
   at ChilkatCode.Parser.additiveExpression(Xml xml)
   at ChilkatCode.Parser.relationalExpression(Xml xml)
   at ChilkatCode.Parser.equalityExpression(Xml xml)
   at ChilkatCode.Parser.andExpression(Xml xml)
   at ChilkatCode.Parser.expression(Xml xml)
   at ChilkatCode.Parser.assignment()
   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 -X POST
	-H "X-CleverTap-Account-Id: {{id}}"
	-H "X-CleverTap-Passcode: {{passcode}}"
	-H "Content-Type: application/json"
	-d '{
	"event_name":"App Launched",
	"from":20180810,
	"to":20181025
}'
https://api.clevertap.com/1/counts/profiles.json

Postman Collection Item JSON

{
  "name": "Get Profile Count APi",
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "var result = JSON.parse(responseBody);",
          "pm.globals.set(\"req_id\",result.req_id);"
        ]
      }
    }
  ],
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "X-CleverTap-Account-Id",
        "value": "{{id}}"
      },
      {
        "key": "X-CleverTap-Passcode",
        "value": "{{passcode}}"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n\t\"event_name\":\"App Launched\",\n\t\"from\":20180810,\n\t\"to\":20181025\n}"
    },
    "url": {
      "raw": "https://api.clevertap.com/1/counts/profiles.json",
      "protocol": "https",
      "host": [
        "api",
        "clevertap",
        "com"
      ],
      "path": [
        "1",
        "counts",
        "profiles.json"
      ]
    },
    "description": "https://developer.clevertap.com/docs/get-profile-count-api"
  },
  "response": [
  ]
}