Skip to content

Requests return a Sift::Response

Latest
Compare
Choose a tag to compare
@nickhurlburt nickhurlburt released this 19 Jul 21:02

This release introduces a non-backward-compatible API change for the new_account() and get_accounts() methods. Whereas previously they would return a hash of data on success, and print an error message that was then implicitly returned in case of failure, they now return a Sift::Response object in either case. Callers will need to check for validity with the .ok? method on the response and then get the response body using .body.