I m using https://github.com/danwrong/restler  for pastebin  REST client.  
Here is my code :

*var sys = require('util'),*
*    rest = require('restler');*

*var key = "my key";*
*var paste = " test from nodejs";*

*var apipas = "paste";*

*var name = "hirenTest" ;*

*var hiren = new Object();*

*  hiren.api_dev_key =key,*
*  hiren.api_option = apipas,*
*  hiren.api_paste_code = paste,*

*rest.post('http://pastebin.com/api/api_post.php', {*
* // method : "POST" ,*
*  query : hiren*
*}).on('complete', function(data) {*
*  console.log(data);*
*});*

Everytime I run this code it shows  "Bad API request, invalid api_option" .

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to