socializr
Consumer realtime data updates from Twitter, Facebook, Instagram and Google Plus into node Stream
objects.
INSTALLING
$ npm install socializr --save
API
Socializr
Providers
- ##### Google Plus
Examples
var socializr = ; var twitterProvider = key: 'a valid twitter api key' secret: 'a valid twitter api secret' filters: { return !objdata; } ; var gplusProvider = key: 'a valid api key' filters: { return !objprovider && objprovidertitle === 'Reshared Post'; } ; callback_domainpathname = '/pubsub/__cb__/facebook'; var facebookProvider = appId: 'a valid facebook app id' appSecret: 'a valid facebook app secret' subscriptionCallbackURL: url; callback_domainpathname = '/pubsub/__cb__/instagram'; var instagramProvider = appId: 'a valid instagram app/ client id' appSecret: 'a valid instagram app/ client secret' subscriptionCallbackURL: url filters: { return objcaption && objcaptiontext && objcaptiontextlength; } ; var social = ; var auths_twitter = twitterProviderauth authtwitterusers0var auths_gplus = gplusProviderauth authgplusappvar auths_facebook = facebookProviderauth authfacebookappvar auths_instagram = instagramProviderauth authinstagramapp instagramProvider; facebookProvider; social; social;
var twitter = key: 'TWITTER_API_KEY' secret: 'TWITTER_API_SECRET' filters: { return !obj; } ; var social = ; var auths = twitter; social; social;
Add data to stream
social;
If you need to add new tags or users just call the stream
function again with the updated data.
Issues & Feature Requests
If you have any issues or feature requests please file them in github.com issues. Thanks for your support and comments.
TODO
- Twitter stream fallback
LICENSE
(The MIT License)
Copyright (c) 2015 Big Mountain Ideas + Innovations <jovan@bigmountainideas.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.