How to insert timestamp parameter to extract data from Api's in Talend studio

Five Stars

How to insert timestamp parameter to extract data from Api's in Talend studio

How to insert timestamp parameter to extract data from Api's in Talend studio. I need to extract the data from api's for certain start time and endtime. so where I need to specify the timestamp. thanks


Accepted Solutions
Seven Stars

Re: How to insert timestamp parameter to extract data from Api's in Talend studio

Hi Dinesh,

 

Is it your API will support to take start and end time as a parameter?

If it is then pass parameters in tRestClient component, by providing exact parameter names in tRestClient component.

If you want current time stamp then use TalendDate.getCurrentDate().

 

 

 

Rest_API.PNG 

 

 

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar

All Replies
Seven Stars

Re: How to insert timestamp parameter to extract data from Api's in Talend studio

Hi Dinesh,

 

Is it your API will support to take start and end time as a parameter?

If it is then pass parameters in tRestClient component, by providing exact parameter names in tRestClient component.

If you want current time stamp then use TalendDate.getCurrentDate().

 

 

 

Rest_API.PNG 

 

 

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar
Five Stars

Re: How to insert timestamp parameter to extract data from Api's in Talend studio

Thank you sir. can you please tell it by below timestamp example.
start time: LocalTimestamp":"2018-04-12T05:06:33+03:00
End Time: LocalTimestamp":"2018-04-12T06:16:46+03:00