简体   繁体   中英

How to add "Attachment" in Google Apps Calendar using Google API version 2?

I am using Google API Version 2 fo .NET to create Google Calendar Entries. How can i add "Attachment" to Google Calendar?

Thanx

对于阅读本文的所有后代,现在支持附件,这是如何操作的指南: https : //developers.google.com/google-apps/calendar/create-events#attachments

I was trying to find the answer to this question myself, and after looking through the XML results for various queries using the Calendar API feeds , I'm pretty sure there isn't currently a way to retrieve or update file attachments. Since calendar event file attachments is a lab feature from Google, it's not entirely surprising that they aren't yet available through the public API.

Depending on what you are trying to do, you could use extended properties to store additional information about attachments in an event, but these values won't be read by the calendar web client, so you would only be able to use them for your own application.

A couple other things (admittedly hacks) you could try:

  • The ICAL feed provided by Google Calendar provides an ATTACH: property. You could have your app use the import url to import an ics file containing your attachment.
  • You could simulate the web client, which posts a gdoc-attachment parameter to update an events with an attachment.

You also might try posting to the calendar help forums. The only related post I could find was here .

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM