Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 2cf3f3fc3a345595f5df5ecccd2aa54e337af399 @robinduckett committed Nov 24, 2011
@@ -0,0 +1,45 @@
+# Quartz
+A module to interface with Transmission's RPC
+
+# How to install
+`npm install quartz`
+
+# Functions
+
+## quartz.connect(options, callback)
+ var quartz = require('quartz');
+
+ quartz.connect({
+ url: "http://localhost:9091/transmission/rpc"
+ , auth_required: false
+ , username: "admin"
+ , password: "password"
+ }, function(err) {
+ if (err) { console.log(err); } else {
+ // Connected!
+ }
+ });
+
+## quartz.query(method, args, callback)
+ // after connect
+
+ quartz.query(
+ 'torrent-get',
+ {fields: ['id', 'name']},
+ function(err, res, body) {
+ if (err) {
+ console.log(err);
+ } else {
+ // do stuff
+ }
+ }
+ );
+
+# Features
+* Auth based login support
+
+# Todo
+* Functions for each RPC call
+
+# Author
+* Robin Duckett <[robin.duckett@gmail.com](mailto:robin.duckett@gmail.com)>

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 2cf3f3f

Please sign in to comment.