+ Start a Discussion
Deepu BDeepu B 

Youtube Integration with Eclipse problem.

Hi , i wrote an integration class in the eclipse 

public class YoutubeInte {
public string myresult;
 public string finlaresult{get;set;}
 public pageReference show()
 {
     HTTP p = new HTTP();
     HTTPRequest request = new HTTPRequest();
     request.setEndpoint('https://www.googleapis.com/youtube/v3/search?part=snippet');
     request.setMethod('GET');
     request.setHeader('Content-type','application/json');
     HTTPResponse response = p.send(request);
     fromjson js = (fromjson) json.deserialize(myresult,fromjson.class);
     finalresult = ''+js.items[0].snippet.title;
     return null;
 }
}



i am trying to show in VF page using:

<apex:page controller='YoutubeInte'> it showing error here with Compilation error: Unknown property 'YoutubeInte.finalresult'
{!finalresult}
</apex:page>
pconpcon
In your controller, your variable is spelled finlaresult instead of finalresult