Could someone please let me know how to create the hash authentication using Talend components to fetch data from API. Below is the steps to follow.. I am able to decode the key with Base 64 using t Java component.. but stuck with step 2 mentioned below.
Decode the API key’s secret from Base64 to raw bytes. - I am able to do this using tJava component.
Create the hash using HMAC SHA-256 over the canonical request with the decoded API key secret.
Encode the hash with Base64
Sorry the content is missing @venkat5121, I certainly haven't removed it. I've contacted the community manager about the content going missing so hopefully it will reappear very soon. Can you explain your problem and I maybe able to point you to a solution which is specific to your issue
I am trying to bring data from an API call.
I have below details
I don't know if I can use tRESTClient or tJava or any other component to establish this call and retrieve those data files.
And even if there is one, is there any specific syntax, order or parameters to follow to enter those java codes in configuring such components?
OK, hopefully my original post can be found because I think I went into a bit of detail with it. But what you are going to need to do is create a Routine to do this. You can find an example of how to do this in code here (https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-lang...). You will be able to submit your call using the tRestClient, but the REST service specification will need to be followed closely in order to do this. There is seldom a generic way of working with web services, so I can't tell you how to do this from the brief description you have given. This sort of thing usually takes me a while reading the spec and then a few attempts at different solutions before I get it right.
Thanks for quick reply.
if you don't overwhelm, here is the complete knowledge about it.
I am not a java person and this information is going very very slow to me.
with whatever I understood, I configured the tRestClient as below:
Now wondering what should I configure within Advanced Settings -> HTTP Headers
how should i give those 8 parameters and make this component understand to convert it to HMAC_SHA256 hash message.