You need to sign in to do that
Don't have an account?
Silpi Roy 14
I have a requirement like JSON for an external weather forecasting is given ,Based on the website details in lead object the greeting message should be displayed.Please suggest me to solve it(URGENT).
I have a requirement like JSON for an external weather forecasting is given ,Based on the website details in lead object the greeting message should be displayed.Please suggest me to solve it(URGENT).
public static AccuWether(String path){
HttpRequest req = new HttpRequest();
req.setEndpoint('http://dataservice.accuweather.com/forecasts/v1/daily/' + accuWetherKey + path);
req.setMethod('GET');
Http http = new Http();
HttpResponse res = new HttpResponse();
res = http.send(req);
return accuWether.parse(res.getBody());
}
public static AccuWether parse(String jsonString) {
return (AccuWether) System.JSON.deserialize(jsonString, AccuWether.class); }
System.debug('Service Response is------->'+strResponse);
}