This repository has been archived by the owner on Dec 17, 2023. It is now read-only.
Can I create a SessionsClient while explicitly passing a service_account.json? #71
Labels
api: dialogflow
Issues related to the googleapis/python-dialogflow API.
type: question
Request for information or clarification. Not an issue.
I'd like to create a
dialogflow.SessionsClient
without having to defineGOOGLE_APPLICATION_CREDENTIALS
(as I'm consuming the package in another library).Reading this document tells me I should be able to use a method like
from_service_account_json
to instantiate my client, but the library does not seem to expose such method.I also looked at
google.auth.credentials
in order to pass acredentials
arg to the constructor, but it looks like it doesn't know how to do this either.Is there any way of passing the location of a credentials file to the
SessionsClient
constructor? Or could I read the file myself and create an instance ofgoogle.auth.credentials.Credentials
myself?The text was updated successfully, but these errors were encountered: