是否有任何推特演示示例可以在推特上使用 OAuth 在推特上发布照片? [英] is there any twitter demo example to post photo on twitter with using OAuth in twitter?

查看:40
本文介绍了是否有任何推特演示示例可以在推特上使用 OAuth 在推特上发布照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像推特照片一样在 Twitter 上上传照片.通过在网上搜索,我得到了一些 twiiter4j 示例的示例,可以在 twitter 上发布照片.但在那个示例演示中,我必须输入静态用户名和密码才能发布.我想要的是通过 twitter OAuth 输入和管理用户名和密码,然后在 twitter 上发布照片......那么有没有可以使用 Twitter OAuth 在 Twitter 上发布照片的 Demo?

解决方案

Twitpic 是托管您的照片(在 Twitter 上发布)的地方.所以一旦你获得了 twitpic 的用户名密码,你就可以使用下面的代码示例项目将照片上传到它.它只会上传照片并为您提供链接.所以最后您必须编写代码将该链接作为推文发布到推特上.

这里是完整的项目示例:https://github.com/lorensiuswlt/AndroidTwitpic>

I want to upload the Photo on Twitter as like ttweet photo. by Searching on net I got Some Example of the twiiter4j example to tweet the Photo on twitter. but in that example demo I have to enter the static Username and Password to post. I want is to enter and managed the username and password by twitter OAuth and post the photo on twitter... So is there any Demo that can Post the Photo on Twitter using Twitter OAuth?

解决方案

Twitpic is the place where your photos(tweeted on Twitter) are hosted. So once you get the username password for twitpic,you can upload photo to it using below code sample project. It would just upload the photo and gives you the link.so finally you will have to code for posting that link onto twitter as tweet.

Here is the complete project sample: https://github.com/lorensiuswlt/AndroidTwitpic

这篇关于是否有任何推特演示示例可以在推特上使用 OAuth 在推特上发布照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆