Made some progress (I think!), error has changed from "Invalid Authorisation Header" to "expired token". Not sure what else to change?
This is not quite working for me yet! The first section of code seems to work just fine, I can trigger a message box giving the API credentials. The second section returns an error saying "Invalid ...