11

I need to sync MS Exchange's contacts with my Ruby on Rails application.

Which is the best way? Would you recommend any existing gems for it?

micho
  • 2,196
  • 2
  • 21
  • 26

5 Answers5

6

One place to start would be the Exchange Developer Center, where Microsoft links to downloads of the different SDKs, documentation, etc. Understandably, most of the docs and examples will be using Microsoft's .NET Framework and languages.

If you want to connect with Exchange 2007 or 2010, you'll probably find it easiest to use some form of Exchange Web Services (EWS) which you may be able to connect to using Ruby web services frameworks like SOAP4R, WSO2, etc.

For Exchange 2003 and earlier, you're much more limited; and programming CDO through Ruby's win32ole is not going to be pretty or fun.

ewall
  • 27,179
  • 15
  • 70
  • 84
  • Thanks, man! That helps a lot as a starting point. Do you know if contacts are accessible through WebDAV as well? – micho Aug 26 '10 at 08:12
  • WebDAV I believe is only available on Exchange 2000 & 2003 with Forms Authentication enabled on OWA; here's a [page with some examples](http://weblogs.asp.net/whaggard/archive/2007/01/30/how-do-i-access-my-outlook-contacts-from-my-web-application.aspx) (including both WebDAV for older and EWS for newer servers). – ewall Aug 26 '10 at 13:15
1

Perhaps https://rubygems.org/gems/exchanger exchanger gem will help you.

Ruby library for accessing Microsoft Exchange using Exchange Web Services. This library tries to make creating and updating items as easy as possible. It will keep track of changed properties and will update only them.

Giridhar Bandi
  • 1,313
  • 1
  • 11
  • 28
  • I came to this question with the same needs as @micho, and this might actually be a great answer (haven't tried it yet). – Matthew Clark Jun 17 '14 at 15:21
1

I tested viewpoint gem and it works. Be sure to follow wiki page for instructions, because readme is a little bit deprecated.

Karlo Smid
  • 525
  • 1
  • 5
  • 13
0

Updating this thread a bit, 5 years later: this gem looks promising, starting to test it right now: https://github.com/WinRb/Viewpoint

Thiago Ganzarolli
  • 1,161
  • 12
  • 17
0

perhaps using win32ole?

rogerdpack
  • 62,887
  • 36
  • 269
  • 388