GithubHelp home page GithubHelp logo

devrantdotnet's Introduction

Build status NuGet

Unofficial C# Wrapper for the devRant public API.

devRantDotNet

This is a library written in C#.NET for access to the devRant API. It aims to provide serialization on the components received so you can easily make use of the library to build applications and other code.

Prerequisites

  • .NET Framework 4+

Installation

The easiest way to install devRantDotNet is using nuget, run the following command in the Package Manager Console

    PM> Install-Package redrails.devRantDotNet

If you want to run from source then you can clone this repository and add it as a reference in your project.

Getting started

using devRantDotNet;

namespace MyProject
{
	class MyProgram
	{
		public static void Main(string[] args)
		{
			using(var dr = new devRant())
			{
				Console.WriteLine(dr.GetUserIdAsync("px06").Result);
				Console.WriteLine(dr.GetRantsAsync().Result);
				...
			}
		}
	}
}

Most methods are available in this library with some ongoing work on improving it. All methods are Async.

Usage and Documentation

Please see the wiki: https://github.com/redrails/devRantDotNet/wiki/Documentation

Contributing

If you would like to contribute then please submit pull-requests.

Licensing

Feel free to use the library as it is open-source but please do give credit when using it.

devrantdotnet's People

Contributors

jakubsteplowski avatar redrails avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

devrantdotnet's Issues

"rt" and "rc"

devRant seems to have changed away from num_upvotes and num_downvotes but there's 2 new properties named rc and rt which should be added to the Rant and Comment models.

Suggestion: Update documentation

Just a little change I suggest:

This:

Property Description
vote_state int - ?

To this:

Property Description
vote_state int - The current user's vote state (0 = no vote, 1 = ++, -1 = --). Always 0 if the parameters user_id, token_id and token_key are missing (aka. not logged user)

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.