Skip to content

ezoneproject-archive/forked.csharp.TumblrSharp.Simple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TumblrSharp.Simple

A C# kit for accessing Tumblr's unauthenticated V1 API

What is this?

Tumblr provides a few ways of accessing content. Their new V2 API is great for a rich user app, but it requires authentication and may not be the best solution for simple projects.

TumblrSharp.Simple is a PCL that allows for browsing Tumblr without authenticating.

Installing

Search for TumblrSharp.Simple in NuGet, or use your Package Manager Console.

PM> Install-Package TumblrSharp.Simple

Examples

For an example application using the TumblrSharp.Simple library, see the example repository.

For simple code examples, continue reading.

TumblrSharp.Simple provides a stateless static class, TumblrClient.

Get the entirety of a page

var result = await TumblrClient.GetAllAsync("myblog");

Get all of a specific post type

var result = await TumblrClient.GetPostsAsync<AudioPost>("myblog");
Console.WriteLine(result.Album);

Get all posts

var result = await TumblrClient.GetPostsAsync("myblog");

Get a specific post by ID

var result = await TumblrClient.GetPostAsync("myblog", 1237923847234);

Caveats

Tumblr's V1 API provides only one endpoint with all information. Everything but the GetAllAsync method is just a helper method extracting requested data from GetAllAsync. This means that GetPostsAsync will be as fast (or as slow) as GetAllAsync.

About

A C# kit for accessing Tumblr's unauthenticated V1 API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%