【问题标题】:Comment on an update in linkedin from android application评论来自 android 应用程序的linkedin 更新
【发布时间】:2012-09-22 00:27:26
【问题描述】:

谁能帮我对linkedin中的特定帖子发表评论/回复?

我可以使用以下代码通过我的 android 应用程序使用人员 ID 发送直接消息到链接中。

id = update.getUpdateContent().getPerson().getId()

.....

LinkedInAccessToken accessToken = new LinkedInAccessToken(
            linkedInTokens[0], linkedInTokens[1]);
    LinkedInApiClientFactory clientFactory = LinkedInApiClientFactory
            .newInstance(LinkedInConstants.LINKEDIN_CONSUMER_KEY,
                    LinkedInConstants.LINKEDIN_CONSUMER_SECRET);
    LinkedInApiClient client = clientFactory
            .createLinkedInApiClient(accessToken);
    client.sendMessage(Arrays.asList(id), "subjectText",
                    "postingText");

谁能帮我回复帖子?

谢谢

【问题讨论】:

  • 请任何人帮我解决这个问题..

标签: android comments linkedin


【解决方案1】:

假设您知道要评论的更新的网络更新密钥,执行此操作的 API 调用为:

POST http://api.linkedin.com/v1/people/~/network/updates/key={网络更新密钥}/update-cmets

评论的 XML 正文示例:

<?xml version='1.0' encoding='UTF-8'?>
<update-comment>
  <comment>Really great article!</comment>
</update-comment>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-07
    • 2012-07-20
    • 1970-01-01
    • 1970-01-01
    • 2016-12-12
    • 2013-04-22
    相关资源
    最近更新 更多