Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattcunningham/gumblr
A Go Wrapper for the Tumblr v2 API
https://github.com/mattcunningham/gumblr
api tumblr wrapper
Last synced: about 2 months ago
JSON representation
A Go Wrapper for the Tumblr v2 API
- Host: GitHub
- URL: https://github.com/mattcunningham/gumblr
- Owner: mattcunningham
- License: mit
- Created: 2015-07-09T23:13:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-30T23:45:20.000Z (about 8 years ago)
- Last Synced: 2024-07-31T20:53:22.181Z (5 months ago)
- Topics: api, tumblr, wrapper
- Language: Go
- Size: 16.6 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - tumblr - Go wrapper for the Tumblr v2 API. (Third-party APIs / Utility/Miscellaneous)
- awesome-go - gumblr - A Go Wrapper for the Tumblr v2 API - ★ 6 (Third-party APIs)
- awesome-go-extra - gumblr - 07-09T23:13:51Z|2016-10-30T23:45:20Z| (Third-party APIs / Fail injection)
README
# Tumblr
[![License MIT](https://img.shields.io/npm/l/express.svg)](http://opensource.org/licenses/MIT)[![GoDoc](http://godoc.org/github.com/mattcunningham/gumblr?status.png)](http://godoc.org/github.com/mattcunningham/gumblr)[![Build Status](https://travis-ci.org/mattcunningham/gumblr.svg?branch=master)](http://travis-ci.org/mattcunningham/gumblr)[![Coverage Status](https://coveralls.io/repos/mattcunningham/gumblr/badge.svg?branch=master&service=github)](https://coveralls.io/github/mattcunningham/gumblr?branch=master)## 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(
"",
"",
""
)
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))