我正在尝试将LinkedIn集成到salesforce上,我已经成功地获得了授权,获得了accessToken,还将我的个人资料信息添加到visulforce页面中,并且还将提要发布到了Linkedin ....现在我想将提要添加到vf页面中我明白了吗 这是我的getfeed方法代码
method(){
Http http = new Http();
HttpRequest httpReq = new HttpRequest();
HttpResponse httpRes = new HttpResponse();
httpReq.SetMethod('GET');
httpReq.setHeader('Authorization', 'Bearer '+linkedlnInfoList[0].Access_Token__c);
httpRes.setHeader('Connection', 'Keep-Alive');
httpReq.setEndpoint('https://api.linkedin.com/v2/activityFeeds?q=networkShares&count=2');
try{
httpRes = http.send(httpReq);
if(httpRes.getStatusCode() == 200){
// Map<String,object> data = (Map<String,object>)JSON.deserializeUntyped(httpRes.getBody());
String response=httpRes.getBody();
}
错误未知属性controller.response或数据
谢谢 阿米特·库玛(Amit Kumar)