Nonce error

Hello!

I added the function to set up nonce correctly... This was the only way I got it working. Check out my fork for details.

I created this pull request if you also encounter these "Invalid nonce" errors.

If the requirement for calling the setUpNonce function is to much, we can also program it in the makeRequest function. I don't know which way would be more smooth.