Awesome Go

tumblr

CategoryThird-party APIs
SubcategoryThird-party APIs
Stars0

Go wrapper for the Tumblr v2 API

About tumblr

Tumblr

License MITGoDocBuild StatusCoverage Status

Installing

go get github.com/mattcunningham/gumblr

Creating a client

All Tumblr API calls will be made through the Tumblr type. To create a Tumblr client:

client := tumblr.New(
    "<Insert Consumer Key>",
    "<Insert Consumer Secret",
    "<Insert Oauth Key>",
    "<Insert Oauth Secret>"
)

A simple way to receive the necessary credentials is by accessing the Tumblr API console at https://api.tumblr.com/console.

Supported Methods

Blog Requests

client.BlogInfo("staff.tumblr.com")
client.BlogAvatar("staff.tumblr.com")
client.BlogAvatarAndSize("staff.tumblr.com", 24)
client.BlogLikes("staff.tumblr.com", make(map[string]string))
client.BlogFollowers("staff.tumblr.com", make(map[string]string))
client.BlogQueuedPosts("staff.tumblr.com", make(map[string]string))
client.BlogLikes("staff.tumblr.com", make(map[string]string))

Blog Actions

client.Post("staff.tumblr.com", make(map[string]string))
client.PostEdit("staff.tumblr.com", 12345, make(map[string]string))
client.PostReblog("staff.tumblr.com", 12344321, "r3bl0gk3y", make(map[string]string))
client.PostDelete("staff.tumblr.com", 4321234)

User Requests

client.UserInfo()
client.UserDashboard(make(map[string]string))
client.UserLikes(make(map[string]string))
client.UserFollowing(make(map[string]string))

User Actions

client.UserFollow("staff.tumblr.com")
client.UserUnfollow("staff.tumblr.com")
client.UserLike(1234431, "r3b10gk3y")
client.UserUnlike(4321234, "r3b10gk3y")

Tagged Posts

client.TaggedPosts("gifs", make(map[string]string))

Frequently Asked Questions

What is tumblr?

tumblr is a Third-party APIs library for the Go programming language. Go wrapper for the Tumblr v2 API

How do I install tumblr?

Install tumblr with the Go module system using `go get mattcunningham/gumblr`. Check the repository for the current installation instructions.

What category does tumblr belong to?

tumblr is listed under Third-party APIs, specifically Third-party APIs.

← Back to Third-party APIs