Permalink
Browse files

More README

  • Loading branch information...
awestendorf committed Mar 17, 2012
1 parent 223a963 commit e010605722845572f5077b8d12772f14a61f200f
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.md
View
@@ -18,11 +18,19 @@ The project is hosted on npm
Usage
-----
Create a client and then call one of the exposed methods
Create a client and then call one of the exposed methods. See the
[Dark Sky API](http://darkskyapp.com/api/) for details.
var darksky = require("darksky");
var client = darksky.Client("mykey");
client.forecast('37.8267','-122.423', console.log, console.error);
client.forecast('37.8267','-122.423',
function(data) {
process.stdout.write(d);
},
function( err ) {
console.error( err );
}
);

0 comments on commit e010605

Please sign in to comment.