Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Storify source example Zemanta
{
"_id": {
"$oid": "4e49f6a1b756ba595aae31e5"
},
"name": "zemanta",
"label": "Zemanta",
"icon": "http://zemanta.com/favicon.ico",
"href": "http://zemanta.com",
"status": "",
"defaults": {
"results": {
"array": "json.images",
"loadMore": false,
"mapping": {
"type": "image",
"permalink": "{{result.source_url}}",
"data": {
"image": {
"title": "{{result.description}}",
"caption": "{{result.description}}",
"src" : "{{result.url_l}}",
"thumbnail": "{{result.url_s}}"
}
},
"attribution": {
"name": "{{result.user.username}}",
"href": "{{result.source_url}}"
},
"meta": "{{result}}",
"details_endpoint": "embedly"
}
},
"details": {
"api_endpoint": "embedly",
"mapping": "oembed"
}
},
"tabs": [
{
"name": "image",
"label": "Images",
"form": { "_default": [] },
"api_endpoint": "http://api.zemanta.com/services/rest/0.0/?api_key=lfsqhujax072femjangrvpqr&method=zemanta.suggest&text_title={{story.title}}&text={{story._text}}&format=json&return_images=1&return_categories=0&return_keywords=0&return_articles=0&return_markup=0"
},
{
"name": "articles",
"label": "Articles",
"form": { "_default": [] },
"api_endpoint": "http://api.zemanta.com/services/rest/0.0/?api_key=lfsqhujax072femjangrvpqr&method=zemanta.suggest&text_title={{story.title}}&text={{story._text}}&format=json&return_images=0&return_categories=0&return_keywords=0&return_articles=1&return_markup=0",
"results" : {
"array" : "articles",
"mapping" : {
"type" : "link",
"permalink" : "{{result.url}}",
"posted_at" : "{{result.published_datetime}}",
"data" : {
"link" : {
"title" : "{{result.title}}",
"description" : "{{result.text_preview}}",
"thumbnail" : "http://thumbs.zemanta.com/{{result.article_id}}_80_80.jpg"
}
},
"attribution" : {
"name" : "",
"avatar" : "",
"href" : "{{result.url}}"
},
"via" : {
"name" : "Zemanta",
"href" : "http://zemanta.com"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment