Creating Cxense Persisted API URLs

For general information on how to get started using the Cxense API, see API authentication. If you use the Python command line tool described in that introduction, then you can create the required URLs with the following commands:

Tagging id

Enter the following command:

python cx.py /persisted/create \
'{"path":"/processing/linguistics/execute", "request":{}, "mutable":{"document":true, "documentId":true}}'

The response will look something like this:

{ "id": "4b47ecceb282ede72d0d4087d06dd9d135b375ab" }

The long string is the tagging-id you need to include in your semantic web service configuration (see Configure the Semantic Web Service).

Analytics id

Enter the following command:

python cx.py /persisted/create \
'{"path":"/traffic/event","request":
{"siteId":"9222310557536506915", "start":-3600, "groups":["url"], "historyFields":["events","sessionStarts"], "historyBuckets":60, "fields":["uniqueUsers", "activeTime", "sessionStarts", "sessionStops"]}

The response will look something like this:

{ "id": "a50ed5026291b67fc31e82164134633c005c8def" }

The long string is the analytics-id you need to include in your analytics service mapping definition (see Define the Analytics Proxy Service).