Skip to content

Instantly share code, notes, and snippets.

@hanshasselberg
Created August 27, 2012 11:48
Show Gist options
  • Save hanshasselberg/3487796 to your computer and use it in GitHub Desktop.
Save hanshasselberg/3487796 to your computer and use it in GitHub Desktop.
Hedji api

Hedji

Authorization

You have to provide an apikey except for register views.

$ curl http://hedji.com/1.json?apikey=12345

Register view

Hit the tracking pixel for that entity:

$ curl http://hedji.com/1.gif

Getting stats

Ask for tracking data:

$ curl http://hedji.com/1.json

Answer:

{
  "job_ad":"1",
  "daily":{
    "20120817":"192",
    "20120818":"1440",
    "20120819":"1440",
    "20120820":"1488",
    "20120821":"1433",
    "20120822":"1440",
    "20120823":"1440",
    "20120824":"1440",
    "20120825":"1440",
    "20120826":"1440",
    "20120827":"681"
  },
  "total":"13874"
}

You can only ask for one statistic at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment