Anyone using ruby to access the API?

Occasional Participant

Anyone using ruby to access the API?

I'm unable to get rolling with ruby because of the digest auth that is required. Net::HTTP and similar libraries only use basic auth. Anyone successfully got thing working with ruby?
3 REPLIES 3
Moderator

While we do not write modules to enhance any languages, here is the code on how to write an extension to Ruby to implement digest authentication. You will need an in depth working knowledge of Ruby to get this to work correctly, but the code is all here to support that form of authentication.
Dave Berard
Senior Product Manager, Constant Contact
Occasional Participant

Actually, what ended up being a better resource was HTTPClient. It already supports digest auth: http://dev.ctor.org/doc/httpclient/
Occasional Participant

I've been maintaining the constant_contact gem here: https://rubygems.org/gems/constant_contact


This gem is an ActiveResource wrapper for the Constant Contact api.  I'm using it in production and it works quite well. Try it out!

Developer Portal

View API documentation, code samples, get your API key.

Visit Page