Here’s another thread, including some working JS code.
Sorry I can’t be of more help! This API auth has been the cause of headache for so many haha