Giter Site home page Giter Site logo

edit/update email about gibbon HOT 3 CLOSED

amro avatar amro commented on July 19, 2024
edit/update email

from gibbon.

Comments (3)

amro avatar amro commented on July 19, 2024

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.

dgaeta avatar dgaeta commented on July 19, 2024

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.

amro avatar amro commented on July 19, 2024

Daniel,

What error are you seeing?

A few things off hand that could cause you trouble:

  1. Are you passing your API key (and removed it for security sake when pasting) when newing up the Gibbon instance?

  2. 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"}})

  1. 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)

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.