Created
December 3, 2013 03:26
-
-
Save tommystanton/7763413 to your computer and use it in GitHub Desktop.
Use Eggtart (Node.js module) to add a bookmark to Delicious.
This file contains hidden or 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
| /* | |
| This is very crude. | |
| Example usage: | |
| $ node eggtartClient.js \ | |
| 'https://github.com/fcambus/ansiweather' \ | |
| 'fcambus/ansiweather' \ | |
| AnsiWeather CLI weather unicode shell_script github repository-git | |
| null { result: { '$': { code: 'done' } } } | |
| */ | |
| var Eggtart = require('eggtart'); | |
| var eggtart = new Eggtart('user', 'password'); | |
| eggtart.posts().add( | |
| { | |
| url: process.argv[2], | |
| description: process.argv[3], | |
| tags: process.argv.slice(4).join(",") | |
| }, | |
| function(err, result) { | |
| console.log(err, result); | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment