c# - Google Vision API specify JSON file -
i'm trying authenticate google vision api using json file. normally, using google_application_credentials
environmental variable specifies path json file itself.
however, required specify in application , authenticate using json file contents.
now, have tried specify callsettings
pass in parameter imageannotatorclient.create
method. sure enough, callsettings
object can created reading authentication info json file, passing in parameter imageannotatorclient
seems make no difference imageannotatorclient.create
method still looking environmental variable , throws invalidoperation
exception, specifying environmental variable cannot found.
any idea how can desired behavior?
Comments
Post a Comment