Download latest PDF - Read the Docs

Transcript
newslynx Documentation, Release
Example Via CuRL
$ curl -X PUT \
-d "feed_url=http://newslynx.org/feed.xml" \
http://localhost:5000/api/v1/recipes/1\?apikey=$NEWSLYNX_APIKEY\&org=1
Via newslynx
$ newslynx api recipes update id=1 feed_url=http://newslynx.org/feed.xml
Via python
from newslynx.client import API
api = API()
api.recipes.update(1, feed_url="http://newslynx.org/feed.xml")
Metrics
The Metrics API enables the creation, querying, faceting, updating, and deleting of Metrics. Refer to the Metrics docs
for more details on what these are.
NOTE - Metrics are exclusively created by Recipes. Their settings are specified by Sous Chefs.
Metric JSON
All methods, unless otherwise specified, will return one or many Metric objects of the following json schema:
{
"updated": "2015-07-22T23:43:39.752646+00:00",
"display_name": "Tablet Pageviews",
"name": "ga_pageviews_tablet",
"created": "2015-07-22T23:43:39.752631+00:00",
"agg": "sum",
"org_levels": [
"summary"
],
"org_id": 1,
"faceted": false,
"content_levels": [
"summary",
"comparison"
],
"recipe_id": 10,
"type": "count",
"id": 20
}
GET /metrics
Filter all metrics.
1.12. NewsLynx API
65