We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1388ae6 + a7619d8 commit be2b8efCopy full SHA for be2b8ef
linkedin/linkedin.py
@@ -544,3 +544,13 @@ def send_invitation(self, invitation):
544
except (requests.ConnectionError, requests.HTTPError), error:
545
raise LinkedInHTTPError(error.message)
546
return True
547
+
548
+ def comment_on_update(self, update_key, comment):
549
+ comment = {'comment': comment}
550
+ url = '%s/~/network/updates/key=%s/update-comments' % (ENDPOINTS.PEOPLE, update_key)
551
+ try:
552
+ response = self.make_request('POST', url, data=json.dumps(comment))
553
+ response.raise_for_status()
554
+ except (requests.ConnectionError, requests.HTTPError), error:
555
+ raise LinkedInHTTPError(error.message)
556
+ return True
0 commit comments