googleLanguageR icon indicating copy to clipboard operation
googleLanguageR copied to clipboard

Support new scope https://www.googleapis.com/auth/cloud-language

Open MarkEdmondson1234 opened this issue 8 years ago • 4 comments

https://cloud.google.com/natural-language/docs/reference/rest/v1/documents/annotateText

MarkEdmondson1234 avatar Sep 19 '17 19:09 MarkEdmondson1234

I add it, but it doesn't seem to work yet at Google's end

MarkEdmondson1234 avatar Nov 16 '17 09:11 MarkEdmondson1234

Its in, but some API calls seem to still need cloud-platform

MarkEdmondson1234 avatar Jun 15 '18 08:06 MarkEdmondson1234

This seems interesting, where would you suggest I get started @MarkEdmondson1234 ? I've done some work with API using httr before.

brooklynbagel avatar Oct 19 '18 03:10 brooklynbagel

Ah sorry I should have updated, it is in here https://github.com/ropensci/googleLanguageR/blob/master/R/auth.R but I think it wasn't working when I last tried alone with just https://www.googleapis.com/auth/cloud-language set in here https://github.com/ropensci/googleLanguageR/blob/master/R/options.R but perhaps just need to test it again.

The motive is that the broader https://www.googleapis.com/auth/cloud-platform gives access to all services and its just a good idea to restrict the API calls to just the scopes they directly need.

MarkEdmondson1234 avatar Oct 19 '18 07:10 MarkEdmondson1234