LinkedIn Rest API doesn't parse document in the same way when sharing in a company page, account and group -



LinkedIn Rest API doesn't parse document in the same way when sharing in a company page, account and group -

recently, noticed unusual behavior linkedin rest api. xml parsing working in 2 different ways when want publish:

a company or business relationship share and grouping post

here bellow xml text shared in company or account.

<?xml version="1.0" encoding="utf-8" standalone="yes"?><share> <comment>🎯 text</comment> <content> <title>🎯 text</title> <description> </description> <submitted-url>link</submitted-image-url> </content> <visibility> <code>anyone</code> </visibility> </share>

when post https://api.linkedin.com/v1/companies/company_id/shares or https://api.linkedin.com/v1/people/~/shares, next error. understand doesn't 🎯

<?xml version="1.0" encoding="utf-8" standalone="yes"?> <error> <status>400</status> <timestamp>1428399349498</timestamp> <request-id>ifbvnwlzht</request-id> <error-code>0</error-code> <message>couldn&#39;t parse share document: error: illegal xml character: 0xd83c </message> </error>

however, when post grouping next xml text https://api.linkedin.com/v1/groups/group_id/posts, seems work ok.

<?xml version="1.0" encoding="utf-8" standalone="yes"?> <post> <title>🎯 text</title> <summary>🎯 text</summary> <content> <submitted-url>link</submitted-url> <submitted-image-url>image_link</submitted-image-url> <title>🎯 text</title> <description> </description> </content> </post

do think api error or making error xml requests? have done tests api console , java (i'm not using specific java linkedin api)

thanks

api rest linkedin

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -