Comparing version 0.2.13 to 0.2.14
@@ -62,5 +62,2 @@ var util = require('util') | ||
return function(req, res, next){ | ||
console.log('published', req.body, req.text); | ||
console.log('valid signature',_this.isSignatureValid( req.text, req.get('X-Hub-Signature'))); | ||
if( _this.isSignatureValid( | ||
@@ -67,0 +64,0 @@ req.text, req.get('X-Hub-Signature')) |
@@ -133,12 +133,17 @@ var stream = require('stream') | ||
, ig = this | ||
, obj = null | ||
; | ||
for( var i in chunk){ | ||
// this.getMediaByTag({ | ||
// tag: chunk.object_id | ||
// }, function(res){ | ||
obj = chunk[i]; | ||
switch( obj.object){ | ||
case IG_OBJECT_TAG: | ||
this.getMediaByTag(chunk[i].object_id, function(res){ | ||
console.log('media response',res.body); | ||
}); | ||
console.log( chunk[i]); | ||
break; | ||
} | ||
// }); | ||
// console.log( chunk[i]); | ||
} | ||
@@ -152,4 +157,4 @@ | ||
Instagram.prototype.getMediaByTag = function(tag, cb){ | ||
this._apiRequest( 'tags/' + tag.tag + '/media/recent', 'GET', { | ||
access_token: tag.accessToken | ||
this._apiRequest( 'tags/' + tag + '/media/recent', 'GET', { | ||
client_id: this.clientId | ||
}, function(res){ | ||
@@ -156,0 +161,0 @@ cb&&cb(res.error || res.body); |
{ | ||
"name": "socializr", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"description": "Read data streams from several social networks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1737
48787