- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在使用 Twitter web-intents / javascript API ,我有点惊讶。我想做的是在一条推文出现后监听一个事件。按照他们的例子:
twttr.events.bind('tweet', function(event) {
// Do something there
});
但是,我想做的是存储推文 ID 或其他一些相关信息。如果我查看 event
对象,data
属性中似乎没有任何相关信息。
是否可以通过监听推文事件获取推文 ID(或有关推文的任何其他详细信息)?
最佳答案
Web Intent events exist as a mechanism to trigger functionality in your page, not a data API.
The tweet event gets fired to indicate that a Tweet has happened, but we don't provide identifying information through the event payload: Intents function on your site without a user authorizing you access to their account, and providing a Tweet ID for an anonymous user's action would implicitly provide you with their identity.
关于javascript - 如何从推文事件中获取推文 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10841752/
我想开发一个 Skype 机器人,它将用户名作为输入,并根据用户输入以相反的字符大小写表示hello username。简而言之,如果用户输入他的名字 james,我的机器人会回复他为 Hello J
我是一名优秀的程序员,十分优秀!