fullcontact / fullcontact-api-ruby

A Ruby wrapper for the FullContact API
MIT License
82 stars 85 forks source link

Just a simple hash? #35

Closed wetzler closed 9 years ago

wetzler commented 9 years ago

Is there a way to get the results of a request back as a simple hash rather than the Hashie format? Or, perhaps you could provide a couple of examples of how to interact with the Hashie object?

(I'm not familiar with Hashie so having to learn it is creating a barrier for my script creation; a simple JSON response would be much more straightforward for me :))

wetzler commented 9 years ago

Solved my own issue :) You can convert back to a regular hash like this for ease of parsing:

person = FullContact.person(email: example_email, style: "dictionary").to_hash

Xorlev commented 9 years ago

I'm not familiar with Hashie so having to learn it is creating a barrier for my script creation

I think this is likely the case for many developers, I'll add it to the readme examples. Thanks for opening the issue!