是否有适合 Tumblr API 的合适 Java 客户端?

发布于 2024-12-10 18:47:17 字数 133 浏览 1 评论 0原文

我用谷歌搜索了一下,但是 tumblr API 的所有 java 客户端都过时了,写得不好,不支持等等。

是否有一些东西是最新的,具有足够的质量,并且(可选)具有 Maven 依赖项?类似于 twitter4j,但适用于 tumblr。

I googled a bit, but all java clients for the tumblr API were outdated, poorly written, not supported, etc.

Is there something that is up-to-date, is of sufficient quality, and (optionally) has a maven dependency? Something like twitter4j, but for tumblr.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

痴梦一场 2024-12-17 18:47:17

如果您也愿意使用 Spring Social,我在这里为其编写了一个 Tumblr 客户端:

https ://github.com/sdouglass/spring-social-tumblr

Spring Social 是一个很棒、可靠的库,用于构建和使用 OAuth 1/2 API 客户端。使用它,您可以非常轻松地放弃对各种其他 API 的支持。

http://www.springsource.org/spring-social

我已经包含了添加 spring 的信息-social-tumbler 作为项目 README 中的 Maven 依赖项,您可以首先在上面的链接中看到它。

我认为如果你想使用它,最简单的方法是这样的:

Tumblr tumblr = new TumblrTemplate(yourTumblrApiKey);

如果你想代表用户访问 API,你需要使用 OAuth 来获取用户的访问令牌和访问令牌密钥,此时您可以执行以下操作:

Tumblr tumblr = new TumblrTemplate(yourTumblrAppConsumerKey, yourTumblrAppSecret, userAccessToken, userAccessTokenSecret);

如果您将 Spring Social 集成到您的项目中,它可以帮助构建适当授权的 Tumblr 实例、获取和存储用户的访问令牌/秘密等。您必须检查他们的文档以获取更多信息关于那个。我的代码旨在“插入”典型的 Spring Social 设置,就像 Spring Social Facebook、Spring Social Twitter 等官方库一样。

If you're willing to also use Spring Social, I've written a Tumblr client for it here:

https://github.com/sdouglass/spring-social-tumblr

Spring Social is a great, solid library for building and using OAuth 1/2 API clients. Using it gives you the ability to just drop in support for a variety of other APIs very easily.

http://www.springsource.org/spring-social

I've included info for adding spring-social-tumbler as a Maven dependency in the README for the project, which you can see at first the link above.

I think if you want to use it, the simplest approach would be something like:

Tumblr tumblr = new TumblrTemplate(yourTumblrApiKey);

If you want to access the API on behalf of a user, you'd need to use OAuth to get an access token and access token secret for the user, at which point you could do something like:

Tumblr tumblr = new TumblrTemplate(yourTumblrAppConsumerKey, yourTumblrAppSecret, userAccessToken, userAccessTokenSecret);

If you integrate Spring Social into your project it can help with building appropriately authorized Tumblr instances, obtaining and storing access tokens/secrets for users, etc. You'll have to check their docs for more info about that. My code is designed to "plug in" to a typical Spring Social setup the same way as the official libraries like Spring Social Facebook, Spring Social Twitter, etc.

不寐倦长更 2024-12-17 18:47:17

Jumblr 是 Tumblr 的官方 Java API,这里是链接!这是文档

Jumblr is the official Java API for Tumblr, here is a link! And here is the documentation

仙气飘飘 2024-12-17 18:47:17

您也可以看看 Temboo。 Temboo 通过本机 Java SDK 提供对许多 API(包括 Tumblr)的简化和标准化访问。

我个人最喜欢使用这个库的原因是它使 OAuth 变得非常容易,而且 Temboo 允许我将 API 凭据保存在云中,这样我就不必经历从我的代码中抽象它们或将它们保护在我的机器上的麻烦。

您可以在 http://temboo.com/library/Library/Tumblr

我还应该指出,我在 Temboo 工作。所以大家在查看的时候,如果有什么问题,可以随时给我留言。

You may also have a look at Temboo. Temboo offers streamlined and normalized access to many APIs, including Tumblr, via a native Java SDK.

My personal favorite reasons for using this library is how easy it makes OAuth and that Temboo lets me save API credentials in the cloud so I don't have to go through the hoops of abstracting them from my code or securing it on my machines.

You can check it out and play with it at http://temboo.com/library/Library/Tumblr

I should also note that I work at Temboo. So when you check it out, if you have any questions, feel free to message me.

浮生面具三千个 2024-12-17 18:47:17

您可以查看 Webshel​​l

他们提供了一个简单的 REST API,可用于调用第三方 API。在这些 API 中,有 tumblr API。

不要忘记查看他们的搞笑博客:http://apijoy.tumblr.com/ :)

You may have a look at Webshell.

They provide a simple REST API that can be used to call third party APIs. Among those apis, there is the tumblr API.

Don't forget to check out their hilarious blog : http://apijoy.tumblr.com/ :)

缱倦旧时光 2024-12-17 18:47:17

您可以查看 Jumblr 库。它非常简单且功能强大。

You can look at Jumblr library. It is very easy and powerful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文