开发者

Is it possible to use a search string url with Google Calendar

Would any body know if it is possible to search calendar events with a url string?

For example with gMail you could use:

https://mail.google.com/mail/?shva=1#search/Search+Term

to search for the words 'search' and 'term'

Any help or adv开发者_如何学运维ice greatly appreciated.

Cheers

Noel


This is how you can search Google Calendar using a query parameter in the url:

https://www.google.com/calendar/render?q=TERM

where TERM is the string you're searching for.

So, you can search using a GET request.


Using Chrome's dev tools, it appears as though Google Calendar searches are performed using a POST request, so you won't be able to pass search terms into urls to fetch a response (which would be a GET request).

Update: Looks like a GET request will still return results, but the response is some form of JSON.

Here is the url (I x'd out my specific info), looks like its not meant for what you want to use it for:

https://www.google.com/calendar/search?ctz=America/New_York&hl=en&as_tp=basic&as_myuids=xxx&as_otheruids=xxx&as_q=kai%20mallea&as_cal=xxx;xxx&secid=xxx


A generalization of the current answer is:

https://calendar.google.com/calendar/b/0/render?q=TERM

where 0 is the index of the desired Google account (if you have multiple accounts).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜