Hola, Is there a way to use the low-code CDK with...
# help-connector-development
n
Hola, Is there a way to use the low-code CDK with an API that returns XML data? I’ve seen the JSON requirement within the docs but this is the only thing that my API is missing. It’d be great if there was a flag or something to make it work with XML data.
u
Today is limited to only json responses. You can overwrite the component (like the Retriever) to parse XML data.
n
Thanks for the response.
You can overwrite the component (like the Retriever) to parse XML data.
I dont think I have enough “technical know-how” with the CDK to do this.
@[DEPRECATED] Marcos Marx I do have one little question; @[DEPRECATED] Marcos Marx One more question please; How do I pass in multiple authentication credentials? ( An ACCESS_KEY and SECRET_KEY scenario ) I have tried having two
authenticator
objects but I still get a
403
forbidden error meaning the credentials are not being passed properly to the request;
Copy code
authenticator:
      type: ApiKeyAuthenticator
      header: "APCA-API-KEY-ID"
      api_token: "<API_KEY>"

    authenticator:
      type: ApiKeyAuthenticator
      header: "APCA-API-SECRET-KEY"
      api_token: "<API_TOKEN>"
I checked the documentation but most of the example I’ve seen seem to use only one credential like a config or auth key.
u
I dont think I have enough “technical know-how” with the CDK to do this.
in this situation better try your source with the Python CDK, which also will need some customizatino to deal with xml data.
@Alexandre Girard (Airbyte) any idea if it is possible to have multiple headers using the ApiKeyAuntheticator?
a
not as part of the authenticator, but headers can be added as part of the requester's
request_options_provider
https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider
n
Thank you very much @[DEPRECATED] Marcos Marx @Alexandre Girard (Airbyte) This worked;
Copy code
request_options_provider:
      request_headers:
      #   k1: v1
      #   k2: v2
🔥 1