Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
haritash
Contributor
Contributor

Connecting Rest API in Talend 8.0 using OAuth2

I exactly want to do is :-

1. I want to fetch the data from Rest API using OAuth 2.0 access token or I
need to fetch the data from Rest API using clientid, client secret, scope,
Authorization url etc.
2. After fetching the data I want to sync this data to another Rest API
using required filters.

I have already tried with Talend Open Studio 8.0 Open source to
achieve that but facing the issue that when I am passing the access token
to the rest api it is not fetching the data but the response code is
showing 200. but in the string I didn't get the response I only got blank.

Using the same access Token I am able to get data using PostMan. Please
provide me with the solution to my problem

2 Replies
Pablo007
Creator
Creator

Hi,

I do not have a clear picture of what you need. 

For me API rest is success is a matter a try and error,  many times I make a call with API creator to create connection together.

In any case I will try,  my excuse in advance if is a nonsense reply

Have you tried (if is possible) to generate 2 QVD (or working in memory) one with data from first API,  and one with the second,  and after that mix it with with a Different script and generate a third one?

with a ETL structure,  or on the same script working on memory

 

CALL FIRST_API;
CALL SECOND_API
CALL MIXING_API

Also check of you are creating properly the conection to the API,  before mixing them,  try to create them independent to see if everything works well,  looks like you are facing problems just with second one

 

haritash
Contributor
Contributor
Author

Hi Pablo007,

Thanks for the reply, My issue is that I want to pass OAuth2 token to rest api and wants to get the data from that API, My problem is that I am passing this OAuth2 token from first API and pass it to second API but in Talend I am getting blank response and in PostMan I am getting data using this token. I am not understand what the exact issue?