Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Oct 15, 2010
0 parents commit 4edccb4
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test:
node tests/test_client.js
node tests/test_api.js
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Spore on NodeJs #

node-spore is an implementation of spore in nodejs.

**Work in progress**: not working

## Client ##



## API ##

## Links ##

* [Spore specification](http://github.com/SPORE/specifications.git)

## License ##

BSD
21 changes: 21 additions & 0 deletions lib/spore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Spore Spec implementation
*/
/**
* Client
*/
function Client() {

}
Client.prototype = {

};
/**
* API
*/
function API() {
throw 'not implemented. Please fork and add code here ;)';
}

exports.Client = Client;
exports.API = API;
1 change: 1 addition & 0 deletions tests/test_api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// TODO
34 changes: 34 additions & 0 deletions tests/test_client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// :(
require.paths.unshift(__dirname +"/../lib");

var assert = require('assert');

// we test that
var Client = require('spore').Client;

var twitterClient = new Client({
"api_base_url" : "http://api.twitter.com/1",
"version" : "0.1",
"methods" : {
"public_timeline" : {
"params" : [
"trim_user",
"include_entities"
],
"required" : [
"format"
],
"path" : "/statuses/public_timeline.:format",
"method" : "GET"
},
}
});

assert.ok(twitterClient.public_timeline, "twitterClient have a public_timeline method");

twitterClient.public_timeline('', function(err, result) {

});



0 comments on commit 4edccb4

Please sign in to comment.