开发者

Linked api Integration

开发者 https://www.devze.com 2022-12-24 03:09 出处:网络
Hi friends I am using LinkedIn API to integrate LinkedIn profile and messages to my website. I got one sample example throgh googling. But the output is coming in XML output.

Hi friends I am using LinkedIn API to integrate LinkedIn profile and messages to my website.

I got one sample example throgh googling. But the output is coming in XML output.

Then, how can I bind all those things to my website con开发者_C百科trols?


You should prefer java script API of linkedin

for more details visit Linkeidn javaScript api docs => Java Script API


You get XML output from LinkedIn such as XMLFile.xml.

Following example shows output in label.

DataSet tmpDs = new DataSet();

tmpDs.ReadXml(Server.MapPath("~/XMLFile.xml"));

lblUser.Text = tmpDs.Tables[0].Rows[0]["first-name"].ToString();


If you are using linkedin api urls, by default you get an XML response. You can add ?format=json at the end or the url to get response in json format instead of XML.

e.g.

http://api.linkedin.com/v1/people/~

will give XML result while

http://api.linkedin.com/v1/people/~?format=json

will give json result.

Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消