Hi @aalpersa , I think people will be able to help if you provide them the link to the API documentation. Perhaps thereâs something youâve overlooked in the doc.
Hi @aalpersa , once you generated the token, you can pass it via the headers like you are trying to do.
In the Header value, you need to paste the whole thing from Basic and your token:
âBasic MzjbR3w2fXtEwZ6byr694âŚâ
Your Header key is correct already.
You may need to add the other header keys/values too, such as âAccept-Encoingâ, âContent-Lengthâ, and âContent-Typeâ. It all depends on what the api requires
From the api documentation though, it looks like theyâre using Bearer instead of Basic, so please double check this
In Postman the format is x-www-form-unlercoded, I may need to solve this problem. I entered my request body manually as you can see to solve it, but I am getting 400, 415 errorsâŚ
Hi @aalpersa , were you able to make it work in Postman? If you could not, then you will not be able to make it work in Knime.
You need to first understand how to use the API.
Based on what I am reading, and what you showed what you did in Postman, youâre not exactly doing what their instructions are saying for requesting a token.
You should not pass the client id and client secret to the request token api. Instead, what you need to pass is the base64 encoded of the concatenation of client_id:client_secret as Basic Authorization.
I can definitely build a workflow that can send the correct information, but I think you should first understand how to use the api if you are going to use it (that part has nothing to do with Knime. Knime comes after that).
Hello @bruno29a. Sure I already did it in Postman with credentials and in python too and works well without problem.
Here I am passing basic authorization, base64 coded format of client credentials that works well with my python code. So I am sure that it is workingâŚ