Giter VIP home page Giter VIP logo

inoreader's Introduction

.NET wrapper for Inoreader API

See Inoreader official API documentation here.

Installation

Install NuGet package by running following command in Package Manager Console:

PM> Install-Package Inoreader

Usage

var inoreader = new Inoreader.Proxy("appId", "appKey");

// 1. authenticate with username/password
inoreader.Authenticate("username", "password");
inoreader.Token; // => "G2UlCa...Fx"

// 2. authenticate with token
inoreader.Authenticate("yourtoken");
inoreader.Token; // => "yourtoken"

// 3. get user info
var user = inoreader.GetUserInfo();
user.UserId; // => "1005921515"
user.UserName; // => "Jacket"

// 4. get subscriptions list
var subscriptions = inoreader.GetSubscriptions();
var streamId = subscriptions.First().Id;

// 5. get feed unread items
var unreadItems = inoreader.GetItems(stream.Id, filter: ItemsFilterEnum.OnlyUnread, count: 1);

var feedItem = unreadItems.Items.First();
feedItem.Title; // => "Largest viral genome yet carries 2,300 genes that are new to biology"
feedItem.Author; // => "John Timmer"
feedItem.Canonical.Single().Href; // => "http://feeds.arstechnica.com/~r/arstechnica/science/~3/JvoygbfT84Y/story01.htm"

// 6. mark item as read
var success = inoreader.MarkAsRead(feedItem.Id); // success => true

// etc.

inoreader's People

Contributors

cologler avatar

Stargazers

timeisrunningout avatar ZX avatar Zhiqiang Ding avatar SIG avatar Yoshihiro Ito avatar estar73 avatar  avatar Jared avatar  avatar Alex Shkor avatar

Watchers

James Cloos avatar Dmitry Kotov avatar Richard Wilkes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.