TypeError: the JSON object must be str, not 'bytes' - Dashboard API

I get the following error when implementing the example given in the following link:

Any idea?

Thxs

I have the same problem, it would be great to hear if you’ve been able to resolve the problem!