Compile a block of CSDL code.
The CSDL code you want to compile.
Example values: interaction.content contains "apple"
1. Here's an example of a call to /v1/compile.
?csdl=interaction.content contains "apple"
DataSift returns this JSON:
|hash||A unique identifier for this stream. Make sure you store this because you will need it later.|
|dpu||The cost in DPUs to run this stream. Remember that some data sources charge a license cost, which we pass on to you in addition to the DPU cost.|
All calls to the API must be properly authenticated with a DataSift username and API key.
The REST API endpoints accept both GET and POST requests for all parameters.
Depending on the length of the CSDL you are sending, requests to the /v1/compile endpoint might include long parameter strings. In such situations, we recommend the POST method.
- All calls to the API must be versioned. The current version is v1.