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.
- .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.
- Clone the repository to your project folder.
- Reconfigure the project reference to use a proper version of JSON.NET, source or binary.
- Fill in your application key and secret under
OAuthInstance.cs - Save, build & run.
OAuthInstance.csprovides methods to acquire and exchange OAuth token, sending raw requests.PlurkHelper.cswraps Plurk API as a single callable static class.Entitiesfolder holds the JSON entity type Plurk will return.
- Create a new instance of
PlurkHelper. - Acquire a token using methods under
PlurkHelper.Client. - Make use of methods under
PlurkHelperclass 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.
You can provide recommendations or report bugs at our issue tracker.
- 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.
You can follow @RSChiang on Plurk.
rsPlurkLib is released under MIT License.