ruby on rails - How to access the Mailchimp file-manager/files API endpoint using Gibbon -


i'm using gibbon access mailchimp api.

i've no problem using...

gibbon = gibbon::request.new(api_key: "valid-api-key") lists = gibbon.lists.retrieve 

and getting lists stored in account.

however i'm struggling file-manager/files api endpoint.

trying...

files = gibbon.file-manager.files.retrieve 

throws undefined local variable or method 'manager' main:object (nameerror) error. suggests - sign not being correctly parsed.

and...

files = gibbon.filemanager.files.retrieve 

returns 404 error you'd expect.

so question : problem gibbon gem or there way access file-manager/files endpoint?

i think you made right call in issuing issue on github page :).

i believe method_missing magic having little trouble figuring out hyphen indeed.


Comments