Comments (3)
Yes. What isn't working? Have you double checked MailChimp's API doc to make sure you're passing the parameters in the manner it expects?
from gibbon.
Amro,
I have checked MailChimps API doc, not sure if I did a good job of
translating from php to ruby but this is what I am attempting to use:
gb = Gibbon.new
list_id = gb.lists({:list_name => "Users"})["data"].first["id"]
gb.listUpdateMember(:id => list_id, :email_address => old_email ,
:merge_vars => [:email_address => new_email] )
Can you offer any help on this?
On Tue, Dec 4, 2012 at 7:17 PM, Amro Mousa [email protected] wrote:
Yes. What isn't working? Have you double checked MailChimp's API doc to
make sure you're passing the parameters in the manner it expects?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-11023603.
Daniel Gaeta
Co-Founder | Fitsbyhttps://app.yesware.com/tl/73664be35f2332d2774a12057a3a8abdca1b546b/f5f909be4be9baab46488901a2728467/7645bc1549c42acec9aea34435d3ce0a?ytl=http%3A%2F%2Ffitsby.com
815-651-0526
tungle.me/dangaeta
from gibbon.
Daniel,
What error are you seeing?
A few things off hand that could cause you trouble:
-
Are you passing your API key (and removed it for security sake when pasting) when newing up the Gibbon instance?
-
The parameters for your lists() call aren't quite right. Double check the API docs for that call but I believe you need to pass the list_name in a filters hash. If you're making calls on the same list over and over, you're probably better off getting the list id once and hard coding that in your server code as it doesn't change.
The first part should look something like (untested code):
list_id = gb.lists({:filters => {:list_name => "Users"}})
- For listUpdateMember (or list_update_member in Ruby land), you're not passing the parameters in a hash. Gibbon expects a hash. I have some examples at https://github.com/amro/gibbon that explain the nuances of how to use Gibbon but generally you just underscore and lower case the name of the API call and pass a hash of parameters formatted in the manner that the API call expects.
Hope that helps.
from gibbon.
Related Issues (20)
- Create Campaign Body is Null HOT 5
- Gibbon::MailChimpError not populated with Faraday 0.16.2 HOT 3
- pass the content in campaign
- Cannot set faraday_adapter globally HOT 3
- Uninitialized constant Faraday::Error::ClientError HOT 3
- Changelog updates for 3.3.2 HOT 2
- NameError: uninitialized constant Faraday::Error::ClientError HOT 3
- Rescued errors come back with all nil values? HOT 8
- Got error saying api_key not found HOT 1
- gibbon report issue
- How to send campaign emails to some specific users? HOT 1
- How to delete a member from a list? HOT 5
- How to add member in the segment of a list ?
- Faraday 1.x.x compability HOT 2
- Deprecated warning on Faraday::Connection#basic_auth HOT 4
- 3.4.1 Causes 401: API Key Invalid HOT 7
- updating members in batching does not work HOT 1
- Gibbon doesn't work with Faraday 2.x HOT 4
- How to unsubscribe email that is bounced, pending, or archived? HOT 3
- v3.4.4 security patch for v3.4.0? HOT 1
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 gibbon.