Last active
July 15, 2016 08:53
-
-
Save nchanged/b999ba2b940185b7172479809b302aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use realm bridge" | |
import request from app.utils; | |
class GoogleBlog { | |
static getFeed(value) { | |
return new Promise(function(resolve, reject) { | |
request.get({ | |
url: "https://ajax.googleapis.com/ajax/services/feed/find?v=1.0", | |
json: true, | |
qs: { | |
q: value | |
} | |
}, function(error, response, body) { | |
return resolve(body) | |
}) | |
}); | |
} | |
} | |
export GoogleBlog; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment