![](/img/trans.png)
[英]LinkedIn Invitation API error 401 [unauthorized]-iPhone sdk
[英]linkedin connect API gives error 401 - iphone
嗨,我正在使用linkedin iphone api通過電子郵件發送連接邀請
請求xml:
<?xml version='1.0' encoding='UTF-8'?>
<mailbox-item>
<recipients>
<recipient>
<person path="/people/email=%@">
<first-name>%@</first-name>
<last-name>%@</last-name>
</person>
</recipient>
</recipients>
<subject>Invitation to Connect</subject>
<body>Please join my professional network on LinkedIn.</body>
<item-content>
<invitation-request>
<connect-type>friend</connect-type>
</invitation-request>
</item-content>
</mailbox-item>
其中%@表示動態值。 內容類型:text / xml請求方法:POST
響應xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>401</status>
<timestamp>1342092385484</timestamp>
<request-id>FX9SK3ZVG9</request-id>
<error-code>0</error-code>
<message>[unauthorized]. OAU:076lb67kcfe2|dc01dc46-4d78-44d2-9f9b-49053b8094db|*01|*01:1342092534:iZ/mDlOL7eo4fGv2O/rQZKe8oCA=</message>
</error>
還驗證了授權標頭是否正確。 我也使用oAuth調試控制台進行了調試,我在調試控制台中輸入了相同的值,但簽名密鑰不同。
這是簽名密鑰的問題嗎? 我也經歷過論壇。 但我仍然無法找到確切的問題。
任何幫助將不勝感激。
謝謝
github上有一個示例LinkedIn iPhone客戶端: https : //github.com/synedra/LinkedIn-OAuth-Sample-Client
您應該能夠使用它來查看正確的標題是什么樣的。 當您使用macintosh(或者不會為iPhone開發)時,我強烈建議您在使用模擬器時使用HTTPScoop來查看流量,並了解應用程序正在執行的操作與樣本之間的差異客戶呢。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.