Skip to content

Instantly share code, notes, and snippets.

@mcollina
Created November 8, 2011 21:56
Show Gist options
  • Save mcollina/1349385 to your computer and use it in GitHub Desktop.
Save mcollina/1349385 to your computer and use it in GitHub Desktop.
SharpNodes Use Case 1 APIs
// GET /COUNTRY/[COUNTRY_NAME]
{
"opennet_filtering_data": {
"political": {"score": INT},
"social": {"score": INT},
"tools": {"score": INT},
"conflict_security" : {"score": INT}
},
"google_removal_requests": {
"total_received": INT,
"satisfied_ratio": INT
}
}
// GET /site/DOMAIN
{
"keywords": [ 'string_1', ... , 'string_N' ],
"herdict_report_count" : INT
}
// GET SITE/[DOMAIN]/COUNTRIES
{ "countries" : [
"country_1",
...
"country_N"
]
}
{
"isps": [
{"name": isp_name1, "herdict_report_count": INT}, // herdict here ??
...
{"name": isp_nameN, "herdict_report_count": INT}
],
"herdict_report_count": INT
}
// GET /top_sites
{ "top_sites" :
[
{"domain" : 'site_domain_1'},
...
{"domain" : 'site_domain_N'}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment