Skip to content

Instantly share code, notes, and snippets.

curl -X POST 'https://api.datasift.com/v1/push/create' \
-d 'name=connectorcouchdb' \
-d 'hash=42d388f8b1db997faaf7dab487f11290' \
-d 'output_type=couchdb' \
-d 'output_params.host=couchdb.example.com' \
-d 'output_params.port=5984' \
-d 'output_params.use_ssl=no' \
-d 'output_params.verify_ssl=no' \
-d 'output_params.db_name=datasift_couchdb' \
-d 'output_params.auth.username=dsreceiver' \
<div id="jcsdl"></div>
<textarea id="jcsdl-code" style="width: 900px; height: 200px;" disabled="true">// JCSDL_MASTER b04591342ee71a2baa468d9d2a340ec8 AND
// JCSDL_VERSION 1.0
// JCSDL_START 0980a5f2ef935c4ed153bf975879eac0 twitter.text,contains_any,27-52
twitter.text contains_any "obama, santorum, gingrich, romney, ronpaul, ron paul"
// JCSDL_END
AND
// JCSDL_START f7c18a6fedd90c6b4d77acc14a3a8e5c interaction.type,in,21-29
<script type="text/javascript">
$(function() {
JCSDL.onLoad(function() {
$('#jcsdl-edit').jcsdlGui({
...
animate : 2000,
hideTargets : ['interaction', 'facebook', 'myspace', '2channel', 'video', 'youtube', 'reddit', 'imdb', 'flickr', 'amazon', 'blog', 'board', 'dailymotion', 'newscred', 'topix', 'augmentation',
'twitter.domains', 'twitter.in_reply_to_screen_name', 'twitter.links', 'twitter.mentions', 'twitter.source', 'twitter.text', 'twitter.place', 'twitter.retweet', 'twitter.retweeted',
'twitter.user.description', 'twitter.user.followers_count', 'twitter.user.follower_ratio', 'twitter.user.friends_count', 'twitter.user.id', 'twitter.user.listed_count', 'twitter.user.location', 'twitter.user.name', 'twitter.user.screen_name', 'twitter.user.statuses_count', 'twitter.user.time_zone', 'twitter.user.url'],
<head>
...
<script type="text/javascript">
$(function() {
JCSDL.onLoad(function() {
$('#jcsdl-edit').jcsdlGui({
...
hideTargets : ['interaction', 'twitter', 'facebook', '2channel', 'myspace', 'amazon', 'blog', 'board', 'dailymotion', 'flickr', 'newscred', 'reddit', 'topix', 'video', 'youtube', 'augmentation', 'imdb.author', 'imdb.type', 'imdb.contenttype', 'imdb.thread', 'bitly', 'wikipedia']
});
...
{
"id": "d468655cfe5f93741ddcd30bb309a8c7",
"output_type": "dynamodb",
"name": "mypushsubscription",
"created_at": 1365430066,
"user_id": 12635,
"hash": "42d388f8b1db997faaf7dab487f11290",
"hash_type": "stream",
"output_params": {
"table": "datasift-dynamodb",
{
"id": "d468655cfe5f93741ddcd30bb309a8c7",
"output_type": "dynamodb",
"name": "mypushsubscription",
"created_at": 1365430066,
"user_id": 12635,
"hash": "42d388f8b1db997faaf7dab487f11290",
"hash_type": "stream",
"output_params": {
"table": "datasift-dynamodb",
{
"id": "d468655cfe5f93741ddcd30bb309a8c7",
"output_type": "dynamodb",
"name": "mypushsubscription",
"created_at": 1365430066,
"user_id": 12635,
"hash": "42d388f8b1db997faaf7dab487f11290",
"hash_type": "stream",
"output_params": {
"table": "datasift-dynamodb",
{
"count": 2,
"subscriptions": [
{
"id": "d668655cfe5f93741ddcd30bb309a8c7",
"output_type": "dynamodb",
"name": "mypushsubscription1",
"created_at": 1365430066,
"user_id": 12635,
"hash": "42d388f8b1db997faaf7dab487f11290",
{
"id": "d468655cfe5f93741ddcd30bb309a8c7",
"output_type": "dynamodb",
"name": "myupdatedpushsubscription",
"created_at": 1365430066,
"user_id": 12635,
"hash": "edd0b9fb266e8f3f2de40bf6c1a2bf3e",
"hash_type": "stream",
"output_params": {
"table": "datasift-dynamodb",
{
"id": "d468655cfe5f93741ddcd30bb309a8c7",
"output_type": "dynamodb",
"name": "mypushsubscription",
"created_at": 1365430066,
"user_id": 12635,
"hash": "0dddb9bb2f6e8f3f2de405f6c1a2b21e",
"hash_type": "stream",
"output_params": {
"region": "dynamodb.eu-west-1.amazonaws.com",