我試圖通過在我的混合應用程序上對它們進行身份驗證來檢索LinkedIn用戶配置文件信息。LinkedIn Apple設備上帶有Ionic框架的oauth 2.0(REST)
我試圖使用REST api,但是我無法在LinkedIn上註冊重定向網址以使其工作。
來源: https://developer.linkedin.com/documents/authentication
我用:
https://www.linkedin.com/uas/oauth2/authorization?response_type=code
&client_id=YOUR_API_KEY
&scope=r_basicprofile%20r_emailaddress
&state=STATE
&redirect_uri=YOUR_REDIRECT_URI
...但因爲具有獨特的URL安裝了iPhone獲得的應用程序,我不能在LinkedIn上註冊爲重定向URL。
我也試過使用JavaScript API,但無法加載頁面的動態按鈕出現和解析正確。
來源:https://developer.linkedin.com/documents/javascript-api-tutorial
是否有任何人找到了不同的解決方案來實現這種對離子或其他混合應用?
在此先感謝。
附加鏈接:https://software.intel.com/zh-cn/html5/articles/oauth2-with-intelxdk-cordova-html5#o2a – liampronan 2014-10-21 04:04:38
謝謝。很有用。我的印象是重定向URL必須有效。 – gvhuyssteen 2014-10-21 11:20:13