Update tutorial - use sample data

This commit is contained in:
Tadeu Zagallo
2015-03-27 20:33:24 +00:00
parent 73bbef6ac4
commit b00d4b394f
3 changed files with 42 additions and 6 deletions

View File

@@ -32,7 +32,10 @@ var MovieScreen = require('./MovieScreen');
var fetch = require('fetch');
var API_URL = 'http://api.rottentomatoes.com/api/public/v1.0/';
var API_KEYS = [/* '7waqfqbprs7pajbz28mqf6vz' - Limit Exceeded,*/ 'y4vwv8m33hed9ety83jmv52f'];
var API_KEYS = [
'7waqfqbprs7pajbz28mqf6vz',
// 'y4vwv8m33hed9ety83jmv52f', Fallback api_key
];
// Results should be cached keyed by the query
// with values of null meaning "being fetched"