Use the custom URL to get a custom version of Google Calendar for print

I want to print a week of Google Calendar events from the command line. I believe that https://www.google.com/calendar/printable and not some kind of API is the easiest way to do this. However, I need help with the arguments. In the command below, what does each of the arguments mean?

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@st&&p&lp&lp&lp&lp&lp&lp&lp&lp&lp&lm&lp?p?nlg = AUTO & psdec = true & pbw = false & pjs = false & rand =% 3Csomething% 3E & pda = true

Where can I read the documentation about this?

Argument list:

mode= wkst= hl= pgsz= dates= src= ctz= src= pfs= po= psdec= pbw= pjs= rand= pda= 
+7
google-calendar calendar
source share
1 answer

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

  • mode : the 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 : this is the language code for this list
  • pgsz : letter, a4 (others?)
  • po : page orientation AUTO, PORTRAIT, LANDSCAPE
  • ctz : time zone, for example, "Europe / Amsterdam", a list of time zones is here .
  • pfs : font size: SMALLEST, SMALLER, SMALL, NORMAL, BIG, BIGGER, BIGGEST
  • pbw : print black and white, true, false
  • psdec . Show events that you rejected, true, false
  • pjs : embed "Print JavaScript" in PDF (true) or just load PDF (false)
  • pda . Prepare the PDF for download (true) or print (false).
  • dates : start and end date of ISO 8601, encoded as YYYYMMDD, separated by / (which ends as% 2F when encoding a URL)
  • src : calendar id. Pass in a few src options to enable multiple calendars.
+5
source share

All Articles