Giter Site home page Giter Site logo

Comments (6)

amro avatar amro commented on August 20, 2024

Can you paste a code snippet?

Looks like you're doing something like

mc.list_interest_groupings.first

Given the documentation for the call I think you're trying to make, try something like

mc.lists.list_groupings(params)

from gibbon.

jai-n avatar jai-n commented on August 20, 2024

I have doing like this
def grouping_id
@grouping_id ||= client.list_interest_groupings(:id => mailing_list_id).first['id']
end
when I have try to like client.lists.list_groupings(:id => mailing_list_id) this then got following error
Gibbon::MailChimpError Exception: MailChimp API Error: Unknown method "lists/list-groupings" (code -32601)

from gibbon.

amro avatar amro commented on August 20, 2024

I think you're using syntax from an older version of Gibbon (<=0.4.6_ with the new version of Gibbon (>=0.5.0, see the README for more info on the syntax change). The example I gave above should work for you.

from gibbon.

jai-n avatar jai-n commented on August 20, 2024

No I have follow your new gibbon instruction but found error
i have use just like this
gb = Gibbon::API.new
gb.lists.list_groupings(:id=>"147a8d638d")
*** Gibbon::MailChimpError Exception: MailChimp API Error: Unknown method "lists/list-groupings" (code -32601)
you have any idea about it

from gibbon.

amro avatar amro commented on August 20, 2024

It should be list_groupings, not "list_groupings" -- see the API docs for version 2 http://apidocs.mailchimp.com/api/2.0/

from gibbon.

jai-n avatar jai-n commented on August 20, 2024

Can't solve my issue
I am not using "list_groupings", instead of list_groupings
finally I am using old gem gibbon -v 0.3.5 and my issue was resolved
Thanks Amro

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.