Coder Social home page Coder Social logo

rsplurklib's Introduction

rsPlurkLib

Introduction

rsPlurkLib is a Plurk API 2.0 library bulit on top of .NET Framework. Written in C#, rsPlurkLib is clean, elegant, and minimally assembly-dependent.

Prerequisites

  • .NET Framework 3.0 is the current project target. Might work under a .NET 2.0 build, but still not tested.
  • JSON.NET is the current JSON parser. Neither its binary nor source is included in project, so you'll need to correct the project assembly dependency on your machine.

To build

  1. Clone the repository to your project folder.
  2. Reconfigure the project reference to use a proper version of JSON.NET, source or binary.
  3. Fill in your application key and secret under OAuthInstance.cs
  4. Save, build & run.

Structure

  • OAuthInstance.cs provides methods to acquire and exchange OAuth token, sending raw requests.
  • PlurkHelper.cs wraps Plurk API as a single callable static class.
  • Entities folder holds the JSON entity type Plurk will return.

Usage

  • Create a new instance of PlurkHelper.
  • Acquire a token using methods under PlurkHelper.Client.
  • Make use of methods under PlurkHelper class for matching API calls.

If you aren't building an interactive client, you may directly assign a token, which significantly reduces the amount of code like this:

PlurkHelper helper = new PlurkHelper();
helper.Client.Token = new OAuthToken("AsDfGhIlB5Zd", "GUjneXpk91a7G32c8X6q9527", OAuthTokenType.Permanent);
helper.AddPlurk("says", "Hello Plurk!");

More examples can be found under Examples folder, with a typical OAuth authentication walkthrough available as a console implementation.

Contribute

You can provide recommendations or report bugs at our issue tracker.

To-dos

  • Expand API coverage. Currently only basic /APP/Timeline/ and /APP/Responses/ features implemented.
  • Document the entity classes under Entities.

The offical Plurk API documentation can be found here.

Author

You can follow @RSChiang on Plurk.

License

rsPlurkLib is released under MIT License.

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.