even better, get rid off the callback, it is not required:

http://www.google.com/uds/Gfeeds?callback=google.feeds.Feed.RawCompletion&context=0&num=50&hl=en&output=json&q=http%3A%2F%2Fnerdist.libsyn.com%2Frss&key=notsupplied&v=1.0&nocache=1430821526494

Op maandag 16 juli 2012 19:55:53 UTC+10 schreef Florian Shena:
>
> Hi everybody,
>
> I want to use the google feed API on my nodejs app. So far I've loaded the 
> api using the Nodejs http.request but when I call google.load("feeds", "1") 
> I get an error :
>
> var http = require('http');
>
> var options = {
>   host: 'www.google.com',
>   port: 80,
>   path: '/jsapi',
>   method: 'GET'
> };
>
> var req = http.request(options, function(res) {
>
>   res.setEncoding('utf8');
>
>   res.on('data', function (chunk) {
>     console.log('BODY: ' + chunk.google.load("feeds", "1"));
>   });
>
>   res.on('error', function(e) {
>     console.log('problem with request: ' + e.message);
>   });
>   
> });
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/ce06ce47-8535-4e9c-8a73-fb4275a95053%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to