Giter VIP home page Giter VIP logo

Comments (5)

idris avatar idris commented on August 17, 2024

You set the key with ConstantContact::Base.api_key = KEY_HERE

The user and password are indeed the username and password of the Constant Contact account you want to access. Unfortunately, that was the only acceptable authentication method at the time this library was written (see: http://developer.constantcontact.com/doc/authenticationOverview). Now I see that as of November 2010, they support OAuth! I'll create an issue for this. Maybe you (or someone else) can give a hand in implementing OAuth.

from constant_contact.

pjammer avatar pjammer commented on August 17, 2024

Well I have implemented oauth, consumer and provider into two apps last week. Active Resource isn't really that compatible. So that may mean a whole new connection module for you to write, and hopefully then that won't affect the other classes you have got there.

from constant_contact.

idris avatar idris commented on August 17, 2024

I think it can be done in a compatible way, as described in https://github.com/idris/constant_contact/issues#issue/6/comment/747265

from constant_contact.

pjammer avatar pjammer commented on August 17, 2024

I just went with mailchimp for now. Take a look at hominid for a gem that just works and is easy to understand. fwiw. Not that this isn't, but going down this path wasn't as easy as it is with Hominid.

from constant_contact.

idris avatar idris commented on August 17, 2024

True, I use hominid also for Mailchimp and it's great. I actually didn't start this library, I just forked it and made it a gem (it looks like this is the only active fork). Mailchimp's APIs are a lot better than Constant Contact's (in my opinion), and so it's easier to write a nice library for it. Constant Contact's API uses XML Atom Feeds, and is a great candidate for ActiveResource, which does all of the heavy lifting. That's why this library uses ActiveResource, rather than a more custom interface like Hominid's.

from constant_contact.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.