Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use related_records method #55

Open
reedhein opened this issue May 17, 2016 · 3 comments
Open

How do I use related_records method #55

reedhein opened this issue May 17, 2016 · 3 comments

Comments

@reedhein
Copy link

RubyZoho.configuration.api.related_records("Contacts", contact_with_attachments, "Attachments") #=> 200

I feel like I should be able to get more from this method.

@reedhein
Copy link
Author

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.

@amalc
Copy link
Owner

amalc commented May 17, 2016

Excellent! Did you want to send in a PR?


Amal Chaudhuri * +1-212-537-9054

@reedhein
Copy link
Author

No, I will add downladFile support b/c it is what my real goal is. After that I will submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants