It would probably be better to build this into the getAccessToken method instead of having to sprinkle this around every time a request is made.