Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use a REST/JSON API from Talend ETL "https://api.klm.com/opendata/flightoffers/reference-data?country=FR"

After 2 success with your help calling ...

"https://restcountries.eu/rest/v2/all"

"https://api-adresse.data.gouv.fr/search/?q=8+bd+du+port"

 

I am now trying to call an Air France KLM API from https://developer.airfranceklm.com/

I activated my account and have a "key"

 

On talend side, in tRESTClient : 

URL : "https://api.klm.com/opendata/flightoffers/reference-data?country=FR"

Relative Path : ""

HTTP Method : GET

Accept type : JSON

... in advanced settings : 

Wrap JSON Response : ON

HTTP Headers :

"Accept" = "application/hal+json"

"Accept-Language" = "en-US"

"AFKL-TRAVEL-Country" = "FR"

"AFKL-TRAVEL-Host" = "AF"

"Api-Key" = <key I can on the dev portal ...>

but I have error : 

++++++++++++++++++++++++++++++++

Exception in component tRESTClient_3
javax.ws.rs.ServerErrorException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:463)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:881)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:852)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:410)
at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:594)
at projetreference.test_damien_api_0_1.Test_Damien_API.tRESTClient_3Process(Test_Damien_API.java:5507)
at projetreference.test_damien_api_0_1.Test_Damien_API.tWarn_3Process(Test_Damien_API.java:4446)
at projetreference.test_damien_api_0_1.Test_Damien_API.tWarn_2Process(Test_Damien_API.java:2469)
[statistics] disconnected
at projetreference.test_damien_api_0_1.Test_Damien_API.tWarn_1Process(Test_Damien_API.java:555)
at projetreference.test_damien_api_0_1.Test_Damien_API.runJobInTOS(Test_Damien_API.java:6213)
at projetreference.test_damien_api_0_1.Test_Damien_API.main(Test_Damien_API.java:6070)

++++++++++++++++++++++++++++++++

Labels (2)
1 Reply
Anonymous
Not applicable
Author