function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
neao18neao18 

How to log in to some site with apex?

I am clue less

what i m trying is that, i have some message in some site say www.xyz.com in accout like: inbox, i what to get that data into salesforce custom object.

What need to be doen in this case. Help is will come Thansk..

AdrianCCAdrianCC

Hello @neao18!

 

Can you please give more details? Which site are you talking about? Is the information that you want to retrieve public or private(you need an user and a pass to log in to see it)? Does that site have an API that you can use? For example, here is the do.com API which you can use to make REST calls for whatever info you want to retrieve from that site: https://developers.do.com/

 

If it's got an API then the solution is clear: you'll need some custom apex code that makes the HTTP callouts. Start here: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_http_httprequest.htm

 

As I've said, it all depends on the specifics of the task- more or less: what site? :)

 

Thanks,

Adrian