Comments (5)
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.
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.
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.
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.
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)
- Support new (unreleased) version of ActiveResource
- Handle ConstantContact::List#contact_count when list contains no contacts
- ConstantContact::Activity#encode_data method missing carriage return
- OAuth Support HOT 6
- undefined method 'ContactLists' for ConstantContact::Contact HOT 2
- Exception trying to save existing contact without contact_lists
- New Contact on list 1 -- it doesn't exist
- Get additional customer data HOT 1
- NoMethodError (undefined method `collect!' for #<Net::HTTPOK 200 OK readbody=true>): HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from constant_contact.