Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 4edccb4ca70e182dc312f80b9c408ee4955b4460 @francois2metz committed Oct 15, 2010
Showing with 78 additions and 0 deletions.
  1. +3 −0 Makefile
  2. +19 −0 README.md
  3. +21 −0 lib/spore.js
  4. +1 −0 tests/test_api.js
  5. +34 −0 tests/test_client.js
@@ -0,0 +1,3 @@
+test:
+ node tests/test_client.js
+ node tests/test_api.js
@@ -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
@@ -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;
@@ -0,0 +1 @@
+// TODO
@@ -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.