Tumblr.NetStandard 3.0.0

A .NET Standard library for the Tumblr API

There is a newer version of this package available.
See the version list below for details.
Install-Package Tumblr.NetStandard -Version 3.0.0
dotnet add package Tumblr.NetStandard --version 3.0.0
<PackageReference Include="Tumblr.NetStandard" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tumblr.NetStandard --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Tumblr.NetStandard

A .NET Standard library for the Tumblr API

Create a new client

//Unauthorised client
var credentials = new TumblrClientCredentials(id,secret);
var client = new TumblrClient(credentials);

//authorisedClient
var client = new TumblrClient(credentials, tumblrCredentials);

OAuth Helper methods (Tumblr is still OAuth1.0a)

 var authorizer = new OAuthAuthorizer(credentials);

 // get request token
 var tokenResponse = await authorizer.GetRequestToken("https://www.tumblr.com/oauth/request_token");

 var startUri = new Uri(authorizer.BuildAuthorizeUrl("https://www.tumblr.com/oauth/authorize", tokenResponse.Token));

 //...Use system to get authorise token and oauth_verifier whichever way works for your interface...

 var accessToken = await authorizer.GetAccessToken("https://www.tumblr.com/oauth/access_token",new RequestToken(authorisedToken, tokenSecret), oauthVerifier);
 return new TumblrCredentials(accessToken.Token.Key, accessToken.Token.Secret);

Getting Posts

var posts = await client.ForBlog("staff.tumblr.com").Posts();

Liking a post

var liked = await client.ForPost(post).Like();

Returning Legacy Post types

client.ReturnNpfPostLists = false;

Tumblr.NetStandard

A .NET Standard library for the Tumblr API

Create a new client

//Unauthorised client
var credentials = new TumblrClientCredentials(id,secret);
var client = new TumblrClient(credentials);

//authorisedClient
var client = new TumblrClient(credentials, tumblrCredentials);

OAuth Helper methods (Tumblr is still OAuth1.0a)

 var authorizer = new OAuthAuthorizer(credentials);

 // get request token
 var tokenResponse = await authorizer.GetRequestToken("https://www.tumblr.com/oauth/request_token");

 var startUri = new Uri(authorizer.BuildAuthorizeUrl("https://www.tumblr.com/oauth/authorize", tokenResponse.Token));

 //...Use system to get authorise token and oauth_verifier whichever way works for your interface...

 var accessToken = await authorizer.GetAccessToken("https://www.tumblr.com/oauth/access_token",new RequestToken(authorisedToken, tokenSecret), oauthVerifier);
 return new TumblrCredentials(accessToken.Token.Key, accessToken.Token.Secret);

Getting Posts

var posts = await client.ForBlog("staff.tumblr.com").Posts();

Liking a post

var liked = await client.ForPost(post).Like();

Returning Legacy Post types

client.ReturnNpfPostLists = false;

Release Notes

Restructured namespaces
NPF Support

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.1.2 85 6/11/2020
3.1.1 74 6/11/2020
3.1.0 91 6/2/2020
3.0.2 100 5/26/2020
3.0.1 151 5/25/2020
3.0.0 101 5/2/2020
2.1.9 283 9/11/2018
2.1.8 275 9/11/2018
2.1.5 251 9/7/2018
2.1.2 250 9/7/2018
2.0.0 247 9/5/2018
1.0.0 265 9/3/2018
Show less