hi i am try to integrate LinkedIn with my mobile application which is developing in phonegap with Xcode. Now i have get the authorization using javascript library from github(https://github.com/bytespider/jsOAuth/blob/daa8823a02fa570b285ac26f66ff6c5d8be9d4ec/src/OAuth/Consumer.js) jsoauth but i do not know how to set header for "https://api.linkedin.com/uas/oauth/accessToken" any one please give example for it.Now i got oauth_token,verifier,oath_token_secret.how can i use it? i get the problem send like
代码是 :
var 选项_________________________________________________________________________________________________________________________________________________
consumerKey: XXXXXXXXXX ,
consumerSecret: XXXXXXXX ,
verifier: verifier,
signatureMethod: HMAC-SHA1
};
oauth = OAuth(options);
oauth.post( https://api.linkedin.com/uas/oauth/accessToken , null,
function(data) {alert( acess );
window.plugins.childBrowser.close();
},
function(data) {
alert( no access );
console.log(data.error);
}
);
在此调用错误函数, Xcode 错误显示为 :
WebKit 在 WebView: decide Policy for Navigation Action: request: frame: decision Listener: delegate: respresent: {%/strong> - [JKarray objectAtIndex:]: 索引(1) 超越界限(1)
谁能帮我 如何得到LinkeIn的 AccessToken。