Skip to content

Instantly share code, notes, and snippets.

@nchanged
Last active July 15, 2016 08:53
Show Gist options
  • Save nchanged/b999ba2b940185b7172479809b302aa3 to your computer and use it in GitHub Desktop.
Save nchanged/b999ba2b940185b7172479809b302aa3 to your computer and use it in GitHub Desktop.
"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