compared with
Current by iliya.trendafilov
on Nov 19, 2014 19:08.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History

{code}
POST /user/?key=<api_key>&userid=<user_id>&contentid=<existing_article_id>
{code}where "recommend" is the name of the installed recommendation application.


{code}
GET /recommend/usagestats/userreads/?key=<api_key>&from=aweekago
GET /recommend/usagestats/userreads/?key=<api_key>&from=aweekago&to=2
GET /recommend/usagestats/userreads/?key=<api_key>&from=10&to=2
GET /recommend/usagestats/userreads/?key=<api_key>&from=10
{code}

You could use this method to get reads for each day and plot them in a chart:
{code}
GET /recommend/usagestats/userreads/?key=<api_key>&from=30&to=29
GET /recommend/usagestats/userreads/?key=<api_key>&from=29&to=28
GET /recommend/usagestats/userreads/?key=<api_key>&from=28&to=27
...
{code}

{code}
GET /recommend/usagestats/mostactiveusers/?key=<api_key>&from=aweekago&count=5
{code}