我正在尝试将 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();
}
错误未知属性控制器。响应或数据
谢谢阿米特库马尔