如何通过谷歌日历API免费发送短信和邮件实现高效沟通?

2026-04-02 00:581阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计651个文字,预计阅读时间需要3分钟。

如何通过谷歌日历API免费发送短信和邮件实现高效沟通?

Google Calendar 是 Google 提供的一项日程管理服务,方便地组织、安排日程,为我们的日常生活带来极大便利。

Googlecalendar是google一项日程管理服务可以方便的组织、安排日程可以为我们的日常生活带来极大地便利并它不但可以通过

Google calendar 是google一项日程管理服务可以方便的组织、安排日程可以为我们的日常生活带来极大地便利并它不但可以通过email来提醒日程也可以通过短信来通知。

如何通过谷歌日历API免费发送短信和邮件实现高效沟通?

因此可以利用它开发一些有趣的应用。

Google日历官方提供里.net sdk 可以方便我们的开发工作

code.google.com/apis/calendar/docs/2.0/developers_guide_dotnet.html

相关类库的说明

code.google.com/p/google-gdata/

一、              首先要有google的账号并且开启了日历功能在设置中填上自己手机号然后要设置通知方式。

二、              现在就开始编写代码了

namespace GoogleCalendar{public partial class Form1 : Form {public Form1() { InitializeComponent(); }private void button1_Click(object sender, EventArgs e) {string userName ""; //google账户 string passWord ""; //密码 string postUrl"www.google.com/calendar/feeds/default/private/full"; CalendarQuery query new CalendarQuery(postUrl); CalendarService service new CalendarService("calendar");//设置用户名密码 service.setUserCredentials(userName, passWord); EventEntry entry new EventEntry();//entry null;// Set the title and content of the entry. entry.Title.Text "Tennis with Beth"; //标题 entry.Content.Content "Meet for a quick lesson."; //内容// Set a location for the event. Where eventLocation new Where(); eventLocation.ValueString "South Tennis Courts"; entry.Locations.Add(eventLocation); When eventTime new When(DateTime.Now.AddMinutes(2), DateTime.Now.AddHours(2)); entry.Times.Add(eventTime); //提前两秒 entry.Reminder new Reminder { Minutes 1, Method Reminder.ReminderMethod.sms }; //发送方式 service.Insert(new Uri(postUrl), entry); } }}

三、 用途

1、 在刚开学几周里大多数同学都会记不清楚每天在哪个教室上课。这时可以编写个软件通过这个软件向谷歌日历导入一个月的课程信息并且设置为每天早上向你的手机发送上教师的信息这样再也不会找不着教室了。

如果你有台服务器那么用处就更大。让这软件每天在服务器上一直运行。

1、 每天获取天气信息发送至手机这样每月就省了不少钱了。

2、 使用它时刻监视股票信息黄金期货外汇等信息不错过任何时机。

3、 邮箱邮件短信通知邮箱收到邮件发送短信通知。

4、 害怕别人乱动自己的电脑使用软件记录他的详细操作信息一切情况了若指掌。

其实还有更多功能有待大家发掘有什么好主意请告诉我。

转:www.cnblogs.com/geekzph/archive/2011/06/16/2082991.html

本文共计651个文字,预计阅读时间需要3分钟。

如何通过谷歌日历API免费发送短信和邮件实现高效沟通?

Google Calendar 是 Google 提供的一项日程管理服务,方便地组织、安排日程,为我们的日常生活带来极大便利。

Googlecalendar是google一项日程管理服务可以方便的组织、安排日程可以为我们的日常生活带来极大地便利并它不但可以通过

Google calendar 是google一项日程管理服务可以方便的组织、安排日程可以为我们的日常生活带来极大地便利并它不但可以通过email来提醒日程也可以通过短信来通知。

如何通过谷歌日历API免费发送短信和邮件实现高效沟通?

因此可以利用它开发一些有趣的应用。

Google日历官方提供里.net sdk 可以方便我们的开发工作

code.google.com/apis/calendar/docs/2.0/developers_guide_dotnet.html

相关类库的说明

code.google.com/p/google-gdata/

一、              首先要有google的账号并且开启了日历功能在设置中填上自己手机号然后要设置通知方式。

二、              现在就开始编写代码了

namespace GoogleCalendar{public partial class Form1 : Form {public Form1() { InitializeComponent(); }private void button1_Click(object sender, EventArgs e) {string userName ""; //google账户 string passWord ""; //密码 string postUrl"www.google.com/calendar/feeds/default/private/full"; CalendarQuery query new CalendarQuery(postUrl); CalendarService service new CalendarService("calendar");//设置用户名密码 service.setUserCredentials(userName, passWord); EventEntry entry new EventEntry();//entry null;// Set the title and content of the entry. entry.Title.Text "Tennis with Beth"; //标题 entry.Content.Content "Meet for a quick lesson."; //内容// Set a location for the event. Where eventLocation new Where(); eventLocation.ValueString "South Tennis Courts"; entry.Locations.Add(eventLocation); When eventTime new When(DateTime.Now.AddMinutes(2), DateTime.Now.AddHours(2)); entry.Times.Add(eventTime); //提前两秒 entry.Reminder new Reminder { Minutes 1, Method Reminder.ReminderMethod.sms }; //发送方式 service.Insert(new Uri(postUrl), entry); } }}

三、 用途

1、 在刚开学几周里大多数同学都会记不清楚每天在哪个教室上课。这时可以编写个软件通过这个软件向谷歌日历导入一个月的课程信息并且设置为每天早上向你的手机发送上教师的信息这样再也不会找不着教室了。

如果你有台服务器那么用处就更大。让这软件每天在服务器上一直运行。

1、 每天获取天气信息发送至手机这样每月就省了不少钱了。

2、 使用它时刻监视股票信息黄金期货外汇等信息不错过任何时机。

3、 邮箱邮件短信通知邮箱收到邮件发送短信通知。

4、 害怕别人乱动自己的电脑使用软件记录他的详细操作信息一切情况了若指掌。

其实还有更多功能有待大家发掘有什么好主意请告诉我。

转:www.cnblogs.com/geekzph/archive/2011/06/16/2082991.html