使用 ASP.NET 创建简单的 Google 应用程序

发布于 2024-11-17 18:26:30 字数 1021 浏览 2 评论 0原文

我们正在努力将客户现有的会计系统之一集成到 Google App 中。最终我们需要将其列在 Google App Marketplace 上。

以下是我们已经完成的操作:

  • 从 Google 下载示例 .NET 应用程序 - 这个< /a>
  • 在 Google Apps Marketplace 上创建了供应商配置文件
  • 在 Google Apps Marketplace 上列出了我们的测试应用程序

到目前为止,我们只能使用 DotNetOpenAuth 对用户进行身份验证。

我们正在努力解决以下问题:

  • 无法访问日历数据 API 并显示下一个约会。查询日历数据 API 时,我们收到 401 Unauthorized。
  • 要访问日历数据 API,我们需要有 ConsumerKey 和 ConsumerKey。 ConsumerSecret - 仅在您提交批准申请后才可用。
  • 我们提交了应用程序以供批准以获得 ConsumerKey 和ConsumerSecret,尽管它只是我们首先构建的一个试点应用程序。我们现在不希望发布该应用程序,但我们找不到一种方法来保持该列表的私有性并且仅适用于开发人员和开发人员。截至目前的测试目的。
  • 我们已将 ConsumerKey 和示例市场应用程序中存在 ConsumerSecret,但即使现在,我们在查询日历数据 API 时也会收到 401 未经授权的访问。

我们已经花了 2-3 天的时间试图为此找到适当的文档并让它发挥作用,但徒劳无功。任何帮助/指导使其正常工作并在我们准备好之前将列表保持在开发模式下私有,将不胜感激。

这里是我尝试运行的修改后的2页源代码。

We are working to integrate one of our client's existing accounting system into Google App. Eventually we need to list it on Google App Marketplace.

Here is what we have already done:

  • Downloaded the sample .NET app available from Google - this one
  • Created a vendor profile on the Google Apps Marketplace
  • Listed our test application on the Google Apps Marketplace

So far we have ONLY been able to authenticate the user using DotNetOpenAuth.

We are struggling with following issues:

  • Unable to access the Calendar Data API and display the next appointment. We are getting 401 Unauthorized when querying the Calendar Data API.
  • To access the Calendar Data API we need to have a ConsumerKey & a ConsumerSecret - which is made available ONLY after you submit your application for Approval.
  • We submitted the app for approval to get a ConsumerKey & a ConsumerSecret although its just a pilot app that we are building first. We don't want that app to be published as of now but we could not find a way to keep that listing private and available ONLY for dev & testing purpose as of now.
  • We have placed the ConsumerKey & ConsumerSecret in the sample marketplace app but even now we get a 401 Unauthorized access while quering the Calendar Data API.

We have already spent 2-3 days trying to find proper documentation for this and get it to work but in vain. Any help / guidance to get it to work and also keep the listing private in dev mode until we are ready, would be really appreciated.

Here is the modified 2 page source code i am trying to run.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦情居士 2024-11-24 18:26:30

您的帖子中存在一些关键的误解。

  1. 您的密钥已经可供您使用。打开 Marketplace,单击右上角的“我的供应商资料”,然后查看列表右下方的星星下方:“查看 OAuth Consumer Key”链接就在那里。如果不是,则说明您没有将您的应用标记为可安装的应用。要解决此问题,请创建一个新的应用程序条目,并确保提供有效的清单。

  2. 要测试您的新应用,请在提交应用以供批准之前,打开该应用的 Marketplace 页面,然后单击“立即添加”按钮。您将看到一个字段,用于输入要测试的 Google Apps 域名。

只有您添加应用程序的域才可以使用市场密钥进行访问。

如果您将这两件事整理好,事情很可能就会开始工作:)

There are some key misconceptions in your post.

  1. Your keys are already available to you. Open Marketplace, click on "My Vendor Profile" top right, and look right under the listing, below the stars: View OAuth Consumer Key link is there. If it isn't, you did not mark your app as an installable one. To fix that, create a new app entry, and make sure you provide a valid manifest.

  2. To test your new app, BEFORE you submit your app for approval, open the Marketplace page for it and click the Add it now button. You will be offered a field to enter the Google Apps domain name to test with.

Only domains you add your app to will be accessible with the marketplace key.

Chances are if you sort these two things out things will start working :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文