Closed Arf9999 closed 1 year ago
The first argument of credentials_service_account()
is scopes
, so you are getting the default of path = ""
, which is what gets sent to jsonlite::fromJSON()
.
credentials_service_account <- function(scopes = NULL,
path = "",
...,
subject = NULL) {...}
Name the path
argument:
token <- gargle::credentials_service_account(path = "*********74602.json")
This may be the same issue as #191
I have a google cloud service account JSON file and am trying to create a token for google drive for a script to run independently.
token <- gargle::credentials_service_account("*********74602.json")
results in:I have checked the file and
jsonlite::fromJSON()
parses the file perfectly.What am I doing wrong?