[英]Comment on an update in linkedin from android application
有人可以幫助我對linkedin中的特定帖子發表評論/回復嗎?
我可以使用以下代碼使用個人ID通過我的android應用程序發送直接消息以鏈接到。
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");
誰能幫我回復帖子?
謝謝
假設您知道要評論的更新的網絡更新密鑰,則執行此操作的API調用為:
POST http://api.linkedin.com/v1/people/~/network/updates/key= {網絡更新密鑰} / update-comments
注釋的XML正文示例:
<?xml version='1.0' encoding='UTF-8'?>
<update-comment>
<comment>Really great article!</comment>
</update-comment>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.