Вот мой код для создания соединения с googlesheets.
UserCredential credential;
using (var stream =
new FileStream("credentials.json", FileMode.Open, FileAccess.Read))
{
string credPath = "token.json";
credPath = Path.Combine(credPath, ".credentials/fund4yy");
credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
GoogleClientSecrets.Load(stream).Secrets,
Scopes,
"user",
CancellationToken.None,
new FileDataStore(credPath, true)).Result;
}
Service = new SheetsService(new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
ApplicationName = ApplicationName,
});
I
Он работает только на локальном хосте.
Как я могу изменить его, чтобы он работал и после развертывания в моем Azure приложении?