Errror when trying to integrate CJ API

I am trying to integrate a CJ.com API to pull offers but keep getting this error message?:

An error occurred when calling Get All

Unsupported content type: application/xml

URL Called:

https://link-search.api.cj.com/v2/link-search?website-id=101375413&link-type=banner&advertiser-ids=joined

Full Response:

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<links total-matched="0" re

I hope someone here can help :frowning: Thank you!

Hi @Marc007,

I’m afraid you won’t be able to integrate it to Adalo by itself (without using any intermediary platforms).
From what I see here CJ Developer Portal, the return result has XML format. Adalo can only recognise JSON formats.

First thing which comes to my mind is to use Make to send request to API and then transform XML to JSON in Make, but this will require some work to do.

Or maybe there is an option in CJ API to switch responses to JSON.

Best,
Victor.

Thank you Victor for the feedback. Much appreciated.

1 Like