rubyzoho
rubyzoho copied to clipboard
How do I use related_records method
RubyZoho.configuration.api.related_records("Contacts", contact_with_attachments, "Attachments") #=> 200
I feel like I should be able to get more from this method.
playing around with a forked version of the gem, it appears that the arguments are flipped RubyZoho.configuration.api.related_records("Contacts", contact_with_attachments, "Attachments") becomes RubyZoho.configuration.api.related_records("Attachments", contact_with_attachments, "Contacts")
I also returned the value of #to_hash instead of #check_for_errors and it works fine.
Excellent! Did you want to send in a PR?
Amal Chaudhuri * +1-212-537-9054
No, I will add downladFile
support b/c it is what my real goal is. After that I will submit a PR.