You need to sign in to do that
Don't have an account?
sankalita chatterjee
SODA API with Apex?
Hi ... Anyone has some idea about how to use SODA API along with Apex? I need to call a web service from my salesforce org. The web service exposes via the SODA API (Socrata Open Data API) however I have not found yet anything on the SODA site that says how to access via Apex. They have APIs for Java, Ruby, etc...
I have the endpoint url of the resource I need to access. Anyone can help?
I have the endpoint url of the resource I need to access. Anyone can help?
More info here: http://dev.socrata.com/docs/endpoints.html
And for a quick example of performing a REST callout using the HTTP classes in Salesforce, see this SSE post: http://salesforce.stackexchange.com/questions/25852/calling-an-external-rest-service-in-apex
Thanks for your reply! Managed to do that with this simple code ...
HttpRequest req = new HttpRequest();
req.setEndpoint(<the endpoint>);
req.setMethod('GET');
Http http = new Http();
HTTPResponse res = http.send(req);
Regards
Sankalita