Permalink
Browse files

update yql api key

  • Loading branch information...
1 parent a43fa6d commit 157ddb831010040d292307cf3c34638990385900 Lichun Zhan committed Sep 24, 2012
@@ -5,7 +5,7 @@
*/
YUI.add('PagerMojitModel', function(Y) {
- var API_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var API_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
/**
* The PagerMojitModel module.
@@ -6,7 +6,7 @@ YUI.add('SimpleModelModel', function(Y) {
},
getTurkeyImages: function(callback) {
- var API_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var API_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var queryString = 'wild turkey';
var q = 'select * from flickr.photos.search where text="wild turkey" and api_key="' + API_KEY + '"';
Y.YQL(q, function(rawYqlData) {
@@ -19,7 +19,7 @@ YUI.add('FlickrModel', function(Y) {
* @return {Object} photots
*/
getFlickrImages: function(queryString, callback) {
- var API_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var API_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q = 'select * from flickr.photos.search where text="%' + queryString + '" and api_key="' + API_KEY + '"';
Y.YQL(q, function(rawYqlData) {
Y.log(rawYqlData);
@@ -24,7 +24,7 @@ YUI.add('FlickrDetailModelFlickr', function(Y) {
* data has been retrieved.
*/
getFlickrDetail: function(imageId, callback) {
- var API_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var API_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q = 'select * from flickr.photos.info where photo_id="' + imageId + '" and api_key="' + API_KEY + '"';
Y.YQL(q, function(rawYqlData) {
if (!rawYqlData || !rawYqlData.query || !rawYqlData.query.results) {
@@ -8,7 +8,7 @@ YUI.add('PagedFlickrModel', function(Y) {
Y.mojito.models.flickr = {
getFlickrImages: function(queryString, start, count, callback) {
- var APP_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var APP_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q;
start = parseInt(start) || 0;
count = parseInt(count) || 10;
@@ -8,7 +8,7 @@ YUI.add('PagedFlickr2Model', function(Y) {
Y.mojito.models.flickr = {
getFlickrImages: function(queryString, start, count, callback) {
- var APP_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var APP_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q;
start = parseInt(start) || 0;
count = parseInt(count) || 10;
@@ -24,7 +24,7 @@ YUI.add('PagedFlickr5Model', function(Y) {
* data has been retrieved.
*/
getFlickrImages: function(queryString, start, count, callback) {
- var APP_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var APP_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q;
start = parseInt(start) || 0;
count = parseInt(count) || 10;
@@ -28,7 +28,7 @@ YUI.add('i18nMojitModel', function(Y) {
* data has been retrieved.
*/
getFlickrImages: function(queryString, callback) {
- var API_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var API_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q = 'select * from flickr.photos.search where text="%' + queryString + '" and api_key="' + API_KEY + '"';
Y.YQL(q, function(rawYqlData) {
var rawPhotos = rawYqlData.query.results.photo,
@@ -17,7 +17,7 @@ YUI.add('i18n_MojitModel', function(Y) {
* data has been retrieved.
*/
getFlickrImages: function(queryString, callback) {
- var API_KEY = '9cc79c8bf1942c683b0d4e30b838ee9c';
+ var API_KEY = '84921e87fb8f2fc338c3ff9bf51a412e';
var q = 'select * from flickr.photos.search where text="%' + queryString + '" and api_key="' + API_KEY + '"';
Y.YQL(q, function(rawYqlData) {
var rawPhotos = rawYqlData.query.results.photo,

0 comments on commit 157ddb8

Please sign in to comment.