Updating gem to new API version and simplifying inputs to use hashes instead of objects