Using maintain_method_on_redirect and foramtting the query according to HTTParty
Adding rspec tests