|
@@ -175,6 +175,7 @@ def quandlstocks(request):
|
|
|
#################
|
|
#################
|
|
|
|
|
|
|
|
def nytimespop(request):
|
|
def nytimespop(request):
|
|
|
|
|
+ '''Returns JSON response about the most viewed articles for the last 24 hours.'''
|
|
|
POPAPIKEY = 'be4cd251d8a4f1a3362689088bdb0255:0:71947444'
|
|
POPAPIKEY = 'be4cd251d8a4f1a3362689088bdb0255:0:71947444'
|
|
|
popdata = fetcharticle(POPAPIKEY, 'http://api.nytimes.com/svc/mostpopular/v2/mostviewed/all-sections/1.json?')
|
|
popdata = fetcharticle(POPAPIKEY, 'http://api.nytimes.com/svc/mostpopular/v2/mostviewed/all-sections/1.json?')
|
|
|
return JSONResponse({'data': popdata})
|
|
return JSONResponse({'data': popdata})
|