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

How to run CURL in a batch in order to get data from salesforce?

Hi Devs,

I want to run the CURL in batch and get the data from salesforce on daily basis. 
I am facing two issues here:
1. My access token is getting changed everytime, so how can I write a program using Java or libcurl or C(I am new to this) so i can validate if access token is still valid and if not valid I will authenticate again and get access token populate it and login.
2. Once I login into salesforce, How can I use the same Java or c or libcurl to execute the CURL command and get data from salesforce.

Any links or examples are appreciated.