I removed automation and then tried it with just contacts. I got the redirect with the code after I authorized.
After that I took the code and followed the procedure at http://developers.hubspot.com/docs/methods/oauth2/get-access-and-refresh-tokens
But I got the following error:
“message”: “internal server error”,
I dont see any application installs in my test application. Please let me know if there is anything else that I need to do?