Need help with invoking API call request

Four Stars

Need help with invoking API call request

Hi All,

 

I am totally new to Talend and Data domain and currently I am looking for something related to API call.

 

I have an API request [ POST Call ]which works fine with cURL and I need to know if the same can be invoke from Talend. Upon my search I found tRestClient, tSystem etc but not sure how to input the cURL . My cURL is something like below

 

curl -n -H "Content-Type: application/json" -H "Authorization: Bearer 5e9189348rtbadd063" -d "{ \"job_id\": \"4\"}" -X POST https://abc.net/api/2.0/create

 

Your help is appreciated.

 

Thanks

Sathya

Moderator

Re: Need help with invoking API call request

Hello,

Could you please refer the below documentation for Talend Cloud API Designer to see if it is what you are looking for?

https://help.talend.com/reader/eWYCgI9o0W8k2edDKZ4ZAw/fSez1_DHKekEjPE1L2hflg

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Employee

Re: Need help with invoking API call request

Hi Sathya,


I do not know if you managed to resolve your issue, but what you are trying to do can be accomplished using Talend API Tester.

In API Tester, you can create a new request as explained in the gif below. In this example I'm using httpbin.org/post to test my request:

 

CURL.gif

 

As you can see you can also copy your request in curl to compare it with what you already have.

 

I hope this helps.

 

Regards, 

 

Marc

Four Stars

Re: Need help with invoking API call request

Hi,

 

Thanks for your response. Yes, I managed to resolve.

 

Thanks again for getting back to me.

 

 

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.