Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feedly-node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedly-node

A NodeJS connector for Feedly OAuth2

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Feedly Node

npm install feedly-node

You can run the test by cloning this repo and running:

npm install
node test/test

For setting up:

var FeedlyObj = require('feedly-node');

var feedly = new FeedlyObj({
  id: 'MYCLIENTID',
  secret: 'MYCLIENTSECRET',
  protocol: 'https', // optional, feedly recommends http, but I do not.
  redirect_uri: 'http://localhost' // set to your own redirect
});

var url = feedly.createURL();

After you have obtained the 'code' (either via your redirect or elsewhere):

var code = ''; // put the short-time auth code in here.

feedly.getAccessToken(code, function(err, access_token) {
  if(err) {
	  return console.log(err);
  }
	console.log(access_token);
});

If you have saved your access token in some sort of session or cookie data, you can skip the authorization request:

var feedly = new FeedlyObj({
  id: 'MYCLIENTID',
  secret: 'MYCLIENTSECRET',
  redirect_uri: 'http://localhost',
  access_token: 'MYACCESSTOKEN'
});

Once authorized, you can perform typical REST services (http://developer.feedly.com/v3/ for reference):

// GET
feedly.get('profile', function(err, res) {
  if(err) {
    return console.log(err);
  }

  console.log(res);
  // displays a user profile
});

// POST

// PUT

// DELETE

Built by www.typefoo.com

FAQs

Package last updated on 15 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc