Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试更新用户的状态,然后立即转发它。我不知道如何获取我刚刚提交的状态的 ID。
任何帮助将不胜感激。
你在做一个
twitter.updateStatus("Some String");
如果是这样,这将返回一个Status,它有一个 getId() 方法
myStatus = twitter.updateStatus("Some String"); myId = myStatus.getId();
如果没有,请发布您的代码。