-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4edccb4
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
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 |
This file contains 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
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; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// TODO |
This file contains 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
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) { | ||
|
||
}); | ||
|
||
|
||
|