无法让Google的TRY THIS API忙碌工作 [英] Cannot get Google's TRY THIS API To work For FREEBUSY

查看:64
本文介绍了无法让Google的TRY THIS API忙碌工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问了这个问题几天前,我感谢(并接受)答案.不幸的是,像大多数问题一样,这只是另一个问题.

I asked this question a couple days ago, and I appreciate (and accepted) the answer. Unfortunately, like most issues, it just let to another question.

为什么我无法获得此"尝试此API 为我工作?

why can't I get this "TRY THIS API" to work for me?

{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": "https://calendar.google.com/calendar/embed?src=en.indian%23holiday%40group.v.calendar.google.com&ctz=America%2FLos_Angeles"

    }
  ],
  "timeMax": "2020-05-09T16:39:57-08:00",
  "timeMin": "2020-05-05T13:39:57-08:00",
  "timeZone": "UTC"
}

我怀疑它与ID有关,我已尝试使用以下语法在印度日历在这里.

I suspect it has something to do with the ID I'm asking for I've tried the below syntax to test on an indian calendar here.

  • ZW4uaW5kaWFuI2hvbGlkYXlAZ3JvdXAudi5jYWxlbmRhci5nb29nbGUuY29
  • https://calendar.google.com/calendar/embed?src=en.indian%23holiday%40group.v.calendar.google.com&ctz=America%2FLos_Angeles
  • ZW4uaW5kaWFuI2hvbGlkYXlAZ3JvdXAudi5jYWxlbmRhci5nb29nbGUuY29
  • https://calendar.google.com/calendar/embed?src=en.indian%23holiday%40group.v.calendar.google.com&ctz=America%2FLos_Angeles

我也尝试了几个整数作为极限 我单击确定"以允许它运行API,以便确认我的身份.但是我一直在得到这个原因":未找到".

I've also tried a couple integers as the limit I've clicked the "ok" to allow it run the API so it confirms my identity on. But I keep getting this "reason":"notfound".

我在做什么错了?

点击此处查看图片错误

对不起,我知道答案很明显.我觉得与API有任何关系的各种教程视频/网站始终是引导观看者去查找教程网站中未涵盖的其他信息的麻烦之地(就我之前的问题而言,接受的答案确实是这个,但这是一个帮助委员会,所以我希望如此.)

Sorry, I know the answer to this is probably so obvious. I feel various tutorial videos/websites that have anything to do with API's are always a rabbit hole of directing viewers to go find out a bunch of other information not covered in the tutorial's website (in the case of my previous question, the accepted answer did this, but this is a help board so I would expect that).

谢谢.

推荐答案

解决方案

您使用的ID 不是您的实际日历ID,这就是为什么它不起作用的原因.

Solution

The ID you are using is not your actual calendar id, that is why it is not working.

请按照以下步骤查找您的日历ID:

Follow these steps to find your calendar ID:

  1. 转到您的日历.
  2. 导航到您的已订阅/可用的Google日历列表.
  3. 在这些图标的右侧,您将找到三个垂直点(参见图片),单击它们,然后选择设置和共享.
  1. go to your Calendar.
  2. Navigate to your subscribed/available Google calendars list.
  3. On the right of these you will find three vertical dots (see image), click those and select Settings and sharing.

  1. 转到将打开的新页面的底部,然后在集成日历下复制第一个项目的值,即日历ID .
  1. Go to the bottom of the new page that will open and under Integrate Calendar copy the value of the first item that will be Calendar ID.

然后只需替换您实际拥有的ID.

Then just replace the ID you have for the actual one.

我希望这对您有所帮助.让我知道您是否需要其他任何东西,或者您是否不了解某些内容. :)

I hope this has helped you. Let me know if you need anything else or if you did not understood something. :)

这篇关于无法让Google的TRY THIS API忙碌工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆