Skip to content
Browse files

Initial project skeleton

  • Loading branch information...
1 parent ebf8604 commit 00005a28a3c2ee70ab051d554a2bc75c4387d992 @sujal sujal committed May 4, 2012
Showing with 47 additions and 0 deletions.
  1. +1 −0 index.js
  2. +30 −0 lib/flickr.js
  3. +16 −0 package.json
View
1 index.js
@@ -0,0 +1 @@
+module.exports = require('./lib/flickr');
View
30 lib/flickr.js
@@ -0,0 +1,30 @@
+
+exports.Flickr = function(consumer_key, consumer_secret, options) {
+
+ this.consumer_key = consumer_key;
+ this.consumer_secret = consumer_secret;
+ this.oauth_token = options["oauth_token"] || null;
+ this.oauth_token_secret = options["oauth_token_secret"] || null;
+
+ // process options
+
+ this.baseUrl = options["baseUrl"] || "/services/rest";
+
+ this.oauth_client = new OAuth("http://www.flickr.com/services/oauth/request_token",
+ "http://www.flickr.com/services/oauth/access_token",
+ consumer_key,
+ consumer_secret,
+ "1.0A",
+ null,
+ "HMAC-SHA1");
+
+}
+
+exports.Flickr.prototype.setOAuthTokens = function(oauth_token, oauth_token_secret) {
+ this.oauth_token = oauth_token;
+ this.oauth_token_secret = oauth_token_secret;
+}
+
+exports.Flickr.prototype.executeAPIRequest = function (method, arguments, authenticated, options) {
+
+}
View
16 package.json
@@ -0,0 +1,16 @@
+{
+ "name": "flickr",
+ "description": "A simple wrapper for the Flickr API using oAuth 1.0a auth",
+ "version": "0.0.1",
+ "author": "Sujal Shah <codesujal@gmail.com>",
+ "dependencies": {
+ "oauth": ">=0.9.0"
+ },
+ "devDependencies": {
+ "mocha": "*"
+ },
+ "keywords": ["flickr", "api", "oauth"],
+ "repository": "git://github.com/sujal/node-flickr",
+ "main": "index",
+ "engines": { "node": "*" }
+}

0 comments on commit 00005a2

Please sign in to comment.
Something went wrong with that request. Please try again.