2012-06-21 78 views
-1

我正在嘗試使LinkedIn插件獲取用戶配置文件。我使用REST API用於這一目的,但是當我撥打電話從本地主機它顯示了以下錯誤使使用PHP的localhost的oauth2調用

Simple-LinkedIn: library not compatible with installed PECL OAuth extension. Please disable this extension to use the Simple-LinkedIn library. 

請指導我。

index file

oauth file

在這兩個文件中唯一的關鍵值的變化。

我在我的窗口7 32位上使用XAMPP服務器。

回答

0

你真的有兩個選擇。

首先,您可以按照上述消息中的建議,卸載與Simple-LinkedIn庫衝突的PECL oauth模塊。可通過以下方式卸載PECL extennsions cna:

pecl uninstall xxx 

其中,xxx是模塊。

其次,您可以使用已安裝的oauth模塊進行LinkedIn調用。在製作使用這個庫的調用的細節可以在LinkedIn開發者網站上找到:

https://developer.linkedin.com/documents/reading-data#toggleview:id=php https://developer.linkedin.com/documents/writing-linkedin-apis#toggleview:id=php