THE GIVEN URL:
THE RETURN URL:
The return URL completely works if the # is changed to a ? (to start the query string). Why in the world is Google returning a # and thus “killing the query string”?
SEPARATE NOTE:
On a separate note, I don’t quite know if I should be requesting token or code as a response type. I’m planning to have users attach their Google Drive account(s) to an account on my website. I have read through the documentation multiple times and I can’t quite figure out which one is better for my website? For now (in the example above) I go with token. Also, depending on which one I go with, what should I store in my database for future use?
The reason is because I was requesting a
tokeninstead of acode. When I received code, the URL was formatted without a hash (#), but rather formatted as a query string. The reason for this is unclear to me, but the documentation states thattokenshould only be used as a response type for a heavy-Javascript application. The API code I was writing is in PHP, socodeis the clearly appropriate choice.