google-drive-sdk,google-api-js-client
The response I was receiving was 403. And the scenario was user accessing "work" Drive (Google Drive for your domain) Turns out Google Drive for your domain Administrators can restrict the permission to install third party apps. https://support.google.com/a/answer/6105699?hl=en User will still be able to allow access for the app and...
javascript,google-maps,google-api-js-client
Updated version of your function is below. 'type' parameter is optional; in case you send longitude, just type 'lng' (or anything different than 'lat'): formatLatLong = function(latLong, type){ type = type || "lat"; var sLong = 1; var directionLetter = (type=="lat"?"N":"E"); if (latLong < 0) { directionLetter = (type=="lat"?"S":"W"); sLong...
java,javascript,google-api,google-api-js-client
Turns out everything is working as expected. I need to look at the refresh of tokens, as the access_token I was using was not valid, hence the "Invalid Credentials" message. I tested the access_token by putting the following in postman: https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=<access_token> When using the incorrect access_token I was getting the...