 <p>You can do the same thing using the OAuth Playground.</p> <p>See <a href="http://stackoverflow.com/questions/19766912/how-do-i-authorise-a-background-web-app-without-user-intervention-canonical">How do I authorise a background web app without user intervention? (canonical ?)</a></p> <p>Step 11 will be different. Instead of pasting the refresh token into your server app (which you don't have), you'll paste the access token into your JS in the same way as you are doing in your answer.</p>