7

我想从命令行打印一周的 Google 日历事件。我认为使用https://www.google.com/calendar/printable而不是某些 API 是最简单的方法。不过,我需要一些关于论点的帮助。在下面的命令中,每个参数的含义是什么?

https://www.google.com/calendar/printable?mode=MONTH&wkst=1&hl=en&pgsz=letter&dates=20090801%2F20100531&src=fla-general@forestlake.org&ctz=%3Csomething%3E&src=fla-general@forestlake.org&pfs=NORMAL&po =AUTO&psdec=true&pbw=false&pjs=false&rand=%3Csomething%3E&pda=true

我可以在哪里阅读有关此的文档?

参数列表:

mode=
wkst=
hl=
pgsz=
dates=
src=
ctz=
src=
pfs=
po=
psdec=
pbw=
pjs=
rand=
pda=
4

1 回答 1

6

I do not find any Google documentation for the parameters, but this blog post documents most of them.

  • mode: Mode parameter (mode) must be either AGENDA, DAY, WEEK or MONTH
  • wkst: Week start parameter (wkst) must be between 1 (Sunday) and 7
    (Saturday)
  • hl: is a language code from this list
  • pgsz: letter, a4 (others?)
  • po: page orientation AUTO, PORTRAIT, LANDSCAPE
  • ctz: time zone, eg "Europe/Amsterdam", a list of time zones is here.
  • pfs: font size: SMALLEST, SMALLER, SMALL, NORMAL, BIG, BIGGER, BIGGEST
  • pbw: print black and white, values are true, false
  • psdec: Show events you have declined, values are true, false
  • pjs: Insert “Print JavaScript” into the PDF (true) or just loads the PDF (false)
  • pda: Prepare the PDF for download (true) or printing (false)
  • dates: the start and ending date both ISO 8601 encoded as YYYYMMDD, separated by a / (which ends up as %2F when URL-encoded)
  • src: calendar id. Pass multiple src parameters to include multiple calendars.
于 2013-05-27T03:50:51.447 回答