you are using one thread to describe problems with 2 different APIs which makes it difficult for others to follow what you are talking about… next time you might want to use 2 different threads…
so one of the issues seems to be solved now… can you provide a screenshot of the relevant blocks of the working solution?
and the last screenshot seems to be the blocks of the API, which still is not working…
you did not add the Content-Type header as suggested earlier…
also check your token and make sure, it is base64 encoded
I used the tools from this site https://base64.guru/ and it tells me that my token is not a well formed base64 token, so they suggested the repair tool and I used it in my token and it generated a new token with a different format.
I replace my token by this new one and now the error has changed:
So now I think that it’s a issue with the token provided by the platform, not my code.
I’ll report this issue to them, meanwhile I would like to thank the community for the time and attention spent, hope the knowledge in this thread helps somebody in future!
It worked!
But I don’t know why they gave me a token that it’s not in the format that they use, such nonsense!
Thank you very much to help me overcome this issue Taifun!