简体   繁体   English

如何为谷歌日历集成创建凭证.json

[英]how to create credentials.json for google calendar integration

In the past i have created an application that created google calendar events.过去,我创建了一个创建谷歌日历事件的应用程序。 I am attempting to re-create that and everything is working great until i need to get the 'credentials.json' file.我正在尝试重新创建它,并且一切正常,直到我需要获取“credentials.json”文件。 I cant remember how to get that file created, and nothing on the internet seems to be able to do it without using google cloud.我不记得如何创建该文件,如果不使用谷歌云,互联网上的任何东西似乎都无法做到。

Wondering if there is a way to do this without using the google-cloud?想知道是否有办法在不使用 google-cloud 的情况下做到这一点? I am using C# and the 'Google.Apis.Calendar.v3' package.我正在使用 C# 和“Google.Apis.Calendar.v3”包。

Any help would be great, thanks.任何帮助都会很棒,谢谢。

Sadly, I don't think you can do it without the help of Google Cloud.遗憾的是,如果没有 Google Cloud 的帮助,我认为您无法做到。 (Same as what Infinite Coders mentioned in the comments) (与评论中提到的无限编码器相同)

Follow the .NET quickstart here for the complete list of steps you need to take to integrate google calendar to your script.请按照此处的.NET 快速入门了解将 google 日历集成到脚本所需执行的完整步骤列表。

The quickstart above includes the credential creation which you can visit here directly.上面的快速入门包括凭证创建,您可以直接在此处访问。

To get a credentials.json file your application needs to be registered with google on google cloud console .要获得一个credentials.json 文件,您的应用程序需要在谷歌云控制台上向谷歌注册。

This is how google knows who is using their apis and authorization server.这就是谷歌知道谁在使用他们的 api 和授权服务器的方式。 There is no way to automate creating the credentials.json it must be manually created.无法自动创建必须手动创建的 credentials.json。

Depending upon which type of application you are working with will define how it is created Installed app , web app or service account根据您使用的应用程序类型将定义它的创建方式已安装的应用程序网络应用程序服务帐户

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM