taylorbrooks / closeio

A Ruby wrapper for the Close.io API
http://developer.close.com
MIT License
45 stars 57 forks source link

example in README doesn't work #7

Closed idrinkpabst closed 10 years ago

idrinkpabst commented 10 years ago

Hey! Great gem BTW. Thank you for sharing

The line

Closeio::Lead.create name: "Bluth Company", contacts: [{name: "Buster Bluth", emails: [{email: "cartographer@bluthcompany.com"}]}]

throws an exception. I guess now in close.io the email type is a required parameter

Closeio::Lead.create name: "Bluth Company", contacts: [{name: "Buster Bluth", emails: [{email: "cartographer@bluthcompany.com", type: "office"}
taylorbrooks commented 10 years ago

Oops. Good catch.

taylorbrooks commented 10 years ago

Fixed in latest version...